| OLD | NEW |
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 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_Dev</code> interface. | 7 * This file defines the <code>PPB_VideoDecoder_Dev</code> interface. |
| 8 */ | 8 */ |
| 9 label Chrome { | 9 label Chrome { |
| 10 M14 = 0.16 | 10 M14 = 0.16 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 * Returns true if is a video decoder, false otherwise. | 55 * Returns true if is a video decoder, false otherwise. |
| 56 */ | 56 */ |
| 57 PP_Bool IsVideoDecoder( | 57 PP_Bool IsVideoDecoder( |
| 58 [in] PP_Resource resource); | 58 [in] PP_Resource resource); |
| 59 | 59 |
| 60 /** | 60 /** |
| 61 * Dispatches bitstream buffer to the decoder. | 61 * Dispatches bitstream buffer to the decoder. |
| 62 * | 62 * |
| 63 * Parameters: | 63 * Parameters: |
| 64 * |video_decoder| is the previously created handle to the decoder resource. | 64 * |video_decoder| is the previously created handle to the decoder resource. |
| 65 * |bitstream_buffer| is the bitstream buffer that contains the input data. | 65 * |bitstream_buffer| is the bitstream buffer that contains at most one |
| 66 * input frame. |
| 66 * |callback| will be called when |bitstream_buffer| has been processed by | 67 * |callback| will be called when |bitstream_buffer| has been processed by |
| 67 * the decoder. | 68 * the decoder. |
| 68 * | 69 * |
| 69 * Returns an error code from pp_errors.h. | 70 * Returns an error code from pp_errors.h. |
| 70 */ | 71 */ |
| 71 int32_t Decode( | 72 int32_t Decode( |
| 72 [in] PP_Resource video_decoder, | 73 [in] PP_Resource video_decoder, |
| 73 [in] PP_VideoBitstreamBuffer_Dev bitstream_buffer, | 74 [in] PP_VideoBitstreamBuffer_Dev bitstream_buffer, |
| 74 [in] PP_CompletionCallback callback); | 75 [in] PP_CompletionCallback callback); |
| 75 | 76 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 * may be freed asynchronously, after this method returns no more callbacks | 146 * may be freed asynchronously, after this method returns no more callbacks |
| 146 * will be made on the client. Any resources held by the client at that point | 147 * will be made on the client. Any resources held by the client at that point |
| 147 * may be freed. | 148 * may be freed. |
| 148 * | 149 * |
| 149 * Parameters: | 150 * Parameters: |
| 150 * |video_decoder| is the previously created handle to the decoder resource. | 151 * |video_decoder| is the previously created handle to the decoder resource. |
| 151 */ | 152 */ |
| 152 void Destroy( | 153 void Destroy( |
| 153 [in] PP_Resource video_decoder); | 154 [in] PP_Resource video_decoder); |
| 154 }; | 155 }; |
| OLD | NEW |