/third_party/libsnd/src/ |
H A D | aiff.c | 803 if (mark_count > 2500) /* 2500 is close to the largest number of cues possible because of block sizes */ in aiff_read_header() 809 if (psf->cues) in aiff_read_header() 810 { free (psf->cues) ; in aiff_read_header() 811 psf->cues = NULL ; in aiff_read_header() 813 if ((psf->cues = psf_cues_alloc (mark_count)) == NULL) in aiff_read_header() 823 psf->cues->cue_points [n].indx = mark_id ; in aiff_read_header() 824 psf->cues->cue_points [n].position = 0 ; in aiff_read_header() 825 psf->cues->cue_points [n].fcc_chunk = MAKE_MARKER ('d', 'a', 't', 'a') ; /* always data */ in aiff_read_header() 826 psf->cues->cue_points [n].chunk_start = 0 ; in aiff_read_header() 827 psf->cues in aiff_read_header() [all...] |
H A D | wav.c | 491 if (cue_count > 2500) /* 2500 is close to the largest number of cues possible because of block sizes */ in wav_read_header() 499 if (psf->cues) in wav_read_header() 500 { free (psf->cues) ; in wav_read_header() 501 psf->cues = NULL ; in wav_read_header() 504 if ((psf->cues = psf_cues_alloc (cue_count)) == NULL) in wav_read_header() 515 if (cue_index < 10) /* avoid swamping log buffer with cues */ in wav_read_header() 524 psf->cues->cue_points [cue_index].indx = id ; in wav_read_header() 525 psf->cues->cue_points [cue_index].position = position ; in wav_read_header() 526 psf->cues->cue_points [cue_index].fcc_chunk = chunk_id ; in wav_read_header() 527 psf->cues in wav_read_header() [all...] |
H A D | wavlike.c | 1061 if (psf->cues) in wavlike_subchunk_parse() 1065 while (i < psf->cues->cue_count && psf->cues->cue_points [i].indx != mark_id) in wavlike_subchunk_parse() 1068 if (i < psf->cues->cue_count) in wavlike_subchunk_parse() 1069 memcpy (psf->cues->cue_points [i].name, buffer, sizeof (psf->cues->cue_points [i].name)) ; in wavlike_subchunk_parse()
|
H A D | sndfile.c | 1364 if (psf->cues != NULL) in sf_command() 1365 { *((uint32_t *) data) = psf->cues->cue_count ; in sf_command() 1375 if (psf->cues == NULL) in sf_command() 1389 if (psf->cues == NULL && (psf->cues = psf_cues_dup (data, datasize)) == NULL) in sf_command() 2994 free (psf->cues) ; in psf_close()
|
H A D | common.c | 1318 /* calculate size of SF_CUES struct given number of cues */ 1321 /* calculate number of cues in SF_CUES struct given data size */ 1350 if (psf->cues) in psf_get_cues() 1353 cue_count = SF_MIN (cue_count, psf->cues->cue_count) ; in psf_get_cues() 1354 memcpy (data, psf->cues, SF_CUES_VAR_SIZE (cue_count)) ; in psf_get_cues()
|
H A D | common.h | 414 SF_CUES *cues ; member
|
/third_party/libsnd/programs/ |
H A D | sndfile-convert.c | 378 SF_CUES cues ; in copy_metadata() local 390 memset (&cues, 0, sizeof (cues)) ; in copy_metadata() 400 if (sf_command (infile, SFC_GET_CUE, &cues, sizeof (cues)) == SF_TRUE) in copy_metadata() 401 sf_command (outfile, SFC_SET_CUE, &cues, sizeof (cues)) ; in copy_metadata()
|
/third_party/ffmpeg/libavformat/ |
H A D | matroskaenc.c | 216 mkv_cues cues; member 843 av_freep(&mkv->cues.entries); in mkv_deinit() 916 mkv_cues *cues = &mkv->cues; in mkv_add_cuepoint() local 917 mkv_cuepoint *entries = cues->entries; in mkv_add_cuepoint() 918 unsigned idx = cues->num_entries; in mkv_add_cuepoint() 923 entries = av_realloc_array(entries, cues->num_entries + 1, sizeof(mkv_cuepoint)); in mkv_add_cuepoint() 926 cues->entries = entries; in mkv_add_cuepoint() 928 /* Make sure the cues entries are sorted by pts. */ in mkv_add_cuepoint() 932 (cues in mkv_add_cuepoint() 945 mkv_assemble_cues(AVStream **streams, AVIOContext *dyn_cp, AVIOContext *cuepoint, const mkv_cues *cues, mkv_track *tracks, int num_tracks, uint64_t offset) mkv_assemble_cues() argument 2952 AVIOContext *cues = NULL; mkv_write_trailer() local [all...] |
/third_party/libsnd/tests/ |
H A D | command_test.c | 150 { /* 2500 is close to the largest number of cues possible because of block sizes (enforced in aiff.c, wav.c) */ in main() 897 SF_CUES cues ; in cue_rw_test() local 903 sf_command (sndfile, SFC_GET_CUE_COUNT, &cues.cue_count, sizeof (cues.cue_count)) != SF_TRUE, in cue_rw_test() 908 cues.cue_count != 3, in cue_rw_test() 909 "\nLine %d: Expected cue_count (%u) to be 3.\n\n", __LINE__, cues.cue_count in cue_rw_test() 912 if (sf_command (sndfile, SFC_GET_CUE, &cues, sizeof (cues)) == SF_TRUE) in cue_rw_test() 913 { cues.cue_points [1].sample_offset = 3 ; in cue_rw_test() 915 if (sf_command (sndfile, SFC_SET_CUE, &cues, sizeo in cue_rw_test() [all...] |
/third_party/ffmpeg/tests/fate/ |
H A D | matroska.mak | 78 += fate-matroska-move-cues-to-front 79 fate-matroska-move-cues-to-front: CMD = transcode wav $(TARGET_SAMPLES)/audio-reference/divertimenti_2ch_96kHz_s24.wav matroska "-map 0 -map 0 -c:a:0 pcm_s24be -c:a:1 copy -cluster_time_limit 5 -cues_to_front yes -metadata_header_padding 7840 -write_crc32 0" "-map 0 -c copy -t 0.1"
|