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

Side by Side Diff: ppapi/api/ppb_video_writer.idl

Issue 13726021: Change PPB_VideoWriter Open function to return stream_id as out param. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | « no previous file | ppapi/c/ppb_video_writer.h » ('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) 2013 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2013 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 5
6 /** 6 /**
7 * This file defines the <code>PPB_VideoWriter</code> struct for a video writer 7 * This file defines the <code>PPB_VideoWriter</code> struct for a video writer
8 * resource. 8 * resource.
9 */ 9 */
10 10
(...skipping 26 matching lines...) Expand all
37 * @return A <code>PP_Bool</code> with <code>PP_TRUE</code> if the given 37 * @return A <code>PP_Bool</code> with <code>PP_TRUE</code> if the given
38 * resource is a video writer or <code>PP_FALSE</code> otherwise. 38 * resource is a video writer or <code>PP_FALSE</code> otherwise.
39 */ 39 */
40 PP_Bool IsVideoWriter([in] PP_Resource resource); 40 PP_Bool IsVideoWriter([in] PP_Resource resource);
41 41
42 /** 42 /**
43 * Opens a video stream with the given id for writing. 43 * Opens a video stream with the given id for writing.
44 * 44 *
45 * @param[in] writer A <code>PP_Resource</code> corresponding to a video 45 * @param[in] writer A <code>PP_Resource</code> corresponding to a video
46 * writer resource. 46 * writer resource.
47 * @param[in] stream_id A <code>PP_Var</code> holding a string uniquely 47 * @param[out] stream_id A <code>PP_Var</code> holding a string uniquely
48 * identifying the stream. This string is application defined. 48 * identifying the stream. This string is generated by the host.
49 * @param[in] callback A <code>PP_CompletionCallback</code> to be called upon 49 * @param[in] callback A <code>PP_CompletionCallback</code> to be called upon
50 * completion of Open(). 50 * completion of Open().
51 * 51 *
52 * @return An int32_t containing an error code from <code>pp_errors.h</code>. 52 * @return An int32_t containing an error code from <code>pp_errors.h</code>.
53 * Returns PP_ERROR_BADRESOURCE if writer isn't a valid video writer. 53 * Returns PP_ERROR_BADRESOURCE if writer isn't a valid video writer.
54 * Returns PP_ERROR_INPROGRESS if the writer has already opened a stream. 54 * Returns PP_ERROR_INPROGRESS if the writer has already opened a stream.
55 */ 55 */
56 int32_t Open([in] PP_Resource writer, 56 int32_t Open([in] PP_Resource writer,
57 [in] PP_Var stream_id, 57 [out] PP_Var stream_id,
58 [in] PP_CompletionCallback callback); 58 [in] PP_CompletionCallback callback);
59 59
60 /** 60 /**
61 * Puts a frame of video to the writer's open stream. 61 * Puts a frame of video to the writer's open stream.
62 * 62 *
63 * After this call, you should take care to release your references to the 63 * After this call, you should take care to release your references to the
64 * image embedded in the video frame. If you paint to the image after 64 * image embedded in the video frame. If you paint to the image after
65 * PutFrame(), there is the possibility of artifacts because the browser may 65 * PutFrame(), there is the possibility of artifacts because the browser may
66 * still be copying the frame to the stream. 66 * still be copying the frame to the stream.
67 * 67 *
(...skipping 12 matching lines...) Expand all
80 80
81 /** 81 /**
82 * Closes the writer's video stream. 82 * Closes the writer's video stream.
83 * 83 *
84 * @param[in] writer A <code>PP_Resource</code> corresponding to a video 84 * @param[in] writer A <code>PP_Resource</code> corresponding to a video
85 * writer resource. 85 * writer resource.
86 */ 86 */
87 void Close([in] PP_Resource writer); 87 void Close([in] PP_Resource writer);
88 }; 88 };
89 89
OLDNEW
« no previous file with comments | « no previous file | ppapi/c/ppb_video_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698