Home
last modified time | relevance | path

Searched refs:bit_left (Results 1 – 6 of 6) sorted by relevance

/hardware/intel/common/libmix/videoencoder/
Dbitstream.h52 int bit_left = 32 - bit_offset; in bitstream_end() local
55 bs->buffer[pos] = va_swap32((bs->buffer[pos] << bit_left)); in bitstream_end()
63 int bit_left = 32 - bit_offset; in bitstream_put_ui() local
70 if (bit_left > size_in_bits) { in bitstream_put_ui()
73 size_in_bits -= bit_left; in bitstream_put_ui()
74 bs->buffer[pos] = (bs->buffer[pos] << bit_left) | (val >> size_in_bits); in bitstream_put_ui()
117 int bit_left = 8 - bit_offset; in bitstream_byte_aligning() local
126 new_val = (1 << bit_left) - 1; in bitstream_byte_aligning()
130 bitstream_put_ui(bs, new_val, bit_left); in bitstream_byte_aligning()
/hardware/intel/common/libva/test/encode/
Dmpeg2enc.c187 int bit_left = 32 - bit_offset; in bitstream_end() local
190 bs->buffer[pos] = swap32((bs->buffer[pos] << bit_left)); in bitstream_end()
199 int bit_left = 32 - bit_offset; in bitstream_put_ui() local
209 if (bit_left > size_in_bits) { in bitstream_put_ui()
212 size_in_bits -= bit_left; in bitstream_put_ui()
213 bs->buffer[pos] = (bs->buffer[pos] << bit_left) | (val >> size_in_bits); in bitstream_put_ui()
229 int bit_left = 8 - bit_offset; in bitstream_byte_aligning() local
238 new_val = (1 << bit_left) - 1; in bitstream_byte_aligning()
242 bitstream_put_ui(bs, new_val, bit_left); in bitstream_byte_aligning()
Dmpeg2vaenc.c187 int bit_left = 32 - bit_offset; in bitstream_end() local
190 bs->buffer[pos] = swap32((bs->buffer[pos] << bit_left)); in bitstream_end()
199 int bit_left = 32 - bit_offset; in bitstream_put_ui() local
209 if (bit_left > size_in_bits) { in bitstream_put_ui()
212 size_in_bits -= bit_left; in bitstream_put_ui()
213 bs->buffer[pos] = (bs->buffer[pos] << bit_left) | (val >> size_in_bits); in bitstream_put_ui()
229 int bit_left = 8 - bit_offset; in bitstream_byte_aligning() local
238 new_val = (1 << bit_left) - 1; in bitstream_byte_aligning()
242 bitstream_put_ui(bs, new_val, bit_left); in bitstream_byte_aligning()
Davcenc.c778 int bit_left = 32 - bit_offset; in bitstream_end() local
781 bs->buffer[pos] = va_swap32((bs->buffer[pos] << bit_left)); in bitstream_end()
790 int bit_left = 32 - bit_offset; in bitstream_put_ui() local
797 if (bit_left > size_in_bits) { in bitstream_put_ui()
800 size_in_bits -= bit_left; in bitstream_put_ui()
801 bs->buffer[pos] = (bs->buffer[pos] << bit_left) | (val >> size_in_bits); in bitstream_put_ui()
845 int bit_left = 8 - bit_offset; in bitstream_byte_aligning() local
854 new_val = (1 << bit_left) - 1; in bitstream_byte_aligning()
858 bitstream_put_ui(bs, new_val, bit_left); in bitstream_byte_aligning()
Dh264encode.c196 int bit_left = 32 - bit_offset; in bitstream_end() local
199 bs->buffer[pos] = va_swap32((bs->buffer[pos] << bit_left)); in bitstream_end()
208 int bit_left = 32 - bit_offset; in bitstream_put_ui() local
215 if (bit_left > size_in_bits) { in bitstream_put_ui()
218 size_in_bits -= bit_left; in bitstream_put_ui()
219 bs->buffer[pos] = (bs->buffer[pos] << bit_left) | (val >> size_in_bits); in bitstream_put_ui()
263 int bit_left = 8 - bit_offset; in bitstream_byte_aligning() local
272 new_val = (1 << bit_left) - 1; in bitstream_byte_aligning()
276 bitstream_put_ui(bs, new_val, bit_left); in bitstream_byte_aligning()
/hardware/intel/common/libva/test/transcode/
Dmpeg2transcode.cpp2485 int bit_left = 32 - bit_offset; in bitstream_end() local
2488 bs->buffer[pos] = swap32((bs->buffer[pos] << bit_left)); in bitstream_end()
2497 int bit_left = 32 - bit_offset; in bitstream_put_ui() local
2504 if (bit_left > size_in_bits) { in bitstream_put_ui()
2507 size_in_bits -= bit_left; in bitstream_put_ui()
2508 bs->buffer[pos] = (bs->buffer[pos] << bit_left) | (val >> size_in_bits); in bitstream_put_ui()
2552 int bit_left = 8 - bit_offset; in bitstream_byte_aligning() local
2561 new_val = (1 << bit_left) - 1; in bitstream_byte_aligning()
2565 bitstream_put_ui(bs, new_val, bit_left); in bitstream_byte_aligning()