WebM Codec SDK

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

vp8dx.h
Go to the documentation of this file.
1 /*
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
11
21 #ifndef VPX_VP8DX_H_
22 #define VPX_VP8DX_H_
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27
28 /* Include controls common to both the encoder and decoder */
29 #include "./vp8.h"
30
36 extern vpx_codec_iface_t vpx_codec_vp8_dx_algo;
37 extern vpx_codec_iface_t *vpx_codec_vp8_dx(void);
45 extern vpx_codec_iface_t vpx_codec_vp9_dx_algo;
46 extern vpx_codec_iface_t *vpx_codec_vp9_dx(void);
54 extern vpx_codec_iface_t vpx_codec_vp10_dx_algo;
55 extern vpx_codec_iface_t *vpx_codec_vp10_dx(void);
66 enum vp8_dec_control_id {
70 VP8D_GET_LAST_REF_UPDATES = VP8_DECODER_CTRL_ID_START,
71
73 VP8D_GET_FRAME_CORRUPTED,
74
78 VP8D_GET_LAST_REF_USED,
79
84 VPXD_SET_DECRYPTOR,
85 VP8D_SET_DECRYPTOR = VPXD_SET_DECRYPTOR,
86
90 VP9D_GET_FRAME_SIZE,
91
95 VP9D_GET_DISPLAY_SIZE,
96
98 VP9D_GET_BIT_DEPTH,
99
105 VP9_SET_BYTE_ALIGNMENT,
106
115 VP9_INVERT_TILE_DECODE_ORDER,
116
122 VP9_SET_SKIP_LOOP_FILTER,
123
124 VP8_DECODER_CTRL_ID_MAX
125 };
126
130 typedef void (*vpx_decrypt_cb)(void *decrypt_state, const unsigned char *input,
131 unsigned char *output, int count);
132
137 typedef struct vpx_decrypt_init {
139 vpx_decrypt_cb decrypt_cb;
140
142 void *decrypt_state;
143 } vpx_decrypt_init;
144
147 typedef vpx_decrypt_init vp8_decrypt_init;
148
149
159 VPX_CTRL_USE_TYPE(VP8D_GET_LAST_REF_UPDATES, int *)
160 #define VPX_CTRL_VP8D_GET_LAST_REF_UPDATES
161 VPX_CTRL_USE_TYPE(VP8D_GET_FRAME_CORRUPTED, int *)
162 #define VPX_CTRL_VP8D_GET_FRAME_CORRUPTED
163 VPX_CTRL_USE_TYPE(VP8D_GET_LAST_REF_USED, int *)
164 #define VPX_CTRL_VP8D_GET_LAST_REF_USED
165 VPX_CTRL_USE_TYPE(VPXD_SET_DECRYPTOR, vpx_decrypt_init *)
166 #define VPX_CTRL_VPXD_SET_DECRYPTOR
167 VPX_CTRL_USE_TYPE(VP8D_SET_DECRYPTOR, vpx_decrypt_init *)
168 #define VPX_CTRL_VP8D_SET_DECRYPTOR
169 VPX_CTRL_USE_TYPE(VP9D_GET_DISPLAY_SIZE, int *)
170 #define VPX_CTRL_VP9D_GET_DISPLAY_SIZE
171 VPX_CTRL_USE_TYPE(VP9D_GET_BIT_DEPTH, unsigned int *)
172 #define VPX_CTRL_VP9D_GET_BIT_DEPTH
173 VPX_CTRL_USE_TYPE(VP9D_GET_FRAME_SIZE, int *)
174 #define VPX_CTRL_VP9D_GET_FRAME_SIZE
175 VPX_CTRL_USE_TYPE(VP9_INVERT_TILE_DECODE_ORDER, int)
176 #define VPX_CTRL_VP9_INVERT_TILE_DECODE_ORDER
177
181 #ifdef __cplusplus
182 } // extern "C"
183 #endif
184
185 #endif // VPX_VP8DX_H_
vpx_codec_iface_t
struct vpx_codec_iface vpx_codec_iface_t
Codec interface structure.
Definition: vpx_codec.h:173
VP9D_GET_BIT_DEPTH
Definition: vp8dx.h:98
vp8_decrypt_init
vpx_decrypt_init vp8_decrypt_init
A deprecated alias for vpx_decrypt_init.
Definition: vp8dx.h:147
VP9D_GET_DISPLAY_SIZE
Definition: vp8dx.h:95
VP9_SET_BYTE_ALIGNMENT
Definition: vp8dx.h:105
vpx_decrypt_init
struct vpx_decrypt_init vpx_decrypt_init
Structure to hold decryption state.
VPXD_SET_DECRYPTOR
Definition: vp8dx.h:84
vpx_decrypt_init::decrypt_state
void * decrypt_state
Definition: vp8dx.h:142
VPX_CTRL_USE_TYPE
#define VPX_CTRL_USE_TYPE(id, typ)
vpx_codec_control type definition macro
Definition: vpx_codec.h:423
vpx_decrypt_cb
void(* vpx_decrypt_cb)(void *decrypt_state, const unsigned char *input, unsigned char *output, int count)
Definition: vp8dx.h:130
VP8D_GET_LAST_REF_UPDATES
Definition: vp8dx.h:70
VP9_INVERT_TILE_DECODE_ORDER
Definition: vp8dx.h:115
VP8D_GET_FRAME_CORRUPTED
Definition: vp8dx.h:73
vpx_decrypt_init::decrypt_cb
vpx_decrypt_cb decrypt_cb
Definition: vp8dx.h:139
vpx_decrypt_init
Structure to hold decryption state.
Definition: vp8dx.h:137
vp8.h
Provides controls common to both the VP8 encoder and decoder.
VP8D_GET_LAST_REF_USED
Definition: vp8dx.h:78
VP9D_GET_FRAME_SIZE
Definition: vp8dx.h:90
vp8_dec_control_id
vp8_dec_control_id
VP8 decoder control functions.
Definition: vp8dx.h:66
VP9_SET_SKIP_LOOP_FILTER
Definition: vp8dx.h:122