| OLD | NEW |
| 1 /* Copyright 2014 The Chromium Authors. All rights reserved. | 1 /* Copyright 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 | 5 |
| 6 [generate_thunk] |
| 7 |
| 6 /** | 8 /** |
| 7 * Defines the <code>PPB_VideoFrame</code> interface. | 9 * Defines the <code>PPB_VideoFrame</code> interface. |
| 8 */ | 10 */ |
| 9 label Chrome { | 11 label Chrome { |
| 10 [channel=dev] M34 = 0.1 | 12 [channel=dev] M34 = 0.1 |
| 11 }; | 13 }; |
| 12 | 14 |
| 13 enum PP_VideoFrame_Format { | 15 enum PP_VideoFrame_Format { |
| 14 /** | 16 /** |
| 15 * Unknown format value. | 17 * Unknown format value. |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 57 |
| 56 /** | 58 /** |
| 57 * Gets the timestamp of the video frame. | 59 * Gets the timestamp of the video frame. |
| 58 * | 60 * |
| 59 * @param[in] frame A <code>PP_Resource</code> corresponding to a video frame | 61 * @param[in] frame A <code>PP_Resource</code> corresponding to a video frame |
| 60 * resource. | 62 * resource. |
| 61 * | 63 * |
| 62 * @return A <code>PP_TimeDelta</code> containing the timestamp of the video | 64 * @return A <code>PP_TimeDelta</code> containing the timestamp of the video |
| 63 * frame. Given in seconds since the start of the containing video stream. | 65 * frame. Given in seconds since the start of the containing video stream. |
| 64 */ | 66 */ |
| 67 [on_failure=0.0] |
| 65 PP_TimeDelta GetTimestamp([in] PP_Resource frame); | 68 PP_TimeDelta GetTimestamp([in] PP_Resource frame); |
| 66 | 69 |
| 67 /** | 70 /** |
| 68 * Sets the timestamp of the video frame. Given in seconds since the | 71 * Sets the timestamp of the video frame. Given in seconds since the |
| 69 * start of the containing video stream. | 72 * start of the containing video stream. |
| 70 * | 73 * |
| 71 * @param[in] frame A <code>PP_Resource</code> corresponding to a video frame | 74 * @param[in] frame A <code>PP_Resource</code> corresponding to a video frame |
| 72 * resource. | 75 * resource. |
| 73 * @param[in] timestamp A <code>PP_TimeDelta</code> containing the timestamp | 76 * @param[in] timestamp A <code>PP_TimeDelta</code> containing the timestamp |
| 74 * of the video frame. Given in seconds since the start of the containing | 77 * of the video frame. Given in seconds since the start of the containing |
| 75 * video stream. | 78 * video stream. |
| 76 */ | 79 */ |
| 77 void SetTimestamp([in] PP_Resource frame, [in] PP_TimeDelta timestamp); | 80 void SetTimestamp([in] PP_Resource frame, [in] PP_TimeDelta timestamp); |
| 78 | 81 |
| 79 /** | 82 /** |
| 80 * Gets the format of the video frame. | 83 * Gets the format of the video frame. |
| 81 * | 84 * |
| 82 * @param[in] frame A <code>PP_Resource</code> corresponding to a video frame | 85 * @param[in] frame A <code>PP_Resource</code> corresponding to a video frame |
| 83 * resource. | 86 * resource. |
| 84 * | 87 * |
| 85 * @return A <code>PP_VideoFrame_Format</code> containing the format of the | 88 * @return A <code>PP_VideoFrame_Format</code> containing the format of the |
| 86 * video frame. | 89 * video frame. |
| 87 */ | 90 */ |
| 91 [on_failure=PP_VIDEOFRAME_FORMAT_UNKNOWN] |
| 88 PP_VideoFrame_Format GetFormat([in] PP_Resource frame); | 92 PP_VideoFrame_Format GetFormat([in] PP_Resource frame); |
| 89 | 93 |
| 90 /** | 94 /** |
| 91 * Gets the size of the video frame. | 95 * Gets the size of the video frame. |
| 92 * | 96 * |
| 93 * @param[in] frame A <code>PP_Resource</code> corresponding to a video frame | 97 * @param[in] frame A <code>PP_Resource</code> corresponding to a video frame |
| 94 * resource. | 98 * resource. |
| 95 * @param[out] size A <code>PP_Size</code>. | 99 * @param[out] size A <code>PP_Size</code>. |
| 96 * | 100 * |
| 97 * @return A <code>PP_Bool</code> with <code>PP_TRUE</code> on success or | 101 * @return A <code>PP_Bool</code> with <code>PP_TRUE</code> on success or |
| (...skipping 14 matching lines...) Expand all Loading... |
| 112 /** | 116 /** |
| 113 * Gets the size of data buffer. | 117 * Gets the size of data buffer. |
| 114 * | 118 * |
| 115 * @param[in] frame A <code>PP_Resource</code> corresponding to a video frame | 119 * @param[in] frame A <code>PP_Resource</code> corresponding to a video frame |
| 116 * resource. | 120 * resource. |
| 117 * | 121 * |
| 118 * @return The size of the data buffer. | 122 * @return The size of the data buffer. |
| 119 */ | 123 */ |
| 120 uint32_t GetDataBufferSize([in] PP_Resource frame); | 124 uint32_t GetDataBufferSize([in] PP_Resource frame); |
| 121 }; | 125 }; |
| OLD | NEW |