Lines Matching refs:num_indices

149 		FLAC__ASSERT(from->num_indices == 0);  in copy_track_()
153 FLAC__ASSERT(from->num_indices > 0); in copy_track_()
154 …if(0 == (x = (FLAC__StreamMetadata_CueSheet_Index*)safe_malloc_mul_2op_(from->num_indices, /*times… in copy_track_()
156 memcpy(x, from->indices, from->num_indices * sizeof(FLAC__StreamMetadata_CueSheet_Index)); in copy_track_()
336 object->length += object->data.cue_sheet.tracks[i].num_indices * ( in cuesheet_calculate_length_()
344 static FLAC__StreamMetadata_CueSheet_Index *cuesheet_track_index_array_new_(unsigned num_indices) in cuesheet_track_index_array_new_() argument
346 FLAC__ASSERT(num_indices > 0); in cuesheet_track_index_array_new_()
348 …return (FLAC__StreamMetadata_CueSheet_Index*)safe_calloc_(num_indices, sizeof(FLAC__StreamMetadata… in cuesheet_track_index_array_new_()
366 FLAC__ASSERT(object_array[i].num_indices > 0); in cuesheet_track_array_delete_()
406 …FLAC__ASSERT((0 != src->indices && src->num_indices > 0) || (0 == src->indices && src->num_indices in cuesheet_set_track_()
815 if(block1->tracks[i].num_indices != block2->tracks[i].num_indices) in compare_block_data_cuesheet_()
818 FLAC__ASSERT(block1->tracks[i].num_indices > 0); in compare_block_data_cuesheet_()
819 for(j = 0; j < block1->tracks[i].num_indices; j++) { in compare_block_data_cuesheet_()
1457 FLAC__ASSERT(object->num_indices > 0); in FLAC__metadata_object_cuesheet_track_delete_data()
1478 FLAC__ASSERT(track->num_indices == 0); in FLAC__metadata_object_cuesheet_track_resize_indices()
1485 const size_t old_size = track->num_indices * sizeof(FLAC__StreamMetadata_CueSheet_Index); in FLAC__metadata_object_cuesheet_track_resize_indices()
1492 FLAC__ASSERT(track->num_indices > 0); in FLAC__metadata_object_cuesheet_track_resize_indices()
1503 memset(track->indices + track->num_indices, 0, new_size - old_size); in FLAC__metadata_object_cuesheet_track_resize_indices()
1506 track->num_indices = new_num_indices; in FLAC__metadata_object_cuesheet_track_resize_indices()
1519 FLAC__ASSERT(index_num <= object->data.cue_sheet.tracks[track_num].num_indices); in FLAC__metadata_object_cuesheet_track_insert_index()
1523 if(!FLAC__metadata_object_cuesheet_track_resize_indices(object, track_num, track->num_indices+1)) in FLAC__metadata_object_cuesheet_track_insert_index()
1527 …>indices[index_num], sizeof(FLAC__StreamMetadata_CueSheet_Index)*(track->num_indices-1-index_num)); in FLAC__metadata_object_cuesheet_track_insert_index()
1548 FLAC__ASSERT(index_num < object->data.cue_sheet.tracks[track_num].num_indices); in FLAC__metadata_object_cuesheet_track_delete_index()
1553 …ndices[index_num+1], sizeof(FLAC__StreamMetadata_CueSheet_Index)*(track->num_indices-index_num-1)); in FLAC__metadata_object_cuesheet_track_delete_index()
1555 FLAC__metadata_object_cuesheet_track_resize_indices(object, track_num, track->num_indices-1); in FLAC__metadata_object_cuesheet_track_delete_index()
1631 cs->tracks[track_num].num_indices = 0; in FLAC__metadata_object_cuesheet_insert_track()
1660 cs->tracks[cs->num_tracks-1].num_indices = 0; in FLAC__metadata_object_cuesheet_delete_track()
1676 if (track >= (cs->num_tracks-1) || cs->tracks[track].num_indices < 1) in get_index_01_offset_()
1680 else if (cs->tracks[track].num_indices < 2) in get_index_01_offset_()