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