Home
last modified time | relevance | path

Searched refs:chunk_length (Results 1 – 20 of 20) sorted by relevance

/external/swiftshader/third_party/SPIRV-Tools/source/comp/
Dbit_stream.cpp80 size_t chunk_length, size_t max_payload) { in WriteVariableWidthInternal() argument
81 assert(chunk_length > 0); in WriteVariableWidthInternal()
82 assert(chunk_length < max_payload); in WriteVariableWidthInternal()
87 writer->WriteBits(0, chunk_length); in WriteVariableWidthInternal()
95 if (payload_written + chunk_length >= max_payload) { in WriteVariableWidthInternal()
104 writer->WriteBits(val, chunk_length); in WriteVariableWidthInternal()
105 payload_written += chunk_length; in WriteVariableWidthInternal()
106 val = val >> chunk_length; in WriteVariableWidthInternal()
117 size_t chunk_length, size_t max_payload) { in ReadVariableWidthInternal() argument
118 assert(chunk_length > 0); in ReadVariableWidthInternal()
[all …]
Dbit_stream.h122 void WriteVariableWidthU64(uint64_t val, size_t chunk_length);
123 void WriteVariableWidthU32(uint32_t val, size_t chunk_length);
124 void WriteVariableWidthU16(uint16_t val, size_t chunk_length);
125 void WriteVariableWidthS64(int64_t val, size_t chunk_length,
224 bool ReadVariableWidthU64(uint64_t* val, size_t chunk_length);
225 bool ReadVariableWidthU32(uint32_t* val, size_t chunk_length);
226 bool ReadVariableWidthU16(uint16_t* val, size_t chunk_length);
227 bool ReadVariableWidthS64(int64_t* val, size_t chunk_length,
Dmarkv_encoder.cpp52 const size_t chunk_length = in EncodeNonIdWord() local
54 if (chunk_length) { in EncodeNonIdWord()
55 writer_.WriteVariableWidthU32(word, chunk_length); in EncodeNonIdWord()
Dmarkv_decoder.cpp47 const size_t chunk_length = in DecodeNonIdWord() local
49 if (chunk_length) { in DecodeNonIdWord()
50 if (!reader_.ReadVariableWidthU32(word, chunk_length)) in DecodeNonIdWord()
/external/deqp-deps/SPIRV-Tools/source/comp/
Dbit_stream.cpp80 size_t chunk_length, size_t max_payload) { in WriteVariableWidthInternal() argument
81 assert(chunk_length > 0); in WriteVariableWidthInternal()
82 assert(chunk_length < max_payload); in WriteVariableWidthInternal()
87 writer->WriteBits(0, chunk_length); in WriteVariableWidthInternal()
95 if (payload_written + chunk_length >= max_payload) { in WriteVariableWidthInternal()
104 writer->WriteBits(val, chunk_length); in WriteVariableWidthInternal()
105 payload_written += chunk_length; in WriteVariableWidthInternal()
106 val = val >> chunk_length; in WriteVariableWidthInternal()
117 size_t chunk_length, size_t max_payload) { in ReadVariableWidthInternal() argument
118 assert(chunk_length > 0); in ReadVariableWidthInternal()
[all …]
Dbit_stream.h122 void WriteVariableWidthU64(uint64_t val, size_t chunk_length);
123 void WriteVariableWidthU32(uint32_t val, size_t chunk_length);
124 void WriteVariableWidthU16(uint16_t val, size_t chunk_length);
125 void WriteVariableWidthS64(int64_t val, size_t chunk_length,
224 bool ReadVariableWidthU64(uint64_t* val, size_t chunk_length);
225 bool ReadVariableWidthU32(uint32_t* val, size_t chunk_length);
226 bool ReadVariableWidthU16(uint16_t* val, size_t chunk_length);
227 bool ReadVariableWidthS64(int64_t* val, size_t chunk_length,
Dmarkv_encoder.cpp52 const size_t chunk_length = in EncodeNonIdWord() local
54 if (chunk_length) { in EncodeNonIdWord()
55 writer_.WriteVariableWidthU32(word, chunk_length); in EncodeNonIdWord()
Dmarkv_decoder.cpp47 const size_t chunk_length = in DecodeNonIdWord() local
49 if (chunk_length) { in DecodeNonIdWord()
50 if (!reader_.ReadVariableWidthU32(word, chunk_length)) in DecodeNonIdWord()
/external/swiftshader/third_party/SPIRV-Tools/test/
Dbit_stream.cpp917 const size_t chunk_length = size_t(i % 16 + 1); in TEST() local
920 writer.WriteVariableWidthU64(val, chunk_length); in TEST()
924 ASSERT_TRUE(reader.ReadVariableWidthU64(&read_val, chunk_length)); in TEST()
926 ASSERT_EQ(val, read_val) << "Chunk length " << chunk_length; in TEST()
933 const size_t chunk_length = size_t(i % 16 + 1); in TEST() local
937 writer.WriteVariableWidthS64(val, chunk_length, zigzag_exponent); in TEST()
942 reader.ReadVariableWidthS64(&read_val, chunk_length, zigzag_exponent)); in TEST()
944 ASSERT_EQ(val, read_val) << "Chunk length " << chunk_length; in TEST()
951 const size_t chunk_length = i % 16 + 1; in TEST() local
954 writer.WriteVariableWidthU32(val, chunk_length); in TEST()
[all …]
/external/deqp-deps/SPIRV-Tools/test/
Dbit_stream.cpp917 const size_t chunk_length = size_t(i % 16 + 1); in TEST() local
920 writer.WriteVariableWidthU64(val, chunk_length); in TEST()
924 ASSERT_TRUE(reader.ReadVariableWidthU64(&read_val, chunk_length)); in TEST()
926 ASSERT_EQ(val, read_val) << "Chunk length " << chunk_length; in TEST()
933 const size_t chunk_length = size_t(i % 16 + 1); in TEST() local
937 writer.WriteVariableWidthS64(val, chunk_length, zigzag_exponent); in TEST()
942 reader.ReadVariableWidthS64(&read_val, chunk_length, zigzag_exponent)); in TEST()
944 ASSERT_EQ(val, read_val) << "Chunk length " << chunk_length; in TEST()
951 const size_t chunk_length = i % 16 + 1; in TEST() local
954 writer.WriteVariableWidthU32(val, chunk_length); in TEST()
[all …]
/external/webrtc/webrtc/common_audio/
Dlapped_transform.h51 size_t chunk_length,
70 size_t chunk_length() const { return chunk_length_; } in chunk_length() function
Dlapped_transform_unittest.cc185 TEST(LappedTransformTest, chunk_length) { in TEST() argument
197 EXPECT_EQ(kExpectedChunkLength, trans.chunk_length()); in TEST()
204 EXPECT_EQ(kExpectedChunkLength, trans.chunk_length()); in TEST()
Dlapped_transform.cc57 size_t chunk_length, in LappedTransform() argument
66 chunk_length_(chunk_length), in LappedTransform()
/external/libpng/
Dpngpread.c182 png_byte chunk_length[4]; in png_push_read_chunk() local
186 png_push_fill_buffer(png_ptr, chunk_length, 4); in png_push_read_chunk()
187 png_ptr->push_length = png_get_uint_31(png_ptr, chunk_length); in png_push_read_chunk()
538 png_byte chunk_length[4]; in png_push_read_IDAT() local
543 png_push_fill_buffer(png_ptr, chunk_length, 4); in png_push_read_IDAT()
544 png_ptr->push_length = png_get_uint_31(png_ptr, chunk_length); in png_push_read_IDAT()
Dpngpriv.h1534 const png_uint_32 chunk_length),PNG_EMPTY);
DCHANGES1179 Check chunk_length and idat_size for invalid (over PNG_MAX_UINT) lengths.
/external/pdfium/third_party/libpng16/
Dpngpread.c182 png_byte chunk_length[4]; in png_push_read_chunk() local
186 png_push_fill_buffer(png_ptr, chunk_length, 4); in png_push_read_chunk()
187 png_ptr->push_length = png_get_uint_31(png_ptr, chunk_length); in png_push_read_chunk()
534 png_byte chunk_length[4]; in png_push_read_IDAT() local
539 png_push_fill_buffer(png_ptr, chunk_length, 4); in png_push_read_IDAT()
540 png_ptr->push_length = png_get_uint_31(png_ptr, chunk_length); in png_push_read_IDAT()
/external/libpng/contrib/tools/
Dpngfix.c1556 png_uint_32 chunk_length; /* From header (or modified below) */ member
1598 chunk->chunk_length = file->length; in chunk_init()
1673 length = chunk->chunk_length; in process_zTXt_iCCP()
1702 length = chunk->chunk_length; in process_iTXt()
1952 list->lengths[(list->count)++] = file->chunk->chunk_length; in process_IDAT()
1997 file->chunk->chunk_length = rechunk_length(idat, 1/*start*/); in process_IDAT()
2592 assert(zlib->rewrite_offset < chunk->chunk_length); in zlib_run()
2594 rc = zlib_advance(zlib, chunk->chunk_length - zlib->rewrite_offset); in zlib_run()
2601 chunk->chunk_length -= zlib->extra_bytes; in zlib_run()
2857 file->chunk->chunk_length = file->length; in process_chunk()
[all …]
/external/piex/src/
Dtiff_parser.cc333 size_t chunk_length = kChunkSize; in GetData() local
335 chunk_length = length - data.size(); in GetData()
338 data.resize(processed_data + chunk_length); in GetData()
339 *error = stream->GetData(offset + processed_data, chunk_length, in GetData()
342 processed_data += chunk_length; in GetData()
/external/toybox/toys/posix/
Dfile.c219 int chunk_length = peek_be(s, 4); in do_regular_file() local
225 if (chunk_length == 13 && strstart(&s, "IHDR")) { in do_regular_file()