Home
last modified time | relevance | path

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

/external/flac/libFLAC/
Dformat.c416 FLAC_API FLAC__bool FLAC__format_cuesheet_is_legal(const FLAC__StreamMetadata_CueSheet *cue_sheet, … in FLAC__format_cuesheet_is_legal() argument
421 if(cue_sheet->lead_in < 2 * 44100) { in FLAC__format_cuesheet_is_legal()
425 if(cue_sheet->lead_in % 588 != 0) { in FLAC__format_cuesheet_is_legal()
431 if(cue_sheet->num_tracks == 0) { in FLAC__format_cuesheet_is_legal()
436 if(check_cd_da_subset && cue_sheet->tracks[cue_sheet->num_tracks-1].number != 170) { in FLAC__format_cuesheet_is_legal()
441 for(i = 0; i < cue_sheet->num_tracks; i++) { in FLAC__format_cuesheet_is_legal()
442 if(cue_sheet->tracks[i].number == 0) { in FLAC__format_cuesheet_is_legal()
448 …if(!((cue_sheet->tracks[i].number >= 1 && cue_sheet->tracks[i].number <= 99) || cue_sheet->tracks[… in FLAC__format_cuesheet_is_legal()
454 if(check_cd_da_subset && cue_sheet->tracks[i].offset % 588 != 0) { in FLAC__format_cuesheet_is_legal()
456 if(i == cue_sheet->num_tracks-1) /* the lead-out track... */ in FLAC__format_cuesheet_is_legal()
[all …]
Dmetadata_object.c325 object->length += object->data.cue_sheet.num_tracks * ( in cuesheet_calculate_length_()
335 for(i = 0; i < object->data.cue_sheet.num_tracks; i++) { in cuesheet_calculate_length_()
336 object->length += object->data.cue_sheet.tracks[i].num_indices * ( in cuesheet_calculate_length_()
586 memcpy(&to->data.cue_sheet, &object->data.cue_sheet, sizeof(FLAC__StreamMetadata_CueSheet)); in FLAC__metadata_object_clone()
587 if(object->data.cue_sheet.num_tracks == 0) { in FLAC__metadata_object_clone()
588 FLAC__ASSERT(0 == object->data.cue_sheet.tracks); in FLAC__metadata_object_clone()
591 FLAC__ASSERT(0 != object->data.cue_sheet.tracks); in FLAC__metadata_object_clone()
592 …to->data.cue_sheet.tracks = cuesheet_track_array_copy_(object->data.cue_sheet.tracks, object->data… in FLAC__metadata_object_clone()
593 if(0 == to->data.cue_sheet.tracks) { in FLAC__metadata_object_clone()
662 if(0 != object->data.cue_sheet.tracks) { in FLAC__metadata_object_delete_data()
[all …]
Dstream_encoder_framing.c140 …if(!FLAC__bitwriter_write_byte_block(bw, (const FLAC__byte*)metadata->data.cue_sheet.media_catalog… in FLAC__add_metadata_block()
142 …if(!FLAC__bitwriter_write_raw_uint64(bw, metadata->data.cue_sheet.lead_in, FLAC__STREAM_METADATA_C… in FLAC__add_metadata_block()
144 …if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->data.cue_sheet.is_cd? 1 : 0, FLAC__STREAM_METAD… in FLAC__add_metadata_block()
148 …if(!FLAC__bitwriter_write_raw_uint32(bw, metadata->data.cue_sheet.num_tracks, FLAC__STREAM_METADAT… in FLAC__add_metadata_block()
150 for(i = 0; i < metadata->data.cue_sheet.num_tracks; i++) { in FLAC__add_metadata_block()
151 const FLAC__StreamMetadata_CueSheet_Track *track = metadata->data.cue_sheet.tracks + i; in FLAC__add_metadata_block()
Dstream_decoder.c1521 if(!read_metadata_cuesheet_(decoder, &block.data.cue_sheet)) in read_metadata_()
1567 if(block.data.cue_sheet.num_tracks > 0) in read_metadata_()
1568 for(i = 0; i < block.data.cue_sheet.num_tracks; i++) in read_metadata_()
1569 if(0 != block.data.cue_sheet.tracks[i].indices) in read_metadata_()
1570 free(block.data.cue_sheet.tracks[i].indices); in read_metadata_()
1571 if(0 != block.data.cue_sheet.tracks) in read_metadata_()
1572 free(block.data.cue_sheet.tracks); in read_metadata_()
Dmetadata_iterators.c2112 return read_metadata_block_data_cuesheet_cb_(handle, read_cb, &block->data.cue_sheet); in read_metadata_block_data_cb_()
2544 return write_metadata_block_data_cuesheet_cb_(handle, write_cb, &block->data.cue_sheet); in write_metadata_block_data_cb_()
Dstream_encoder.c824 if(!FLAC__format_cuesheet_is_legal(&m->data.cue_sheet, m->data.cue_sheet.is_cd, /*violation=*/0)) in init_stream_internal_()
/external/flac/include/FLAC/
Dformat.h849 FLAC__StreamMetadata_CueSheet cue_sheet; member
984 FLAC_API FLAC__bool FLAC__format_cuesheet_is_legal(const FLAC__StreamMetadata_CueSheet *cue_sheet, …