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

Unified Diff: media/filters/omx_video_decode_engine.h

Issue 1669002: remove AVFrame Dependency (Closed)
Patch Set: more patch Created 10 years, 8 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_unittest.cc ('k') | media/filters/omx_video_decode_engine.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/omx_video_decode_engine.h
diff --git a/media/filters/omx_video_decode_engine.h b/media/filters/omx_video_decode_engine.h
index e5f79465852dcd26f75050c8c815a84ab62e02f5..273006cf2edf70e2c985bffaa67dcf11663dbd07 100644
--- a/media/filters/omx_video_decode_engine.h
+++ b/media/filters/omx_video_decode_engine.h
@@ -18,7 +18,6 @@
class MessageLoop;
// FFmpeg types.
-struct AVFrame;
struct AVRational;
struct AVStream;
@@ -34,7 +33,8 @@ class OmxVideoDecodeEngine : public VideoDecodeEngine,
// Implementation of the VideoDecodeEngine Interface.
virtual void Initialize(AVStream* stream, Task* done_cb);
- virtual void DecodeFrame(Buffer* buffer, AVFrame* yuv_frame,
+ virtual void DecodeFrame(Buffer* buffer,
+ scoped_refptr<VideoFrame>* video_frame,
bool* got_result, Task* done_cb);
virtual void Flush(Task* done_cb);
virtual VideoFrame::Format GetSurfaceFormat() const;
@@ -83,13 +83,13 @@ class OmxVideoDecodeEngine : public VideoDecodeEngine,
// A struct to hold parameters of a decode request. Objects pointed by
// these parameters are owned by the caller.
struct DecodeRequest {
- DecodeRequest(AVFrame* f, bool* b, Task* cb)
+ DecodeRequest(scoped_refptr<VideoFrame>* f, bool* b, Task* cb)
: frame(f),
got_result(b),
done_cb(cb) {
}
- AVFrame* frame;
+ scoped_refptr<VideoFrame>* frame;
bool* got_result;
Task* done_cb;
};
« no previous file with comments | « media/filters/ffmpeg_video_decode_engine_unittest.cc ('k') | media/filters/omx_video_decode_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698