2 * gstlibvpx.h - GStreamer/libvpx glue
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.
17 typedef struct _vp8_bool_decoder vp8_bool_decoder;
18 typedef struct _vp8_bool_decoder_state vp8_bool_decoder_state;
20 struct _vp8_bool_decoder {
21 uintptr_t private[16];
24 struct _vp8_bool_decoder_state {
25 uint8_t range; /* Current "range" value (<= 255) */
26 uint8_t value; /* Current "value" value */
27 uint8_t count; /* Number of bits shifted out of value (<= 7) */
31 vp8_bool_decoder_init (vp8_bool_decoder * bd, const uint8_t * buf,
32 unsigned int buf_size);
35 vp8_bool_decoder_read (vp8_bool_decoder * bd, uint8_t prob);
38 vp8_bool_decoder_read_literal (vp8_bool_decoder * bd, int bits);
41 vp8_bool_decoder_get_pos (vp8_bool_decoder * bd);
44 vp8_bool_decoder_get_state (vp8_bool_decoder * bd,
45 vp8_bool_decoder_state * state);
48 vp8_init_token_update_probs (uint8_t probs[4][8][3][11]);
51 vp8_init_default_token_probs (uint8_t probs[4][8][3][11]);
54 vp8_init_mv_update_probs (uint8_t probs[2][19]);
57 vp8_init_default_mv_probs (uint8_t probs[2][19]);
60 vp8_init_default_intra_mode_probs (uint8_t y_probs[4], uint8_t uv_probs[3]);
63 vp8_init_default_inter_mode_probs (uint8_t y_probs[4], uint8_t uv_probs[3]);
65 #endif /* GST_LIBVPX_H */