WebM Codec SDK: vpx/vp8dx.h Source File

WebM Codec SDK

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
20#ifndef VPX_VPX_VP8DX_H_
21#define VPX_VPX_VP8DX_H_
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27/* Include controls common to both the encoder and decoder */
28#include "./vp8.h"
29
35extern vpx_codec_iface_t vpx_codec_vp8_dx_algo;
36extern vpx_codec_iface_t *vpx_codec_vp8_dx(void);
44extern vpx_codec_iface_t vpx_codec_vp9_dx_algo;
45extern vpx_codec_iface_t *vpx_codec_vp9_dx(void);
56 enum vp8_dec_control_id {
60 VP8D_GET_LAST_REF_UPDATES = VP8_DECODER_CTRL_ID_START,
61
63 VP8D_GET_FRAME_CORRUPTED,
64
68 VP8D_GET_LAST_REF_USED,
69
74 VPXD_SET_DECRYPTOR,
75 VP8D_SET_DECRYPTOR = VPXD_SET_DECRYPTOR,
76
80 VP9D_GET_FRAME_SIZE,
81
85 VP9D_GET_DISPLAY_SIZE,
86
88 VP9D_GET_BIT_DEPTH,
89
95 VP9_SET_BYTE_ALIGNMENT,
96
105 VP9_INVERT_TILE_DECODE_ORDER,
106
112 VP9_SET_SKIP_LOOP_FILTER,
113
117 VP9_DECODE_SVC_SPATIAL_LAYER,
118
125 VPXD_GET_LAST_QUANTIZER,
126
133 VP9D_SET_ROW_MT,
134
143 VP9D_SET_LOOP_FILTER_OPT,
144
145 VP8_DECODER_CTRL_ID_MAX
146};
147
151 typedef void (*vpx_decrypt_cb)(void *decrypt_state, const unsigned char *input,
152 unsigned char *output, int count);
153
158 typedef struct vpx_decrypt_init {
160 vpx_decrypt_cb decrypt_cb;
161
163 void *decrypt_state;
164} vpx_decrypt_init;
165
174 VPX_CTRL_USE_TYPE(VP8D_GET_LAST_REF_UPDATES, int *)
175#define VPX_CTRL_VP8D_GET_LAST_REF_UPDATES
176 VPX_CTRL_USE_TYPE(VP8D_GET_FRAME_CORRUPTED, int *)
177#define VPX_CTRL_VP8D_GET_FRAME_CORRUPTED
178 VPX_CTRL_USE_TYPE(VP8D_GET_LAST_REF_USED, int *)
179#define VPX_CTRL_VP8D_GET_LAST_REF_USED
180 VPX_CTRL_USE_TYPE(VPXD_GET_LAST_QUANTIZER, int *)
181#define VPX_CTRL_VPXD_GET_LAST_QUANTIZER
182 VPX_CTRL_USE_TYPE(VPXD_SET_DECRYPTOR, vpx_decrypt_init *)
183#define VPX_CTRL_VPXD_SET_DECRYPTOR
184 VPX_CTRL_USE_TYPE(VP8D_SET_DECRYPTOR, vpx_decrypt_init *)
185#define VPX_CTRL_VP8D_SET_DECRYPTOR
186 VPX_CTRL_USE_TYPE(VP9D_GET_DISPLAY_SIZE, int *)
187#define VPX_CTRL_VP9D_GET_DISPLAY_SIZE
188 VPX_CTRL_USE_TYPE(VP9D_GET_BIT_DEPTH, unsigned int *)
189#define VPX_CTRL_VP9D_GET_BIT_DEPTH
190 VPX_CTRL_USE_TYPE(VP9D_GET_FRAME_SIZE, int *)
191#define VPX_CTRL_VP9D_GET_FRAME_SIZE
192 VPX_CTRL_USE_TYPE(VP9_INVERT_TILE_DECODE_ORDER, int)
193#define VPX_CTRL_VP9_INVERT_TILE_DECODE_ORDER
194#define VPX_CTRL_VP9_DECODE_SVC_SPATIAL_LAYER
195 VPX_CTRL_USE_TYPE(VP9_DECODE_SVC_SPATIAL_LAYER, int)
196#define VPX_CTRL_VP9_SET_SKIP_LOOP_FILTER
197 VPX_CTRL_USE_TYPE(VP9_SET_SKIP_LOOP_FILTER, int)
198#define VPX_CTRL_VP9_DECODE_SET_ROW_MT
199 VPX_CTRL_USE_TYPE(VP9D_SET_ROW_MT, int)
200#define VPX_CTRL_VP9_SET_LOOP_FILTER_OPT
201 VPX_CTRL_USE_TYPE(VP9D_SET_LOOP_FILTER_OPT, int)
202
203
206#ifdef __cplusplus
207} // extern "C"
208#endif
209
210#endif // VPX_VPX_VP8DX_H_
VPX_CTRL_USE_TYPE
#define VPX_CTRL_USE_TYPE(id, typ)
vpx_codec_control type definition macro
Definition: vpx_codec.h:422
vpx_codec_iface_t
const struct vpx_codec_iface vpx_codec_iface_t
Codec interface structure.
Definition: vpx_codec.h:177
vpx_decrypt_cb
void(* vpx_decrypt_cb)(void *decrypt_state, const unsigned char *input, unsigned char *output, int count)
Definition: vp8dx.h:151
vpx_decrypt_init
struct vpx_decrypt_init vpx_decrypt_init
Structure to hold decryption state.
vp8_dec_control_id
vp8_dec_control_id
VP8 decoder control functions.
Definition: vp8dx.h:56
VP8D_GET_LAST_REF_UPDATES
@ VP8D_GET_LAST_REF_UPDATES
Definition: vp8dx.h:60
VP9D_GET_BIT_DEPTH
@ VP9D_GET_BIT_DEPTH
Definition: vp8dx.h:88
VP9_INVERT_TILE_DECODE_ORDER
@ VP9_INVERT_TILE_DECODE_ORDER
Definition: vp8dx.h:105
VP9D_SET_ROW_MT
@ VP9D_SET_ROW_MT
Codec control function to set row level multi-threading.
Definition: vp8dx.h:133
VP9_SET_BYTE_ALIGNMENT
@ VP9_SET_BYTE_ALIGNMENT
Definition: vp8dx.h:95
VP9D_SET_LOOP_FILTER_OPT
@ VP9D_SET_LOOP_FILTER_OPT
Codec control function to set loopfilter optimization.
Definition: vp8dx.h:143
VP9D_GET_FRAME_SIZE
@ VP9D_GET_FRAME_SIZE
Definition: vp8dx.h:80
VPXD_SET_DECRYPTOR
@ VPXD_SET_DECRYPTOR
Definition: vp8dx.h:74
VPXD_GET_LAST_QUANTIZER
@ VPXD_GET_LAST_QUANTIZER
Codec control function to get last decoded frame quantizer.
Definition: vp8dx.h:125
VP9_SET_SKIP_LOOP_FILTER
@ VP9_SET_SKIP_LOOP_FILTER
Definition: vp8dx.h:112
VP8D_GET_LAST_REF_USED
@ VP8D_GET_LAST_REF_USED
Definition: vp8dx.h:68
VP9_DECODE_SVC_SPATIAL_LAYER
@ VP9_DECODE_SVC_SPATIAL_LAYER
Definition: vp8dx.h:117
VP9D_GET_DISPLAY_SIZE
@ VP9D_GET_DISPLAY_SIZE
Definition: vp8dx.h:85
VP8D_GET_FRAME_CORRUPTED
@ VP8D_GET_FRAME_CORRUPTED
Definition: vp8dx.h:63
vpx_decrypt_init
Structure to hold decryption state.
Definition: vp8dx.h:158
vpx_decrypt_init::decrypt_state
void * decrypt_state
Definition: vp8dx.h:163
vpx_decrypt_init::decrypt_cb
vpx_decrypt_cb decrypt_cb
Definition: vp8dx.h:160
vp8.h
Provides controls common to both the VP8 encoder and decoder.