| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. | 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 YV12_BUFFER_CONFIG *sd); | 71 YV12_BUFFER_CONFIG *sd); |
| 72 | 72 |
| 73 vpx_codec_err_t vp9_set_reference_dec(VP9_COMMON *cm, | 73 vpx_codec_err_t vp9_set_reference_dec(VP9_COMMON *cm, |
| 74 VP9_REFFRAME ref_frame_flag, | 74 VP9_REFFRAME ref_frame_flag, |
| 75 YV12_BUFFER_CONFIG *sd); | 75 YV12_BUFFER_CONFIG *sd); |
| 76 | 76 |
| 77 struct VP9Decoder *vp9_decoder_create(); | 77 struct VP9Decoder *vp9_decoder_create(); |
| 78 | 78 |
| 79 void vp9_decoder_remove(struct VP9Decoder *pbi); | 79 void vp9_decoder_remove(struct VP9Decoder *pbi); |
| 80 | 80 |
| 81 static INLINE uint8_t read_marker(vpx_decrypt_cb decrypt_cb, |
| 82 void *decrypt_state, |
| 83 const uint8_t *data) { |
| 84 if (decrypt_cb) { |
| 85 uint8_t marker; |
| 86 decrypt_cb(decrypt_state, data, &marker, 1); |
| 87 return marker; |
| 88 } |
| 89 return *data; |
| 90 } |
| 91 |
| 92 // This function is exposed for use in tests, as well as the inlined function |
| 93 // "read_marker". |
| 94 vpx_codec_err_t vp9_parse_superframe_index(const uint8_t *data, |
| 95 size_t data_sz, |
| 96 uint32_t sizes[8], int *count, |
| 97 vpx_decrypt_cb decrypt_cb, |
| 98 void *decrypt_state); |
| 99 |
| 81 #ifdef __cplusplus | 100 #ifdef __cplusplus |
| 82 } // extern "C" | 101 } // extern "C" |
| 83 #endif | 102 #endif |
| 84 | 103 |
| 85 #endif // VP9_DECODER_VP9_DECODER_H_ | 104 #endif // VP9_DECODER_VP9_DECODER_H_ |
| OLD | NEW |