Lines Matching refs:cue_sheet

324 	object->length += object->data.cue_sheet.num_tracks * (  in cuesheet_calculate_length_()
334 for (i = 0; i < object->data.cue_sheet.num_tracks; i++) { in cuesheet_calculate_length_()
335 object->length += object->data.cue_sheet.tracks[i].num_indices * ( in cuesheet_calculate_length_()
581 memcpy(&to->data.cue_sheet, &object->data.cue_sheet, sizeof(FLAC__StreamMetadata_CueSheet)); in FLAC__metadata_object_clone()
582 if (object->data.cue_sheet.num_tracks == 0) { in FLAC__metadata_object_clone()
583 FLAC__ASSERT(object->data.cue_sheet.tracks == NULL); in FLAC__metadata_object_clone()
586 FLAC__ASSERT(object->data.cue_sheet.tracks != 0); in FLAC__metadata_object_clone()
587 …to->data.cue_sheet.tracks = cuesheet_track_array_copy_(object->data.cue_sheet.tracks, object->data… in FLAC__metadata_object_clone()
588 if (to->data.cue_sheet.tracks == NULL) { in FLAC__metadata_object_clone()
659 if (object->data.cue_sheet.tracks != NULL) { in FLAC__metadata_object_delete_data()
660 FLAC__ASSERT(object->data.cue_sheet.num_tracks > 0); in FLAC__metadata_object_delete_data()
661 cuesheet_track_array_delete_(object->data.cue_sheet.tracks, object->data.cue_sheet.num_tracks); in FLAC__metadata_object_delete_data()
662 object->data.cue_sheet.tracks = NULL; in FLAC__metadata_object_delete_data()
663 object->data.cue_sheet.num_tracks = 0; in FLAC__metadata_object_delete_data()
894 return compare_block_data_cuesheet_(&block1->data.cue_sheet, &block2->data.cue_sheet); in FLAC__metadata_object_is_equal()
1480 FLAC__ASSERT(track_num < object->data.cue_sheet.num_tracks); in FLAC__metadata_object_cuesheet_track_resize_indices()
1482 track = &object->data.cue_sheet.tracks[track_num]; in FLAC__metadata_object_cuesheet_track_resize_indices()
1525 FLAC__ASSERT(track_num < object->data.cue_sheet.num_tracks); in FLAC__metadata_object_cuesheet_track_insert_index()
1526 FLAC__ASSERT(index_num <= object->data.cue_sheet.tracks[track_num].num_indices); in FLAC__metadata_object_cuesheet_track_insert_index()
1528 track = &object->data.cue_sheet.tracks[track_num]; in FLAC__metadata_object_cuesheet_track_insert_index()
1554 FLAC__ASSERT(track_num < object->data.cue_sheet.num_tracks); in FLAC__metadata_object_cuesheet_track_delete_index()
1555 FLAC__ASSERT(index_num < object->data.cue_sheet.tracks[track_num].num_indices); in FLAC__metadata_object_cuesheet_track_delete_index()
1557 track = &object->data.cue_sheet.tracks[track_num]; in FLAC__metadata_object_cuesheet_track_delete_index()
1572 if (object->data.cue_sheet.tracks == NULL) { in FLAC__metadata_object_cuesheet_resize_tracks()
1573 FLAC__ASSERT(object->data.cue_sheet.num_tracks == 0); in FLAC__metadata_object_cuesheet_resize_tracks()
1576 else if ((object->data.cue_sheet.tracks = cuesheet_track_array_new_(new_num_tracks)) == NULL) in FLAC__metadata_object_cuesheet_resize_tracks()
1580 …const size_t old_size = object->data.cue_sheet.num_tracks * sizeof(FLAC__StreamMetadata_CueSheet_T… in FLAC__metadata_object_cuesheet_resize_tracks()
1587 FLAC__ASSERT(object->data.cue_sheet.num_tracks > 0); in FLAC__metadata_object_cuesheet_resize_tracks()
1590 if (new_num_tracks < object->data.cue_sheet.num_tracks) { in FLAC__metadata_object_cuesheet_resize_tracks()
1592 for (i = new_num_tracks; i < object->data.cue_sheet.num_tracks; i++) in FLAC__metadata_object_cuesheet_resize_tracks()
1593 free(object->data.cue_sheet.tracks[i].indices); in FLAC__metadata_object_cuesheet_resize_tracks()
1597 free(object->data.cue_sheet.tracks); in FLAC__metadata_object_cuesheet_resize_tracks()
1598 object->data.cue_sheet.tracks = 0; in FLAC__metadata_object_cuesheet_resize_tracks()
1600 …else if ((object->data.cue_sheet.tracks = safe_realloc_(object->data.cue_sheet.tracks, new_size)) … in FLAC__metadata_object_cuesheet_resize_tracks()
1605 … memset(object->data.cue_sheet.tracks + object->data.cue_sheet.num_tracks, 0, new_size - old_size); in FLAC__metadata_object_cuesheet_resize_tracks()
1608 object->data.cue_sheet.num_tracks = new_num_tracks; in FLAC__metadata_object_cuesheet_resize_tracks()
1617 FLAC__ASSERT(track_num < object->data.cue_sheet.num_tracks); in FLAC__metadata_object_cuesheet_set_track()
1619 return cuesheet_set_track_(object, object->data.cue_sheet.tracks + track_num, track, copy); in FLAC__metadata_object_cuesheet_set_track()
1628 FLAC__ASSERT(track_num <= object->data.cue_sheet.num_tracks); in FLAC__metadata_object_cuesheet_insert_track()
1630 cs = &object->data.cue_sheet; in FLAC__metadata_object_cuesheet_insert_track()
1656 FLAC__ASSERT(track_num < object->data.cue_sheet.num_tracks); in FLAC__metadata_object_cuesheet_delete_track()
1658 cs = &object->data.cue_sheet; in FLAC__metadata_object_cuesheet_delete_track()
1676 return FLAC__format_cuesheet_is_legal(&object->data.cue_sheet, check_cd_da_subset, violation); in FLAC__metadata_object_cuesheet_is_legal()
1711 cs = &object->data.cue_sheet; in FLAC__metadata_object_cuesheet_calculate_cddb_id()