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

Unified Diff: ppapi/api/pp_video_frame.idl

Issue 13461010: Add PP_VideoFrame, PPB_VideoReader, and PPB_VideoWriter APIs to Pepper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix API version ids. Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ppapi/api/ppb_video_reader.idl » ('j') | ppapi/api/ppb_video_reader.idl » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/api/pp_video_frame.idl
diff --git a/ppapi/api/pp_video_frame.idl b/ppapi/api/pp_video_frame.idl
new file mode 100644
index 0000000000000000000000000000000000000000..d2f6dafb3b35b41fd973fc14496b4436d75538d1
--- /dev/null
+++ b/ppapi/api/pp_video_frame.idl
@@ -0,0 +1,34 @@
+/* Copyright (c) 2013 The Chromium Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/**
+ * This file defines the struct used to hold a video frame.
+ */
+
+/**
+ * The <code>PP_Video_Frame</code> struct represents a video frame.
+ */
+[assert_size(16)]
+struct PP_VideoFrame {
+ /**
+ * A timestamp placing the frame in a video stream.
+ */
+ PP_TimeTicks timestamp;
+
+ /**
+ * An image data resource to hold the video frame.
+ */
+ PP_Resource image_data;
+
+ /**
+ * Ensure that this struct is 16-bytes wide by padding the end. In some
+ * compilers, PP_TimeTicks is 8-byte aligned, so those compilers align this
+ * struct on 8-byte boundaries as well and pad it to 8 bytes even without this
+ * padding attribute. This padding makes its size consistent across
+ * compilers.
+ */
+ int32_t padding;
+};
+
« no previous file with comments | « no previous file | ppapi/api/ppb_video_reader.idl » ('j') | ppapi/api/ppb_video_reader.idl » ('J')

Powered by Google App Engine
This is Rietveld 408576698