Lines Matching refs:rd
17 #define BOOL_DECODER_CAST(rd) \ argument
18 ((BOOL_DECODER *)(&(rd)->_gst_reserved[0]))
21 gst_vp8_range_decoder_init (GstVp8RangeDecoder * rd, const guchar * buf, in gst_vp8_range_decoder_init() argument
24 BOOL_DECODER *const bd = BOOL_DECODER_CAST (rd); in gst_vp8_range_decoder_init()
26 g_return_val_if_fail (sizeof (rd->_gst_reserved) >= sizeof (*bd), FALSE); in gst_vp8_range_decoder_init()
28 rd->buf = buf; in gst_vp8_range_decoder_init()
29 rd->buf_size = buf_size; in gst_vp8_range_decoder_init()
34 gst_vp8_range_decoder_read (GstVp8RangeDecoder * rd, guint8 prob) in gst_vp8_range_decoder_read() argument
36 return vp8dx_decode_bool (BOOL_DECODER_CAST (rd), prob); in gst_vp8_range_decoder_read()
40 gst_vp8_range_decoder_read_literal (GstVp8RangeDecoder * rd, gint bits) in gst_vp8_range_decoder_read_literal() argument
42 return vp8_decode_value (BOOL_DECODER_CAST (rd), bits); in gst_vp8_range_decoder_read_literal()
46 gst_vp8_range_decoder_get_pos (GstVp8RangeDecoder * rd) in gst_vp8_range_decoder_get_pos() argument
48 BOOL_DECODER *const bd = BOOL_DECODER_CAST (rd); in gst_vp8_range_decoder_get_pos()
50 return (bd->user_buffer - rd->buf) * 8 - (8 + bd->count); in gst_vp8_range_decoder_get_pos()
54 gst_vp8_range_decoder_get_state (GstVp8RangeDecoder * rd, in gst_vp8_range_decoder_get_state() argument
57 BOOL_DECODER *const bd = BOOL_DECODER_CAST (rd); in gst_vp8_range_decoder_get_state()