00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00020 #ifndef VPX_VP8DX_H_
00021 #define VPX_VP8DX_H_
00022
00023 #ifdef __cplusplus
00024 extern "C" {
00025 #endif
00026
00027
00028 #include "./vp8.h"
00029
00035 extern vpx_codec_iface_t vpx_codec_vp8_dx_algo;
00036 extern vpx_codec_iface_t *vpx_codec_vp8_dx(void);
00044 extern vpx_codec_iface_t vpx_codec_vp9_dx_algo;
00045 extern vpx_codec_iface_t *vpx_codec_vp9_dx(void);
00056 enum vp8_dec_control_id {
00060 VP8D_GET_LAST_REF_UPDATES = VP8_DECODER_CTRL_ID_START,
00061
00063 VP8D_GET_FRAME_CORRUPTED,
00064
00068 VP8D_GET_LAST_REF_USED,
00069
00074 VPXD_SET_DECRYPTOR,
00075 VP8D_SET_DECRYPTOR = VPXD_SET_DECRYPTOR,
00076
00080 VP9D_GET_FRAME_SIZE,
00081
00085 VP9D_GET_DISPLAY_SIZE,
00086
00088 VP9D_GET_BIT_DEPTH,
00089
00095 VP9_SET_BYTE_ALIGNMENT,
00096
00105 VP9_INVERT_TILE_DECODE_ORDER,
00106
00112 VP9_SET_SKIP_LOOP_FILTER,
00113
00117 VP9_DECODE_SVC_SPATIAL_LAYER,
00118
00119 VP8_DECODER_CTRL_ID_MAX
00120 };
00121
00125 typedef void (*vpx_decrypt_cb)(void *decrypt_state, const unsigned char *input,
00126 unsigned char *output, int count);
00127
00132 typedef struct vpx_decrypt_init {
00134 vpx_decrypt_cb decrypt_cb;
00135
00137 void *decrypt_state;
00138 } vpx_decrypt_init;
00139
00142 typedef vpx_decrypt_init vp8_decrypt_init;
00143
00152 VPX_CTRL_USE_TYPE(VP8D_GET_LAST_REF_UPDATES, int *)
00153 #define VPX_CTRL_VP8D_GET_LAST_REF_UPDATES
00154 VPX_CTRL_USE_TYPE(VP8D_GET_FRAME_CORRUPTED, int *)
00155 #define VPX_CTRL_VP8D_GET_FRAME_CORRUPTED
00156 VPX_CTRL_USE_TYPE(VP8D_GET_LAST_REF_USED, int *)
00157 #define VPX_CTRL_VP8D_GET_LAST_REF_USED
00158 VPX_CTRL_USE_TYPE(VPXD_SET_DECRYPTOR, vpx_decrypt_init *)
00159 #define VPX_CTRL_VPXD_SET_DECRYPTOR
00160 VPX_CTRL_USE_TYPE(VP8D_SET_DECRYPTOR, vpx_decrypt_init *)
00161 #define VPX_CTRL_VP8D_SET_DECRYPTOR
00162 VPX_CTRL_USE_TYPE(VP9D_GET_DISPLAY_SIZE, int *)
00163 #define VPX_CTRL_VP9D_GET_DISPLAY_SIZE
00164 VPX_CTRL_USE_TYPE(VP9D_GET_BIT_DEPTH, unsigned int *)
00165 #define VPX_CTRL_VP9D_GET_BIT_DEPTH
00166 VPX_CTRL_USE_TYPE(VP9D_GET_FRAME_SIZE, int *)
00167 #define VPX_CTRL_VP9D_GET_FRAME_SIZE
00168 VPX_CTRL_USE_TYPE(VP9_INVERT_TILE_DECODE_ORDER, int)
00169 #define VPX_CTRL_VP9_INVERT_TILE_DECODE_ORDER
00170 #define VPX_CTRL_VP9_DECODE_SVC_SPATIAL_LAYER
00171 VPX_CTRL_USE_TYPE(VP9_DECODE_SVC_SPATIAL_LAYER, int)
00172
00173
00176 #ifdef __cplusplus
00177 }
00178 #endif
00179
00180 #endif // VPX_VP8DX_H_