/third_party/libsnd/tests/ |
D | chunk_test.c | 110 SF_CHUNK_INFO chunk_info ; in chunk_test_helper() local 132 memset (&chunk_info, 0, sizeof (chunk_info)) ; in chunk_test_helper() 133 snprintf (chunk_info.id, sizeof (chunk_info.id), "Test") ; in chunk_test_helper() 134 chunk_info.id_size = 4 ; in chunk_test_helper() 135 chunk_info.data = strdup (testdata) ; in chunk_test_helper() 136 chunk_info.datalen = strlen (chunk_info.data) ; in chunk_test_helper() 138 length_before = chunk_info.datalen ; in chunk_test_helper() 140 err = sf_set_chunk (file, &chunk_info) ; in chunk_test_helper() 146 memset (chunk_info.data, 0, chunk_info.datalen) ; in chunk_test_helper() 147 free (chunk_info.data) ; in chunk_test_helper() [all …]
|
/third_party/e2fsprogs/misc/ |
D | e2freefrag.c | 72 static void init_chunk_info(ext2_filsys fs, struct chunk_info *info) in init_chunk_info() 95 static void update_chunk_stats(struct chunk_info *info, in update_chunk_stats() 114 static void scan_block_bitmap(ext2_filsys fs, struct chunk_info *info) in scan_block_bitmap() 166 static int scan_online(ext2_filsys fs, struct chunk_info *info, in scan_online() 245 static errcode_t scan_offline(ext2_filsys fs, struct chunk_info *info, in scan_offline() 258 static errcode_t dump_chunk_info(ext2_filsys fs, struct chunk_info *info, in dump_chunk_info() 335 static void collect_info(ext2_filsys fs, struct chunk_info *chunk_info, FILE *f) in collect_info() argument 343 init_chunk_info(fs, chunk_info); in collect_info() 344 if (!scan_online(fs, chunk_info, &free_blks)) { in collect_info() 345 init_chunk_info(fs, chunk_info); in collect_info() [all …]
|
D | e2freefrag.h | 11 struct chunk_info { struct
|
/third_party/libsnd/src/ |
D | alac.c | 173 SF_CHUNK_INFO chunk_info ; in alac_close() local 189 memset (&chunk_info, 0, sizeof (chunk_info)) ; in alac_close() 190 chunk_info.id_size = snprintf (chunk_info.id, sizeof (chunk_info.id), "kuki") ; in alac_close() 191 chunk_info.data = kuki_data ; in alac_close() 192 chunk_info.datalen = plac->kuki_size ; in alac_close() 193 psf_save_write_chunk (&psf->wchunks, &chunk_info) ; in alac_close() 195 memset (&chunk_info, 0, sizeof (chunk_info)) ; in alac_close() 196 chunk_info.id_size = snprintf (chunk_info.id, sizeof (chunk_info.id), "pakt") ; in alac_close() 197 chunk_info.data = alac_pakt_encode (psf, &pakt_size) ; in alac_close() 198 chunk_info.datalen = pakt_size ; in alac_close() [all …]
|
D | chunk.c | 218 psf_save_write_chunk (WRITE_CHUNKS * pchk, const SF_CHUNK_INFO * chunk_info) in psf_save_write_chunk() argument 242 len = chunk_info->datalen ; in psf_save_write_chunk() 245 snprintf (u.str, sizeof (u.str), "%.4s", chunk_info->id) ; in psf_save_write_chunk() 247 …pchk->chunks [pchk->used].hash = strlen (chunk_info->id) > 4 ? hash_of_str (chunk_info->id) : u.ma… in psf_save_write_chunk() 250 pchk->chunks [pchk->used].data = psf_memdup (chunk_info->data, chunk_info->datalen) ; in psf_save_write_chunk()
|
D | rf64.c | 76 static int rf64_set_chunk (SF_PRIVATE *psf, const SF_CHUNK_INFO * chunk_info) ; 78 …_get_chunk_size (SF_PRIVATE *psf, const SF_CHUNK_ITERATOR * iterator, SF_CHUNK_INFO * chunk_info) ; 79 …_get_chunk_data (SF_PRIVATE *psf, const SF_CHUNK_ITERATOR * iterator, SF_CHUNK_INFO * chunk_info) ; 853 rf64_set_chunk (SF_PRIVATE *psf, const SF_CHUNK_INFO * chunk_info) in rf64_set_chunk() argument 854 { return psf_save_write_chunk (&psf->wchunks, chunk_info) ; in rf64_set_chunk() 863 …64_get_chunk_size (SF_PRIVATE *psf, const SF_CHUNK_ITERATOR * iterator, SF_CHUNK_INFO * chunk_info) in rf64_get_chunk_size() argument 869 chunk_info->datalen = psf->rchunks.chunks [indx].len ; in rf64_get_chunk_size() 875 …64_get_chunk_data (SF_PRIVATE *psf, const SF_CHUNK_ITERATOR * iterator, SF_CHUNK_INFO * chunk_info) in rf64_get_chunk_data() argument 882 if (chunk_info->data == NULL) in rf64_get_chunk_data() 885 chunk_info->id_size = psf->rchunks.chunks [indx].id_size ; in rf64_get_chunk_data() [all …]
|
D | caf.c | 107 static int caf_set_chunk (SF_PRIVATE *psf, const SF_CHUNK_INFO * chunk_info) ; 109 …_get_chunk_size (SF_PRIVATE *psf, const SF_CHUNK_ITERATOR * iterator, SF_CHUNK_INFO * chunk_info) ; 110 …_get_chunk_data (SF_PRIVATE *psf, const SF_CHUNK_ITERATOR * iterator, SF_CHUNK_INFO * chunk_info) ; 992 caf_set_chunk (SF_PRIVATE *psf, const SF_CHUNK_INFO * chunk_info) in caf_set_chunk() argument 993 { return psf_save_write_chunk (&psf->wchunks, chunk_info) ; in caf_set_chunk() 1002 caf_get_chunk_size (SF_PRIVATE *psf, const SF_CHUNK_ITERATOR * iterator, SF_CHUNK_INFO * chunk_info) in caf_get_chunk_size() argument 1008 chunk_info->datalen = psf->rchunks.chunks [indx].len ; in caf_get_chunk_size() 1014 caf_get_chunk_data (SF_PRIVATE *psf, const SF_CHUNK_ITERATOR * iterator, SF_CHUNK_INFO * chunk_info) in caf_get_chunk_data() argument 1021 if (chunk_info->data == NULL) in caf_get_chunk_data() 1024 chunk_info->id_size = psf->rchunks.chunks [indx].id_size ; in caf_get_chunk_data() [all …]
|
D | wav.c | 149 static int wav_set_chunk (SF_PRIVATE *psf, const SF_CHUNK_INFO * chunk_info) ; 151 …_get_chunk_size (SF_PRIVATE *psf, const SF_CHUNK_ITERATOR * iterator, SF_CHUNK_INFO * chunk_info) ; 152 …_get_chunk_data (SF_PRIVATE *psf, const SF_CHUNK_ITERATOR * iterator, SF_CHUNK_INFO * chunk_info) ; 1530 wav_set_chunk (SF_PRIVATE *psf, const SF_CHUNK_INFO * chunk_info) in wav_set_chunk() argument 1531 { return psf_save_write_chunk (&psf->wchunks, chunk_info) ; in wav_set_chunk() 1540 wav_get_chunk_size (SF_PRIVATE *psf, const SF_CHUNK_ITERATOR * iterator, SF_CHUNK_INFO * chunk_info) in wav_get_chunk_size() argument 1546 chunk_info->datalen = psf->rchunks.chunks [indx].len ; in wav_get_chunk_size() 1552 wav_get_chunk_data (SF_PRIVATE *psf, const SF_CHUNK_ITERATOR * iterator, SF_CHUNK_INFO * chunk_info) in wav_get_chunk_data() argument 1559 if (chunk_info->data == NULL) in wav_get_chunk_data() 1562 chunk_info->id_size = psf->rchunks.chunks [indx].id_size ; in wav_get_chunk_data() [all …]
|
D | common.h | 551 int (*set_chunk) (struct sf_private_tag*, const SF_CHUNK_INFO * chunk_info) ; 553 …nk_size) (struct sf_private_tag*, const SF_CHUNK_ITERATOR * iterator, SF_CHUNK_INFO * chunk_info) ; 554 …nk_data) (struct sf_private_tag*, const SF_CHUNK_ITERATOR * iterator, SF_CHUNK_INFO * chunk_info) ; 967 int psf_save_write_chunk (WRITE_CHUNKS * pchk, const SF_CHUNK_INFO * chunk_info) ; 975 fourcc_to_marker (const SF_CHUNK_INFO * chunk_info) in fourcc_to_marker() argument 978 if (chunk_info->id_size != 4) in fourcc_to_marker() 981 cptr = (const unsigned char *) chunk_info->id ; in fourcc_to_marker()
|
D | aiff.c | 225 static int aiff_set_chunk (SF_PRIVATE *psf, const SF_CHUNK_INFO * chunk_info) ; 227 …_get_chunk_size (SF_PRIVATE *psf, const SF_CHUNK_ITERATOR * iterator, SF_CHUNK_INFO * chunk_info) ; 228 …_get_chunk_data (SF_PRIVATE *psf, const SF_CHUNK_ITERATOR * iterator, SF_CHUNK_INFO * chunk_info) ; 1793 aiff_set_chunk (SF_PRIVATE *psf, const SF_CHUNK_INFO * chunk_info) in aiff_set_chunk() argument 1794 { return psf_save_write_chunk (&psf->wchunks, chunk_info) ; in aiff_set_chunk() 1803 …ff_get_chunk_size (SF_PRIVATE *psf, const SF_CHUNK_ITERATOR * iterator, SF_CHUNK_INFO * chunk_info) in aiff_get_chunk_size() argument 1809 chunk_info->datalen = psf->rchunks.chunks [indx].len ; in aiff_get_chunk_size() 1815 …ff_get_chunk_data (SF_PRIVATE *psf, const SF_CHUNK_ITERATOR * iterator, SF_CHUNK_INFO * chunk_info) in aiff_get_chunk_data() argument 1822 if (chunk_info->data == NULL) in aiff_get_chunk_data() 1825 chunk_info->id_size = psf->rchunks.chunks [indx].id_size ; in aiff_get_chunk_data() [all …]
|
D | sndfile.c | 3291 sf_set_chunk (SNDFILE * sndfile, const SF_CHUNK_INFO * chunk_info) in sf_set_chunk() argument 3296 if (chunk_info == NULL || chunk_info->data == NULL) in sf_set_chunk() 3300 return psf->set_chunk (psf, chunk_info) ; in sf_set_chunk() 3306 sf_get_chunk_iterator (SNDFILE * sndfile, const SF_CHUNK_INFO * chunk_info) in sf_get_chunk_iterator() argument 3311 if (chunk_info) in sf_get_chunk_iterator() 3312 return psf_get_chunk_iterator (psf, chunk_info->id) ; in sf_get_chunk_iterator() 3331 sf_get_chunk_size (const SF_CHUNK_ITERATOR * iterator, SF_CHUNK_INFO * chunk_info) in sf_get_chunk_size() argument 3337 if (chunk_info == NULL) in sf_get_chunk_size() 3341 return psf->get_chunk_size (psf, iterator, chunk_info) ; in sf_get_chunk_size() 3347 sf_get_chunk_data (const SF_CHUNK_ITERATOR * iterator, SF_CHUNK_INFO * chunk_info) in sf_get_chunk_data() argument [all …]
|
/third_party/libpng/contrib/libtests/ |
D | pngunknown.c | 191 } chunk_info[] = { variable 332 #define NINFO ((int)((sizeof chunk_info)/(sizeof chunk_info[0]))) 339 chunk_info[i].keep = 0; in clear_keep() 348 if (memcmp(chunk_info[i].name, name, 4) == 0) in find() 361 if (memcmp(chunk_info[i].name, name, 4) == 0) in findb() 373 while (--i >= 0) if (chunk_info[i].flag == flag) return i; in find_by_flag() 527 keep = chunk_info[chunk].keep; in read_callback() 533 if (chunk_info[chunk].unknown) in read_callback() 545 d->test, chunk_info[chunk].keep); in read_callback() 564 png_uint_32 flag = chunk_info[chunk].flag; in read_callback() [all …]
|
/third_party/skia/third_party/externals/libpng/contrib/libtests/ |
D | pngunknown.c | 191 } chunk_info[] = { variable 332 #define NINFO ((int)((sizeof chunk_info)/(sizeof chunk_info[0]))) 339 chunk_info[i].keep = 0; in clear_keep() 348 if (memcmp(chunk_info[i].name, name, 4) == 0) in find() 361 if (memcmp(chunk_info[i].name, name, 4) == 0) in findb() 373 while (--i >= 0) if (chunk_info[i].flag == flag) return i; in find_by_flag() 527 keep = chunk_info[chunk].keep; in read_callback() 533 if (chunk_info[chunk].unknown) in read_callback() 545 d->test, chunk_info[chunk].keep); in read_callback() 564 png_uint_32 flag = chunk_info[chunk].flag; in read_callback() [all …]
|
/third_party/flutter/skia/third_party/externals/libpng/contrib/libtests/ |
D | pngunknown.c | 191 } chunk_info[] = { variable 332 #define NINFO ((int)((sizeof chunk_info)/(sizeof chunk_info[0]))) 339 chunk_info[i].keep = 0; in clear_keep() 348 if (memcmp(chunk_info[i].name, name, 4) == 0) in find() 361 if (memcmp(chunk_info[i].name, name, 4) == 0) in findb() 373 while (--i >= 0) if (chunk_info[i].flag == flag) return i; in find_by_flag() 527 keep = chunk_info[chunk].keep; in read_callback() 533 if (chunk_info[chunk].unknown) in read_callback() 545 d->test, chunk_info[chunk].keep); in read_callback() 564 png_uint_32 flag = chunk_info[chunk].flag; in read_callback() [all …]
|
/third_party/libsnd/include/ |
D | sndfile.h | 749 int sf_set_chunk (SNDFILE * sndfile, const SF_CHUNK_INFO * chunk_info); 772 SF_CHUNK_ITERATOR * sf_get_chunk_iterator (SNDFILE * sndfile, const SF_CHUNK_INFO * chunk_info); 798 int sf_get_chunk_size (const SF_CHUNK_ITERATOR * it, SF_CHUNK_INFO * chunk_info); 811 int sf_get_chunk_data (const SF_CHUNK_ITERATOR * it, SF_CHUNK_INFO * chunk_info);
|
D | sndfile.h.in | 795 ** The chunk_info->data pointer must be valid until the file is closed. 798 int sf_set_chunk (SNDFILE * sndfile, const SF_CHUNK_INFO * chunk_info) ; 805 /* Get an iterator for all chunks matching chunk_info. 806 ** The iterator will point to the first chunk matching chunk_info. 807 ** Chunks are matching, if (chunk_info->id) matches the first 808 ** (chunk_info->id_size) bytes of a chunk found in the SNDFILE* handle. 809 ** If chunk_info is NULL, an iterator to all chunks in the SNDFILE* handle 811 ** The values of chunk_info->datalen and chunk_info->data are ignored. 822 sf_get_chunk_iterator (SNDFILE * sndfile, const SF_CHUNK_INFO * chunk_info) ; 845 ** If the chunk doesn't exist chunk_info->datalen will be zero, and the [all …]
|
/third_party/libsnd/docs/ |
D | api.md | 598 int sf_set_chunk (SNDFILE *sndfile, const SF_CHUNK_INFO *chunk_info) ; 603 `chunk_info->data` pointer must be valid until the file is closed. 623 sf_get_chunk_iterator (SNDFILE *sndfile, const SF_CHUNK_INFO *chunk_info) ; 626 Get an iterator for all chunks matching `chunk_info`. 635 The iterator will point to the first chunk matching `chunk_info`. Chunks are 636 matching, if (`chunk_info->id`) matches the first (`chunk_info->id_size`) bytes 637 of a chunk found in the `SNDFILE*` handle. If `chunk_info` is `NULL`, an 639 `chunk_info->datalen` and `chunk_info->data` are ignored. If no matching chunks 673 sf_get_chunk_size (const SF_CHUNK_ITERATOR * it, SF_CHUNK_INFO * chunk_info) ; 683 If the chunk doesn't exist `chunk_info->datalen` will be zero, and the `id` and [all …]
|