WebM VP8 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
12 #include "vp8.h"
13
23 #ifndef VP8DX_H
24 #define VP8DX_H
25
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29
36 extern vpx_codec_iface_t vpx_codec_vp8_dx_algo;
37 extern vpx_codec_iface_t *vpx_codec_vp8_dx(void);
38
39 /* TODO(jkoleszar): These move to VP9 in a later patch set. */
40 extern vpx_codec_iface_t vpx_codec_vp9_dx_algo;
41 extern vpx_codec_iface_t *vpx_codec_vp9_dx(void);
44 /* Include controls common to both the encoder and decoder */
45 #include "vp8.h"
46
47
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 VP8D_SET_DECRYPTOR,
75
77 VP9_INVERT_TILE_DECODE_ORDER,
78
79 VP8_DECODER_CTRL_ID_MAX
80 };
81
86 typedef struct vp8_decrypt_init {
90 void (*decrypt_cb)(void *decrypt_state, const unsigned char *input,
91 unsigned char *output, int count);
93 void *decrypt_state;
94 } vp8_decrypt_init;
95
104 VPX_CTRL_USE_TYPE(VP8D_GET_LAST_REF_UPDATES, int *)
105 VPX_CTRL_USE_TYPE(VP8D_GET_FRAME_CORRUPTED, int *)
106 VPX_CTRL_USE_TYPE(VP8D_GET_LAST_REF_USED, int *)
107 VPX_CTRL_USE_TYPE(VP8D_SET_DECRYPTOR, vp8_decrypt_init *)
108 VPX_CTRL_USE_TYPE(VP9_INVERT_TILE_DECODE_ORDER, int)
109
112 #ifdef __cplusplus
113 } // extern "C"
114 #endif
115
116 #endif
vpx_codec_iface_t
struct vpx_codec_iface vpx_codec_iface_t
Codec interface structure.
Definition: vpx_codec.h:175
VP8D_SET_DECRYPTOR
Definition: vp8dx.h:74
VPX_CTRL_USE_TYPE
#define VPX_CTRL_USE_TYPE(id, typ)
vpx_codec_control type definition macro
Definition: vpx_codec.h:414
VP8D_GET_LAST_REF_UPDATES
Definition: vp8dx.h:60
vp8_decrypt_init::decrypt_cb
void(* decrypt_cb)(void *decrypt_state, const unsigned char *input, unsigned char *output, int count)
Definition: vp8dx.h:90
VP9_INVERT_TILE_DECODE_ORDER
Definition: vp8dx.h:77
VP8D_GET_FRAME_CORRUPTED
Definition: vp8dx.h:63
vp8_decrypt_init
struct vp8_decrypt_init vp8_decrypt_init
Structure to hold decryption state.
vp8.h
Provides controls common to both the VP8 encoder and decoder.
vp8_decrypt_init::decrypt_state
void * decrypt_state
Definition: vp8dx.h:93
VP8D_GET_LAST_REF_USED
Definition: vp8dx.h:68
vp8_decrypt_init
Structure to hold decryption state.
Definition: vp8dx.h:86
vp8_dec_control_id
vp8_dec_control_id
VP8 decoder control functions.
Definition: vp8dx.h:56