vp8dx.h
Go to the documentation of this file.
/*
* Copyright (c) 2010 The WebM project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing project authors may
* be found in the AUTHORS file in the root of the source tree.
*/
#ifndef VPX_VPX_VP8DX_H_
#define VPX_VPX_VP8DX_H_
#ifdef __cplusplus
extern "C" {
#endif
/* Include controls common to both the encoder and decoder */
#include "./vp8.h"
extern vpx_codec_iface_t vpx_codec_vp8_dx_algo;
extern vpx_codec_iface_t *vpx_codec_vp8_dx(void);
extern vpx_codec_iface_t vpx_codec_vp9_dx_algo;
extern vpx_codec_iface_t *vpx_codec_vp9_dx(void);
enum vp8_dec_control_id {
VP8D_GET_LAST_REF_UPDATES = VP8_DECODER_CTRL_ID_START,
VP8D_GET_FRAME_CORRUPTED,
VP8D_GET_LAST_REF_USED,
VPXD_SET_DECRYPTOR,
VP8D_SET_DECRYPTOR = VPXD_SET_DECRYPTOR,
VP9D_GET_FRAME_SIZE,
VP9D_GET_DISPLAY_SIZE,
VP9D_GET_BIT_DEPTH,
VP9_SET_BYTE_ALIGNMENT,
VP9_INVERT_TILE_DECODE_ORDER,
VP9_SET_SKIP_LOOP_FILTER,
VP9_DECODE_SVC_SPATIAL_LAYER,
VPXD_GET_LAST_QUANTIZER,
VP9D_SET_ROW_MT,
VP9D_SET_LOOP_FILTER_OPT,
VP8_DECODER_CTRL_ID_MAX
};
typedef void (*vpx_decrypt_cb)(void *decrypt_state, const unsigned char *input,
unsigned char *output, int count);
typedef struct vpx_decrypt_init {
vpx_decrypt_cb decrypt_cb;
void *decrypt_state;
} vpx_decrypt_init;
VPX_CTRL_USE_TYPE(VP8D_GET_LAST_REF_UPDATES, int *)
#define VPX_CTRL_VP8D_GET_LAST_REF_UPDATES
VPX_CTRL_USE_TYPE(VP8D_GET_FRAME_CORRUPTED, int *)
#define VPX_CTRL_VP8D_GET_FRAME_CORRUPTED
VPX_CTRL_USE_TYPE(VP8D_GET_LAST_REF_USED, int *)
#define VPX_CTRL_VP8D_GET_LAST_REF_USED
VPX_CTRL_USE_TYPE(VPXD_SET_DECRYPTOR, vpx_decrypt_init *)
#define VPX_CTRL_VPXD_SET_DECRYPTOR
VPX_CTRL_USE_TYPE(VP8D_SET_DECRYPTOR, vpx_decrypt_init *)
#define VPX_CTRL_VP8D_SET_DECRYPTOR
VPX_CTRL_USE_TYPE(VP9D_GET_FRAME_SIZE, int *)
#define VPX_CTRL_VP9D_GET_FRAME_SIZE
VPX_CTRL_USE_TYPE(VP9D_GET_DISPLAY_SIZE, int *)
#define VPX_CTRL_VP9D_GET_DISPLAY_SIZE
VPX_CTRL_USE_TYPE(VP9D_GET_BIT_DEPTH, unsigned int *)
#define VPX_CTRL_VP9D_GET_BIT_DEPTH
VPX_CTRL_USE_TYPE(VP9_SET_BYTE_ALIGNMENT, int)
#define VPX_CTRL_VP9_SET_BYTE_ALIGNMENT
VPX_CTRL_USE_TYPE(VP9_INVERT_TILE_DECODE_ORDER, int)
#define VPX_CTRL_VP9_INVERT_TILE_DECODE_ORDER
VPX_CTRL_USE_TYPE(VP9_SET_SKIP_LOOP_FILTER, int)
#define VPX_CTRL_VP9_SET_SKIP_LOOP_FILTER
VPX_CTRL_USE_TYPE(VP9_DECODE_SVC_SPATIAL_LAYER, int)
#define VPX_CTRL_VP9_DECODE_SVC_SPATIAL_LAYER
VPX_CTRL_USE_TYPE(VPXD_GET_LAST_QUANTIZER, int *)
#define VPX_CTRL_VPXD_GET_LAST_QUANTIZER
VPX_CTRL_USE_TYPE(VP9D_SET_ROW_MT, int)
#define VPX_CTRL_VP9_DECODE_SET_ROW_MT
VPX_CTRL_USE_TYPE(VP9D_SET_LOOP_FILTER_OPT, int)
#define VPX_CTRL_VP9_SET_LOOP_FILTER_OPT
#ifdef __cplusplus
} // extern "C"
#endif
#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:426
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:167
vpx_codec_vp8_dx_algo
vpx_codec_iface_t vpx_codec_vp8_dx_algo
A single instance of the VP8 decoder.
vpx_codec_vp9_dx
vpx_codec_iface_t * vpx_codec_vp9_dx(void)
The interface to the VP9 decoder.
vpx_codec_vp8_dx
vpx_codec_iface_t * vpx_codec_vp8_dx(void)
The interface to the VP8 decoder.
vpx_codec_vp9_dx_algo
vpx_codec_iface_t vpx_codec_vp9_dx_algo
A single instance of the VP9 decoder.
vp8_dec_control_id
vp8_dec_control_id
VP8 decoder control functions.
Definition vp8dx.h:72
VP8D_GET_LAST_REF_UPDATES
@ VP8D_GET_LAST_REF_UPDATES
Definition vp8dx.h:76
VP9D_GET_BIT_DEPTH
@ VP9D_GET_BIT_DEPTH
Definition vp8dx.h:104
VP9_INVERT_TILE_DECODE_ORDER
@ VP9_INVERT_TILE_DECODE_ORDER
Definition vp8dx.h:121
VP9D_SET_ROW_MT
@ VP9D_SET_ROW_MT
Codec control function to set row level multi-threading.
Definition vp8dx.h:149
VP9_SET_BYTE_ALIGNMENT
@ VP9_SET_BYTE_ALIGNMENT
Definition vp8dx.h:111
VP9D_SET_LOOP_FILTER_OPT
@ VP9D_SET_LOOP_FILTER_OPT
Codec control function to set loopfilter optimization.
Definition vp8dx.h:159
VP9D_GET_FRAME_SIZE
@ VP9D_GET_FRAME_SIZE
Definition vp8dx.h:96
VPXD_SET_DECRYPTOR
@ VPXD_SET_DECRYPTOR
Definition vp8dx.h:90
VPXD_GET_LAST_QUANTIZER
@ VPXD_GET_LAST_QUANTIZER
Codec control function to get last decoded frame quantizer.
Definition vp8dx.h:141
VP9_SET_SKIP_LOOP_FILTER
@ VP9_SET_SKIP_LOOP_FILTER
Definition vp8dx.h:128
VP8D_GET_LAST_REF_USED
@ VP8D_GET_LAST_REF_USED
Definition vp8dx.h:84
VP9_DECODE_SVC_SPATIAL_LAYER
@ VP9_DECODE_SVC_SPATIAL_LAYER
Definition vp8dx.h:133
VP9D_GET_DISPLAY_SIZE
@ VP9D_GET_DISPLAY_SIZE
Definition vp8dx.h:101
VP8D_GET_FRAME_CORRUPTED
@ VP8D_GET_FRAME_CORRUPTED
Definition vp8dx.h:79
vpx_decrypt_init
Structure to hold decryption state.
Definition vp8dx.h:174
vpx_decrypt_init::decrypt_state
void * decrypt_state
Definition vp8dx.h:179
vpx_decrypt_init::decrypt_cb
vpx_decrypt_cb decrypt_cb
Definition vp8dx.h:176
vp8.h
Provides controls common to both the VP8 encoder and decoder.