| OLD | NEW |
| 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 | 5 |
| 6 /** | 6 /** |
| 7 * This file defines the <code>PPB_VideoDecoder</code> interface. | 7 * This file defines the <code>PPB_VideoDecoder</code> interface. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 [generate_thunk] | 10 [generate_thunk] |
| 11 | 11 |
| 12 label Chrome { | 12 label Chrome { |
| 13 /** Though not labeled 'channel=dev', 0.1 is a still a 'Dev' only API. */ | 13 /** Though not labeled 'channel=dev', 0.1 is a still a 'Dev' only API. */ |
| 14 M36 = 0.1, | 14 M36 = 0.1, |
| 15 M39 = 0.2, | 15 M39 = 0.2, |
| 16 M40 = 1.0, | 16 M40 = 1.0, |
| 17 [channel=dev] M46 = 1.1 | 17 M46 = 1.1 |
| 18 }; | 18 }; |
| 19 | 19 |
| 20 /** | 20 /** |
| 21 * Video decoder interface. | 21 * Video decoder interface. |
| 22 * | 22 * |
| 23 * Typical usage: | 23 * Typical usage: |
| 24 * - Call Create() to create a new video decoder resource. | 24 * - Call Create() to create a new video decoder resource. |
| 25 * - Call Initialize() to initialize it with a 3d graphics context and the | 25 * - Call Initialize() to initialize it with a 3d graphics context and the |
| 26 * desired codec profile. | 26 * desired codec profile. |
| 27 * - Call Decode() continuously (waiting for each previous call to complete) to | 27 * - Call Decode() continuously (waiting for each previous call to complete) to |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 * @param[in] callback A <code>PP_CompletionCallback</code> to be called on | 303 * @param[in] callback A <code>PP_CompletionCallback</code> to be called on |
| 304 * completion. | 304 * completion. |
| 305 * | 305 * |
| 306 * @return An int32_t containing an error code from <code>pp_errors.h</code>. | 306 * @return An int32_t containing an error code from <code>pp_errors.h</code>. |
| 307 * Returns PP_ERROR_FAILED if the decoder isn't initialized. | 307 * Returns PP_ERROR_FAILED if the decoder isn't initialized. |
| 308 */ | 308 */ |
| 309 int32_t Reset( | 309 int32_t Reset( |
| 310 [in] PP_Resource video_decoder, | 310 [in] PP_Resource video_decoder, |
| 311 [in] PP_CompletionCallback callback); | 311 [in] PP_CompletionCallback callback); |
| 312 }; | 312 }; |
| OLD | NEW |