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

Side by Side Diff: ppapi/cpp/video_decoder.h

Issue 291083003: Update PPB_VideoDecoder documentation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« ppapi/api/ppb_video_decoder.idl ('K') | « ppapi/c/ppb_video_decoder.h ('k') | no next file » | 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) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 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 PPAPI_CPP_VIDEO_DECODER_H_ 5 #ifndef PPAPI_CPP_VIDEO_DECODER_H_
6 #define PPAPI_CPP_VIDEO_DECODER_H_ 6 #define PPAPI_CPP_VIDEO_DECODER_H_
7 7
8 #include "ppapi/c/pp_codecs.h" 8 #include "ppapi/c/pp_codecs.h"
9 #include "ppapi/c/pp_size.h" 9 #include "ppapi/c/pp_size.h"
10 #include "ppapi/cpp/completion_callback.h" 10 #include "ppapi/cpp/completion_callback.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 /// @return An int32_t containing an error code from <code>pp_errors.h</code>. 74 /// @return An int32_t containing an error code from <code>pp_errors.h</code>.
75 /// Returns PP_ERROR_NOTSUPPORTED if video decoding is not available, or the 75 /// Returns PP_ERROR_NOTSUPPORTED if video decoding is not available, or the
76 /// requested profile is not supported. In this case, the client may call 76 /// requested profile is not supported. In this case, the client may call
77 /// Initialize() again with different parameters to find a good configuration. 77 /// Initialize() again with different parameters to find a good configuration.
78 int32_t Initialize(const Graphics3D& graphics3d_context, 78 int32_t Initialize(const Graphics3D& graphics3d_context,
79 PP_VideoProfile profile, 79 PP_VideoProfile profile,
80 bool allow_software_fallback, 80 bool allow_software_fallback,
81 const CompletionCallback& callback); 81 const CompletionCallback& callback);
82 82
83 /// Decodes a bitstream buffer. Copies |size| bytes of data from the plugin's 83 /// Decodes a bitstream buffer. Copies |size| bytes of data from the plugin's
84 /// |buffer|. The plugin should maintain the buffer and not call Decode() 84 /// |buffer|. The plugin should wait until the decoder signals completion by
85 /// again until the decoder signals completion by returning PP_OK or by 85 /// returning PP_OK or by running |callback| before calling Decode() again.
86 /// running |callback|.
87 /// 86 ///
88 /// In general, each bitstream buffer should contain a demuxed bitstream frame 87 /// In general, each bitstream buffer should contain a demuxed bitstream frame
89 /// for the selected video codec. For example, H264 decoders expect to receive 88 /// for the selected video codec. For example, H264 decoders expect to receive
90 /// one AnnexB NAL unit, including the 4 byte start code prefix, while VP8 89 /// one AnnexB NAL unit, including the 4 byte start code prefix, while VP8
91 /// decoders expect to receive a bitstream frame without the IVF frame header. 90 /// decoders expect to receive a bitstream frame without the IVF frame header.
92 /// 91 ///
93 /// If the call to Decode() eventually results in a picture, the |decode_id| 92 /// If the call to Decode() eventually results in a picture, the |decode_id|
94 /// parameter is copied into the returned picture. The plugin can use this to 93 /// parameter is copied into the returned picture. The plugin can use this to
95 /// associate decoded pictures with Decode() calls (e.g. to assign timestamps 94 /// associate decoded pictures with Decode() calls (e.g. to assign timestamps
96 /// or frame numbers to pictures.) This value is opaque to the API so the 95 /// or frame numbers to pictures.) This value is opaque to the API so the
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 /// @param[in] callback A <code>CompletionCallback</code> to be called on 158 /// @param[in] callback A <code>CompletionCallback</code> to be called on
160 /// completion. 159 /// completion.
161 /// 160 ///
162 /// @return An int32_t containing an error code from <code>pp_errors.h</code>. 161 /// @return An int32_t containing an error code from <code>pp_errors.h</code>.
163 int32_t Reset(const CompletionCallback& callback); 162 int32_t Reset(const CompletionCallback& callback);
164 }; 163 };
165 164
166 } // namespace pp 165 } // namespace pp
167 166
168 #endif // PPAPI_CPP_VIDEO_DECODER_H_ 167 #endif // PPAPI_CPP_VIDEO_DECODER_H_
OLDNEW
« ppapi/api/ppb_video_decoder.idl ('K') | « ppapi/c/ppb_video_decoder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698