Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(281)

Unified Diff: webkit/media/crypto/decoders/ffmpeg_util.h

Issue 10899021: Add CDM video decoder. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webkit/media/crypto/decoders/ffmpeg_util.h
diff --git a/webkit/media/crypto/decoders/ffmpeg_util.h b/webkit/media/crypto/decoders/ffmpeg_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..1bebefb699480623d81ce0a3ac921d91dd310465
--- /dev/null
+++ b/webkit/media/crypto/decoders/ffmpeg_util.h
@@ -0,0 +1,35 @@
+// 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
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WEBKIT_MEDIA_CRYPTO_DECODERS_FFMPEG_UTIL_H_
+#define WEBKIT_MEDIA_CRYPTO_DECODERS_FFMPEG_UTIL_H_
+
+// Used for FFmpeg error codes.
+#include <cerrno>
+
+#include "webkit/media/crypto/ppapi/content_decryption_module.h"
+
+// Include FFmpeg header files.
+extern "C" {
+// Temporarily disable possible loss of data warning.
+MSVC_PUSH_DISABLE_WARNING(4244);
+#include <libavcodec/avcodec.h>
+#include <libavformat/avformat.h>
+#include <libavformat/avio.h>
+#include <libavformat/url.h>
+#include <libavutil/avutil.h>
+#include <libavutil/mathematics.h>
+#include <libavutil/log.h>
+#include <libavutil/imgutils.h>
+MSVC_POP_WARNING();
+} // extern "C"
+
+namespace webkit_media {
+
+// Converts FFmpeg's pixel formats to its corresponding supported video format.
+cdm::VideoFrame::Format PixelFormatToVideoFormat(PixelFormat pixel_format);
+
+} // namespace webkit_media
+
+#endif // WEBKIT_MEDIA_CRYPTO_DECODERS_FFMPEG_UTIL_H_
« no previous file with comments | « no previous file | webkit/media/crypto/decoders/ffmpeg_util.cc » ('j') | webkit/media/crypto/decoders/video_decoder.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698