Home
last modified time | relevance | path

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

/hardware/intel/common/libmix/videoencoder/
Dbitstream.h59 static void bitstream_put_ui(bitstream *bs, unsigned int val, int size_in_bits) in bitstream_put_ui() argument
65 if (!size_in_bits) in bitstream_put_ui()
68 bs->bit_offset += size_in_bits; in bitstream_put_ui()
70 if (bit_left > size_in_bits) { in bitstream_put_ui()
71 bs->buffer[pos] = (bs->buffer[pos] << size_in_bits | val); 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()
90 int size_in_bits = 0; in bitstream_put_ue() local
95 size_in_bits++; in bitstream_put_ue()
98 bitstream_put_ui(bs, 0, size_in_bits - 1); // leading zero in bitstream_put_ue()
[all …]
/hardware/intel/common/libva/test/encode/
Davcenc.c786 bitstream_put_ui(bitstream *bs, unsigned int val, int size_in_bits) in bitstream_put_ui() argument
792 if (!size_in_bits) in bitstream_put_ui()
795 bs->bit_offset += size_in_bits; in bitstream_put_ui()
797 if (bit_left > size_in_bits) { in bitstream_put_ui()
798 bs->buffer[pos] = (bs->buffer[pos] << size_in_bits | val); 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()
816 int size_in_bits = 0; in bitstream_put_ue() local
821 size_in_bits++; in bitstream_put_ue()
824 bitstream_put_ui(bs, 0, size_in_bits - 1); // leading zero in bitstream_put_ue()
[all …]
Dmpeg2enc.c195 bitstream_put_ui(bitstream *bs, unsigned int val, int size_in_bits) in bitstream_put_ui() argument
201 if (!size_in_bits) in bitstream_put_ui()
204 if (size_in_bits < 32) in bitstream_put_ui()
205 val &= ((1 << size_in_bits) - 1); in bitstream_put_ui()
207 bs->bit_offset += size_in_bits; in bitstream_put_ui()
209 if (bit_left > size_in_bits) { in bitstream_put_ui()
210 bs->buffer[pos] = (bs->buffer[pos] << size_in_bits | val); 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()
Dmpeg2vaenc.c195 bitstream_put_ui(bitstream *bs, unsigned int val, int size_in_bits) in bitstream_put_ui() argument
201 if (!size_in_bits) in bitstream_put_ui()
204 if (size_in_bits < 32) in bitstream_put_ui()
205 val &= ((1 << size_in_bits) - 1); in bitstream_put_ui()
207 bs->bit_offset += size_in_bits; in bitstream_put_ui()
209 if (bit_left > size_in_bits) { in bitstream_put_ui()
210 bs->buffer[pos] = (bs->buffer[pos] << size_in_bits | val); 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()
Dh264encode.c204 bitstream_put_ui(bitstream *bs, unsigned int val, int size_in_bits) in bitstream_put_ui() argument
210 if (!size_in_bits) in bitstream_put_ui()
213 bs->bit_offset += size_in_bits; in bitstream_put_ui()
215 if (bit_left > size_in_bits) { in bitstream_put_ui()
216 bs->buffer[pos] = (bs->buffer[pos] << size_in_bits | val); 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()
234 int size_in_bits = 0; in bitstream_put_ue() local
239 size_in_bits++; in bitstream_put_ue()
242 bitstream_put_ui(bs, 0, size_in_bits - 1); // leading zero in bitstream_put_ue()
[all …]
/hardware/intel/common/libva/test/transcode/
Dmpeg2transcode.cpp2493 bitstream_put_ui(bitstream *bs, unsigned int val, int size_in_bits) in bitstream_put_ui() argument
2499 if (!size_in_bits) in bitstream_put_ui()
2502 bs->bit_offset += size_in_bits; in bitstream_put_ui()
2504 if (bit_left > size_in_bits) { in bitstream_put_ui()
2505 bs->buffer[pos] = (bs->buffer[pos] << size_in_bits | val); 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()
2523 int size_in_bits = 0; in bitstream_put_ue() local
2528 size_in_bits++; in bitstream_put_ue()
2531 bitstream_put_ui(bs, 0, size_in_bits - 1); // leading zero in bitstream_put_ue()
[all …]