/external/opencv3/modules/core/include/opencv2/core/ |
opengl.hpp | 264 int channels() const; 596 int cv::ogl::Buffer::channels() const function in class:cv::ogl::Buffer
|
/external/opencv3/modules/core/misc/java/src/java/ |
core+CvType.java | 26 public static final int makeType(int depth, int channels) { 27 if (channels <= 0 || channels >= CV_CN_MAX) { 29 "Channels count should be 1.." + (CV_CN_MAX - 1)); 35 return (depth & (CV_DEPTH_MAX - 1)) + ((channels - 1) << CV_CN_SHIFT); 66 public static final int channels(int type) { method in class:CvType 82 return channels(type); 85 return 2 * channels(type); 88 return 4 * channels(type); 90 return 8 * channels(type) [all...] |
/external/opencv3/modules/cudaarithm/test/ |
test_reductions.cpp | 184 const int cn = src.channels(); 221 const int cn = src.channels(); 300 cv::Mat val_mat(dst.size(), CV_64FC(dst.channels()), val.val); 327 cv::Mat val_mat(dst.size(), CV_64FC(dst.channels()), val.val); 354 cv::Mat val_mat(dst.size(), CV_64FC(dst.channels()), val.val); 825 PARAM_TEST_CASE(Reduce, cv::cuda::DeviceInfo, cv::Size, MatDepth, Channels, ReduceCode, UseRoi) 830 int channels; local 843 channels = GET_PARAM(3); 849 type = CV_MAKE_TYPE(depth, channels); 858 dst_type = CV_MAKE_TYPE(dst_depth, channels); [all...] |
/external/opencv3/modules/imgcodecs/src/ |
grfmt_bmp.cpp | 188 bool color = img.channels() > 1; 504 int width = img.cols, height = img.rows, channels = img.channels(); local 505 int fileStep = (width*channels + 3) & -4; 518 int paletteSize = channels > 1 ? 0 : 1024; 539 strm.putWord( channels << 3 ); 547 if( channels == 1 ) 553 width *= channels;
|
grfmt_exr.cpp | 129 const ChannelList &channels = m_file->header().channels(); local 130 m_red = channels.findChannel( "R" ); 131 m_green = channels.findChannel( "G" ); 132 m_blue = channels.findChannel( "B" ); 141 m_green = channels.findChannel( "Y" ); 145 m_red = channels.findChannel( "RY" ); 146 m_blue = channels.findChannel( "BY" ); 188 bool color = img.channels() > 1; 581 int depth = img.depth(), channels = img.channels() local [all...] |
grfmt_png.cpp | 230 int color = img.channels() > 1; 249 if(img.channels() < 4) 347 int depth = img.depth(), channels = img.channels(); local 412 channels == 1 ? PNG_COLOR_TYPE_GRAY : 413 channels == 3 ? PNG_COLOR_TYPE_RGB : PNG_COLOR_TYPE_RGBA,
|
grfmt_pxm.cpp | 191 int color = img.channels() > 1; 375 int _channels = img.channels(), depth = (int)img.elemSize1()*8; 376 int channels = _channels > 1 ? 3 : 1; local 390 int t = CV_MAKETYPE(img.depth(), channels); 404 lineLength = (6 * channels + (channels > 1 ? 2 : 0)) * width + 32; 414 '2' + (channels > 1 ? 1 : 0) + (isBinary ? 3 : 0), 439 for( x = 0; x < width*channels*2; x += 2 ) 446 strm.putBytes( (channels > 1 || depth > 8) ? buffer : (const char*)data, fileStep ); 452 if( channels > 1 [all...] |
loadsave.cpp | 435 CV_Assert( image.channels() == 1 || image.channels() == 3 || image.channels() == 4 ); 573 int channels = image.channels(); local 574 CV_Assert( channels == 1 || channels == 3 || channels == 4 );
|
/external/opencv3/modules/imgproc/test/ocl/ |
test_histogram.cpp | 72 std::vector<int> channels; local 104 channels.clear(); 115 channels.push_back(randomInt(0, cn) + totalChannels); 125 cv::calcHist(images_roi, channels, noArray(), tmpHist, hist_size, ranges); 205 OCL_OFF(cv::calcBackProject(images_roi, channels, hist_roi, dst_roi, ranges, scale)); 206 OCL_ON(cv::calcBackProject(uimages_roi, channels, uhist_roi, udst_roi, ranges, scale)); 253 const std::vector<int> channels(1, 0); 263 OCL_OFF(cv::calcHist(std::vector<Mat>(1, src_roi), channels, noArray(), hist_roi, histSize, ranges, false)); 264 OCL_ON(cv::calcHist(std::vector<UMat>(1, usrc_roi), channels, noArray(), uhist_roi, histSize, ranges, false));
|
/external/opencv3/modules/photo/src/ |
calibrate.cpp | 74 int channels = images[0].channels(); local 75 int CV_32FCC = CV_MAKETYPE(CV_32F, channels); 100 std::vector<Mat> result_split(channels); 101 for(int channel = 0; channel < channels; channel++) { 194 int channels = images[0].channels(); local 195 int CV_32FCC = CV_MAKETYPE(CV_32F, channels); 205 for(int c = 0; c < channels; c++, ptr++) { 223 for(int c = 0; c < channels; c++, ptr++, rad_ptr++) [all...] |
merge.cpp | 69 int channels = images[0].channels(); local 71 int CV_32FCC = CV_MAKETYPE(CV_32F, channels); 79 response = linearResponse(channels); 84 response.channels() == channels); 99 for(int c = 0; c < channels; c++) { 103 w /= channels; 108 for(int c = 0; c < channels; c++) { 114 for(int c = 0; c < channels; c++) 158 int channels = images[0].channels(); local 309 int channels = images[0].channels(); local [all...] |
seamless_cloning_impl.cpp | 54 if(img.channels() == 3) 58 else if (img.channels() == 1) 75 if(img.channels() == 3) 79 else if (img.channels() == 1) 282 vector <Mat> channels; local 283 split(mat,channels); 284 multiply(channels[2],r,channels[2]); 285 multiply(channels[1],g,channels[1]) [all...] |
/external/pdfium/third_party/lpng_v163/ |
pnginfo.h | 76 png_byte channels; /* number of data channels per pixel (1, 2, 3, 4) */
member in struct:png_info_def 136 * only specified for the channels in the pixel data. The contents of
140 png_color_8 sig_bit; /* significant bits in color channels */
|
/external/speex/libspeex/ |
scal.c | 59 int channels; member in struct:SpeexDecorrState_ 81 EXPORT SpeexDecorrState *speex_decorrelate_new(int rate, int channels, int frame_size) 86 st->channels = channels; 96 st->buff = speex_alloc(channels*2*frame_size*sizeof(float)); 97 st->ringID = speex_alloc(channels*sizeof(int)); 98 st->order = speex_alloc(channels*sizeof(int)); 99 st->alpha = speex_alloc(channels*sizeof(float)); 100 st->ring = speex_alloc(channels*ALLPASS_ORDER*sizeof(float)); 108 for (ch=0;ch<channels;ch++ [all...] |
/external/tinyalsa/include/tinyalsa/ |
asoundlib.h | 90 unsigned int channels; member in struct:pcm_config
|
/external/webrtc/webrtc/modules/audio_coding/codecs/opus/ |
opus_interface.c | 45 size_t channels, 66 state->zero_counts = calloc(channels, sizeof(size_t)); 70 state->encoder = opus_encoder_create(48000, (int)channels, opus_app, 78 state->channels = channels; 110 const size_t channels = inst->channels; local 117 for (c = 0; c < channels; ++c) { 118 if (audio_in[i * channels + c] == 0) { 122 memcpy(buffer, audio_in, samples * channels * sizeof(int16_t)) 451 int frames, channels, payload_length_ms; local [all...] |
/external/webrtc/webrtc/modules/audio_coding/neteq/tools/ |
neteq_quality_test.cc | 52 "and channels with --channels)."); 70 // Define switch for channels. 74 printf("Invalid number of channels, current support only 1."); 78 DEFINE_int32(channels, 1, "Number of channels in input audio."); 397 size_t channels; local 400 &samples, &channels, NULL); 405 assert(channels == channels_); 407 RTC_CHECK(output_->WriteArray(out_data_.get(), samples * channels)); [all...] |
/external/webrtc/webrtc/modules/audio_device/android/java/src/org/webrtc/voiceengine/ |
WebRtcAudioManager.java | 28 // fundamental audio parameters like native sample rate and number of channels. 62 private static final int CHANNELS = 1; 85 private int channels; field in class:WebRtcAudioManager 100 sampleRate, channels, hardwareAEC, hardwareAGC, hardwareNS, 139 channels = CHANNELS; 147 getMinOutputFrameSize(sampleRate, channels); 149 inputBufferSize = getMinInputFrameSize(sampleRate, channels); 269 assertTrue(numChannels == CHANNELS); 289 int sampleRate, int channels, boolean hardwareAEC, boolean hardwareAGC [all...] |
/external/webrtc/webrtc/modules/audio_device/android/ |
opensles_player.cc | 55 pcm_format_ = CreatePCMConfiguration(audio_parameters_.channels(), 182 const size_t channels = audio_parameters_.channels(); local 183 ALOGD("SetPlayoutChannels(%" PRIuS ")", channels); 184 audio_device_buffer_->SetPlayoutChannels(channels); 190 size_t channels, 197 format.numChannels = static_cast<SLuint32>(channels); 229 RTC_CHECK(false) << "Unsupported number of channels: "
|
/external/webrtc/webrtc/modules/audio_device/include/ |
audio_device_defines.h | 69 // Method to pass captured data directly and unmixed to network channels. 70 // |channel_ids| contains a list of VoE channels which are the 122 // Method to pull mixed render audio data from all active VoE channels. 139 // number of channels, native buffer size etc. 152 AudioParameters(int sample_rate, size_t channels, size_t frames_per_buffer) 154 channels_(channels), 157 void reset(int sample_rate, size_t channels, size_t frames_per_buffer) { 159 channels_ = channels; 164 void reset(int sample_rate, size_t channels, double ms_per_buffer) { 165 reset(sample_rate, channels, 172 size_t channels() const { return channels_; } function in class:webrtc::AudioParameters [all...] |
/external/webrtc/webrtc/modules/audio_device/linux/ |
audio_mixer_manager_pulse_linux.cc | 260 // Get the number of channels from the sample specification 270 // Set the same volume for all channels 272 LATE(pa_cvolume_set)(&cVolumes, spec->channels, volume); 797 // The device may have a different number of channels than the stream and 803 // instead we look up the actual number of channels that the device has. 819 // Get the number of channels for this source 827 uint8_t channels = _paChannels; local 829 LATE(pa_cvolume_set)(&cVolumes, channels, volume); 1033 _paChannels = i->channel_map.channels; // Get number of channels [all...] |
/external/webrtc/webrtc/modules/audio_device/mac/ |
audio_mixer_manager_mac.cc | 139 // get number of channels from stream format 142 // Get the stream format, to be able to read the number of channels. 188 // get number of channels from stream format 191 // Get the stream format, to be able to read the number of channels. 283 unsigned int channels = 0; local 301 // Otherwise get the average volume across channels. 313 channels++; 317 if (channels == 0) { 323 assert(channels > 0); 325 volume = static_cast<uint32_t>(255 * vol / channels + 0.5) 519 unsigned int channels = 0; local 695 unsigned int channels = 0; local 904 unsigned int channels = 0; local [all...] |
/external/webrtc/webrtc/modules/audio_processing/ |
audio_buffer.cc | 127 input_buffer_->fbuf()->channels()[0]); 128 data_ptr = input_buffer_->fbuf_const()->channels(); 136 process_buffer_->channels()[i], 139 data_ptr = process_buffer_->channels(); 146 data_->fbuf()->channels()[i]); 159 data_ptr = process_buffer_->channels(); 162 FloatS16ToFloat(data_->fbuf()->channels()[i], 192 return data_->ibuf_const()->channels(); 195 int16_t* const* AudioBuffer::channels() { function in class:webrtc::AudioBuffer 197 return data_->ibuf()->channels(); [all...] |
/external/webrtc/webrtc/modules/audio_processing/test/ |
debug_dump_test.cc | 60 // Sets if converts stereo input signal to mono by discarding other channels. 67 // channels. 73 // Sets the required channels of the APM output. 74 void SetOutputChannels(int channels); 84 static void ReadAndDeinterleave(ResampleInputAudioFile* audio, int channels, 156 const int channels = mono ? 1 : input_file_channels_; local 157 input_config_.set_num_channels(channels); 168 const int channels = mono ? 1 : reverse_file_channels_; local 169 reverse_config_.set_num_channels(channels); 178 void DebugDumpGenerator::SetOutputChannels(int channels) { [all...] |
/external/webrtc/webrtc/modules/rtp_rtcp/source/ |
rtp_receiver_impl.cc | 99 const size_t channels, 108 payload_name, payload_type, frequency, channels, rate, 255 size_t channels = 1; local 286 channels = payload->typeSpecific.Audio.channels; 305 rtp_header.payload_type_frequency, channels, rate)) {
|