Home
last modified time | relevance | path

Searched refs:channels (Results 1 – 25 of 595) sorted by relevance

12345678910>>...24

/external/libpng/contrib/tools/
Dcvtcolor.c53 int channels = 0; in main() local
92 ++channels; in main()
95 ++channels; in main()
98 ++channels; in main()
101 ++channels; in main()
108 int components = channels; in main()
114 if (components < channels) in main()
123 if ((channels & 1) == 0) in main()
125 double alpha = c[channels-1]; in main()
128 for (i=0; i<channels-1; ++i) c[i] /= alpha; in main()
[all …]
/external/wpa_supplicant_8/src/p2p/
Dp2p_utils.c87 for (i = 0; i < a->channels; i++) { in p2p_reg_class_intersect()
88 for (j = 0; j < b->channels; j++) { in p2p_reg_class_intersect()
91 res->channel[res->channels] = a->channel[i]; in p2p_reg_class_intersect()
92 res->channels++; in p2p_reg_class_intersect()
93 if (res->channels == P2P_MAX_REG_CLASS_CHANNELS) in p2p_reg_class_intersect()
128 if (res->reg_class[res->reg_classes].channels) { in p2p_channels_intersect()
143 for (i = 0; i < b_cl->channels; i++) { in p2p_op_class_union()
144 for (j = 0; j < cl->channels; j++) { in p2p_op_class_union()
148 if (j == cl->channels) { in p2p_op_class_union()
149 if (cl->channels == P2P_MAX_REG_CLASS_CHANNELS) in p2p_op_class_union()
[all …]
/external/webrtc/webrtc/modules/audio_coding/neteq/
Dnormal_unittest.cc36 size_t channels = 1; in TEST() local
37 BackgroundNoise bgn(channels); in TEST()
41 Expand expand(&bgn, &sync_buffer, &random_vector, &statistics, fs, channels); in TEST()
50 size_t channels = 1; in TEST() local
51 BackgroundNoise bgn(channels); in TEST()
56 channels); in TEST()
60 rtc::scoped_ptr<int16_t[]> mute_factor_array(new int16_t[channels]); in TEST()
61 for (size_t i = 0; i < channels; ++i) { in TEST()
64 AudioMultiVector output(channels); in TEST()
96 size_t channels = 2; in TEST() local
[all …]
/external/autotest/client/site_tests/audio_Microphone/
Daudio_Microphone.py21 self, filesize, duration, channels, rate, bits=16): argument
22 expected = duration * channels * (bits / 8) * rate
27 def verify_alsa_capture(self, channels, rate, bits=16): argument
30 recorded_file.name, duration=DURATION, channels=channels,
34 DURATION, channels, rate, bits)
37 def verify_cras_capture(self, channels, rate): argument
40 recorded_file.name, duration=DURATION, channels=channels,
44 DURATION, channels, rate)
51 channels = alsa_utils.get_card_preferred_record_channels()
52 if channels is None:
[all …]
/external/libopus/src/
Dopus_decoder.c58 int channels; member
82 int opus_decoder_get_size(int channels) in opus_decoder_get_size() argument
86 if (channels<1 || channels > 2) in opus_decoder_get_size()
92 celtDecSizeBytes = celt_decoder_get_size(channels); in opus_decoder_get_size()
96 int opus_decoder_init(OpusDecoder *st, opus_int32 Fs, int channels) in opus_decoder_init() argument
103 || (channels!=1&&channels!=2)) in opus_decoder_init()
106 OPUS_CLEAR((char*)st, opus_decoder_get_size(channels)); in opus_decoder_init()
117 st->stream_channels = st->channels = channels; in opus_decoder_init()
121 st->DecControl.nChannelsAPI = st->channels; in opus_decoder_init()
128 ret = celt_decoder_init(celt_dec, Fs, channels); in opus_decoder_init()
[all …]
Dopus_multistream_encoder.c155 static void channel_pos(int channels, int pos[8]) in channel_pos() argument
158 if (channels==4) in channel_pos()
164 } else if (channels==3||channels==5||channels==6) in channel_pos()
172 } else if (channels==7) in channel_pos()
181 } else if (channels==8) in channel_pos()
234 … int len, int overlap, int channels, int rate, opus_copy_channel_in_func copy_channel_in, int arch in surround_analysis() argument
263 channel_pos(channels, pos); in surround_analysis()
269 for (c=0;c<channels;c++) in surround_analysis()
272 (*copy_channel_in)(x, 1, pcm, channels, c, len); in surround_analysis()
333 channel_offset = HALF16(celt_log2(QCONST32(2.f,14)/(channels-1))); in surround_analysis()
[all …]
Dopus_encoder.c67 int channels; member
150 int opus_encoder_get_size(int channels) in opus_encoder_get_size() argument
154 if (channels<1 || channels > 2) in opus_encoder_get_size()
160 celtEncSizeBytes = celt_encoder_get_size(channels); in opus_encoder_get_size()
164 int opus_encoder_init(OpusEncoder* st, opus_int32 Fs, int channels, int application) in opus_encoder_init() argument
171 if((Fs!=48000&&Fs!=24000&&Fs!=16000&&Fs!=12000&&Fs!=8000)||(channels!=1&&channels!=2)|| in opus_encoder_init()
176 OPUS_CLEAR((char*)st, opus_encoder_get_size(channels)); in opus_encoder_init()
187 st->stream_channels = st->channels = channels; in opus_encoder_init()
197 st->silk_mode.nChannelsAPI = channels; in opus_encoder_init()
198 st->silk_mode.nChannelsInternal = channels; in opus_encoder_init()
[all …]
/external/webrtc/webrtc/modules/audio_processing/
Daudio_buffer.cc127 input_buffer_->fbuf()->channels()[0]); in CopyFrom()
128 data_ptr = input_buffer_->fbuf_const()->channels(); in CopyFrom()
136 process_buffer_->channels()[i], in CopyFrom()
139 data_ptr = process_buffer_->channels(); in CopyFrom()
146 data_->fbuf()->channels()[i]); in CopyFrom()
159 data_ptr = process_buffer_->channels(); in CopyTo()
162 FloatS16ToFloat(data_->fbuf()->channels()[i], in CopyTo()
192 return data_->ibuf_const()->channels(); in channels_const()
195 int16_t* const* AudioBuffer::channels() { in channels() function in webrtc::AudioBuffer
197 return data_->ibuf()->channels(); in channels()
[all …]
/external/webrtc/webrtc/common_audio/
Dblocker_unittest.cc164 input_cb.channels(), in TEST_F()
165 input_chunk_cb.channels(), in TEST_F()
166 actual_output_cb.channels(), in TEST_F()
167 output_chunk_cb.channels(), in TEST_F()
171 ValidateSignalEquality(expected_output_cb.channels(), in TEST_F()
172 actual_output_cb.channels(), in TEST_F()
217 input_cb.channels(), in TEST_F()
218 input_chunk_cb.channels(), in TEST_F()
219 actual_output_cb.channels(), in TEST_F()
220 output_chunk_cb.channels(), in TEST_F()
[all …]
Daudio_ring_buffer.cc20 AudioRingBuffer::AudioRingBuffer(size_t channels, size_t max_frames) { in AudioRingBuffer() argument
21 buffers_.reserve(channels); in AudioRingBuffer()
22 for (size_t i = 0; i < channels; ++i) in AudioRingBuffer()
31 void AudioRingBuffer::Write(const float* const* data, size_t channels, in Write() argument
33 RTC_DCHECK_EQ(buffers_.size(), channels); in Write()
34 for (size_t i = 0; i < channels; ++i) { in Write()
40 void AudioRingBuffer::Read(float* const* data, size_t channels, size_t frames) { in Read() argument
41 RTC_DCHECK_EQ(buffers_.size(), channels); in Read()
42 for (size_t i = 0; i < channels; ++i) { in Read()
Dblocker.cc181 input_buffer_.Read(input_block_.channels(), num_input_channels, in ProcessChunk()
188 input_block_.channels()); in ProcessChunk()
189 callback_->ProcessBlock(input_block_.channels(), in ProcessChunk()
193 output_block_.channels()); in ProcessChunk()
197 output_block_.channels()); in ProcessChunk()
199 AddFrames(output_buffer_.channels(), in ProcessChunk()
201 output_block_.channels(), in ProcessChunk()
205 output_buffer_.channels(), in ProcessChunk()
212 CopyFrames(output_buffer_.channels(), in ProcessChunk()
221 MoveFrames(output_buffer_.channels(), in ProcessChunk()
[all …]
/external/libvorbis/lib/
Dmapping0.c81 oggpack_write(opb,info->coupling_mag[i],ilog(vi->channels)); in mapping0_pack()
82 oggpack_write(opb,info->coupling_ang[i],ilog(vi->channels)); in mapping0_pack()
91 for(i=0;i<vi->channels;i++) in mapping0_pack()
122 int testM=info->coupling_mag[i]=oggpack_read(opb,ilog(vi->channels)); in mapping0_unpack()
123 int testA=info->coupling_ang[i]=oggpack_read(opb,ilog(vi->channels)); in mapping0_unpack()
128 testM>=vi->channels || in mapping0_unpack()
129 testA>=vi->channels) goto err_out; in mapping0_unpack()
137 for(i=0;i<vi->channels;i++){ in mapping0_unpack()
247 int *nonzero = alloca(sizeof(*nonzero)*vi->channels); in mapping0_forward()
248 float **gmdct = _vorbis_block_alloc(vb,vi->channels*sizeof(*gmdct)); in mapping0_forward()
[all …]
/external/autotest/client/cros/audio/
Dsox_utils.py12 def _raw_format_args(channels, bits, rate): argument
23 args += _format_args(channels, bits, rate)
27 def _format_args(channels, bits, rate): argument
37 return ['-c', str(channels), '-b', str(bits), '-r', str(rate)]
41 filename, channels=2, bits=16, rate=48000, duration=None, frequencies=440, argument
58 args += _raw_format_args(channels, bits, rate)
60 args += _format_args(channels, bits, rate)
79 def noise_profile_cmd(input, output, channels=1, bits=16, rate=48000): argument
89 args += _raw_format_args(channels, bits, rate)
100 input, output, noise_profile, channels=1, bits=16, rate=48000): argument
[all …]
/external/webrtc/webrtc/modules/audio_coding/codecs/opus/
Dopus_interface.c45 size_t channels, in WebRtcOpus_EncoderCreate() argument
66 state->zero_counts = calloc(channels, sizeof(size_t)); in WebRtcOpus_EncoderCreate()
70 state->encoder = opus_encoder_create(48000, (int)channels, opus_app, in WebRtcOpus_EncoderCreate()
78 state->channels = channels; in WebRtcOpus_EncoderCreate()
110 const size_t channels = inst->channels; in WebRtcOpus_Encode() local
117 for (c = 0; c < channels; ++c) { in WebRtcOpus_Encode()
118 if (audio_in[i * channels + c] == 0) { in WebRtcOpus_Encode()
122 memcpy(buffer, audio_in, samples * channels * sizeof(int16_t)); in WebRtcOpus_Encode()
125 buffer[i * channels + c] = kZeroBreakValue; in WebRtcOpus_Encode()
251 int16_t WebRtcOpus_DecoderCreate(OpusDecInst** inst, size_t channels) { in WebRtcOpus_DecoderCreate() argument
[all …]
/external/pdfium/third_party/libpng16/
Dpngwtran.c30 row_info->channels == 1) in png_do_pack()
156 row_info->pixel_depth = (png_byte)(bit_depth * row_info->channels); in png_do_pack()
180 int channels = 0; in png_do_shift() local
184 shift_start[channels] = row_info->bit_depth - bit_depth->red; in png_do_shift()
185 shift_dec[channels] = bit_depth->red; in png_do_shift()
186 channels++; in png_do_shift()
188 shift_start[channels] = row_info->bit_depth - bit_depth->green; in png_do_shift()
189 shift_dec[channels] = bit_depth->green; in png_do_shift()
190 channels++; in png_do_shift()
192 shift_start[channels] = row_info->bit_depth - bit_depth->blue; in png_do_shift()
[all …]
/external/libpng/
Dpngwtran.c30 row_info->channels == 1) in png_do_pack()
156 row_info->pixel_depth = (png_byte)(bit_depth * row_info->channels); in png_do_pack()
180 int channels = 0; in png_do_shift() local
184 shift_start[channels] = row_info->bit_depth - bit_depth->red; in png_do_shift()
185 shift_dec[channels] = bit_depth->red; in png_do_shift()
186 channels++; in png_do_shift()
188 shift_start[channels] = row_info->bit_depth - bit_depth->green; in png_do_shift()
189 shift_dec[channels] = bit_depth->green; in png_do_shift()
190 channels++; in png_do_shift()
192 shift_start[channels] = row_info->bit_depth - bit_depth->blue; in png_do_shift()
[all …]
/external/skia/third_party/libpng/
Dpngwtran.c30 row_info->channels == 1) in png_do_pack()
156 row_info->pixel_depth = (png_byte)(bit_depth * row_info->channels); in png_do_pack()
180 int channels = 0; in png_do_shift() local
184 shift_start[channels] = row_info->bit_depth - bit_depth->red; in png_do_shift()
185 shift_dec[channels] = bit_depth->red; in png_do_shift()
186 channels++; in png_do_shift()
188 shift_start[channels] = row_info->bit_depth - bit_depth->green; in png_do_shift()
189 shift_dec[channels] = bit_depth->green; in png_do_shift()
190 channels++; in png_do_shift()
192 shift_start[channels] = row_info->bit_depth - bit_depth->blue; in png_do_shift()
[all …]
/external/libopus/celt/
Dopus_custom_demo.c51 opus_int32 frame_size, channels, rate; in main() local
71 channels = atoi(argv[2]); in main()
104 enc = opus_custom_encoder_create(mode, channels, &err); in main()
112 dec = opus_custom_decoder_create(mode, channels, &err); in main()
128 in = (opus_int16*)malloc(frame_size*channels*sizeof(opus_int16)); in main()
129 out = (opus_int16*)malloc(frame_size*channels*sizeof(opus_int16)); in main()
134 err = fread(in, sizeof(short), frame_size*channels, fin); in main()
174 for (i=0;i<ret*channels;i++) in main()
178 for (i=0;i<ret*channels;i++) in main()
185 fwrite(out+skip*channels, sizeof(short), (ret-skip)*channels, fout); in main()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_format_parse.py107 def __init__(self, name, layout, block_width, block_height, channels, swizzles, colorspace): argument
112 self.channels = channels
132 for channel in self.channels:
138 for channel in self.channels:
146 ref_channel = self.channels[0]
147 for channel in self.channels[1:]:
155 ref_channel = self.channels[0]
157 ref_channel = self.channels[1]
158 for channel in self.channels[1:]:
174 for channel in self.channels:
[all …]
/external/webrtc/webrtc/modules/audio_coding/test/
Dopus_test.cc161 opus_codec_param.channels = 1; in Perform()
208 void OpusTest::Run(TestPackStereo* channel, size_t channels, int bitrate, in Run() argument
247 if (channels == 1) { in Run()
264 channels, in Run()
267 written_samples += 480 * channels; in Run()
272 (channels * frame_length); in Run()
280 (channels == 1) ? opus_mono_encoder_ : opus_stereo_encoder_, in Run()
301 if (channels == 1) { in Run()
305 &out_audio[decoded_samples * channels], &audio_type); in Run()
308 opus_mono_decoder_, &out_audio[decoded_samples * channels], 1); in Run()
[all …]
/external/tremolo/Tremolo/
Dmapping0.c87 int testM=info->coupling[i].mag=(unsigned char)(oggpack_read(opb,ilog(vi->channels))); in mapping_info_unpack()
88 int testA=info->coupling[i].ang=(unsigned char)(oggpack_read(opb,ilog(vi->channels))); in mapping_info_unpack()
93 testM>=vi->channels || in mapping_info_unpack()
94 testA>=vi->channels) goto err_out; in mapping_info_unpack()
102 info->chmuxlist=_ogg_malloc(sizeof(*info->chmuxlist)*vi->channels); in mapping_info_unpack()
103 for(i=0;i<vi->channels;i++){ in mapping_info_unpack()
133 alloca(sizeof(*pcmbundle)*vi->channels); in mapping_inverse()
135 alloca(sizeof(*zerobundle)*vi->channels); in mapping_inverse()
137 alloca(sizeof(*nonzero)*vi->channels); in mapping_inverse()
139 alloca(sizeof(*floormemo)*vi->channels); in mapping_inverse()
[all …]
/external/webrtc/webrtc/modules/audio_processing/test/
Ddebug_dump_test.cc74 void SetOutputChannels(int channels);
84 static void ReadAndDeinterleave(ResampleInputAudioFile* audio, int channels,
156 const int channels = mono ? 1 : input_file_channels_; in ForceInputMono() local
157 input_config_.set_num_channels(channels); in ForceInputMono()
168 const int channels = mono ? 1 : reverse_file_channels_; in ForceReverseMono() local
169 reverse_config_.set_num_channels(channels); in ForceReverseMono()
178 void DebugDumpGenerator::SetOutputChannels(int channels) { in SetOutputChannels() argument
179 output_config_.set_num_channels(channels); in SetOutputChannels()
190 reverse_config_, reverse_->channels()); in Process()
192 input_->channels()); in Process()
[all …]
/external/syslinux/com32/lib/libpng/
Dpngwtran.c100 row_info->channels == 1) in png_do_pack()
203 row_info->pixel_depth = (png_byte)(bit_depth * row_info->channels); in png_do_pack()
231 int channels = 0; in png_do_shift() local
235 shift_start[channels] = row_info->bit_depth - bit_depth->red; in png_do_shift()
236 shift_dec[channels] = bit_depth->red; in png_do_shift()
237 channels++; in png_do_shift()
238 shift_start[channels] = row_info->bit_depth - bit_depth->green; in png_do_shift()
239 shift_dec[channels] = bit_depth->green; in png_do_shift()
240 channels++; in png_do_shift()
241 shift_start[channels] = row_info->bit_depth - bit_depth->blue; in png_do_shift()
[all …]
/external/ImageMagick/coders/
Dvips.c306 const VIPSBandFormat format,const VIPSType type,const unsigned int channels, in ReadVIPSPixelsNONE() argument
330 if (channels < 3) in ReadVIPSPixelsNONE()
334 if (channels == 2) in ReadVIPSPixelsNONE()
341 if (channels == 4) in ReadVIPSPixelsNONE()
348 else if (channels == 5) in ReadVIPSPixelsNONE()
379 channels, in ReadVIPSImage() local
418 channels=ReadBlobLong(image); in ReadVIPSImage()
451 if (channels == 5) in ReadVIPSImage()
457 if (channels == 2) in ReadVIPSImage()
463 if (channels == 4) in ReadVIPSImage()
[all …]
Dexr.c379 channels, in WriteEXRImage() local
434 channels=0; in WriteEXRImage()
439 channels=IMF_WRITE_RGB; in WriteEXRImage()
441 channels=IMF_WRITE_RGBA; in WriteEXRImage()
443 channels=IMF_WRITE_YC; in WriteEXRImage()
445 channels=IMF_WRITE_YCA; in WriteEXRImage()
447 channels=IMF_WRITE_Y; in WriteEXRImage()
449 channels=IMF_WRITE_YA; in WriteEXRImage()
451 channels=IMF_WRITE_R; in WriteEXRImage()
453 channels=IMF_WRITE_G; in WriteEXRImage()
[all …]

12345678910>>...24