frame_generator_interface.cc (956B)
1 /* 2 * Copyright (c) 2020 The WebRTC project authors. All Rights Reserved. 3 * 4 * Use of this source code is governed by a BSD-style license 5 * that can be found in the LICENSE file in the root of the source 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11 #include "api/test/frame_generator_interface.h" 12 13 #include "rtc_base/checks.h" 14 15 namespace webrtc { 16 namespace test { 17 18 // static 19 const char* FrameGeneratorInterface::OutputTypeToString( 20 FrameGeneratorInterface::OutputType type) { 21 switch (type) { 22 case OutputType::kI420: 23 return "I420"; 24 case OutputType::kI420A: 25 return "I420A"; 26 case OutputType::kI010: 27 return "I010"; 28 case OutputType::kNV12: 29 return "NV12"; 30 default: 31 RTC_DCHECK_NOTREACHED(); 32 } 33 } 34 35 } // namespace test 36 } // namespace webrtc