diff options
Diffstat (limited to 'media')
-rw-r--r-- | media/tools/omx_test/file_sink.cc | 13 | ||||
-rw-r--r-- | media/tools/omx_test/file_sink.h | 14 |
2 files changed, 16 insertions, 11 deletions
diff --git a/media/tools/omx_test/file_sink.cc b/media/tools/omx_test/file_sink.cc index 98766ab..5e92b02 100644 --- a/media/tools/omx_test/file_sink.cc +++ b/media/tools/omx_test/file_sink.cc @@ -10,6 +10,19 @@ namespace media { +FileSink::FileSink(const FilePath& output_path, + bool simulate_copy, + bool enable_csc) + : output_path_(output_path), + simulate_copy_(simulate_copy), + enable_csc_(enable_csc), + width_(0), + height_(0), + copy_buf_size_(0), + csc_buf_size_(0) { +} + +FileSink::~FileSink() {} void FileSink::BufferReady(int size, uint8* buffer) { if (size > copy_buf_size_) { diff --git a/media/tools/omx_test/file_sink.h b/media/tools/omx_test/file_sink.h index 69907031..5703600 100644 --- a/media/tools/omx_test/file_sink.h +++ b/media/tools/omx_test/file_sink.h @@ -21,17 +21,9 @@ class FileSink { public: FileSink(const FilePath& output_path, bool simulate_copy, - bool enable_csc) - : output_path_(output_path), - simulate_copy_(simulate_copy), - enable_csc_(enable_csc), - width_(0), - height_(0), - copy_buf_size_(0), - csc_buf_size_(0) { - } - - virtual ~FileSink() {} + bool enable_csc); + + virtual ~FileSink(); virtual void BufferReady(int size, uint8* buffer); |