Searched refs:bit_left (Results 1 – 6 of 6) sorted by relevance
/hardware/intel/common/libmix/videoencoder/ |
D | bitstream.h | 52 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/ |
D | mpeg2vaenc.c | 187 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()
|
D | mpeg2enc.c | 187 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()
|
D | avcenc.c | 778 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()
|
D | h264encode.c | 196 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/ |
D | mpeg2transcode.cpp | 2485 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()
|