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

Side by Side Diff: ppapi/c/private/pp_video_frame_private.h

Issue 14192054: Rename PPAPI Video Stream APIs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Straighten out naming confusion, improve comments. Created 7 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 | « ppapi/c/ppb_video_writer.h ('k') | ppapi/c/private/ppb_video_destination_private.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 /* From pp_video_frame.idl modified Tue Apr 2 10:07:49 2013. */ 6 /* From private/pp_video_frame_private.idl modified Wed Apr 24 11:49:01 2013. */
7 7
8 #ifndef PPAPI_C_PP_VIDEO_FRAME_H_ 8 #ifndef PPAPI_C_PRIVATE_PP_VIDEO_FRAME_PRIVATE_H_
9 #define PPAPI_C_PP_VIDEO_FRAME_H_ 9 #define PPAPI_C_PRIVATE_PP_VIDEO_FRAME_PRIVATE_H_
10 10
11 #include "ppapi/c/pp_macros.h" 11 #include "ppapi/c/pp_macros.h"
12 #include "ppapi/c/pp_resource.h" 12 #include "ppapi/c/pp_resource.h"
13 #include "ppapi/c/pp_stdint.h" 13 #include "ppapi/c/pp_stdint.h"
14 #include "ppapi/c/pp_time.h" 14 #include "ppapi/c/pp_time.h"
15 15
16 /** 16 /**
17 * @file 17 * @file
18 * This file defines the struct used to hold a video frame. 18 * This file defines the struct used to hold a video frame.
19 */ 19 */
20 20
21 21
22 /** 22 /**
23 * @addtogroup Structs 23 * @addtogroup Structs
24 * @{ 24 * @{
25 */ 25 */
26 /** 26 /**
27 * The <code>PP_Video_Frame</code> struct represents a video frame. 27 * The <code>PP_VideoFrame_Private</code> struct represents a video frame.
28 * Video sources and destinations use frames to transfer video to and from
29 * the browser.
28 */ 30 */
29 struct PP_VideoFrame { 31 struct PP_VideoFrame_Private {
30 /** 32 /**
31 * A timestamp placing the frame in a video stream. 33 * A timestamp placing the frame in a video stream.
32 */ 34 */
33 PP_TimeTicks timestamp; 35 PP_TimeTicks timestamp;
34 /** 36 /**
35 * An image data resource to hold the video frame. 37 * An image data resource to hold the video frame.
36 */ 38 */
37 PP_Resource image_data; 39 PP_Resource image_data;
38 /** 40 /**
39 * Ensure that this struct is 16-bytes wide by padding the end. In some 41 * Ensure that this struct is 16-bytes wide by padding the end. In some
40 * compilers, PP_TimeTicks is 8-byte aligned, so those compilers align this 42 * compilers, PP_TimeTicks is 8-byte aligned, so those compilers align this
41 * struct on 8-byte boundaries as well and pad it to 8 bytes even without this 43 * struct on 8-byte boundaries as well and pad it to 8 bytes even without this
42 * padding attribute. This padding makes its size consistent across 44 * padding attribute. This padding makes its size consistent across
43 * compilers. 45 * compilers.
44 */ 46 */
45 int32_t padding; 47 int32_t padding;
46 }; 48 };
47 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_VideoFrame, 16); 49 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_VideoFrame_Private, 16);
48 /** 50 /**
49 * @} 51 * @}
50 */ 52 */
51 53
52 #endif /* PPAPI_C_PP_VIDEO_FRAME_H_ */ 54 #endif /* PPAPI_C_PRIVATE_PP_VIDEO_FRAME_PRIVATE_H_ */
53 55
OLDNEW
« no previous file with comments | « ppapi/c/ppb_video_writer.h ('k') | ppapi/c/private/ppb_video_destination_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698