Home
last modified time | relevance | path

Searched refs:seek_table (Results 1 – 7 of 7) sorted by relevance

/external/flac/libFLAC/
Dformat.c234 …AC_API FLAC__bool FLAC__format_seektable_is_legal(const FLAC__StreamMetadata_SeekTable *seek_table) in FLAC__format_seektable_is_legal() argument
240 FLAC__ASSERT(0 != seek_table); in FLAC__format_seektable_is_legal()
242 for(i = 0; i < seek_table->num_points; i++) { in FLAC__format_seektable_is_legal()
245 seek_table->points[i].sample_number != FLAC__STREAM_METADATA_SEEKPOINT_PLACEHOLDER && in FLAC__format_seektable_is_legal()
246 seek_table->points[i].sample_number <= prev_sample_number in FLAC__format_seektable_is_legal()
250 prev_sample_number = seek_table->points[i].sample_number; in FLAC__format_seektable_is_legal()
270 FLAC_API unsigned FLAC__format_seektable_sort(FLAC__StreamMetadata_SeekTable *seek_table) in FLAC__format_seektable_sort() argument
275 FLAC__ASSERT(0 != seek_table); in FLAC__format_seektable_sort()
278 …qsort(seek_table->points, seek_table->num_points, sizeof(FLAC__StreamMetadata_SeekPoint), (int (*)… in FLAC__format_seektable_sort()
282 for(i = j = 0; i < seek_table->num_points; i++) { in FLAC__format_seektable_sort()
[all …]
Dmetadata_object.c167 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()
[all …]
Dstream_decoder.c156 FLAC__StreamMetadata seek_table; member
658 …if(decoder->private_->has_seek_table && 0 != decoder->private_->seek_table.data.seek_table.points)… in FLAC__stream_decoder_finish()
659 free(decoder->private_->seek_table.data.seek_table.points); in FLAC__stream_decoder_finish()
660 decoder->private_->seek_table.data.seek_table.points = 0; in FLAC__stream_decoder_finish()
990 …if(decoder->private_->has_seek_table && 0 != decoder->private_->seek_table.data.seek_table.points)… in FLAC__stream_decoder_reset()
991 free(decoder->private_->seek_table.data.seek_table.points); in FLAC__stream_decoder_reset()
992 decoder->private_->seek_table.data.seek_table.points = 0; in FLAC__stream_decoder_reset()
1442 …decoder->private_->metadata_callback(decoder, &decoder->private_->seek_table, decoder->private_->c… in read_metadata_()
1662 decoder->private_->seek_table.type = FLAC__METADATA_TYPE_SEEKTABLE; in read_metadata_seektable_()
1663 decoder->private_->seek_table.is_last = is_last; in read_metadata_seektable_()
[all …]
Dstream_encoder.c345 …FLAC__StreamMetadata_SeekTable *seek_table; /* pointer into encoder->protected_->metadata_ w… member
766 encoder->private_->seek_table = &encoder->protected_->metadata[i2]->data.seek_table; in init_stream_internal_()
787 if(!FLAC__format_seektable_is_legal(&m->data.seek_table)) in init_stream_internal_()
2326 encoder->private_->seek_table = 0; in set_defaults_()
2647 …if(0 != encoder->private_->seek_table && encoder->protected_->audio_offset > 0 && encoder->private… in write_frame_()
2653 …for(i = encoder->private_->first_seekpoint_to_check; i < encoder->private_->seek_table->num_points… in write_frame_()
2654 test_sample = encoder->private_->seek_table->points[i].sample_number; in write_frame_()
2659 encoder->private_->seek_table->points[i].sample_number = frame_first_sample; in write_frame_()
2660 …encoder->private_->seek_table->points[i].stream_offset = output_position - encoder->protected_->au… in write_frame_()
2661 encoder->private_->seek_table->points[i].frame_samples = blocksize; in write_frame_()
[all …]
Dstream_encoder_framing.c111 for(i = 0; i < metadata->data.seek_table.num_points; i++) { in FLAC__add_metadata_block()
112 …if(!FLAC__bitwriter_write_raw_uint64(bw, metadata->data.seek_table.points[i].sample_number, FLAC__… in FLAC__add_metadata_block()
114 …if(!FLAC__bitwriter_write_raw_uint64(bw, metadata->data.seek_table.points[i].stream_offset, FLAC__… in FLAC__add_metadata_block()
116 …if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->data.seek_table.points[i].frame_samples, FLAC__… in FLAC__add_metadata_block()
Dmetadata_iterators.c2108 …return read_metadata_block_data_seektable_cb_(handle, read_cb, &block->data.seek_table, block->len… in read_metadata_block_data_cb_()
2540 return write_metadata_block_data_seektable_cb_(handle, write_cb, &block->data.seek_table); in write_metadata_block_data_cb_()
/external/flac/include/FLAC/
Dformat.h850 FLAC__StreamMetadata_SeekTable seek_table; member
965 …C_API FLAC__bool FLAC__format_seektable_is_legal(const FLAC__StreamMetadata_SeekTable *seek_table);
979 FLAC_API unsigned FLAC__format_seektable_sort(FLAC__StreamMetadata_SeekTable *seek_table);