• 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:sample

291 	/* d->replaygain.dither_context gets initialized later once we know the sample resolution */
555 /* convert from mm:ss.sss to sample number if necessary */
566 flac__utils_printf(stderr, 1, "%s: ERROR, cannot use --until when FLAC metadata has total sample count of 0\n", inbasefilename);
611 flac__utils_printf(stderr, 1, "%s: WARNING, don't have accurate sample count available for %s header.\n", decoder_session->inbasefilename, fmt_desc);
771 if(!write_little_endian_uint16(f, (FLAC__uint16)(((bps+7)/8)*8))) /* bits per sample */
917 unsigned wide_samples = frame->header.blocksize, wide_sample, sample, channel, byte;
932 /* sanity-check the bits-per-sample */
936 flac__utils_printf(stderr, 1, "%s: ERROR, bits-per-sample is %u in frame but %u in STREAMINFO\n", decoder_session->inbasefilename, bps, decoder_session->bps);
938 flac__utils_printf(stderr, 1, "%s: ERROR, bits-per-sample is %u in this frame but %u in previous frames\n", decoder_session->inbasefilename, bps, decoder_session->bps);
966 /* sanity-check the sample rate */
970 flac__utils_printf(stderr, 1, "%s: ERROR, sample rate is %u in frame but %u in STREAMINFO\n", decoder_session->inbasefilename, frame->header.sample_rate, decoder_session->sample_rate);
972 flac__utils_printf(stderr, 1, "%s: ERROR, sample rate is %u in this frame but %u in previous frames\n", decoder_session->inbasefilename, frame->header.sample_rate, decoder_session->sample_rate);
978 /* must not have gotten STREAMINFO, save the sample rate from the frame header */
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);
1066 for(sample = 0; sample < wide_samples; sample++, buf1_+=2)
1067 *buf1_ = (FLAC__int16)buffer[1][sample];
1068 bytes_to_write = 4 * sample;
1072 for(sample = 0; sample < wide_samples; sample++)
1073 *buf1_++ = (FLAC__int16)buffer[0][sample];
1074 bytes_to_write = 2 * sample;
1080 for(sample = wide_sample = 0; wide_sample < wide_samples; wide_sample++) {
1081 u16buffer[sample++] = (FLAC__uint16)(buffer[0][wide_sample] + 0x8000);
1082 u16buffer[sample++] = (FLAC__uint16)(buffer[1][wide_sample] + 0x8000);
1086 for(sample = wide_sample = 0; wide_sample < wide_samples; wide_sample++)
1087 u16buffer[sample++] = (FLAC__uint16)(buffer[0][wide_sample] + 0x8000);
1090 for(sample = wide_sample = 0; wide_sample < wide_samples; wide_sample++)
1091 for(channel = 0; channel < channels; channel++, sample++)
1092 u16buffer[sample] = (FLAC__uint16)(buffer[channel][wide_sample] + 0x8000);
1097 for(sample = wide_sample = 0; wide_sample < wide_samples; wide_sample++) {
1098 s16buffer[sample++] = (FLAC__int16)(buffer[0][wide_sample]);
1099 s16buffer[sample++] = (FLAC__int16)(buffer[1][wide_sample]);
1103 for(sample = wide_sample = 0; wide_sample < wide_samples; wide_sample++)
1104 s16buffer[sample++] = (FLAC__int16)(buffer[0][wide_sample]);
1107 for(sample = wide_sample = 0; wide_sample < wide_samples; wide_sample++)
1108 for(channel = 0; channel < channels; channel++, sample++)
1109 s16buffer[sample] = (FLAC__int16)(buffer[channel][wide_sample]);
1114 const unsigned bytes = sample * 2;
1121 bytes_to_write = 2 * sample;
1125 for(sample = wide_sample = 0; wide_sample < wide_samples; wide_sample++)
1126 for(channel = 0; channel < channels; channel++, sample++)
1127 u32buffer[sample] = buffer[channel][wide_sample] + 0x800000;
1130 for(sample = wide_sample = 0; wide_sample < wide_samples; wide_sample++)
1131 for(channel = 0; channel < channels; channel++, sample++)
1132 s32buffer[sample] = buffer[channel][wide_sample];
1136 const unsigned bytes = sample * 4;
1148 const unsigned bytes = sample * 4;
1158 const unsigned bytes = sample * 4;
1166 bytes_to_write = 3 * sample;
1170 for(sample = wide_sample = 0; wide_sample < wide_samples; wide_sample++)
1171 for(channel = 0; channel < channels; channel++, sample++)
1172 u8buffer[sample] = (FLAC__uint8)(buffer[channel][wide_sample] + 0x80);
1175 for(sample = wide_sample = 0; wide_sample < wide_samples; wide_sample++)
1176 for(channel = 0; channel < channels; channel++, sample++)
1177 s8buffer[sample] = (FLAC__int8)(buffer[channel][wide_sample]);
1179 bytes_to_write = sample;
1227 flac__utils_printf(stderr, 1, "%s: ERROR, can't --skip when FLAC metadata has total sample count of 0\n", decoder_session->inbasefilename);
1249 flac__utils_printf(stderr, 1, "%s: ERROR: bits per sample is %u, must be 4-24\n", decoder_session->inbasefilename, decoder_session->bps);
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);