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

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

Issue 10408003: Plumb extra_data() to VideoDecodeAccelerator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rev interface versino Created 8 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/filters/gpu_video_decoder.cc ('k') | ppapi/api/dev/ppb_video_decoder_dev.idl » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 // Callback to notify about decoding errors. 74 // Callback to notify about decoding errors.
75 virtual void NotifyError(Error error) = 0; 75 virtual void NotifyError(Error error) = 0;
76 }; 76 };
77 77
78 // Video decoder functions. 78 // Video decoder functions.
79 79
80 // Initializes the video decoder with specific configuration. 80 // Initializes the video decoder with specific configuration.
81 // Parameters: 81 // Parameters:
82 // |profile| is the video stream's format profile. 82 // |profile| is the video stream's format profile.
83 // 83 // |frame_size| is the width and height of the video frame. This parameter
84 // is optional and can be set to 0,0.
85 // |extra_data| is the byte data required to initialize video decoders, for
86 // example the H.264 AAVC data. This parameter is optional and can be set
87 // to an empty vector.
84 // Returns true when command successfully accepted. Otherwise false. 88 // Returns true when command successfully accepted. Otherwise false.
85 virtual bool Initialize(VideoCodecProfile profile) = 0; 89 virtual bool Initialize(VideoCodecProfile profile,
90 const gfx::Size& frame_size,
91 const std::vector<uint8_t>& extra_data) = 0;
86 92
87 // Decodes given bitstream buffer. Once decoder is done with processing 93 // Decodes given bitstream buffer. Once decoder is done with processing
88 // |bitstream_buffer| it will call NotifyEndOfBitstreamBuffer() with the 94 // |bitstream_buffer| it will call NotifyEndOfBitstreamBuffer() with the
89 // bitstream buffer id. 95 // bitstream buffer id.
90 // Parameters: 96 // Parameters:
91 // |bitstream_buffer| is the input bitstream that is sent for decoding. 97 // |bitstream_buffer| is the input bitstream that is sent for decoding.
92 virtual void Decode(const BitstreamBuffer& bitstream_buffer) = 0; 98 virtual void Decode(const BitstreamBuffer& bitstream_buffer) = 0;
93 99
94 // Assigns a set of texture-backed picture buffers to the video decoder. 100 // Assigns a set of texture-backed picture buffers to the video decoder.
95 // 101 //
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 virtual void Destroy() = 0; 134 virtual void Destroy() = 0;
129 135
130 protected: 136 protected:
131 friend class base::RefCountedThreadSafe<VideoDecodeAccelerator>; 137 friend class base::RefCountedThreadSafe<VideoDecodeAccelerator>;
132 virtual ~VideoDecodeAccelerator(); 138 virtual ~VideoDecodeAccelerator();
133 }; 139 };
134 140
135 } // namespace media 141 } // namespace media
136 142
137 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_ 143 #endif // MEDIA_VIDEO_VIDEO_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « media/filters/gpu_video_decoder.cc ('k') | ppapi/api/dev/ppb_video_decoder_dev.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698