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, |
| 67 * pointer to 32 byte array which is copied, so the array passed |
| 68 * does not need to be preserved |
| 69 */ |
| 70 VP8_SET_DECRYPT_KEY, |
| 71 |
66 VP8_DECODER_CTRL_ID_MAX | 72 VP8_DECODER_CTRL_ID_MAX |
67 }; | 73 }; |
68 | 74 |
69 | 75 |
70 /*!\brief VP8 decoder control function parameter type | 76 /*!\brief VP8 decoder control function parameter type |
71 * | 77 * |
72 * Defines the data types that VP8D control functions take. Note that | 78 * Defines the data types that VP8D control functions take. Note that |
73 * additional common controls are defined in vp8.h | 79 * additional common controls are defined in vp8.h |
74 * | 80 * |
75 */ | 81 */ |
76 | 82 |
77 | 83 |
78 VPX_CTRL_USE_TYPE(VP8D_GET_LAST_REF_UPDATES, int *) | 84 VPX_CTRL_USE_TYPE(VP8D_GET_LAST_REF_UPDATES, int *) |
79 VPX_CTRL_USE_TYPE(VP8D_GET_FRAME_CORRUPTED, int *) | 85 VPX_CTRL_USE_TYPE(VP8D_GET_FRAME_CORRUPTED, int *) |
80 VPX_CTRL_USE_TYPE(VP8D_GET_LAST_REF_USED, int *) | 86 VPX_CTRL_USE_TYPE(VP8D_GET_LAST_REF_USED, int *) |
| 87 VPX_CTRL_USE_TYPE(VP8_SET_DECRYPT_KEY, const unsigned char *) |
81 | 88 |
82 /*! @} - end defgroup vp8_decoder */ | 89 /*! @} - end defgroup vp8_decoder */ |
83 | 90 |
84 | 91 |
85 #include "vpx_codec_impl_bottom.h" | 92 #include "vpx_codec_impl_bottom.h" |
86 #endif | 93 #endif |
OLD | NEW |