/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/contrib/tools/ |
A D | cvtcolor.c | 53 int channels = 0; in main() local 92 ++channels; in main() 95 ++channels; in main() 98 ++channels; in main() 101 ++channels; in main() 123 if ((channels & 1) == 0) in main() 136 if (channels < 3) in main() 139 prog, channels); in main() 144 channels -= 2; in main() 149 if (channels > 2) in main() [all …]
|
/AliOS-Things-master/components/uvoice/audio/process/ |
A D | proc_resample.c | 26 int channels; member 44 int samples_per_channel, int channels) in float_to_short_interleave() argument 82 int channels; in uvoice_resampler_process() local 102 channels = inst->channels; in uvoice_resampler_process() 163 for (i = 0; i < channels; i++) { in uvoice_resampler_process() 183 output_samples / channels, channels); in uvoice_resampler_process() 222 if (inst->channels == channels && inst->sbits == sbits && in uvoice_resampler_update() 228 if (inst->channels != channels) in uvoice_resampler_update() 229 inst->channels = channels; in uvoice_resampler_update() 259 int channels, int sbits) in uvoice_resampler_create() argument [all …]
|
/AliOS-Things-master/components/uvoice/codec/ |
A D | opus_decoder.c | 28 int channels; member 53 static bool opus_channels_valid(int channels) in opus_channels_valid() argument 55 if (channels == 1 || channels == 2) in opus_channels_valid() 146 pcm_info.channels = opus->channels; in opus_decode_process() 148 pcm_info.channels = 1; in opus_decode_process() 232 opus->channels = pcminfo->channels; in opus_decode_action() 233 opus_channels = opus->channels; in opus_decode_action() 248 if (!opus_channels_valid(opus->channels)) { in opus_decode_action() 250 opus->channels = opus_channels; in opus_decode_action() 258 opus->channels, &error); in opus_decode_action() [all …]
|
A D | spx_decoder.c | 28 int channels; member 48 static bool spx_channels_valid(int channels) in spx_channels_valid() argument 50 if (channels == 1 || channels == 2) in spx_channels_valid() 124 pcm_info.frames = spx->frame_size / spx->channels; in spx_decoder_process() 126 pcm_info.channels = spx->channels; in spx_decoder_process() 128 pcm_info.channels = 1; in spx_decoder_process() 191 if (!spx_channels_valid(pcminfo->channels)) { in spx_decoder_action() 195 spx->channels = pcminfo->channels; in spx_decoder_action() 196 spx_channels = spx->channels; in spx_decoder_action() 211 if (!spx_channels_valid(spx->channels)) { in spx_decoder_action() [all …]
|
A D | ogg_decoder.c | 207 pcm_info.channels = ogg->vb_info.channels; in ogg_decoder_process() 209 pcm_info.channels = 1; in ogg_decoder_process() 211 mdecoder->buffer_out_size = OGG_DECODE_OUTPUT_SAMPLES_MAX * pcm_info.channels * 2; in ogg_decoder_process() 281 int channels = mdecoder->stere_enable ? ogg->vb_info.channels : 1; in ogg_decoder_process() local 287 for (i = 0; i < channels; i++) { in ogg_decoder_process() 306 ptr += channels; in ogg_decoder_process() 314 out_len = bout * channels * 2; in ogg_decoder_process()
|
A D | pvaac_decoder.c | 109 int channels; member 117 static int aac_dec_init(int channels) in aac_dec_init() argument 139 g_dec_ext.desiredChannels = (int)channels; in aac_dec_init() 158 …onfig(const uint8_t *in_buffer, uint32_t in_size, int *samplerate, int *channels, int *framelength) in aac_decoder_config() argument 169 *channels = g_dec_ext.encodedChannels; in aac_decoder_config() 171 aac_dec_init(*channels); in aac_decoder_config() 345 m4adec->channels, in pcm_output() 350 pcm_info.frames = samples * m4adec->channels; in pcm_output() 351 pcm_info.channels = m4adec->channels; in pcm_output() 353 pcm_info.channels = 1; in pcm_output() [all …]
|
A D | opus_encoder.c | 30 int channels; member 145 int mem_size = opus_encoder_get_size(mencoder->channels); in opus_encode_action() 159 mencoder->channels, OPUS_APPLICATION_VOIP); in opus_encode_action() 169 mencoder->channels, mencoder->bitrate); in opus_encode_action() 174 opus_encoder_ctl(opus->handler, OPUS_SET_FORCE_CHANNELS(mencoder->channels)); in opus_encode_action()
|
/AliOS-Things-master/components/uvoice/media/ |
A D | uvoice_fade.c | 11 int *pos, int scope, int channels) in fade_out_proc_8bit() argument 20 samples = nbytes / channels; in fade_out_proc_8bit() 22 for (channel_index = 0; channel_index < channels; in fade_out_proc_8bit() 40 int *pos, int scope, int channels) in fade_in_proc_8bit() argument 52 samples = nbytes / channels; in fade_in_proc_8bit() 54 for (channel_index = 0; channel_index < channels; in fade_in_proc_8bit() 77 int *pos, int scope, int channels) in fade_out_proc_16bit() argument 86 samples = nbytes / (channels * 2); in fade_out_proc_16bit() 88 for (channel_index = 0; channel_index < channels; in fade_out_proc_16bit() 106 int *pos, int scope, int channels) in fade_in_proc_16bit() argument [all …]
|
A D | uvoice_wave.c | 26 int channels; member 31 int channels, int bits) in wave_header_init() argument 43 header->num_channels = channels; in wave_header_init() 145 pcm_info.channels = chunk_fmt.num_channels; in wave_info_parse() 147 pcm_info.channels = 1; in wave_info_parse() 150 (pcm_info.channels * (pcm_info.bits >> 3)); in wave_info_parse() 152 wave->channels = chunk_fmt.num_channels; in wave_info_parse() 240 wave_channels = wave->channels; in wave_decode_action() 246 wave->channels = wave_channels; in wave_decode_action() 335 pcminfo->channels, pcminfo->bits); in wave_encode_header_gen() [all …]
|
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/ |
A D | pngwtran.c | 30 row_info->channels == 1) in png_do_pack() 180 unsigned int channels = 0; in png_do_shift() local 185 shift_dec[channels] = bit_depth->red; in png_do_shift() 186 channels++; in png_do_shift() 190 channels++; in png_do_shift() 193 shift_dec[channels] = bit_depth->blue; in png_do_shift() 194 channels++; in png_do_shift() 201 channels++; in png_do_shift() 208 channels++; in png_do_shift() 257 unsigned int c = i%channels; in png_do_shift() [all …]
|
/AliOS-Things-master/components/SDL2/test/ |
A D | testautomation_audio.c | 525 spec1.channels = 2; in audio_buildAudioCVT() 534 spec1.channels = 1; in audio_buildAudioCVT() 537 spec2.channels = 2; in audio_buildAudioCVT() 592 spec1.channels = 1; in audio_buildAudioCVTNegative() 595 spec2.channels = 2; in audio_buildAudioCVTNegative() 618 spec1.channels = 1; in audio_buildAudioCVTNegative() 621 spec2.channels = 2; in audio_buildAudioCVTNegative() 635 spec1.channels = 0; in audio_buildAudioCVTNegative() 718 desired.channels=2; in audio_openCloseAndGetAudioStatus() 776 desired.channels=2; in audio_lockUnlockOpenAudioDevice() [all …]
|
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/contrib/gregbook/ |
A D | readppm.c | 68 int bit_depth, color_type, channels; variable 97 channels = 3; in readpng_init() 100 channels = 4; in readpng_init() 103 channels = 1; in readpng_init() 154 *pRowbytes = rowbytes = channels*width; in readpng_get_image() 155 *pChannels = channels; in readpng_get_image()
|
/AliOS-Things-master/components/uvoice/audio/ |
A D | audio_common.h | 42 static inline bool pcm_channel_valid(int channels) in pcm_channel_valid() argument 44 if (channels > 0 && channels <= 8) in pcm_channel_valid() 65 return (config->period_size * config->channels * in period_samples_to_bytes()
|
A D | audio_stream.c | 206 if (!pcm_channel_valid(pcminfo->channels) || pcminfo->channels > 2) { in out_stream_configure() 207 snd_err("channels %d invalid !\n", pcminfo->channels); in out_stream_configure() 235 config->channels = pcminfo->channels; in out_stream_configure() 248 if (pcminfo->channels != config->channels) in out_stream_configure() 249 pcminfo->channels = config->channels; in out_stream_configure() 617 if (!pcm_channel_valid(pcminfo->channels)) { in in_stream_configure() 618 snd_err("channels %d invalid !\n", pcminfo->channels); in in_stream_configure() 638 pcm->config.channels = pcminfo->channels; in in_stream_configure() 650 if (pcminfo->channels != pcm->config.channels) in in_stream_configure() 651 pcminfo->channels = pcm->config.channels; in in_stream_configure()
|
/AliOS-Things-master/components/SDL2/src/audio/ |
A D | SDL_wave.c | 199 switch (format->channels) { in WaveDebugLogFormat() 394 if (format->channels > 2) { in MS_ADPCM_Init() 535 const Uint32 channels = state->channels; in MS_ADPCM_DecodeBlockHeader() local 553 o = channels + c * 2; in MS_ADPCM_DecodeBlockHeader() 559 o = channels * 3 + c * 2; in MS_ADPCM_DecodeBlockHeader() 566 o = channels * 5 + c * 2; in MS_ADPCM_DecodeBlockHeader() 597 const Uint32 channels = state->channels; in MS_ADPCM_DecodeBlockData() local 667 state.channels = file->format.channels; in MS_ADPCM_Decode() 971 const Uint32 channels = state->channels; in IMA_ADPCM_DecodeBlockData() local 1060 state.channels = file->format.channels; in IMA_ADPCM_Decode() [all …]
|
/AliOS-Things-master/components/SDL2/src/audio/jack/ |
A D | SDL_jackaudio.c | 166 const int total_channels = this->spec.channels; in jackProcessPlaybackCallback() 216 const int total_channels = this->spec.channels; in jackProcessCaptureCallback() 265 const int channels = this->spec.channels; in JACK_CloseDevice() local 267 for (i = 0; i < channels; i++) { in JACK_CloseDevice() 298 int channels = 0; in JACK_OpenDevice() local 332 audio_ports[channels++] = i; in JACK_OpenDevice() 335 if (channels == 0) { in JACK_OpenDevice() 345 this->spec.channels = channels; in JACK_OpenDevice() 361 this->hidden->sdlports = (jack_port_t **) SDL_calloc(channels, sizeof (jack_port_t *)); in JACK_OpenDevice() 366 for (i = 0; i < channels; i++) { in JACK_OpenDevice() [all …]
|
/AliOS-Things-master/components/SDL2/src/audio/dsp/ |
A D | SDL_dspaudio.c | 90 if (this->spec.channels > 8) in DSP_OpenDevice() 91 this->spec.channels = 8; in DSP_OpenDevice() 92 else if (this->spec.channels > 4) in DSP_OpenDevice() 93 this->spec.channels = 4; in DSP_OpenDevice() 94 else if (this->spec.channels > 2) in DSP_OpenDevice() 95 this->spec.channels = 2; in DSP_OpenDevice() 193 value = this->spec.channels; in DSP_OpenDevice() 198 this->spec.channels = value; in DSP_OpenDevice()
|
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/contrib/pngminus/ |
A D | png2pnm.c | 177 int channels; in png2pnm() local 270 channels = 1; in png2pnm() 272 channels = 2; in png2pnm() 274 channels = 3; in png2pnm() 276 channels = 4; in png2pnm() 278 channels = 0; /* should never happen */ in png2pnm() 279 alpha_present = (channels - 1) % 2; in png2pnm() 362 for (i = 0; i < (channels - alpha_present); i++) in png2pnm()
|
A D | pnm2png.c | 185 int channels = 0; in pnm2png() local 333 channels = 1; in pnm2png() 335 channels = 2; in pnm2png() 337 channels = 3; in pnm2png() 339 channels = 4; in pnm2png() 342 channels = 0; /* cannot happen */ in pnm2png() 345 alpha_present = (channels - 1) % 2; in pnm2png() 351 row_bytes = (width * channels * bit_depth + 7) / 8; in pnm2png() 357 row_bytes = width * channels * ((bit_depth <= 8) ? 1 : 2); in pnm2png() 392 for (i = 0; i < (channels - alpha_present); i++) in pnm2png()
|
/AliOS-Things-master/components/a2sa/src/driver/platform/rtos/ |
A D | template.c | 125 int channels; member 150 static pcm_stream_handler_t playback_open(int mode, int sampleRate, int channels, int format, aos_h… in playback_open() argument 159 int send_size = PLAYBACK_MS * channels * format_byte; in playback_open() 170 playback->channels = channels; in playback_open() 185 output_config.sound_channel_num = channels; in playback_open() 217 static pcm_stream_handler_t codec_pcm_stream_open(int mode, int sampleRate, int channels, int forma… in codec_pcm_stream_open() argument 226 hdl = playback_open(mode, sampleRate, channels, format, event_hdl); in codec_pcm_stream_open()
|
/AliOS-Things-master/components/SDL2/src/audio/paudio/ |
A D | SDL_paudio.c | 263 if (this->spec.channels > 1) in PAUDIO_OpenDevice() 264 this->spec.channels = 2; in PAUDIO_OpenDevice() 266 this->spec.channels = 1; in PAUDIO_OpenDevice() 316 paud_init.channels = this->spec.channels; in PAUDIO_OpenDevice() 389 / bytes_per_sample / this->spec.channels; in PAUDIO_OpenDevice() 392 / bytes_per_sample / this->spec.channels / 2; in PAUDIO_OpenDevice() 394 paud_init.bsize = bytes_per_sample * this->spec.channels; in PAUDIO_OpenDevice()
|
/AliOS-Things-master/components/a2sa/example/ |
A D | sound_example_lb.c | 33 int freq = 16000, channels = 1; in sound_loopback_thread() local 37 buf_size = freq * channels * 2 / 5; in sound_loopback_thread() 53 …m_set_params(pb_pcm, AOSRV_PCM_FORMAT_S16_LE, AOS_PCM_ACCESS_RW_INTERLEAVED, channels, freq, 0, 0); in sound_loopback_thread() 67 …_set_params(cap_pcm, AOSRV_PCM_FORMAT_S16_LE, AOS_PCM_ACCESS_RW_INTERLEAVED, channels, freq, 0, 0); in sound_loopback_thread()
|
/AliOS-Things-master/components/SDL2/src/audio/fusionsound/ |
A D | SDL_fsaudio.c | 240 this->hidden->mixsamples = this->spec.size / bytes / this->spec.channels; in SDL_FS_OpenDevice() 247 desc.channels = this->spec.channels; in SDL_FS_OpenDevice() 265 desc.buffersize / FUSION_BUFFERS * bytes * desc.channels; in SDL_FS_OpenDevice() 266 this->spec.channels = desc.channels; in SDL_FS_OpenDevice()
|
/AliOS-Things-master/components/SDL2/src/audio/alsa/ |
A D | SDL_alsa_audio.c | 227 get_audio_device(void *handle, const int channels) in get_audio_device() argument 241 if (channels == 6) { in get_audio_device() 243 } else if (channels == 4) { in get_audio_device() 325 if (this->spec.channels == 6) { in swizzle_alsa_channels() 352 this->spec.channels; in ALSA_PlayDevice() 401 this->spec.channels; in ALSA_CaptureFromDevice() 528 unsigned int channels = 0; in ALSA_OpenDevice() local 545 get_audio_device(handle, this->spec.channels), in ALSA_OpenDevice() 643 this->spec.channels); in ALSA_OpenDevice() 644 channels = this->spec.channels; in ALSA_OpenDevice() [all …]
|
/AliOS-Things-master/components/uvoice/test/ |
A D | test_player.c | 73 static int play_sine_wave(int rate, int bits, int channels, int freq_hz) in play_sine_wave() argument 82 unsigned int sample_size = (bits >> 3) * channels; in play_sine_wave() 89 if (channels != 1 && channels != 2) { in play_sine_wave() 90 M_LOGE("channels %d invalid !\n", channels); in play_sine_wave() 165 uvocplayer->set_pcminfo(rate, channels, bits, samples_per_period); in play_sine_wave() 215 int channels = 2; in play_loopback() local 223 buffer_size = read_samples * channels * (bits >> 3); in play_loopback() 239 if (mrecorder->set_sink(MEDIA_FMT_PCM, rate, channels, bits, read_samples, 0, NULL)) { in play_loopback() 248 uvocplayer->set_pcminfo(rate, channels, bits, read_samples); in play_loopback()
|