• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/flac-1.2.1/src/flac/

Lines Matching refs:metadata

101 	foreign_metadata_t *foreign_metadata; /* NULL unless --keep-foreign-metadata requested */
129 static void metadata_callback(const FLAC__StreamDecoder *decoder, const FLAC__StreamMetadata *metadata, void *client_data);
368 flac__utils_printf(stderr, 1, "%s: ERROR reading foreign metadata: %s\n", decoder_session->inbasefilename, error);
411 print_error_with_state(d, "ERROR while decoding metadata");
416 print_error_with_state(d, "ERROR during metadata decoding");
533 flac__utils_printf(stderr, 1, "ERROR updating foreign metadata from %s to %s: %s\n", d->infilename, d->outfilename, error);
566 flac__utils_printf(stderr, 1, "%s: ERROR, cannot use --until when FLAC metadata has total sample count of 0\n", inbasefilename);
605 unsigned foreign_metadata_size = 0; /* size of all non-audio non-fmt/COMM foreign metadata chunks */
626 /* calc foreign metadata size; for RIFF/AIFF we always skip the first chunk, format chunk, and sound chunk since we write our own */
654 flac__utils_printf(stderr, 1, "%s: ERROR: allocating/skipping foreign metadata before \"fmt \"\n", decoder_session->inbasefilename);
669 flac__utils_printf(stderr, 1, "%s: ERROR: allocating/skipping foreign metadata after \"fmt \"\n", decoder_session->inbasefilename);
701 flac__utils_printf(stderr, 1, "%s: ERROR: allocating/skipping foreign metadata before \"COMM\"\n", decoder_session->inbasefilename);
716 flac__utils_printf(stderr, 1, "%s: ERROR: allocating/skipping foreign metadata after \"COMM\"\n", decoder_session->inbasefilename);
987 /* if we never got the total_samples from the metadata, the skip and until specs would never have been canonicalized, so protect against that: */
992 flac__utils_printf(stderr, 1, "%s: ERROR, cannot use --skip because the total sample count was not found in the metadata\n", decoder_session->inbasefilename);
1000 flac__utils_printf(stderr, 1, "%s: ERROR, cannot use --until because the total sample count was not found in the metadata\n", decoder_session->inbasefilename);
1201 void metadata_callback(const FLAC__StreamDecoder *decoder, const FLAC__StreamMetadata *metadata, void *client_data)
1208 if(metadata->type == FLAC__METADATA_TYPE_STREAMINFO) {
1211 decoder_session->has_md5sum = memcmp(metadata->data.stream_info.md5sum, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 16);
1212 decoder_session->bps = metadata->data.stream_info.bits_per_sample;
1213 decoder_session->channels = metadata->data.stream_info.channels;
1214 decoder_session->sample_rate = metadata->data.stream_info.sample_rate;
1220 /* remember, metadata->data.stream_info.total_samples can be 0, meaning 'unknown' */
1221 if(metadata->data.stream_info.total_samples > 0 && skip >= metadata->data.stream_info.total_samples) {
1226 else if(metadata->data.stream_info.total_samples == 0 && skip > 0) {
1227 flac__utils_printf(stderr, 1, "%s: ERROR, can't --skip when FLAC metadata has total sample count of 0\n", decoder_session->inbasefilename);
1232 decoder_session->total_samples = metadata->data.stream_info.total_samples - skip;
1234 /* note that we use metadata->data.stream_info.total_samples instead of decoder_session->total_samples */
1235 if(!canonicalize_until_specification(decoder_session->until_specification, decoder_session->inbasefilename, decoder_session->sample_rate, skip, metadata->data.stream_info.total_samples)) {
1245 decoder_session->total_samples -= (metadata->data.stream_info.total_samples - until);
1254 else if(metadata->type == FLAC__METADATA_TYPE_CUESHEET) {
1257 flac__utils_printf(stderr, 1, "%s: ERROR can't use --cue when FLAC metadata has total sample count of 0\n", decoder_session->inbasefilename);
1262 flac__utils_canonicalize_cue_specification(decoder_session->cue_specification, &metadata->data.cue_sheet, decoder_session->total_samples, decoder_session->skip_specification, decoder_session->until_specification);
1277 else if(metadata->type == FLAC__METADATA_TYPE_VORBIS_COMMENT) {
1280 if (!(decoder_session->replaygain.apply = grabbag__replaygain_load_from_vorbiscomment(metadata, decoder_session->replaygain.spec.use_album_gain, /*strict=*/false, &reference, &gain, &peak))) {
1298 (void)flac__utils_get_channel_mask_tag(metadata, &decoder_session->channel_mask);