| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef MEDIA_VIDEO_OMX_VIDEO_DECODE_ENGINE_H_ | 5 #ifndef MEDIA_VIDEO_OMX_VIDEO_DECODE_ENGINE_H_ |
| 6 #define MEDIA_VIDEO_OMX_VIDEO_DECODE_ENGINE_H_ | 6 #define MEDIA_VIDEO_OMX_VIDEO_DECODE_ENGINE_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 VideoDecodeEngine::EventHandler* event_handler, | 29 VideoDecodeEngine::EventHandler* event_handler, |
| 30 VideoDecodeContext* context, | 30 VideoDecodeContext* context, |
| 31 const VideoCodecConfig& config); | 31 const VideoCodecConfig& config); |
| 32 virtual void ConsumeVideoSample(scoped_refptr<Buffer> buffer); | 32 virtual void ConsumeVideoSample(scoped_refptr<Buffer> buffer); |
| 33 virtual void ProduceVideoFrame(scoped_refptr<VideoFrame> frame); | 33 virtual void ProduceVideoFrame(scoped_refptr<VideoFrame> frame); |
| 34 virtual void Uninitialize(); | 34 virtual void Uninitialize(); |
| 35 virtual void Flush(); | 35 virtual void Flush(); |
| 36 virtual void Seek(); | 36 virtual void Seek(); |
| 37 | 37 |
| 38 // Subclass can provide a different value. | 38 // Subclass can provide a different value. |
| 39 virtual int current_omx_spec_version() const { return 0x00000101; } | 39 virtual int current_omx_spec_version() const; |
| 40 | 40 |
| 41 private: | 41 private: |
| 42 enum OmxIlState { | 42 enum OmxIlState { |
| 43 kIlNone, | 43 kIlNone, |
| 44 kIlLoaded, | 44 kIlLoaded, |
| 45 kIlIdle, | 45 kIlIdle, |
| 46 kIlExecuting, | 46 kIlExecuting, |
| 47 kIlPause, | 47 kIlPause, |
| 48 kIlInvalid, | 48 kIlInvalid, |
| 49 kIlUnknown, | 49 kIlUnknown, |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 bool need_setup_output_port_; | 237 bool need_setup_output_port_; |
| 238 OmxIlPortState output_port_state_; | 238 OmxIlPortState output_port_state_; |
| 239 VideoDecodeEngine::EventHandler* event_handler_; | 239 VideoDecodeEngine::EventHandler* event_handler_; |
| 240 | 240 |
| 241 DISALLOW_COPY_AND_ASSIGN(OmxVideoDecodeEngine); | 241 DISALLOW_COPY_AND_ASSIGN(OmxVideoDecodeEngine); |
| 242 }; | 242 }; |
| 243 | 243 |
| 244 } // namespace media | 244 } // namespace media |
| 245 | 245 |
| 246 #endif // MEDIA_VIDEO_OMX_VIDEO_DECODE_ENGINE_H_ | 246 #endif // MEDIA_VIDEO_OMX_VIDEO_DECODE_ENGINE_H_ |
| OLD | NEW |