/third_party/astc-encoder/Source/ |
H A D | astcenc_integer_sequence.cpp | 446 static inline void write_bits( in write_bits() function 529 write_bits(pack, bits + 2, bit_offset, output_data); in encode_ise() 534 write_bits(pack, bits + 2, bit_offset, output_data); in encode_ise() 539 write_bits(pack, bits + 1, bit_offset, output_data); in encode_ise() 544 write_bits(pack, bits + 2, bit_offset, output_data); in encode_ise() 549 write_bits(pack, bits + 1, bit_offset, output_data); in encode_ise() 575 write_bits(pack, bits + tbits[j], bit_offset, output_data); in encode_ise() 600 write_bits(pack, bits + 3, bit_offset, output_data); in encode_ise() 605 write_bits(pack, bits + 2, bit_offset, output_data); in encode_ise() 610 write_bits(pac in encode_ise() [all...] |
H A D | astcenc_symbolic_physical.cpp | 81 static inline void write_bits( in write_bits() function 229 write_bits(scb.block_mode, 11, 0, pcb); in symbolic_to_physical() 230 write_bits(partition_count - 1, 2, 11, pcb); in symbolic_to_physical() 237 write_bits(scb.partition_index, 6, 13, pcb); in symbolic_to_physical() 238 write_bits(scb.partition_index >> 6, PARTITION_INDEX_BITS - 6, 19, pcb); in symbolic_to_physical() 242 write_bits(scb.color_formats[0] << 2, 6, 13 + PARTITION_INDEX_BITS, pcb); in symbolic_to_physical() 281 write_bits(encoded_type_lowpart, 6, 13 + PARTITION_INDEX_BITS, pcb); in symbolic_to_physical() 282 write_bits(encoded_type_highpart, encoded_type_highpart_size, encoded_type_highpart_pos, pcb); in symbolic_to_physical() 288 write_bits(scb.color_formats[0], 4, 13, pcb); in symbolic_to_physical() 294 write_bits(sc in symbolic_to_physical() [all...] |
/third_party/mesa3d/src/gallium/frontends/va/ |
H A D | picture_mpeg4.c | 137 write_bits(struct bit_stream *writer, unsigned int bits, unsigned int len) in write_bits() function 165 write_bits(&bs_gvop, vop_hour, 5); in vlVaDecoderFixMPEG4Startcode() 166 write_bits(&bs_gvop, vop_minute, 6); in vlVaDecoderFixMPEG4Startcode() 168 write_bits(&bs_gvop, vop_second, 6); in vlVaDecoderFixMPEG4Startcode() 172 write_bits(&bs_gvop, 7, 3); /* padding */ in vlVaDecoderFixMPEG4Startcode() 178 write_bits(&bs_vop, vop_coding_type, 2); in vlVaDecoderFixMPEG4Startcode() 189 write_bits(&bs_vop, vop_time_inc, context->mpeg4.vti_bits); in vlVaDecoderFixMPEG4Startcode() 194 write_bits(&bs_vop, context->mpeg4.pps.vop_fields.bits.intra_dc_vlc_thr, 3); in vlVaDecoderFixMPEG4Startcode() 200 write_bits(&bs_vop, context->mpeg4.quant_scale, context->mpeg4.pps.quant_precision); in vlVaDecoderFixMPEG4Startcode() 202 write_bits( in vlVaDecoderFixMPEG4Startcode() [all...] |
/third_party/mesa3d/src/mesa/main/ |
H A D | texcompress_bptc_tmp.h | 1164 write_bits(struct bit_writer *writer, int n_bits, int value) in write_bits() function 1321 write_bits(writer, BLOCK_SIZE * BLOCK_SIZE * 2 - 1, 0); in write_rgb_indices_unorm() 1338 write_bits(writer, (x == 0 && y == 0) ? 1 : 2, index); in write_rgb_indices_unorm() 1345 write_bits(writer, 2 * (BLOCK_SIZE - src_width), 0); in write_rgb_indices_unorm() 1352 write_bits(writer, 2 * BLOCK_SIZE * (BLOCK_SIZE - src_height), 0); in write_rgb_indices_unorm() 1367 write_bits(writer, BLOCK_SIZE * BLOCK_SIZE * 3 - 1, 0); in write_alpha_indices_unorm() 1383 write_bits(writer, (x == 0 && y == 0) ? 2 : 3, index); in write_alpha_indices_unorm() 1390 write_bits(writer, 3 * (BLOCK_SIZE - src_width), 0); in write_alpha_indices_unorm() 1397 write_bits(writer, 3 * BLOCK_SIZE * (BLOCK_SIZE - src_height), 0); in write_alpha_indices_unorm() 1420 write_bits( in compress_rgba_unorm_block() [all...] |