OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
ddorwin
2012/08/29 17:33:49
Do we expect a lot of decoders for the clear key C
Tom Finegan
2012/08/30 17:09:23
I thought it might be handy to have a decoders sub
ddorwin
2012/09/02 21:39:07
The decoders are explicitly for the clear key PPAP
| |
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 "webkit/media/crypto/ppapi/content_decryption_module.h" | |
12 | |
13 // Include FFmpeg header files. | |
14 extern "C" { | |
15 // Temporarily disable possible loss of data warning. | |
16 MSVC_PUSH_DISABLE_WARNING(4244); | |
17 #include <libavcodec/avcodec.h> | |
18 #include <libavformat/avformat.h> | |
19 #include <libavformat/avio.h> | |
20 #include <libavformat/url.h> | |
21 #include <libavutil/avutil.h> | |
22 #include <libavutil/mathematics.h> | |
23 #include <libavutil/log.h> | |
24 #include <libavutil/imgutils.h> | |
25 MSVC_POP_WARNING(); | |
26 } // extern "C" | |
27 | |
28 namespace webkit_media { | |
29 | |
30 // Converts FFmpeg's pixel formats to its corresponding supported video format. | |
31 cdm::VideoFrame::Format PixelFormatToVideoFormat(PixelFormat pixel_format); | |
32 | |
33 } // namespace webkit_media | |
34 | |
35 #endif // WEBKIT_MEDIA_CRYPTO_DECODERS_FFMPEG_UTIL_H_ | |
OLD | NEW |