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.h" | 11 #include "base/callback_old.h" |
12 #include "media/base/bitstream_buffer.h" | 12 #include "media/base/bitstream_buffer.h" |
13 #include "ui/gfx/size.h" | 13 #include "ui/gfx/size.h" |
14 | 14 |
15 namespace media { | 15 namespace media { |
16 | 16 |
17 typedef Callback0::Type VideoDecodeAcceleratorCallback; | 17 typedef Callback0::Type VideoDecodeAcceleratorCallback; |
18 | 18 |
19 // Enumeration defining global dictionary ranges for various purposes that are | 19 // Enumeration defining global dictionary ranges for various purposes that are |
20 // used to handle the configurations of the video decoder. | 20 // used to handle the configurations of the video decoder. |
21 enum VideoAttributeKey { | 21 enum VideoAttributeKey { |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 // Parameters: | 409 // Parameters: |
410 // |callback| contains the callback function pointer. | 410 // |callback| contains the callback function pointer. |
411 // | 411 // |
412 // Returns true when command successfully accepted. Otherwise false. | 412 // Returns true when command successfully accepted. Otherwise false. |
413 virtual bool Abort(VideoDecodeAcceleratorCallback* callback) = 0; | 413 virtual bool Abort(VideoDecodeAcceleratorCallback* callback) = 0; |
414 }; | 414 }; |
415 | 415 |
416 } // namespace media | 416 } // namespace media |
417 | 417 |
418 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ | 418 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ |
OLD | NEW |