| 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 MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ | 5 #ifndef MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ |
| 6 #define MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ | 6 #define MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 virtual void NotifyError(Error error) = 0; | 222 virtual void NotifyError(Error error) = 0; |
| 223 }; | 223 }; |
| 224 | 224 |
| 225 // Video decoder functions. | 225 // Video decoder functions. |
| 226 | 226 |
| 227 // Initializes the video decoder with specific configuration. | 227 // Initializes the video decoder with specific configuration. |
| 228 // Parameters: | 228 // Parameters: |
| 229 // |config| is the configuration on which the decoder should be initialized. | 229 // |config| is the configuration on which the decoder should be initialized. |
| 230 // | 230 // |
| 231 // Returns true when command successfully accepted. Otherwise false. | 231 // Returns true when command successfully accepted. Otherwise false. |
| 232 virtual bool Initialize(const std::vector<uint32>& config) = 0; | 232 virtual bool Initialize(const std::vector<int32>& config) = 0; |
| 233 | 233 |
| 234 // Decodes given bitstream buffer. Once decoder is done with processing | 234 // Decodes given bitstream buffer. Once decoder is done with processing |
| 235 // |bitstream_buffer| it will call NotifyEndOfBitstreamBuffer() with the | 235 // |bitstream_buffer| it will call NotifyEndOfBitstreamBuffer() with the |
| 236 // bitstream buffer id. | 236 // bitstream buffer id. |
| 237 // Parameters: | 237 // Parameters: |
| 238 // |bitstream_buffer| is the input bitstream that is sent for decoding. | 238 // |bitstream_buffer| is the input bitstream that is sent for decoding. |
| 239 virtual void Decode(const BitstreamBuffer& bitstream_buffer) = 0; | 239 virtual void Decode(const BitstreamBuffer& bitstream_buffer) = 0; |
| 240 | 240 |
| 241 // Assigns a set of texture-backed picture buffers to the video decoder. | 241 // Assigns a set of texture-backed picture buffers to the video decoder. |
| 242 // | 242 // |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 275 virtual void Destroy() = 0; | 275 virtual void Destroy() = 0; |
| 276 | 276 |
| 277 protected: | 277 protected: |
| 278 friend class base::RefCountedThreadSafe<VideoDecodeAccelerator>; | 278 friend class base::RefCountedThreadSafe<VideoDecodeAccelerator>; |
| 279 virtual ~VideoDecodeAccelerator(); | 279 virtual ~VideoDecodeAccelerator(); |
| 280 }; | 280 }; |
| 281 | 281 |
| 282 } // namespace media | 282 } // namespace media |
| 283 | 283 |
| 284 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ | 284 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ |
| OLD | NEW |