Searched refs:WriteBits (Results 1 – 5 of 5) sorted by relevance
/external/webrtc/webrtc/modules/rtp_rtcp/source/ |
D | rtp_format_vp9.cc | 182 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 …]
|
D | h264_sps_parser_unittest.cc | 65 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/webrtc/webrtc/base/ |
D | bitbuffer_unittest.cc | 252 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()
|
D | bitbuffer.cc | 226 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()
|
D | bitbuffer.h | 107 bool WriteBits(uint64_t val, size_t bit_count);
|