Lines Matching refs:seek_table
167 object->length = object->data.seek_table.num_points * FLAC__STREAM_METADATA_SEEKPOINT_LENGTH; in seektable_calculate_length_()
552 to->data.seek_table.num_points = object->data.seek_table.num_points; in FLAC__metadata_object_clone()
553 …if(to->data.seek_table.num_points > SIZE_MAX / sizeof(FLAC__StreamMetadata_SeekPoint)) { /* overfl… in FLAC__metadata_object_clone()
557 …y_bytes_((FLAC__byte**)&to->data.seek_table.points, (FLAC__byte*)object->data.seek_table.points, o… in FLAC__metadata_object_clone()
646 if(0 != object->data.seek_table.points) { in FLAC__metadata_object_delete_data()
647 free(object->data.seek_table.points); in FLAC__metadata_object_delete_data()
648 object->data.seek_table.points = 0; in FLAC__metadata_object_delete_data()
891 return compare_block_data_seektable_(&block1->data.seek_table, &block2->data.seek_table); in FLAC__metadata_object_is_equal()
934 if(0 == object->data.seek_table.points) { in FLAC__metadata_object_seektable_resize_points()
935 FLAC__ASSERT(object->data.seek_table.num_points == 0); in FLAC__metadata_object_seektable_resize_points()
938 else if(0 == (object->data.seek_table.points = seekpoint_array_new_(new_num_points))) in FLAC__metadata_object_seektable_resize_points()
942 …const size_t old_size = object->data.seek_table.num_points * sizeof(FLAC__StreamMetadata_SeekPoint… in FLAC__metadata_object_seektable_resize_points()
949 FLAC__ASSERT(object->data.seek_table.num_points > 0); in FLAC__metadata_object_seektable_resize_points()
952 free(object->data.seek_table.points); in FLAC__metadata_object_seektable_resize_points()
953 object->data.seek_table.points = 0; in FLAC__metadata_object_seektable_resize_points()
955 …else if(0 == (object->data.seek_table.points = (FLAC__StreamMetadata_SeekPoint*)realloc(object->da… in FLAC__metadata_object_seektable_resize_points()
961 for(i = object->data.seek_table.num_points; i < new_num_points; i++) { in FLAC__metadata_object_seektable_resize_points()
962 object->data.seek_table.points[i].sample_number = FLAC__STREAM_METADATA_SEEKPOINT_PLACEHOLDER; in FLAC__metadata_object_seektable_resize_points()
963 object->data.seek_table.points[i].stream_offset = 0; in FLAC__metadata_object_seektable_resize_points()
964 object->data.seek_table.points[i].frame_samples = 0; in FLAC__metadata_object_seektable_resize_points()
969 object->data.seek_table.num_points = new_num_points; in FLAC__metadata_object_seektable_resize_points()
979 FLAC__ASSERT(point_num < object->data.seek_table.num_points); in FLAC__metadata_object_seektable_set_point()
981 object->data.seek_table.points[point_num] = point; in FLAC__metadata_object_seektable_set_point()
990 FLAC__ASSERT(point_num <= object->data.seek_table.num_points); in FLAC__metadata_object_seektable_insert_point()
992 if(!FLAC__metadata_object_seektable_resize_points(object, object->data.seek_table.num_points+1)) in FLAC__metadata_object_seektable_insert_point()
996 for(i = (int)object->data.seek_table.num_points-1; i > (int)point_num; i--) in FLAC__metadata_object_seektable_insert_point()
997 object->data.seek_table.points[i] = object->data.seek_table.points[i-1]; in FLAC__metadata_object_seektable_insert_point()
1010 FLAC__ASSERT(point_num < object->data.seek_table.num_points); in FLAC__metadata_object_seektable_delete_point()
1013 for(i = point_num; i < object->data.seek_table.num_points-1; i++) in FLAC__metadata_object_seektable_delete_point()
1014 object->data.seek_table.points[i] = object->data.seek_table.points[i+1]; in FLAC__metadata_object_seektable_delete_point()
1016 return FLAC__metadata_object_seektable_resize_points(object, object->data.seek_table.num_points-1); in FLAC__metadata_object_seektable_delete_point()
1024 return FLAC__format_seektable_is_legal(&object->data.seek_table); in FLAC__metadata_object_seektable_is_legal()
1034 …return FLAC__metadata_object_seektable_resize_points(object, object->data.seek_table.num_points + … in FLAC__metadata_object_seektable_template_append_placeholders()
1041 FLAC__StreamMetadata_SeekTable *seek_table; in FLAC__metadata_object_seektable_template_append_point() local
1046 seek_table = &object->data.seek_table; in FLAC__metadata_object_seektable_template_append_point()
1048 if(!FLAC__metadata_object_seektable_resize_points(object, seek_table->num_points + 1)) in FLAC__metadata_object_seektable_template_append_point()
1051 seek_table->points[seek_table->num_points - 1].sample_number = sample_number; in FLAC__metadata_object_seektable_template_append_point()
1052 seek_table->points[seek_table->num_points - 1].stream_offset = 0; in FLAC__metadata_object_seektable_template_append_point()
1053 seek_table->points[seek_table->num_points - 1].frame_samples = 0; in FLAC__metadata_object_seektable_template_append_point()
1065 FLAC__StreamMetadata_SeekTable *seek_table = &object->data.seek_table; in FLAC__metadata_object_seektable_template_append_points() local
1068 i = seek_table->num_points; in FLAC__metadata_object_seektable_template_append_points()
1070 if(!FLAC__metadata_object_seektable_resize_points(object, seek_table->num_points + num)) in FLAC__metadata_object_seektable_template_append_points()
1074 seek_table->points[i].sample_number = sample_numbers[j]; in FLAC__metadata_object_seektable_template_append_points()
1075 seek_table->points[i].stream_offset = 0; in FLAC__metadata_object_seektable_template_append_points()
1076 seek_table->points[i].frame_samples = 0; in FLAC__metadata_object_seektable_template_append_points()
1090 FLAC__StreamMetadata_SeekTable *seek_table = &object->data.seek_table; in FLAC__metadata_object_seektable_template_append_spaced_points() local
1093 i = seek_table->num_points; in FLAC__metadata_object_seektable_template_append_spaced_points()
1095 if(!FLAC__metadata_object_seektable_resize_points(object, seek_table->num_points + num)) in FLAC__metadata_object_seektable_template_append_spaced_points()
1099 seek_table->points[i].sample_number = total_samples * (FLAC__uint64)j / (FLAC__uint64)num; in FLAC__metadata_object_seektable_template_append_spaced_points()
1100 seek_table->points[i].stream_offset = 0; in FLAC__metadata_object_seektable_template_append_spaced_points()
1101 seek_table->points[i].frame_samples = 0; in FLAC__metadata_object_seektable_template_append_spaced_points()
1116 FLAC__StreamMetadata_SeekTable *seek_table = &object->data.seek_table; in FLAC__metadata_object_seektable_template_append_spaced_points_by_samples() local
1125 i = seek_table->num_points; in FLAC__metadata_object_seektable_template_append_spaced_points_by_samples()
1127 if(!FLAC__metadata_object_seektable_resize_points(object, seek_table->num_points + (unsigned)num)) in FLAC__metadata_object_seektable_template_append_spaced_points_by_samples()
1132 seek_table->points[i].sample_number = sample; in FLAC__metadata_object_seektable_template_append_spaced_points_by_samples()
1133 seek_table->points[i].stream_offset = 0; in FLAC__metadata_object_seektable_template_append_spaced_points_by_samples()
1134 seek_table->points[i].frame_samples = 0; in FLAC__metadata_object_seektable_template_append_spaced_points_by_samples()
1148 unique = FLAC__format_seektable_sort(&object->data.seek_table); in FLAC__metadata_object_seektable_template_sort()