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_ |