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

Unified Diff: media/cdm/ppapi/ffmpeg_cdm_video_decoder.cc

Issue 22362007: Relocate last remnants of webkit/renderer/media code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make chromeos crypto dep explicit. Created 7 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
« no previous file with comments | « media/cdm/ppapi/ffmpeg_cdm_video_decoder.h ('k') | media/cdm/ppapi/libvpx_cdm_video_decoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cdm/ppapi/ffmpeg_cdm_video_decoder.cc
diff --git a/webkit/renderer/media/crypto/ppapi/ffmpeg_cdm_video_decoder.cc b/media/cdm/ppapi/ffmpeg_cdm_video_decoder.cc
similarity index 96%
rename from webkit/renderer/media/crypto/ppapi/ffmpeg_cdm_video_decoder.cc
rename to media/cdm/ppapi/ffmpeg_cdm_video_decoder.cc
index faaa8f71c303957bcdacb67f152278d9fd7fd892..9a2439d299cf504b25e25b24efc716f88cf8cd42 100644
--- a/webkit/renderer/media/crypto/ppapi/ffmpeg_cdm_video_decoder.cc
+++ b/media/cdm/ppapi/ffmpeg_cdm_video_decoder.cc
@@ -2,13 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "webkit/renderer/media/crypto/ppapi/ffmpeg_cdm_video_decoder.h"
+#include "media/cdm/ppapi/ffmpeg_cdm_video_decoder.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "media/base/buffers.h"
#include "media/base/limits.h"
-#include "webkit/renderer/media/crypto/ppapi/cdm/content_decryption_module.h"
// Include FFmpeg header files.
extern "C" {
@@ -18,7 +17,7 @@ MSVC_PUSH_DISABLE_WARNING(4244);
MSVC_POP_WARNING();
} // extern "C"
-namespace webkit_media {
+namespace media {
static const int kDecodeThreads = 1;
@@ -199,9 +198,9 @@ bool FFmpegCdmVideoDecoder::IsValidOutputConfig(cdm::VideoFormat format,
return ((format == cdm::kYv12 || format == cdm::kI420) &&
(data_size.width % 2) == 0 && (data_size.height % 2) == 0 &&
data_size.width > 0 && data_size.height > 0 &&
- data_size.width <= media::limits::kMaxDimension &&
- data_size.height <= media::limits::kMaxDimension &&
- data_size.width * data_size.height <= media::limits::kMaxCanvas);
+ data_size.width <= limits::kMaxDimension &&
+ data_size.height <= limits::kMaxDimension &&
+ data_size.width * data_size.height <= limits::kMaxCanvas);
}
cdm::Status FFmpegCdmVideoDecoder::DecodeFrame(
@@ -342,4 +341,4 @@ void FFmpegCdmVideoDecoder::ReleaseFFmpegResources() {
}
}
-} // namespace webkit_media
+} // namespace media
« no previous file with comments | « media/cdm/ppapi/ffmpeg_cdm_video_decoder.h ('k') | media/cdm/ppapi/libvpx_cdm_video_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698