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

Unified Diff: media/tools/omx_test/file_sink.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 | « media/omx/omx_output_sink.h ('k') | media/tools/omx_test/file_sink.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/tools/omx_test/file_sink.h
diff --git a/media/tools/omx_test/file_sink.h b/media/tools/omx_test/file_sink.h
index 58edb04c59fbcef0ee87a85095e097ba5cf9de79..a20bca1c96ecd0770ab0e77e5ae9f553834eb8aa 100644
--- a/media/tools/omx_test/file_sink.h
+++ b/media/tools/omx_test/file_sink.h
@@ -11,13 +11,12 @@
#include "base/basictypes.h"
#include "base/scoped_handle.h"
#include "base/scoped_ptr.h"
-#include "media/omx/omx_output_sink.h"
namespace media {
// This class writes output of a frame decoded by OmxCodec and save it to
// a file.
-class FileSink : public OmxOutputSink {
+class FileSink {
public:
FileSink(std::string output_filename,
bool simulate_copy,
@@ -31,14 +30,7 @@ class FileSink : public OmxOutputSink {
csc_buf_size_(0) {
}
- // OmxOutputSink implementations.
- virtual bool ProvidesEGLImages() const { return false; }
- virtual bool AllocateEGLImages(int width, int height,
- std::vector<EGLImageKHR>* images);
- virtual void ReleaseEGLImages(const std::vector<EGLImageKHR>& images);
- virtual void UseThisBuffer(int buffer_id, OMX_BUFFERHEADERTYPE* buffer);
- virtual void StopUsingThisBuffer(int id);
- virtual void BufferReady(int buffer_id, BufferUsedCallback* callback);
+ virtual void BufferReady(int size, uint8* buffer);
// Initialize this object. Returns true if successful.
bool Initialize();
@@ -65,8 +57,6 @@ class FileSink : public OmxOutputSink {
scoped_array<uint8> csc_buf_;
int csc_buf_size_;
- std::map<int, OMX_BUFFERHEADERTYPE*> omx_buffers_;
-
DISALLOW_COPY_AND_ASSIGN(FileSink);
};
« no previous file with comments | « media/omx/omx_output_sink.h ('k') | media/tools/omx_test/file_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698