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

Unified Diff: media/filters/ffmpeg_video_decode_engine.cc

Issue 1226001: Merged VideoSurface, VideoFrame and VideoFrameImpl in VideoFrame. (Closed)
Patch Set: Created 10 years, 9 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/filters/ffmpeg_video_decode_engine.h ('k') | media/filters/ffmpeg_video_decode_engine_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/ffmpeg_video_decode_engine.cc
diff --git a/media/filters/ffmpeg_video_decode_engine.cc b/media/filters/ffmpeg_video_decode_engine.cc
index b6adec23cf2bec25b5484f8cd1950ae031fd8d18..223e4fa82ef3aa95680b00d43edb665d019f13ed 100644
--- a/media/filters/ffmpeg_video_decode_engine.cc
+++ b/media/filters/ffmpeg_video_decode_engine.cc
@@ -6,7 +6,7 @@
#include "base/task.h"
#include "media/base/callback.h"
-#include "media/base/video_frame_impl.h"
+#include "media/base/buffers.h"
#include "media/ffmpeg/ffmpeg_common.h"
#include "media/ffmpeg/ffmpeg_util.h"
#include "media/filters/ffmpeg_demuxer.h"
@@ -103,22 +103,22 @@ void FFmpegVideoDecodeEngine::Flush(Task* done_cb) {
avcodec_flush_buffers(codec_context_);
}
-VideoSurface::Format FFmpegVideoDecodeEngine::GetSurfaceFormat() const {
+VideoFrame::Format FFmpegVideoDecodeEngine::GetSurfaceFormat() const {
// J (Motion JPEG) versions of YUV are full range 0..255.
// Regular (MPEG) YUV is 16..240.
// For now we will ignore the distinction and treat them the same.
switch (codec_context_->pix_fmt) {
case PIX_FMT_YUV420P:
case PIX_FMT_YUVJ420P:
- return VideoSurface::YV12;
+ return VideoFrame::YV12;
break;
case PIX_FMT_YUV422P:
case PIX_FMT_YUVJ422P:
- return VideoSurface::YV16;
+ return VideoFrame::YV16;
break;
default:
// TODO(scherkus): More formats here?
- return VideoSurface::INVALID;
+ return VideoFrame::INVALID;
}
}
« no previous file with comments | « media/filters/ffmpeg_video_decode_engine.h ('k') | media/filters/ffmpeg_video_decode_engine_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698