Home
last modified time | relevance | path

Searched full:channels (Results 1 – 25 of 2075) sorted by relevance

12345678910>>...83

/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()
102 * @a: First set of supported channels
103 * @b: Second set of supported channels
104 * @res: Data structure for returning the intersection of support channels
106 * This function can be used to find a common set of supported channels. Both
107 * input channels sets are assumed to use the same country code. If different
[all …]
/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/mesa3d/src/mesa/main/
Dformat_parser.py53 self.name = None # Set when the channels are added to the format
54 self.shift = -1 # Set when the channels are added to the format
55 self.index = -1 # Set when the channels are added to the format
107 A Swizzle is a mapping from one set of channels in one format to the
108 channels in another. Each channel in the destination format is
120 case, the source channels are represented by the characters "x", "y",
124 channels maps to the first luminance-alpha channel and the alpha channel
209 a permutation with no channels added or removed, then this
230 …def __init__(self, name, layout, block_width, block_height, block_depth, channels, swizzle, colors… argument
231 """Constructs a Format from some metadata and a list of channels.
[all …]
/external/autotest/client/cros/audio/
Dsox_utils.py13 def _raw_format_args(channels, bits, rate): argument
16 @param channels: Number of channels.
24 args += _format_args(channels, bits, rate)
28 def _format_args(channels, bits, rate): argument
31 @param channels: Number of channels.
38 return ['-c', str(channels), '-b', str(bits), '-r', str(rate)]
42 filename, channels=2, bits=16, rate=48000, duration=None, frequencies=440, argument
47 @param channels: The number of channels.
59 args += _raw_format_args(channels, bits, rate)
61 args += _format_args(channels, bits, rate)
[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.c91 /* then opus_val32 window_mem[channels*120]; */
92 /* then opus_val32 preemph_mem[channels]; */
177 static void channel_pos(int channels, int pos[8]) in channel_pos() argument
180 if (channels==4) in channel_pos()
186 } else if (channels==3||channels==5||channels==6) in channel_pos()
194 } else if (channels==7) in channel_pos()
203 } else if (channels==8) in channel_pos()
256 … int len, int overlap, int channels, int rate, opus_copy_channel_in_func copy_channel_in, int arch in surround_analysis() argument
287 channel_pos(channels, pos); in surround_analysis()
293 for (c=0;c<channels;c++) in surround_analysis()
[all …]
Dopus_encoder.c71 int channels; member
168 int opus_encoder_get_size(int channels) in opus_encoder_get_size() argument
172 if (channels<1 || channels > 2) in opus_encoder_get_size()
178 celtEncSizeBytes = celt_encoder_get_size(channels); in opus_encoder_get_size()
182 int opus_encoder_init(OpusEncoder* st, opus_int32 Fs, int channels, int application) in opus_encoder_init() argument
189 if((Fs!=48000&&Fs!=24000&&Fs!=16000&&Fs!=12000&&Fs!=8000)||(channels!=1&&channels!=2)|| in opus_encoder_init()
194 OPUS_CLEAR((char*)st, opus_encoder_get_size(channels)); in opus_encoder_init()
205 st->stream_channels = st->channels = channels; in opus_encoder_init()
215 st->silk_mode.nChannelsAPI = channels; in opus_encoder_init()
216 st->silk_mode.nChannelsInternal = channels; in opus_encoder_init()
[all …]
/external/tensorflow/tensorflow/python/keras/_impl/keras/layers/
Dpooling.py115 `(batch, height, width, channels)` while `channels_first`
117 `(batch, channels, height, width)`.
125 `(batch_size, rows, cols, channels)`
128 `(batch_size, channels, rows, cols)`
133 `(batch_size, pooled_rows, pooled_cols, channels)`
136 `(batch_size, channels, pooled_rows, pooled_cols)`
181 `(batch, height, width, channels)` while `channels_first`
183 `(batch, channels, height, width)`.
191 `(batch_size, rows, cols, channels)`
194 `(batch_size, channels, rows, cols)`
[all …]
/external/autotest/client/site_tests/audio_Microphone/
Daudio_Microphone.py23 self, filesize, duration, channels, rate, bits=16): argument
24 expected = duration * channels * (bits / 8) * rate
29 def verify_alsa_capture(self, channels, rate, device, bits=16): argument
32 recorded_file.name, duration=DURATION, channels=channels,
36 DURATION, channels, rate, bits)
39 def verify_cras_capture(self, channels, rate): argument
42 recorded_file.name, duration=DURATION, channels=channels,
46 DURATION, channels, rate)
64 channels = alsa_utils.get_record_device_supported_channels(
66 if channels is None:
[all …]
/external/tensorflow/tensorflow/core/kernels/
Dmaxpooling_op_gpu.cu.cc60 // const int output_size = batch * channels * pooled_height * pooled_width;
65 const int channels, const int height, in MaxPoolForwardNCHW() argument
75 int c = (index / pooled_width / pooled_height) % channels; in MaxPoolForwardNCHW()
76 int n = index / pooled_width / pooled_height / channels; in MaxPoolForwardNCHW()
85 const dtype* bottom_data_n = bottom_data + n * channels * height * width; in MaxPoolForwardNCHW()
106 // (so channels = outer_channels, output_size = real output size / 4).
109 const int width, const int channels, const int pooled_height, in MaxPoolForwardNoMaskKernel_NCHW_VECT_C() argument
118 int c = (index / pooled_width / pooled_height) % channels; in MaxPoolForwardNoMaskKernel_NCHW_VECT_C()
119 int n = index / pooled_width / pooled_height / channels; in MaxPoolForwardNoMaskKernel_NCHW_VECT_C()
127 const int32* bottom_data_n = bottom_data + n * channels * height * width; in MaxPoolForwardNoMaskKernel_NCHW_VECT_C()
[all …]
Dresize_bilinear_op_gpu.cu.cc39 int channels, int out_height, in ResizeBilinearKernel() argument
42 // out_idx = c + channels * (x + out_width * (y + out_height * b)) in ResizeBilinearKernel()
44 const int c = idx % channels; in ResizeBilinearKernel()
45 idx /= channels; in ResizeBilinearKernel()
65 channels + in ResizeBilinearKernel()
69 channels + in ResizeBilinearKernel()
73 channels + in ResizeBilinearKernel()
77 channels + in ResizeBilinearKernel()
90 int channels, int resized_height, int resized_width, T* output_grad) { in ResizeBilinearGradKernel() argument
92 // in_idx = c + channels * (x + resized_width * (y + resized_height * b)) in ResizeBilinearGradKernel()
[all …]
Dadjust_contrast_op.cc56 const int64 channels = input.dim_size(input.dims() - 1); in Compute() local
78 const int64 batch = input.NumElements() / (height * width * channels); in Compute()
79 const int64 shape[4] = {batch, height, width, channels}; in Compute()
153 int64 channels = 0; member
164 const int64 channels = input.dim_size(input.dims() - 1); in Compute() local
175 const int64 batch = input.NumElements() / (height * width * channels); in Compute()
183 options.channels = channels; in Compute()
206 const int64 channels = options.channels; in DoCompute() local
214 TensorShape({batch, channels}), &mean_values)); in DoCompute()
216 auto input_data = input->shaped<float, 3>({batch, image_size, channels}); in DoCompute()
[all …]
Dresize_bicubic_op_test.cc115 const int channels = images.dimension(3); in ResizeBicubicBaseline() local
118 ASSERT_EQ(channels, output.dimension(3)); in ResizeBicubicBaseline()
138 for (int64 c = 0; c < channels; ++c) { in ResizeBicubicBaseline()
160 const int target_width, int channels) { in RunRandomTest() argument
162 << channels << " to " << target_height << "x" << target_width in RunRandomTest()
163 << "x" << channels; in RunRandomTest()
165 TensorShape({batch_size, in_height, in_width, channels})); in RunRandomTest()
173 TensorShape({batch_size, target_height, target_width, channels}))); in RunRandomTest()
185 void RunManyRandomTests(int channels) { in RunManyRandomTests() argument
192 channels); in RunManyRandomTests()
[all …]
Dresize_nearest_neighbor_op_gpu.cu.cc38 const int in_width, const int channels, const int out_height, in ResizeNearestNeighborNHWC() argument
43 int c = n % channels; in ResizeNearestNeighborNHWC()
44 n /= channels; in ResizeNearestNeighborNHWC()
50 const T* bottom_data_n = bottom_data + n * channels * in_height * in_width; in ResizeNearestNeighborNHWC()
59 const int idx = (in_y * in_width + in_x) * channels + c; in ResizeNearestNeighborNHWC()
67 const int in_width, const int channels, const int out_height, in ResizeNearestNeighborBackwardNHWC() argument
72 int c = n % channels; in ResizeNearestNeighborBackwardNHWC()
73 n /= channels; in ResizeNearestNeighborBackwardNHWC()
79 T* bottom_diff_n = bottom_diff + n * channels * out_height * out_width; in ResizeNearestNeighborBackwardNHWC()
88 const int idx = (out_y * out_width + out_x) * channels + c; in ResizeNearestNeighborBackwardNHWC()
[all …]
/external/wpa_supplicant_8/src/common/
Dieee802_11_common.c712 * for HT40 and VHT. DFS channels are not covered.
738 /* 2.407 GHz, channels 1..13 */ in ieee80211_freq_to_channel_ext()
784 /* 5 GHz, channels 36..48 */ in ieee80211_freq_to_channel_ext()
803 /* 5 GHz, channels 52..64 */ in ieee80211_freq_to_channel_ext()
822 /* 5 GHz, channels 149..169 */ in ieee80211_freq_to_channel_ext()
843 /* 5 GHz, channels 100..140 */ in ieee80211_freq_to_channel_ext()
923 case 12: /* channels 1..11 */ in ieee80211_chan_to_freq_us()
924 case 32: /* channels 1..7; 40 MHz */ in ieee80211_chan_to_freq_us()
925 case 33: /* channels 5..11; 40 MHz */ in ieee80211_chan_to_freq_us()
929 case 1: /* channels 36,40,44,48 */ in ieee80211_chan_to_freq_us()
[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/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/adhd/cras/src/server/
Dcras_audio_area.c42 if (!(src->channels[src_idx].ch_set & in cras_audio_area_copy()
43 dst->channels[dst_idx].ch_set)) in cras_audio_area_copy()
46 schan = src->channels[src_idx].buf + in cras_audio_area_copy()
47 src_offset * src->channels[src_idx].step_bytes; in cras_audio_area_copy()
48 dchan = dst->channels[dst_idx].buf + in cras_audio_area_copy()
49 dst_offset * dst->channels[dst_idx].step_bytes; in cras_audio_area_copy()
53 dst->channels[dst_idx].step_bytes, in cras_audio_area_copy()
54 src->channels[src_idx].step_bytes, in cras_audio_area_copy()
80 channel_area_set_channel(area->channels, CRAS_CH_FL); in cras_audio_area_config_channels()
81 channel_area_set_channel(area->channels, CRAS_CH_FR); in cras_audio_area_config_channels()
[all …]
/external/libopus/include/
Dopus_multistream.h107 * single packet, enabling support for up to 255 channels. Unlike an
124 * is configured to decode them to either 1 or 2 channels, respectively.
141 * The output channels specified by the encoder
197 * encoded channels (<code>streams +
209 int channels,
220 * @param channels <tt>int</tt>: Number of channels in the input signal.
223 * coded channels (<code>streams +
227 * This must be no more than the number of channels.
233 * encoded channels (<code>streams +
235 * more than the number of input channels.
[all …]
/external/tensorflow/tensorflow/contrib/lite/examples/label_image/
Dbitmap_helpers.cc32 int width, int height, int channels, bool top_down) { in decode_bmp() argument
39 src_pos = ((height - 1 - i) * row_size) + j * channels; in decode_bmp()
41 src_pos = i * row_size + j * channels; in decode_bmp()
44 dst_pos = (i * width + j) * channels; in decode_bmp()
46 switch (channels) { in decode_bmp()
64 LOG(FATAL) << "Unexpected number of channels: " << channels; in decode_bmp()
74 int* channels, Settings* s) { in read_bmp() argument
98 *channels = bpp / 8; in read_bmp()
101 LOG(INFO) << "width, height, channels: " << *width << ", " << *height in read_bmp()
102 << ", " << *channels << "\n"; in read_bmp()
[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 …]
/external/python/cpython2/Lib/test/
Dtest_ossaudiodev.py101 (fmt, channels, rate) = config
103 dsp.channels(channels) == channels and
112 result = dsp.setparameters(fmt, channels, rate, False)
113 self.assertEqual(result, (fmt, channels, rate),
116 result = dsp.setparameters(fmt, channels, rate, True)
117 self.assertEqual(result, (fmt, channels, rate),
122 # channels currently exceeds even Hollywood's ambitions, and
128 channels = 2
131 (fmt, channels, -50), # impossible rate
133 (fmt, channels, rate) = config
[all …]
/external/aac/libPCMutils/src/
Dpcm_utils.cpp110 const UINT channels, const UINT frameSize, in FDK_interleave() argument
114 for (UINT ch = 0; ch < channels; ch++) { in FDK_interleave()
122 const UINT channels, const UINT frameSize, in FDK_interleave() argument
126 for (UINT ch = 0; ch < channels; ch++) { in FDK_interleave()
134 const UINT channels, const UINT frameSize, in FDK_interleave() argument
138 for (UINT ch = 0; ch < channels; ch++) { in FDK_interleave()
146 const UINT channels, const UINT frameSize, in FDK_deinterleave() argument
148 for (UINT ch = 0; ch < channels; ch++) { in FDK_deinterleave()
153 In += channels; in FDK_deinterleave()
159 const UINT channels, const UINT frameSize, in FDK_deinterleave() argument
[all …]
/external/devlib/devlib/instrument/
D__init__.py168 def __init__(self, path, channels=None, sample_rate_hz=None): argument
170 self.channels = channels
172 if self.channels is None:
174 headings = [chan.label for chan in self.channels]
183 yield [Measurement(v, c) for (v, c) in zip(values, self.channels)]
199 self.channels = []
216 self.channels.append(chan)
272 self.channels = collections.OrderedDict()
279 return self.channels.values()
288 self.channels[chan.label] = chan
[all …]
/external/libpng/
Dpngwtran.c21 * row_info bit depth should be 8 (one pixel per byte). The channels
30 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 unsigned 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()
[all …]

12345678910>>...83