Searched refs:seek_table (Results 1 – 7 of 7) sorted by relevance
/external/flac/libFLAC/ |
D | format.c | 235 …AC_API FLAC__bool FLAC__format_seektable_is_legal(const FLAC__StreamMetadata_SeekTable *seek_table) in FLAC__format_seektable_is_legal() argument 241 FLAC__ASSERT(0 != seek_table); in FLAC__format_seektable_is_legal() 243 for(i = 0; i < seek_table->num_points; i++) { in FLAC__format_seektable_is_legal() 246 seek_table->points[i].sample_number != FLAC__STREAM_METADATA_SEEKPOINT_PLACEHOLDER && in FLAC__format_seektable_is_legal() 247 seek_table->points[i].sample_number <= prev_sample_number in FLAC__format_seektable_is_legal() 251 prev_sample_number = seek_table->points[i].sample_number; in FLAC__format_seektable_is_legal() 271 FLAC_API unsigned FLAC__format_seektable_sort(FLAC__StreamMetadata_SeekTable *seek_table) in FLAC__format_seektable_sort() argument 276 FLAC__ASSERT(0 != seek_table); in FLAC__format_seektable_sort() 278 if (seek_table->num_points == 0) in FLAC__format_seektable_sort() 282 …qsort(seek_table->points, seek_table->num_points, sizeof(FLAC__StreamMetadata_SeekPoint), (int (*)… in FLAC__format_seektable_sort() [all …]
|
D | metadata_object.c | 169 object->length = object->data.seek_table.num_points * FLAC__STREAM_METADATA_SEEKPOINT_LENGTH; in seektable_calculate_length_() 548 to->data.seek_table.num_points = object->data.seek_table.num_points; in FLAC__metadata_object_clone() 549 …if (to->data.seek_table.num_points > UINT32_MAX / sizeof(FLAC__StreamMetadata_SeekPoint)) { /* ove… in FLAC__metadata_object_clone() 553 …y_bytes_((FLAC__byte**)&to->data.seek_table.points, (FLAC__byte*)object->data.seek_table.points, o… in FLAC__metadata_object_clone() 641 if (object->data.seek_table.points != NULL) { in FLAC__metadata_object_delete_data() 642 free(object->data.seek_table.points); in FLAC__metadata_object_delete_data() 643 object->data.seek_table.points = NULL; in FLAC__metadata_object_delete_data() 890 return compare_block_data_seektable_(&block1->data.seek_table, &block2->data.seek_table); in FLAC__metadata_object_is_equal() 932 if (object->data.seek_table.points == 0) { in FLAC__metadata_object_seektable_resize_points() 933 FLAC__ASSERT(object->data.seek_table.num_points == 0); in FLAC__metadata_object_seektable_resize_points() [all …]
|
D | stream_decoder.c | 148 FLAC__StreamMetadata seek_table; member 646 free(decoder->private_->seek_table.data.seek_table.points); in FLAC__stream_decoder_finish() 647 decoder->private_->seek_table.data.seek_table.points = 0; in FLAC__stream_decoder_finish() 980 free(decoder->private_->seek_table.data.seek_table.points); in FLAC__stream_decoder_reset() 981 decoder->private_->seek_table.data.seek_table.points = 0; in FLAC__stream_decoder_reset() 1429 …decoder->private_->metadata_callback(decoder, &decoder->private_->seek_table, decoder->private_->c… in read_metadata_() 1649 decoder->private_->seek_table.type = FLAC__METADATA_TYPE_SEEKTABLE; in read_metadata_seektable_() 1650 decoder->private_->seek_table.is_last = is_last; in read_metadata_seektable_() 1651 decoder->private_->seek_table.length = length; in read_metadata_seektable_() 1653 …decoder->private_->seek_table.data.seek_table.num_points = length / FLAC__STREAM_METADATA_SEEKPOIN… in read_metadata_seektable_() [all …]
|
D | stream_encoder.c | 349 …FLAC__StreamMetadata_SeekTable *seek_table; /* pointer into encoder->protected_->metadata_ w… member 763 encoder->private_->seek_table = &encoder->protected_->metadata[i2]->data.seek_table; in init_stream_internal_() 784 if(!FLAC__format_seektable_is_legal(&m->data.seek_table)) in init_stream_internal_() 2321 encoder->private_->seek_table = 0; in set_defaults_() 2640 …if(0 != encoder->private_->seek_table && encoder->protected_->audio_offset > 0 && encoder->private… in write_frame_() 2646 …for(i = encoder->private_->first_seekpoint_to_check; i < encoder->private_->seek_table->num_points… in write_frame_() 2647 test_sample = encoder->private_->seek_table->points[i].sample_number; in write_frame_() 2652 encoder->private_->seek_table->points[i].sample_number = frame_first_sample; in write_frame_() 2653 …encoder->private_->seek_table->points[i].stream_offset = output_position - encoder->protected_->au… in write_frame_() 2654 encoder->private_->seek_table->points[i].frame_samples = blocksize; in write_frame_() [all …]
|
D | stream_encoder_framing.c | 116 for(i = 0; i < metadata->data.seek_table.num_points; i++) { in FLAC__add_metadata_block() 117 …if(!FLAC__bitwriter_write_raw_uint64(bw, metadata->data.seek_table.points[i].sample_number, FLAC__… in FLAC__add_metadata_block() 119 …if(!FLAC__bitwriter_write_raw_uint64(bw, metadata->data.seek_table.points[i].stream_offset, FLAC__… in FLAC__add_metadata_block() 121 …if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->data.seek_table.points[i].frame_samples, FLAC__… in FLAC__add_metadata_block()
|
D | metadata_iterators.c | 2165 …return read_metadata_block_data_seektable_cb_(handle, read_cb, &block->data.seek_table, block->len… in read_metadata_block_data_cb_() 2630 return write_metadata_block_data_seektable_cb_(handle, write_cb, &block->data.seek_table); in write_metadata_block_data_cb_()
|
/external/flac/include/FLAC/ |
D | format.h | 850 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);
|