Home
last modified time | relevance | path

Searched refs:WriteBits (Results 1 – 19 of 19) sorted by relevance

/external/puffin/src/
Dhuffer.cc45 TEST_AND_RETURN_FALSE(bw->WriteBits(1, final_bit)); in HuffDeflate()
46 TEST_AND_RETURN_FALSE(bw->WriteBits(2, type)); in HuffDeflate()
54 TEST_AND_RETURN_FALSE(bw->WriteBits(16, pd.length)); in HuffDeflate()
55 TEST_AND_RETURN_FALSE(bw->WriteBits(16, ~pd.length)); in HuffDeflate()
61 TEST_AND_RETURN_FALSE(bw->WriteBits(16, 0)); in HuffDeflate()
62 TEST_AND_RETURN_FALSE(bw->WriteBits(16, ~0)); in HuffDeflate()
100 TEST_AND_RETURN_FALSE(bw->WriteBits(nbits, literal_huffman)); in HuffDeflate()
136 TEST_AND_RETURN_FALSE(bw->WriteBits(nbits, length_huffman)); in HuffDeflate()
140 bw->WriteBits(extra_bits_len, len - kLengthBases[index])); in HuffDeflate()
156 TEST_AND_RETURN_FALSE(bw->WriteBits(nbits, distance_huffman)); in HuffDeflate()
[all …]
Dbit_io_unittest.cc22 ASSERT_TRUE(bw.WriteBits(0, 0x05)); in TEST()
23 ASSERT_TRUE(bw.WriteBits(3, 0x05)); in TEST()
24 ASSERT_TRUE(bw.WriteBits(8, 0xFF)); in TEST()
34 ASSERT_FALSE(bw.WriteBits(9, 0x1C)); in TEST()
35 ASSERT_TRUE(bw.WriteBits(4, 0x0A)); in TEST()
Dhuffman_table.cc401 TEST_AND_RETURN_FALSE(bw->WriteBits(5, buffer[index++])); in BuildDynamicHuffmanTable()
404 TEST_AND_RETURN_FALSE(bw->WriteBits(5, buffer[index++])); in BuildDynamicHuffmanTable()
407 TEST_AND_RETURN_FALSE(bw->WriteBits(4, buffer[index++])); in BuildDynamicHuffmanTable()
424 TEST_AND_RETURN_FALSE(bw->WriteBits(3, len)); in BuildDynamicHuffmanTable()
480 TEST_AND_RETURN_FALSE(bw->WriteBits(nbits, hcode)); in BuildHuffmanCodeLengths()
491 TEST_AND_RETURN_FALSE(bw->WriteBits(2, pcode - 16)); in BuildHuffmanCodeLengths()
497 TEST_AND_RETURN_FALSE(bw->WriteBits(3, pcode - 20)); in BuildHuffmanCodeLengths()
503 TEST_AND_RETURN_FALSE(bw->WriteBits(7, pcode - 28)); in BuildHuffmanCodeLengths()
Dbit_writer.cc13 bool BufferBitWriter::WriteBits(size_t nbits, uint32_t bits) { in WriteBits() function in puffin::BufferBitWriter
46 return WriteBits((8 - (out_holder_bits_ & 7)) & 7, bits); in WriteBoundaryBits()
Dbit_writer.h27 virtual bool WriteBits(size_t nbits, uint32_t bits) = 0;
78 bool WriteBits(size_t nbits, uint32_t bits) override;
Dpuffin_stream.cc382 bit_writer.WriteBits(cur_deflate_->offset & 7, last_byte_)); in Write()
/external/webrtc/webrtc/modules/rtp_rtcp/source/
Drtp_format_vp9.cc182 RETURN_FALSE_ON_ERROR(writer->WriteBits(m_bit ? 1 : 0, 1)); in WritePictureId()
183 RETURN_FALSE_ON_ERROR(writer->WriteBits(vp9.picture_id, m_bit ? 15 : 7)); in WritePictureId()
197 RETURN_FALSE_ON_ERROR(writer->WriteBits(TemporalIdxField(vp9, 0), 3)); in WriteLayerInfoCommon()
198 RETURN_FALSE_ON_ERROR(writer->WriteBits(vp9.temporal_up_switch ? 1 : 0, 1)); in WriteLayerInfoCommon()
199 RETURN_FALSE_ON_ERROR(writer->WriteBits(SpatialIdxField(vp9, 0), 3)); in WriteLayerInfoCommon()
200 RETURN_FALSE_ON_ERROR(writer->WriteBits(vp9.inter_layer_predicted ? 1: 0, 1)); in WriteLayerInfoCommon()
244 RETURN_FALSE_ON_ERROR(writer->WriteBits(vp9.pid_diff[i], 7)); in WriteRefIndices()
245 RETURN_FALSE_ON_ERROR(writer->WriteBits(n_bit ? 1 : 0, 1)); in WriteRefIndices()
276 RETURN_FALSE_ON_ERROR(writer->WriteBits(vp9.num_spatial_layers - 1, 3)); in WriteSsData()
278 writer->WriteBits(vp9.spatial_layer_resolution_present ? 1 : 0, 1)); in WriteSsData()
[all …]
Dh264_sps_parser_unittest.cc65 writer.WriteBits(0, 1); in GenerateFakeSps()
76 writer.WriteBits(0, 1); in GenerateFakeSps()
78 writer.WriteBits(0, 1); in GenerateFakeSps()
80 writer.WriteBits(0, 1); in GenerateFakeSps()
82 writer.WriteBits(1, 1); in GenerateFakeSps()
/external/deqp-deps/SPIRV-Tools/source/comp/
Dmarkv_encoder.cpp37 writer_.WriteBits(bits, num_bits); in EncodeNonIdWord()
47 writer_.WriteBits(bits, num_bits); in EncodeNonIdWord()
75 writer_.WriteBits(bits, num_bits); in EncodeOpcodeAndNumOperands()
86 writer_.WriteBits(bits, num_bits); in EncodeOpcodeAndNumOperands()
95 writer_.WriteBits(bits, num_bits); in EncodeOpcodeAndNumOperands()
104 writer_.WriteBits(bits, num_bits); in EncodeOpcodeAndNumOperands()
127 writer_.WriteBits(bits, num_bits); in EncodeMtfRankHuffman()
135 writer_.WriteBits(bits, num_bits); in EncodeMtfRankHuffman()
155 writer_.WriteBits(bits, num_bits); in EncodeIdWithDescriptor()
168 writer_.WriteBits(bits, num_bits); in EncodeIdWithDescriptor()
[all …]
Dbit_stream.cpp87 writer->WriteBits(0, chunk_length); in WriteVariableWidthInternal()
88 writer->WriteBits(0, 1); in WriteVariableWidthInternal()
100 writer->WriteBits(val, left_to_write); in WriteVariableWidthInternal()
104 writer->WriteBits(val, chunk_length); in WriteVariableWidthInternal()
109 writer->WriteBits(val ? 1 : 0, 1); in WriteVariableWidthInternal()
224 void BitWriterWord64::WriteBits(uint64_t bits, size_t num_bits) { in WriteBits() function in spvtools::comp::BitWriterWord64
Dbit_stream.h104 virtual void WriteBits(uint64_t bits, size_t num_bits) = 0;
113 WriteBits(bits, sizeof(T) * 8); in WriteUnencoded()
150 void WriteBits(uint64_t bits, size_t num_bits) override;
/external/swiftshader/third_party/SPIRV-Tools/source/comp/
Dmarkv_encoder.cpp37 writer_.WriteBits(bits, num_bits); in EncodeNonIdWord()
47 writer_.WriteBits(bits, num_bits); in EncodeNonIdWord()
75 writer_.WriteBits(bits, num_bits); in EncodeOpcodeAndNumOperands()
86 writer_.WriteBits(bits, num_bits); in EncodeOpcodeAndNumOperands()
95 writer_.WriteBits(bits, num_bits); in EncodeOpcodeAndNumOperands()
104 writer_.WriteBits(bits, num_bits); in EncodeOpcodeAndNumOperands()
127 writer_.WriteBits(bits, num_bits); in EncodeMtfRankHuffman()
135 writer_.WriteBits(bits, num_bits); in EncodeMtfRankHuffman()
155 writer_.WriteBits(bits, num_bits); in EncodeIdWithDescriptor()
168 writer_.WriteBits(bits, num_bits); in EncodeIdWithDescriptor()
[all …]
Dbit_stream.cpp87 writer->WriteBits(0, chunk_length); in WriteVariableWidthInternal()
88 writer->WriteBits(0, 1); in WriteVariableWidthInternal()
100 writer->WriteBits(val, left_to_write); in WriteVariableWidthInternal()
104 writer->WriteBits(val, chunk_length); in WriteVariableWidthInternal()
109 writer->WriteBits(val ? 1 : 0, 1); in WriteVariableWidthInternal()
224 void BitWriterWord64::WriteBits(uint64_t bits, size_t num_bits) { in WriteBits() function in spvtools::comp::BitWriterWord64
Dbit_stream.h104 virtual void WriteBits(uint64_t bits, size_t num_bits) = 0;
113 WriteBits(bits, sizeof(T) * 8); in WriteUnencoded()
150 void WriteBits(uint64_t bits, size_t num_bits) override;
/external/webrtc/webrtc/base/
Dbitbuffer_unittest.cc252 EXPECT_TRUE(buffer.WriteBits(0x2u, 3)); in TEST()
253 EXPECT_TRUE(buffer.WriteBits(0x1u, 2)); in TEST()
254 EXPECT_TRUE(buffer.WriteBits(0x53u, 7)); in TEST()
255 EXPECT_TRUE(buffer.WriteBits(0x0u, 2)); in TEST()
256 EXPECT_TRUE(buffer.WriteBits(0x1u, 1)); in TEST()
257 EXPECT_TRUE(buffer.WriteBits(0x1ABCDu, 17)); in TEST()
259 EXPECT_FALSE(buffer.WriteBits(1, 1)); in TEST()
321 EXPECT_TRUE(buffer.WriteBits(0, 1)); in TEST()
323 EXPECT_TRUE(buffer.WriteBits(0, 3)); in TEST()
325 EXPECT_TRUE(buffer.WriteBits(0, 2)); in TEST()
Dbitbuffer.cc226 return WriteBits(val, sizeof(uint8_t) * 8); in WriteUInt8()
230 return WriteBits(val, sizeof(uint16_t) * 8); in WriteUInt16()
234 return WriteBits(val, sizeof(uint32_t) * 8); in WriteUInt32()
237 bool BitBufferWriter::WriteBits(uint64_t val, size_t bit_count) { in WriteBits() function in rtc::BitBufferWriter
293 return WriteBits(val_to_encode, CountBits(val_to_encode) * 2 - 1); in WriteExponentialGolomb()
Dbitbuffer.h107 bool WriteBits(uint64_t val, size_t bit_count);
/external/swiftshader/third_party/SPIRV-Tools/test/
Dbit_stream.cpp97 void WriteBits(uint64_t bits, size_t num_bits) override { in WriteBits() function in spvtools::comp::__anond93a91310111::BitWriterStringStream
413 TEST(BitWriterStringStream, WriteBits) { in TEST() argument
416 writer.WriteBits(bits1, 5); in TEST()
446 writer.WriteBits(b2_val, 8); in TEST()
450 writer.WriteBits(val, 8); in TEST()
467 TEST(BitWriterWord64, WriteBits) { in TEST() argument
470 writer.WriteBits(bits1, 5); in TEST()
471 writer.WriteBits(bits1, 5); in TEST()
472 writer.WriteBits(bits1, 5); in TEST()
479 writer.WriteBits(0, 0); in TEST()
[all …]
/external/deqp-deps/SPIRV-Tools/test/
Dbit_stream.cpp97 void WriteBits(uint64_t bits, size_t num_bits) override { in WriteBits() function in spvtools::comp::__anonffc740370111::BitWriterStringStream
413 TEST(BitWriterStringStream, WriteBits) { in TEST() argument
416 writer.WriteBits(bits1, 5); in TEST()
446 writer.WriteBits(b2_val, 8); in TEST()
450 writer.WriteBits(val, 8); in TEST()
467 TEST(BitWriterWord64, WriteBits) { in TEST() argument
470 writer.WriteBits(bits1, 5); in TEST()
471 writer.WriteBits(bits1, 5); in TEST()
472 writer.WriteBits(bits1, 5); in TEST()
479 writer.WriteBits(0, 0); in TEST()
[all …]