1 /* 2 * Copyright (c) 2018 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 #ifndef MODULES_VIDEO_CODING_CODECS_H264_H264_COLOR_SPACE_H_ 12 #define MODULES_VIDEO_CODING_CODECS_H264_H264_COLOR_SPACE_H_ 13 14 // Everything declared in this header is only required when WebRTC is 15 // build with H264 support, please do not move anything out of the 16 // #ifdef unless needed and tested. 17 #ifdef WEBRTC_USE_H264 18 19 #if defined(WEBRTC_WIN) && !defined(__clang__) 20 #error "See: bugs.webrtc.org/9213#c13." 21 #endif 22 23 #include "api/video/color_space.h" 24 25 extern "C" { 26 #include "third_party/ffmpeg/libavcodec/avcodec.h" 27 } // extern "C" 28 29 namespace webrtc { 30 31 // Helper class for extracting color space information from H264 stream. 32 ColorSpace ExtractH264ColorSpace(AVCodecContext* codec); 33 34 } // namespace webrtc 35 36 #endif // WEBRTC_USE_H264 37 38 #endif // MODULES_VIDEO_CODING_CODECS_H264_H264_COLOR_SPACE_H_ 39