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

Unified Diff: media/tools/omx_test/file_sink.h

Issue 7066071: Removing defunct OpenMAX code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: removed tab Created 9 years, 7 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/tools/omx_test/file_reader_util.cc ('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
deleted file mode 100644
index 8ee0576e037264ffb38aaace14b8cd0ec7755d12..0000000000000000000000000000000000000000
--- a/media/tools/omx_test/file_sink.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved. Use of this
-// source code is governed by a BSD-style license that can be found in the
-// LICENSE file.
-
-#ifndef MEDIA_TOOLS_OMX_TEST_FILE_SINK_H_
-#define MEDIA_TOOLS_OMX_TEST_FILE_SINK_H_
-
-#include <map>
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/file_path.h"
-#include "base/memory/scoped_handle.h"
-#include "base/memory/scoped_ptr.h"
-
-namespace media {
-
-// This class writes output of a frame decoded by OmxCodec and save it to
-// a file.
-class FileSink {
- public:
- FileSink(const FilePath& output_path,
- bool simulate_copy,
- bool enable_csc);
-
- virtual ~FileSink();
-
- virtual void BufferReady(int size, uint8* buffer);
-
- // Initialize this object. Returns true if successful.
- bool Initialize();
-
- // Update the output frame size.
- void UpdateSize(int wdith, int height);
-
- // Write the frame buffer reference by |buffer|.
- void Write(uint8* buffer, int size);
-
- private:
- FilePath output_path_;
- bool simulate_copy_;
- bool enable_csc_;
- ScopedStdioHandle output_file_;
-
- // Image properties.
- int width_;
- int height_;
-
- // Buffers for copying and color space conversion.
- scoped_array<uint8> copy_buf_;
- int copy_buf_size_;
- scoped_array<uint8> csc_buf_;
- int csc_buf_size_;
-
- DISALLOW_COPY_AND_ASSIGN(FileSink);
-};
-
-} // namespace media
-
-#endif // MEDIA_TOOLS_OMX_TEST_FILE_SINK_H_
« no previous file with comments | « media/tools/omx_test/file_reader_util.cc ('k') | media/tools/omx_test/file_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698