Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: media/video/video_decode_accelerator.h

Issue 7057027: Updated OMX decoder for recent PPAPI changes, and added to the build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated include guards. Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698