| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 VP8D_GET_LAST_REF_UPDATES = VP8_DECODER_CTRL_ID_START, | 56 VP8D_GET_LAST_REF_UPDATES = VP8_DECODER_CTRL_ID_START, |
| 57 | 57 |
| 58 /** check if the indicated frame is corrupted */ | 58 /** check if the indicated frame is corrupted */ |
| 59 VP8D_GET_FRAME_CORRUPTED, | 59 VP8D_GET_FRAME_CORRUPTED, |
| 60 | 60 |
| 61 /** control function to get info on which reference frames were used | 61 /** control function to get info on which reference frames were used |
| 62 * by the last decode | 62 * by the last decode |
| 63 */ | 63 */ |
| 64 VP8D_GET_LAST_REF_USED, | 64 VP8D_GET_LAST_REF_USED, |
| 65 | 65 |
| 66 /** decryption key to protect encoded data buffer before decoding, | 66 /** decryption function to decrypt encoded buffer data immediately |
| 67 * pointer to 32 byte array which is copied, so the array passed | 67 * before decoding. Takes a vp8_decrypt_init, which contains |
| 68 * does not need to be preserved | 68 * a callback function and opaque context pointer. |
| 69 */ | 69 */ |
| 70 VP8_SET_DECRYPT_KEY, | 70 VP8D_SET_DECRYPTOR, |
| 71 | 71 |
| 72 /** For testing. */ | 72 /** For testing. */ |
| 73 VP9_INVERT_TILE_DECODE_ORDER, | 73 VP9_INVERT_TILE_DECODE_ORDER, |
| 74 | 74 |
| 75 VP8_DECODER_CTRL_ID_MAX | 75 VP8_DECODER_CTRL_ID_MAX |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 typedef struct vp8_decrypt_init { |
| 79 /** Decrypt n bytes of data from input -> output, using the decrypt_state |
| 80 * passed in VP8D_SET_DECRYPTOR. |
| 81 */ |
| 82 void (*decrypt_cb)(void *decrypt_state, const unsigned char *input, |
| 83 unsigned char *output, int count); |
| 84 void *decrypt_state; |
| 85 } vp8_decrypt_init; |
| 78 | 86 |
| 79 /*!\brief VP8 decoder control function parameter type | 87 /*!\brief VP8 decoder control function parameter type |
| 80 * | 88 * |
| 81 * Defines the data types that VP8D control functions take. Note that | 89 * Defines the data types that VP8D control functions take. Note that |
| 82 * additional common controls are defined in vp8.h | 90 * additional common controls are defined in vp8.h |
| 83 * | 91 * |
| 84 */ | 92 */ |
| 85 | 93 |
| 86 | 94 |
| 87 VPX_CTRL_USE_TYPE(VP8D_GET_LAST_REF_UPDATES, int *) | 95 VPX_CTRL_USE_TYPE(VP8D_GET_LAST_REF_UPDATES, int *) |
| 88 VPX_CTRL_USE_TYPE(VP8D_GET_FRAME_CORRUPTED, int *) | 96 VPX_CTRL_USE_TYPE(VP8D_GET_FRAME_CORRUPTED, int *) |
| 89 VPX_CTRL_USE_TYPE(VP8D_GET_LAST_REF_USED, int *) | 97 VPX_CTRL_USE_TYPE(VP8D_GET_LAST_REF_USED, int *) |
| 90 VPX_CTRL_USE_TYPE(VP8_SET_DECRYPT_KEY, const unsigned char *) | 98 VPX_CTRL_USE_TYPE(VP8D_SET_DECRYPTOR, vp8_decrypt_init *) |
| 91 VPX_CTRL_USE_TYPE(VP9_INVERT_TILE_DECODE_ORDER, int) | 99 VPX_CTRL_USE_TYPE(VP9_INVERT_TILE_DECODE_ORDER, int) |
| 92 | 100 |
| 93 /*! @} - end defgroup vp8_decoder */ | 101 /*! @} - end defgroup vp8_decoder */ |
| 94 | 102 |
| 95 | 103 |
| 96 #include "vpx_codec_impl_bottom.h" | 104 #include "vpx_codec_impl_bottom.h" |
| 97 #endif | 105 #endif |
| OLD | NEW |