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

Unified Diff: media/filters/omx_video_decoder.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/filters/ffmpeg_video_decoder.cc ('k') | media/filters/omx_video_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/omx_video_decoder.h
diff --git a/media/filters/omx_video_decoder.h b/media/filters/omx_video_decoder.h
deleted file mode 100644
index 40bf721064912984dd35798eea5cb113888787ad..0000000000000000000000000000000000000000
--- a/media/filters/omx_video_decoder.h
+++ /dev/null
@@ -1,82 +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_FILTERS_OMX_VIDEO_DECODER_H_
-#define MEDIA_FILTERS_OMX_VIDEO_DECODER_H_
-
-#include <queue>
-
-#include "media/base/filters.h"
-#include "media/base/media_format.h"
-#include "media/base/pts_stream.h"
-#include "media/video/video_decode_context.h"
-#include "media/video/video_decode_engine.h"
-
-class MessageLoop;
-
-namespace media {
-
-class Buffer;
-class OmxVideoDecodeEngine;
-class VideoFrame;
-
-class OmxVideoDecoder : public VideoDecoder,
- public VideoDecodeEngine::EventHandler {
- public:
- OmxVideoDecoder(MessageLoop* message_loop,
- VideoDecodeContext* decode_context);
- virtual ~OmxVideoDecoder();
-
- // Filter implementations.
- virtual void Initialize(DemuxerStream* stream,
- FilterCallback* callback,
- StatisticsCallback* stats_callback);
- virtual void Stop(FilterCallback* callback);
- virtual void Flush(FilterCallback* callback);
- virtual void Seek(base::TimeDelta time, const FilterStatusCB& cb);
- virtual void ProduceVideoFrame(scoped_refptr<VideoFrame> frame);
- virtual bool ProvidesBuffer();
- virtual const MediaFormat& media_format();
-
- private:
- // VideoDecodeEngine::EventHandler interface.
- virtual void OnInitializeComplete(const VideoCodecInfo& info);
- virtual void OnUninitializeComplete();
- virtual void OnFlushComplete();
- virtual void OnSeekComplete();
- virtual void OnError();
- virtual void OnFormatChange(VideoStreamInfo stream_info);
- virtual void ProduceVideoSample(scoped_refptr<Buffer> buffer);
- virtual void ConsumeVideoFrame(scoped_refptr<VideoFrame> frame,
- const PipelineStatistics& statistics);
-
- // TODO(hclam): This is very ugly that we keep reference instead of
- // scoped_refptr.
- void DemuxCompleteTask(Buffer* buffer);
- void ConsumeVideoSample(scoped_refptr<Buffer> buffer);
-
- MessageLoop* message_loop_;
-
- // Pointer to the demuxer stream that will feed us compressed buffers.
- scoped_refptr<DemuxerStream> demuxer_stream_;
- scoped_ptr<VideoDecodeEngine> decode_engine_;
- scoped_ptr<VideoDecodeContext> decode_context_;
- MediaFormat media_format_;
-
- scoped_ptr<FilterCallback> initialize_callback_;
- scoped_ptr<FilterCallback> uninitialize_callback_;
- scoped_ptr<FilterCallback> flush_callback_;
- FilterStatusCB seek_cb_;
- scoped_ptr<StatisticsCallback> statistics_callback_;
-
- VideoCodecInfo info_;
-
- PtsStream pts_stream_; // Stream of presentation timestamps.
-
- DISALLOW_COPY_AND_ASSIGN(OmxVideoDecoder);
-};
-
-} // namespace media
-
-#endif // MEDIA_FILTERS_OMX_VIDEO_DECODER_H_
« no previous file with comments | « media/filters/ffmpeg_video_decoder.cc ('k') | media/filters/omx_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698