| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_RENDERER_PEPPER_PLATFORM_VIDEO_DECODER_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PLATFORM_VIDEO_DECODER_IMPL_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_PLATFORM_VIDEO_DECODER_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PLATFORM_VIDEO_DECODER_IMPL_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 // PlatformVideoDecoder implementation. | 23 // PlatformVideoDecoder implementation. |
| 24 virtual const std::vector<uint32>& GetConfig( | 24 virtual const std::vector<uint32>& GetConfig( |
| 25 const std::vector<uint32>& prototype_config); | 25 const std::vector<uint32>& prototype_config); |
| 26 virtual bool Initialize(const std::vector<uint32>& config); | 26 virtual bool Initialize(const std::vector<uint32>& config); |
| 27 virtual bool Decode(media::BitstreamBuffer* bitstream_buffer, | 27 virtual bool Decode(media::BitstreamBuffer* bitstream_buffer, |
| 28 media::VideoDecodeAcceleratorCallback* callback); | 28 media::VideoDecodeAcceleratorCallback* callback); |
| 29 virtual void AssignPictureBuffer( | 29 virtual void AssignPictureBuffer( |
| 30 std::vector<media::VideoDecodeAccelerator::PictureBuffer*> | 30 std::vector<media::VideoDecodeAccelerator::PictureBuffer*> |
| 31 picture_buffers); | 31 picture_buffers); |
| 32 virtual void ReusePictureBuffer( | 32 virtual void ReusePictureBuffer(uint32 picture_buffer_id); |
| 33 media::VideoDecodeAccelerator::PictureBuffer* picture_buffer); | |
| 34 virtual bool Flush(media::VideoDecodeAcceleratorCallback* callback); | 33 virtual bool Flush(media::VideoDecodeAcceleratorCallback* callback); |
| 35 virtual bool Abort(media::VideoDecodeAcceleratorCallback* callback); | 34 virtual bool Abort(media::VideoDecodeAcceleratorCallback* callback); |
| 36 | 35 |
| 37 // VideoDecodeAccelerator::Client implementation. | 36 // VideoDecodeAccelerator::Client implementation. |
| 38 virtual void ProvidePictureBuffers( | 37 virtual void ProvidePictureBuffers( |
| 39 uint32 requested_num_of_buffers, | 38 uint32 requested_num_of_buffers, |
| 40 const std::vector<uint32>& buffer_properties) OVERRIDE; | 39 const std::vector<uint32>& buffer_properties) OVERRIDE; |
| 41 virtual void PictureReady( | 40 virtual void PictureReady( |
| 42 media::VideoDecodeAccelerator::Picture* picture) OVERRIDE; | 41 media::VideoDecodeAccelerator::Picture& picture) OVERRIDE; |
| 43 virtual void NotifyEndOfStream() OVERRIDE; | 42 virtual void NotifyEndOfStream() OVERRIDE; |
| 44 virtual void NotifyError( | 43 virtual void NotifyError( |
| 45 media::VideoDecodeAccelerator::Error error) OVERRIDE; | 44 media::VideoDecodeAccelerator::Error error) OVERRIDE; |
| 46 | 45 |
| 47 private: | 46 private: |
| 48 // EventHandler lifetime must exceed lifetime of this class. | 47 // EventHandler lifetime must exceed lifetime of this class. |
| 49 media::VideoDecodeAccelerator::Client* client_; | 48 media::VideoDecodeAccelerator::Client* client_; |
| 50 scoped_ptr<media::VideoDecodeAccelerator> video_decode_accelerator_; | 49 scoped_ptr<media::VideoDecodeAccelerator> video_decode_accelerator_; |
| 51 | 50 |
| 52 std::vector<uint32> configs; | 51 std::vector<uint32> configs; |
| 53 | 52 |
| 54 DISALLOW_COPY_AND_ASSIGN(PlatformVideoDecoderImpl); | 53 DISALLOW_COPY_AND_ASSIGN(PlatformVideoDecoderImpl); |
| 55 }; | 54 }; |
| 56 | 55 |
| 57 #endif // CONTENT_RENDERER_PEPPER_PLATFORM_VIDEO_DECODER_IMPL_H_ | 56 #endif // CONTENT_RENDERER_PEPPER_PLATFORM_VIDEO_DECODER_IMPL_H_ |
| OLD | NEW |