/third_party/flutter/skia/third_party/externals/spirv-tools/source/util/ |
D | bit_stream.cpp | 80 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 …]
|
D | bit_stream.h | 236 void WriteVariableWidthU64(uint64_t val, size_t chunk_length); 237 void WriteVariableWidthU32(uint32_t val, size_t chunk_length); 238 void WriteVariableWidthU16(uint16_t val, size_t chunk_length); 239 void WriteVariableWidthU8(uint8_t val, size_t chunk_length); 241 int64_t val, size_t chunk_length, size_t zigzag_exponent); 243 int32_t val, size_t chunk_length, size_t zigzag_exponent); 245 int16_t val, size_t chunk_length, size_t zigzag_exponent); 247 int8_t val, size_t chunk_length, size_t zigzag_exponent); 394 bool ReadVariableWidthU64(uint64_t* val, size_t chunk_length); 395 bool ReadVariableWidthU32(uint32_t* val, size_t chunk_length); [all …]
|
/third_party/ffmpeg/libavcodec/ |
D | png_parser.c | 33 uint32_t chunk_length; ///< length of the current chunk member 75 ppc->chunk_length = ppc->pc.state; in png_parse() 76 if (ppc->chunk_length > 0x7fffffff) { in png_parse() 80 ppc->chunk_length += 4; in png_parse() 82 if (ppc->chunk_length >= buf_size - i) in png_parse() 83 ppc->remaining_size = ppc->chunk_length - buf_size + i + 1; in png_parse() 88 next = ppc->chunk_length + i + 1; in png_parse() 95 i += ppc->chunk_length; in png_parse()
|
/third_party/nghttp2/lib/ |
D | nghttp2_buf.c | 91 static int buf_chain_new(nghttp2_buf_chain **chain, size_t chunk_length, in buf_chain_new() argument 102 rv = nghttp2_buf_init2(&(*chain)->buf, chunk_length, mem); in buf_chain_new() 116 int nghttp2_bufs_init(nghttp2_bufs *bufs, size_t chunk_length, size_t max_chunk, in nghttp2_bufs_init() argument 118 return nghttp2_bufs_init2(bufs, chunk_length, max_chunk, 0, mem); in nghttp2_bufs_init() 121 int nghttp2_bufs_init2(nghttp2_bufs *bufs, size_t chunk_length, in nghttp2_bufs_init2() argument 123 return nghttp2_bufs_init3(bufs, chunk_length, max_chunk, max_chunk, offset, in nghttp2_bufs_init2() 127 int nghttp2_bufs_init3(nghttp2_bufs *bufs, size_t chunk_length, in nghttp2_bufs_init3() argument 133 if (chunk_keep == 0 || max_chunk < chunk_keep || chunk_length < offset) { in nghttp2_bufs_init3() 137 rv = buf_chain_new(&chain, chunk_length, mem); in nghttp2_bufs_init3() 150 bufs->chunk_length = chunk_length; in nghttp2_bufs_init3() [all …]
|
D | nghttp2_buf.h | 144 size_t chunk_length; member 161 int nghttp2_bufs_init(nghttp2_bufs *bufs, size_t chunk_length, size_t max_chunk, 168 int nghttp2_bufs_init2(nghttp2_bufs *bufs, size_t chunk_length, 190 int nghttp2_bufs_init3(nghttp2_bufs *bufs, size_t chunk_length, 257 int nghttp2_bufs_realloc(nghttp2_bufs *bufs, size_t chunk_length);
|
/third_party/node/deps/nghttp2/lib/ |
D | nghttp2_buf.c | 91 static int buf_chain_new(nghttp2_buf_chain **chain, size_t chunk_length, in buf_chain_new() argument 102 rv = nghttp2_buf_init2(&(*chain)->buf, chunk_length, mem); in buf_chain_new() 116 int nghttp2_bufs_init(nghttp2_bufs *bufs, size_t chunk_length, size_t max_chunk, in nghttp2_bufs_init() argument 118 return nghttp2_bufs_init2(bufs, chunk_length, max_chunk, 0, mem); in nghttp2_bufs_init() 121 int nghttp2_bufs_init2(nghttp2_bufs *bufs, size_t chunk_length, in nghttp2_bufs_init2() argument 123 return nghttp2_bufs_init3(bufs, chunk_length, max_chunk, max_chunk, offset, in nghttp2_bufs_init2() 127 int nghttp2_bufs_init3(nghttp2_bufs *bufs, size_t chunk_length, in nghttp2_bufs_init3() argument 133 if (chunk_keep == 0 || max_chunk < chunk_keep || chunk_length < offset) { in nghttp2_bufs_init3() 137 rv = buf_chain_new(&chain, chunk_length, mem); in nghttp2_bufs_init3() 150 bufs->chunk_length = chunk_length; in nghttp2_bufs_init3() [all …]
|
D | nghttp2_buf.h | 144 size_t chunk_length; member 161 int nghttp2_bufs_init(nghttp2_bufs *bufs, size_t chunk_length, size_t max_chunk, 168 int nghttp2_bufs_init2(nghttp2_bufs *bufs, size_t chunk_length, 190 int nghttp2_bufs_init3(nghttp2_bufs *bufs, size_t chunk_length, 257 int nghttp2_bufs_realloc(nghttp2_bufs *bufs, size_t chunk_length);
|
/third_party/glib/glib/tests/ |
D | checksum.c | 967 int chunk_length; in test_checksum() local 969 for (chunk_length = MIN (test->length, 1); chunk_length < test->length; chunk_length++) in test_checksum() 972 for (p = FIXED_STR; p < FIXED_STR + test->length; p += chunk_length) in test_checksum() 975 MIN (chunk_length, test->length - (p - FIXED_STR))); in test_checksum() 1037 int chunk_length; in test_checksum_reset() local 1044 for (chunk_length = MIN (test->length, 1); chunk_length < test->length; chunk_length++) in test_checksum_reset() 1046 for (p = FIXED_STR; p < FIXED_STR + test->length; p += chunk_length) in test_checksum_reset() 1049 MIN (chunk_length, test->length - (p - FIXED_STR))); in test_checksum_reset()
|
/third_party/flutter/skia/third_party/externals/spirv-tools/test/ |
D | bit_stream.cpp | 1046 const size_t chunk_length = size_t(i % 16 + 1); in TEST() local 1049 writer.WriteVariableWidthU64(val, chunk_length); in TEST() 1053 ASSERT_TRUE(reader.ReadVariableWidthU64(&read_val, chunk_length)); in TEST() 1055 ASSERT_EQ(val, read_val) << "Chunk length " << chunk_length; in TEST() 1062 const size_t chunk_length = size_t(i % 16 + 1); in TEST() local 1066 writer.WriteVariableWidthS64(val, chunk_length, zigzag_exponent); in TEST() 1070 ASSERT_TRUE(reader.ReadVariableWidthS64(&read_val, chunk_length, in TEST() 1073 ASSERT_EQ(val, read_val) << "Chunk length " << chunk_length; in TEST() 1080 const size_t chunk_length = i % 16 + 1; in TEST() local 1083 writer.WriteVariableWidthU32(val, chunk_length); in TEST() [all …]
|
/third_party/libsoup/tests/ |
D | streaming-test.c | 17 gsize chunk_length; in write_next_chunk() local 19 chunk_length = MIN (RESPONSE_CHUNK_SIZE, full_response->length - *offset); in write_next_chunk() 20 if (chunk_length > 0) { in write_next_chunk() 25 chunk_length); in write_next_chunk() 26 *offset += chunk_length; in write_next_chunk()
|
D | chunk-io-test.c | 355 gssize chunk_length, chunk_total; in do_io_tests() local 465 total = chunk_length = chunk_total = 0; in do_io_tests() 467 if (chunk_total == chunk_length) { in do_io_tests() 468 chunk_length = MIN (CHUNK_SIZE, raw_contents->length - total); in do_io_tests() 472 chunk_length - chunk_total, NULL, &error); in do_io_tests() 510 total = chunk_length = chunk_total = 0; in do_io_tests() 512 if (chunk_total == chunk_length) { in do_io_tests() 513 chunk_length = MIN (CHUNK_SIZE, raw_contents->length - total); in do_io_tests() 518 chunk_length - chunk_total, in do_io_tests()
|
/third_party/libsnd/src/ |
D | wavlike.c | 929 wavlike_subchunk_parse (SF_PRIVATE *psf, int chunk, uint32_t chunk_length) in wavlike_subchunk_parse() argument 936 if (chunk_length <= 8) in wavlike_subchunk_parse() 938 psf_log_printf (psf, "%M : %u (weird length)\n", chunk, chunk_length) ; in wavlike_subchunk_parse() 939 psf_binheader_readf (psf, "mj", &chunk, chunk_length - 4) ; in wavlike_subchunk_parse() 944 if (current_pos + chunk_length > psf->filelength) in wavlike_subchunk_parse() 945 …{ psf_log_printf (psf, "%M : %u (should be %d)\n", chunk, chunk_length, (int) (psf->filelength - c… in wavlike_subchunk_parse() 946 chunk_length = psf->filelength - current_pos ; in wavlike_subchunk_parse() 949 psf_log_printf (psf, "%M : %u\n", chunk, chunk_length) ; in wavlike_subchunk_parse() 951 while (bytesread < chunk_length) in wavlike_subchunk_parse() 967 if (chunk_length > bytesread) in wavlike_subchunk_parse() [all …]
|
/third_party/boost/boost/gil/extension/io/targa/detail/ |
D | read.hpp | 255 uint8_t chunk_length = current_byte - 127; in read_rle_data() local 263 for( uint8_t i = 0; i < chunk_length; ++i, pixel += bytes_per_pixel ) in read_rle_data() 270 uint8_t chunk_length = current_byte + 1; in read_rle_data() local 273 size_t pixels_written = chunk_length * bytes_per_pixel; in read_rle_data()
|
/third_party/libpng/ |
D | pngpread.c | 182 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()
|
/third_party/flutter/skia/third_party/externals/libpng/ |
D | pngpread.c | 182 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()
|
/third_party/skia/third_party/externals/libpng/ |
D | pngpread.c | 182 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()
|
/third_party/skia/third_party/externals/piex/src/ |
D | tiff_parser.cc | 333 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()
|
/third_party/flutter/skia/third_party/externals/piex/src/ |
D | tiff_parser.cc | 333 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()
|
/third_party/flutter/skia/third_party/externals/libpng/contrib/tools/ |
D | pngfix.c | 1556 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 …]
|
/third_party/skia/third_party/externals/libpng/contrib/tools/ |
D | pngfix.c | 1556 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 …]
|
/third_party/libpng/contrib/tools/ |
D | pngfix.c | 1556 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 …]
|
/third_party/flutter/skia/third_party/externals/spirv-tools/source/comp/ |
D | markv_codec.cpp | 475 const size_t chunk_length = in EncodeOperandWord() local 477 if (chunk_length) { in EncodeOperandWord() 478 writer_.WriteVariableWidthU32(word, chunk_length); in EncodeOperandWord() 577 const size_t chunk_length = GetOperandVariableWidthChunkLength(type); in DecodeOperandWord() local 578 if (chunk_length) { in DecodeOperandWord() 579 return reader_.ReadVariableWidthU32(word, chunk_length); in DecodeOperandWord()
|
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet/ |
D | sctp_asconf.c | 640 if (ntohs(cp->ch.chunk_length) < sizeof(struct sctp_asconf_chunk)) { in sctp_handle_asconf() 643 ntohs(cp->ch.chunk_length)); in sctp_handle_asconf() 664 asconf_limit = offset + ntohs(cp->ch.chunk_length); in sctp_handle_asconf() 702 ack_cp->ch.chunk_length = sizeof(struct sctp_asconf_ack_chunk); in sctp_handle_asconf() 800 ack_cp->ch.chunk_length += SCTP_BUF_LEN(m_result); in sctp_handle_asconf() 822 ack_cp->ch.chunk_length = htons(ack_cp->ch.chunk_length); in sctp_handle_asconf() 1716 if (ntohs(cp->ch.chunk_length) < sizeof(struct sctp_asconf_ack_chunk)) { in sctp_handle_asconf_ack() 1719 ntohs(cp->ch.chunk_length)); in sctp_handle_asconf_ack() 1762 ack_length = ntohs(cp->ch.chunk_length) - in sctp_handle_asconf_ack() 2404 asconf_limit = ntohs(acp->ch.chunk_length); in sctp_is_addr_pending() [all …]
|
D | sctp_input.c | 112 if (ntohs(cp->ch.chunk_length) < sizeof(struct sctp_init_chunk)) { in sctp_handle_init() 174 offset + ntohs(cp->ch.chunk_length))) { in sctp_handle_init() 525 initack_limit = offset + ntohs(cp->ch.chunk_length); in sctp_process_init_ack() 626 if (ntohs(cp->ch.chunk_length) != sizeof(struct sctp_heartbeat_chunk)) { in sctp_handle_heartbeat_ack() 861 len = ntohs(abort->ch.chunk_length); in sctp_handle_abort() 970 if (ntohs(cp->ch.chunk_length) != sizeof(struct sctp_shutdown_chunk)) { in sctp_handle_shutdown() 1246 remaining_length = ntohs(ch->chunk_length); in sctp_handle_error() 1431 if (ntohs(cp->ch.chunk_length) < sizeof(struct sctp_init_ack_chunk)) { in sctp_handle_init_ack() 1654 initack_offset = init_offset + SCTP_SIZE32(ntohs(init_cp->ch.chunk_length)); in sctp_process_cookie_existing() 2202 initack_offset = init_offset + SCTP_SIZE32(ntohs(init_cp->ch.chunk_length)); [all …]
|
D | sctp_output.c | 5141 init->ch.chunk_length = 0; 5338 init->ch.chunk_length = htons(chunk_len); 5399 limit = ntohs(cp->chunk_length) - sizeof(struct sctp_init_chunk); 6340 initack->ch.chunk_length = 0; 6625 initack->ch.chunk_length = htons(chunk_len); 8157 dchkh->ch.chunk_length = htons(chk->send_size); 8170 ndchkh->ch.chunk_length = htons(chk->send_size); 9480 uint32_t chunk_length; local 9489 chunk_length = 0; 9491 chunk_length += SCTP_BUF_LEN(mat); [all …]
|