Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef WEBKIT_MEDIA_CRYPTO_DECODERS_FFMPEG_UTIL_H_ | |
| 6 #define WEBKIT_MEDIA_CRYPTO_DECODERS_FFMPEG_UTIL_H_ | |
| 7 | |
| 8 // Used for FFmpeg error codes. | |
| 9 #include <cerrno> | |
| 10 | |
| 11 #include "base/compiler_specific.h" | |
| 12 #include "webkit/media/crypto/ppapi/content_decryption_module.h" | |
| 13 | |
| 14 // Include FFmpeg header files. | |
| 15 extern "C" { | |
| 16 // Temporarily disable possible loss of data warning. | |
| 17 MSVC_PUSH_DISABLE_WARNING(4244); | |
| 18 #include <libavcodec/avcodec.h> | |
|
ddorwin
2012/09/02 21:39:08
We don't need all of these here.
| |
| 19 #include <libavformat/avformat.h> | |
| 20 #include <libavformat/avio.h> | |
| 21 #include <libavformat/url.h> | |
| 22 #include <libavutil/avutil.h> | |
| 23 #include <libavutil/mathematics.h> | |
| 24 #include <libavutil/log.h> | |
| 25 #include <libavutil/imgutils.h> | |
| 26 MSVC_POP_WARNING(); | |
| 27 } // extern "C" | |
| 28 | |
| 29 namespace webkit_media { | |
| 30 | |
| 31 // Converts FFmpeg's pixel formats to its corresponding supported video format. | |
| 32 cdm::VideoFrame::ColorFormat PixelFormatToVideoFormat(PixelFormat pixel_format); | |
|
ddorwin
2012/09/02 21:39:08
Only FFmpegVideoDecoder::GetVideoBuffer() uses thi
| |
| 33 | |
| 34 } // namespace webkit_media | |
| 35 | |
| 36 #endif // WEBKIT_MEDIA_CRYPTO_DECODERS_FFMPEG_UTIL_H_ | |
| OLD | NEW |