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" |
11 #include "base/callback_old.h" | 11 #include "base/callback_old.h" |
12 #include "media/base/bitstream_buffer.h" | 12 #include "media/base/bitstream_buffer.h" |
13 #include "media/video/picture.h" | 13 #include "media/video/picture.h" |
14 #include "ui/gfx/size.h" | 14 #include "ui/gfx/size.h" |
15 | 15 |
16 namespace media { | 16 namespace media { |
17 | 17 |
| 18 typedef Callback0::Type VideoDecodeAcceleratorCallback; |
| 19 |
18 // Enumeration defining global dictionary ranges for various purposes that are | 20 // Enumeration defining global dictionary ranges for various purposes that are |
19 // used to handle the configurations of the video decoder. | 21 // used to handle the configurations of the video decoder. |
20 enum VideoAttributeKey { | 22 enum VideoAttributeKey { |
21 VIDEOATTRIBUTEKEY_TERMINATOR = 0, | 23 VIDEOATTRIBUTEKEY_TERMINATOR = 0, |
22 | 24 |
23 VIDEOATTRIBUTEKEY_BITSTREAM_FORMAT_BASE = 0x100, | 25 VIDEOATTRIBUTEKEY_BITSTREAM_FORMAT_BASE = 0x100, |
24 // Array of key/value pairs describing video configuration. | 26 // Array of key/value pairs describing video configuration. |
25 // It could include any keys from PP_VideoKey. Its last element shall be | 27 // It could include any keys from PP_VideoKey. Its last element shall be |
26 // VIDEOATTRIBUTEKEY_BITSTREAMFORMAT_NONE with no corresponding value. | 28 // VIDEOATTRIBUTEKEY_BITSTREAMFORMAT_NONE with no corresponding value. |
27 // An example: | 29 // An example: |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
278 // been finished. After abort all buffers can be considered dismissed, even | 280 // been finished. After abort all buffers can be considered dismissed, even |
279 // when there has not been callbacks to dismiss them. | 281 // when there has not been callbacks to dismiss them. |
280 // | 282 // |
281 // Returns true when command successfully accepted. Otherwise false. | 283 // Returns true when command successfully accepted. Otherwise false. |
282 virtual bool Abort() = 0; | 284 virtual bool Abort() = 0; |
283 }; | 285 }; |
284 | 286 |
285 } // namespace media | 287 } // namespace media |
286 | 288 |
287 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ | 289 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |