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

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

Issue 6979017: Revert 86681 - Updated OMX decoder for recent PPAPI changes, and added to the build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
« no previous file with comments | « media/video/picture.cc ('k') | webkit/plugins/ppapi/ppb_video_decoder_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
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
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_
OLDNEW
« no previous file with comments | « media/video/picture.cc ('k') | webkit/plugins/ppapi/ppb_video_decoder_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698