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

Unified Diff: media/base/video_frame.h

Issue 1786001: remove omx_sink and buffer merge (Closed)
Patch Set: one more missing 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 | « no previous file | media/filters/omx_video_decode_engine.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/video_frame.h
diff --git a/media/base/video_frame.h b/media/base/video_frame.h
index 5341c16d610bccc75715b2cc2cbc89d14d2ac628..0ad06286fc10143eb5cd04e714a385c3883f1fb5 100644
--- a/media/base/video_frame.h
+++ b/media/base/video_frame.h
@@ -36,6 +36,12 @@ class VideoFrame : public StreamSample {
EMPTY, // An empty frame.
};
+ enum BufferType {
+ TYPE_SYSTEM_MEMORY,
+ TYPE_OMX_BUFFER_HEAD,
+ TYPE_EGL_IMAGE,
+ };
+
public:
// Creates a new frame with given parameters. Buffers for the frame are
// allocated but not initialized.
@@ -55,6 +61,8 @@ class VideoFrame : public StreamSample {
static void CreateBlackFrame(int width, int height,
scoped_refptr<VideoFrame>* frame_out);
+ virtual BufferType type() const { return TYPE_SYSTEM_MEMORY; }
+
Format format() const { return format_; }
size_t width() const { return width_; }
@@ -80,7 +88,7 @@ class VideoFrame : public StreamSample {
repeat_count_ = repeat_count;
}
- private:
+ protected:
// Clients must use the static CreateFrame() method to create a new frame.
VideoFrame(Format format,
size_t video_width,
« no previous file with comments | « no previous file | media/filters/omx_video_decode_engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698