/external/libpng/contrib/tools/ |
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() 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/ |
D | p2p_utils.c | 87 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/opencv3/modules/core/include/opencv2/core/ |
D | traits.hpp | 115 channels = 1, enumerator 117 type = CV_MAKETYPE(depth, channels) 130 channels = 1, enumerator 132 type = CV_MAKETYPE(depth, channels) 145 channels = 1, enumerator 147 type = CV_MAKETYPE(depth, channels) 160 channels = 1, enumerator 162 type = CV_MAKETYPE(depth, channels) 175 channels = 1, enumerator 177 type = CV_MAKETYPE(depth, channels) [all …]
|
/external/webrtc/webrtc/modules/audio_coding/neteq/ |
D | normal_unittest.cc | 36 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/libopus/src/ |
D | opus_decoder.c | 58 int channels; member 87 int opus_decoder_get_size(int channels) in opus_decoder_get_size() argument 91 if (channels<1 || channels > 2) in opus_decoder_get_size() 97 celtDecSizeBytes = celt_decoder_get_size(channels); in opus_decoder_get_size() 101 int opus_decoder_init(OpusDecoder *st, opus_int32 Fs, int channels) in opus_decoder_init() argument 108 || (channels!=1&&channels!=2)) in opus_decoder_init() 111 OPUS_CLEAR((char*)st, opus_decoder_get_size(channels)); in opus_decoder_init() 122 st->stream_channels = st->channels = channels; in opus_decoder_init() 126 st->DecControl.nChannelsAPI = st->channels; in opus_decoder_init() 133 ret = celt_decoder_init(celt_dec, Fs, channels); in opus_decoder_init() [all …]
|
D | opus_multistream_encoder.c | 142 static void channel_pos(int channels, int pos[8]) in channel_pos() argument 145 if (channels==4) in channel_pos() 151 } else if (channels==3||channels==5||channels==6) in channel_pos() 159 } else if (channels==7) in channel_pos() 168 } else if (channels==8) in channel_pos() 221 int len, int overlap, int channels, int rate, opus_copy_channel_in_func copy_channel_in in surround_analysis() argument 249 channel_pos(channels, pos); in surround_analysis() 255 for (c=0;c<channels;c++) in surround_analysis() 258 (*copy_channel_in)(x, 1, pcm, channels, c, len); in surround_analysis() 305 channel_offset = HALF16(celt_log2(QCONST32(2.f,14)/(channels-1))); in surround_analysis() [all …]
|
D | opus_encoder.c | 66 int channels; member 148 int opus_encoder_get_size(int channels) in opus_encoder_get_size() argument 152 if (channels<1 || channels > 2) in opus_encoder_get_size() 158 celtEncSizeBytes = celt_encoder_get_size(channels); in opus_encoder_get_size() 162 int opus_encoder_init(OpusEncoder* st, opus_int32 Fs, int channels, int application) in opus_encoder_init() argument 169 if((Fs!=48000&&Fs!=24000&&Fs!=16000&&Fs!=12000&&Fs!=8000)||(channels!=1&&channels!=2)|| in opus_encoder_init() 174 OPUS_CLEAR((char*)st, opus_encoder_get_size(channels)); in opus_encoder_init() 185 st->stream_channels = st->channels = channels; in opus_encoder_init() 195 st->silk_mode.nChannelsAPI = channels; in opus_encoder_init() 196 st->silk_mode.nChannelsInternal = channels; in opus_encoder_init() [all …]
|
/external/webrtc/webrtc/modules/audio_processing/ |
D | audio_buffer.cc | 127 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/opencv3/modules/cudaimgproc/src/ |
D | color.cpp | 92 CV_Assert( src.channels() == 3 ); in BGR_to_RGB() 108 CV_Assert( src.channels() == 3 ); in BGR_to_BGRA() 124 CV_Assert( src.channels() == 3 ); in BGR_to_RGBA() 140 CV_Assert( src.channels() == 4 ); in BGRA_to_BGR() 156 CV_Assert( src.channels() == 4 ); in BGRA_to_RGB() 172 CV_Assert( src.channels() == 4 ); in BGRA_to_RGBA() 185 CV_Assert( src.channels() == 3 ); in BGR_to_BGR555() 198 CV_Assert( src.channels() == 3 ); in BGR_to_BGR565() 211 CV_Assert( src.channels() == 3 ); in RGB_to_BGR555() 224 CV_Assert( src.channels() == 3 ); in RGB_to_BGR565() [all …]
|
/external/opencv3/modules/photo/src/ |
D | merge.cpp | 69 int channels = images[0].channels(); in process() local 71 int CV_32FCC = CV_MAKETYPE(CV_32F, channels); in process() 79 response = linearResponse(channels); in process() 84 response.channels() == channels); in process() 99 for(int c = 0; c < channels; c++) { in process() 103 w /= channels; in process() 108 for(int c = 0; c < channels; c++) { in process() 114 for(int c = 0; c < channels; c++) { in process() 158 int channels = images[0].channels(); in process() local 159 CV_Assert(channels == 1 || channels == 3); in process() [all …]
|
D | hdr_common.cpp | 86 std::vector<Mat> channels(3); in mapLuminance() local 87 split(src, channels); in mapLuminance() 89 channels[i] = channels[i].mul(1.0f / lum); in mapLuminance() 90 pow(channels[i], saturation, channels[i]); in mapLuminance() 91 channels[i] = channels[i].mul(new_lum); in mapLuminance() 93 merge(channels, dst); in mapLuminance() 96 Mat linearResponse(int channels) in linearResponse() argument 98 Mat response = Mat(LDR_SIZE, 1, CV_MAKETYPE(CV_32F, channels)); in linearResponse()
|
/external/webrtc/webrtc/common_audio/ |
D | blocker_unittest.cc | 164 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 …]
|
D | audio_ring_buffer.cc | 20 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()
|
D | blocker.cc | 181 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/ |
D | mapping0.c | 81 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/site_tests/audio_Microphone/ |
D | audio_Microphone.py | 20 self, filesize, duration, channels, rate, bits=16): argument 21 expected = duration * channels * (bits / 8) * rate 26 def verify_alsa_capture(self, channels, rate, bits=16): argument 29 recorded_file.name, duration=DURATION, channels=channels, 33 DURATION, channels, rate, bits) 36 def verify_cras_capture(self, channels, rate): argument 39 recorded_file.name, duration=DURATION, channels=channels, 43 DURATION, channels, rate)
|
/external/opencv3/modules/imgcodecs/src/ |
D | grfmt_webp.cpp | 147 channels = 4; in readHeader() 152 channels = 3; in readHeader() 174 if (channels == 3) in readData() 179 else if (channels == 4) in readData() 209 int channels = img.channels(), depth = img.depth(); in write() local 243 if(channels == 1) in write() 247 channels = 3; in write() 249 else if (channels == 2) in write() 256 if(channels == 3) in write() 260 else if(channels == 4) in write() [all …]
|
D | grfmt_gdal.cpp | 101 int gdal2opencv( const GDALDataType& gdalType, const int& channels ){ in gdal2opencv() argument 107 if( channels == 1 ){ return CV_8UC1; } in gdal2opencv() 108 if( channels == 3 ){ return CV_8UC3; } in gdal2opencv() 109 if( channels == 4 ){ return CV_8UC4; } in gdal2opencv() 114 if( channels == 1 ){ return CV_16UC1; } in gdal2opencv() 115 if( channels == 3 ){ return CV_16UC3; } in gdal2opencv() 116 if( channels == 4 ){ return CV_16UC4; } in gdal2opencv() 121 if( channels == 1 ){ return CV_16SC1; } in gdal2opencv() 122 if( channels == 3 ){ return CV_16SC3; } in gdal2opencv() 123 if( channels == 4 ){ return CV_16SC4; } in gdal2opencv() [all …]
|
/external/webrtc/webrtc/modules/audio_coding/codecs/opus/ |
D | opus_interface.c | 45 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/libpng/ |
D | pngwtran.c | 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 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/opencv3/modules/core/misc/java/src/java/ |
D | core+CvType.java | 26 public static final int makeType(int depth, int channels) { in makeType() argument 27 if (channels <= 0 || channels >= CV_CN_MAX) { in makeType() 35 return (depth & (CV_DEPTH_MAX - 1)) + ((channels - 1) << CV_CN_SHIFT); in makeType() 66 public static final int channels(int type) { in channels() method in CvType 82 return channels(type); in ELEM_SIZE() 85 return 2 * channels(type); in ELEM_SIZE() 88 return 4 * channels(type); in ELEM_SIZE() 90 return 8 * channels(type); in ELEM_SIZE() 129 int ch = channels(type); in typeToString()
|
/external/opencv3/modules/cudaimgproc/test/ |
D | test_color.cpp | 606 ASSERT_EQ(4, dst.channels()); in CUDA_TEST_P() 613 cv::Mat channels[4]; in CUDA_TEST_P() local 614 cv::split(h_dst, channels); in CUDA_TEST_P() 615 cv::merge(channels, 3, h_dst); in CUDA_TEST_P() 628 ASSERT_EQ(4, dst.channels()); in CUDA_TEST_P() 635 cv::Mat channels[4]; in CUDA_TEST_P() local 636 cv::split(h_dst, channels); in CUDA_TEST_P() 637 cv::merge(channels, 3, h_dst); in CUDA_TEST_P() 678 cv::Mat channels[4]; in CUDA_TEST_P() local 679 cv::split(src, channels); in CUDA_TEST_P() [all …]
|
/external/libopus/celt/ |
D | opus_custom_demo.c | 51 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/ |
D | u_format_parse.py | 107 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/autotest/client/cros/audio/ |
D | sox_utils.py | 12 def _raw_format_args(channels, bits, rate): argument 14 args += ['-c', str(channels)] 20 filename, channels=2, bits=16, rate=48000, duration=None, frequence=440, argument 33 args += _raw_format_args(channels, bits, rate) 49 def noise_profile_cmd(input, output, channels=1, bits=16, rate=48000): argument 59 args += _raw_format_args(channels, bits, rate) 70 input, output, noise_profile, channels=1, bits=16, rate=48000): argument 81 format_args = _raw_format_args(channels, bits, rate) 93 input, output, channel_index, channels=2, bits=16, rate=48000): argument 105 args += _raw_format_args(channels, bits, rate) [all …]
|