Lines Matching refs:p_buffer
43 static inline gint bits_initwrite( bits_buffer_t *p_buffer, in bits_initwrite() argument
46 p_buffer->i_size = i_size; in bits_initwrite()
47 p_buffer->i_data = 0; in bits_initwrite()
48 p_buffer->i_mask = 0x80; in bits_initwrite()
49 p_buffer->p_data = p_data; in bits_initwrite()
50 if( !p_buffer->p_data ) in bits_initwrite()
52 if( !( p_buffer->p_data = g_slice_alloc0( i_size ) ) ) in bits_initwrite()
55 p_buffer->p_data[0] = 0; in bits_initwrite()
59 static inline void bits_align( bits_buffer_t *p_buffer ) in bits_align() argument
61 if( p_buffer->i_mask != 0x80 && p_buffer->i_data < p_buffer->i_size ) in bits_align()
63 p_buffer->i_mask = 0x80; in bits_align()
64 p_buffer->i_data++; in bits_align()
65 p_buffer->p_data[p_buffer->i_data] = 0x00; in bits_align()
69 static inline void bits_write( bits_buffer_t *p_buffer, in bits_write() argument
78 p_buffer->p_data[p_buffer->i_data] |= p_buffer->i_mask; in bits_write()
82 p_buffer->p_data[p_buffer->i_data] &= ~p_buffer->i_mask; in bits_write()
84 p_buffer->i_mask >>= 1; in bits_write()
85 if( p_buffer->i_mask == 0 ) in bits_write()
87 p_buffer->i_data++; in bits_write()
88 p_buffer->i_mask = 0x80; in bits_write()