Lines Matching full:num_points
167 object->length = object->data.seek_table.num_points * FLAC__STREAM_METADATA_SEEKPOINT_LENGTH;
170 static FLAC__StreamMetadata_SeekPoint *seekpoint_array_new_(unsigned num_points)
174 FLAC__ASSERT(num_points > 0);
176 object_array = (FLAC__StreamMetadata_SeekPoint*)safe_malloc_mul_2op_(num_points, /*times*/sizeof(FLAC__StreamMetadata_SeekPoint));
180 for(i = 0; i < num_points; i++) {
462 object->data.seek_table.num_points = 0;
552 to->data.seek_table.num_points = object->data.seek_table.num_points;
553 if(to->data.seek_table.num_points > SIZE_MAX / sizeof(FLAC__StreamMetadata_SeekPoint)) { /* overflow check */
557 if(!copy_bytes_((FLAC__byte**)&to->data.seek_table.points, (FLAC__byte*)object->data.seek_table.points, object->data.seek_table.num_points * sizeof(FLAC__StreamMetadata_SeekPoint))) {
740 if(block1->num_points != block2->num_points)
744 for(i = 0; i < block1->num_points; i++) {
935 FLAC__ASSERT(object->data.seek_table.num_points == 0);
942 const size_t old_size = object->data.seek_table.num_points * sizeof(FLAC__StreamMetadata_SeekPoint);
949 FLAC__ASSERT(object->data.seek_table.num_points > 0);
961 for(i = object->data.seek_table.num_points; i < new_num_points; i++) {
969 object->data.seek_table.num_points = new_num_points;
979 FLAC__ASSERT(point_num < object->data.seek_table.num_points);
990 FLAC__ASSERT(point_num <= object->data.seek_table.num_points);
992 if(!FLAC__metadata_object_seektable_resize_points(object, object->data.seek_table.num_points+1))
996 for(i = (int)object->data.seek_table.num_points-1; i > (int)point_num; i--)
1010 FLAC__ASSERT(point_num < object->data.seek_table.num_points);
1013 for(i = point_num; i < object->data.seek_table.num_points-1; i++)
1016 return FLAC__metadata_object_seektable_resize_points(object, object->data.seek_table.num_points-1);
1034 return FLAC__metadata_object_seektable_resize_points(object, object->data.seek_table.num_points + num);
1048 if(!FLAC__metadata_object_seektable_resize_points(object, seek_table->num_points + 1))
1051 seek_table->points[seek_table->num_points - 1].sample_number = sample_number;
1052 seek_table->points[seek_table->num_points - 1].stream_offset = 0;
1053 seek_table->points[seek_table->num_points - 1].frame_samples = 0;
1068 i = seek_table->num_points;
1070 if(!FLAC__metadata_object_seektable_resize_points(object, seek_table->num_points + num))
1093 i = seek_table->num_points;
1095 if(!FLAC__metadata_object_seektable_resize_points(object, seek_table->num_points + num))
1125 i = seek_table->num_points;
1127 if(!FLAC__metadata_object_seektable_resize_points(object, seek_table->num_points + (unsigned)num))