/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/rtp_rtcp/test/testAPI/ |
test_api_audio.cc | 67 const size_t channels, 190 voice_codec.channels, 198 voice_codec.channels, 223 voice_codec.channels, 231 voice_codec.channels, 250 voice_codec.channels, 256 voice_codec.channels, 296 voice_codec.channels, 304 voice_codec.channels, 321 voice_codec.channels, [all...] |
/frameworks/av/services/audioflinger/ |
AudioResamplerFirProcessNeon.h | 73 template <int CHANNELS, int STRIDE, bool FIXED> 86 COMPILE_TIME_ASSERT_FUNCTION_SCOPE(CHANNELS == 1 || CHANNELS == 2); 88 sP -= CHANNELS*((STRIDE>>1)-1); 103 if (CHANNELS == 2) { 127 switch (CHANNELS) { 168 if (CHANNELS == 1) { 171 } else if (CHANNELS == 2) { 181 template <int CHANNELS, int STRIDE, bool FIXED> 194 COMPILE_TIME_ASSERT_FUNCTION_SCOPE(CHANNELS == 1 || CHANNELS == 2) [all...] |
/packages/apps/TV/src/com/android/tv/recommendation/ |
Recommender.java | 111 * Return the channel list of recommendation up to {@code n} or the number of channels. 112 * During the evaluation, this method updates the channel sort key of recommended channels. 114 * @param size The number of channels that might be recommended. 115 * @return Top {@code size} channels recommended sorted by score in descending order. If 116 * {@code size} is bigger than the number of channels, the number of results could 178 * If getChannelSortKey was called before evaluating the channels or trying to get sort key 190 List<ChannelRecord> channels = new ArrayList<>(mDataManager.getChannelRecords()); local 192 evaluator.onChannelListChanged(Collections.unmodifiableList(channels)); 207 List<ChannelRecord> channels = new ArrayList<>(mDataManager.getChannelRecords()); local 209 evaluator.onChannelListChanged(Collections.unmodifiableList(channels)); [all...] |
/prebuilts/go/darwin-x86/doc/codewalk/ |
sharemem.xml | 9 Channels allow you to pass references to data structures between goroutines. 31 each other on channels. 68 <step title="Creating channels" src="doc/codewalk/urlpoll.go:/Create our/,/complete/"> 69 First, main makes two channels of *Resource, pending and complete. 74 The pending and complete channels are passed to each of the Poller 87 Now that it has the necessary channels, main launches a number of 88 Poller goroutines, passing the channels as arguments. 89 The channels provide the means of communication between the main, Poller, and 158 StateMonitor will loop forever, selecting on two channels: 177 goroutines and channels can be used to write expressive and concise concurren [all...] |
/prebuilts/go/linux-x86/doc/codewalk/ |
sharemem.xml | 9 Channels allow you to pass references to data structures between goroutines. 31 each other on channels. 68 <step title="Creating channels" src="doc/codewalk/urlpoll.go:/Create our/,/complete/"> 69 First, main makes two channels of *Resource, pending and complete. 74 The pending and complete channels are passed to each of the Poller 87 Now that it has the necessary channels, main launches a number of 88 Poller goroutines, passing the channels as arguments. 89 The channels provide the means of communication between the main, Poller, and 158 StateMonitor will loop forever, selecting on two channels: 177 goroutines and channels can be used to write expressive and concise concurren [all...] |
/external/opencv/otherlibs/highgui/ |
grfmt_exr.cpp | 142 const ChannelList &channels = m_file->header().channels(); local 143 m_red = channels.findChannel( "R" ); 144 m_green = channels.findChannel( "G" ); 145 m_blue = channels.findChannel( "B" ); 154 m_green = channels.findChannel( "Y" ); 158 m_red = channels.findChannel( "RY" ); 159 m_blue = channels.findChannel( "BY" ); 590 int width, int height, int depth, int channels ) 608 if( channels == 3 [all...] |
/external/opencv3/modules/imgcodecs/src/ |
grfmt_tiff.cpp | 108 int TiffDecoder::normalizeChannelsNumber(int channels) const 110 return channels > 4 ? 4 : channels; 204 bool color = img.channels() > 1; 223 int wanted_channels = normalizeChannelsNumber(img.channels()); 519 int channels = img.channels(); local 543 size_t fileStep = (width * channels * bitsPerChannel) / bitsPerByte; 570 int colorspace = channels > 1 ? PHOTOMETRIC_RGB : PHOTOMETRIC_MINISBLACK; 577 || !TIFFSetField(pTiffHandle, TIFFTAG_SAMPLESPERPIXEL, channels) 684 int channels = img.channels(); local [all...] |
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...] |
/external/opencv3/modules/imgproc/test/ |
test_cvtyuv.cpp | 24 virtual int channels() = 0; 38 virtual int channels() = 0; 49 virtual int channels() = 0; 64 virtual int channels() { return 1; } function in class:GRAYwriter 75 virtual int channels() = 0; 91 int channels() { return 3; } function in class:RGB888Writer 102 int channels() { return 3; } function in class:BGR888Writer 113 int channels() { return 4; } function in class:RGBA8888Writer 124 int channels() { return 4; } function in class:BGRA8888Writer 129 int channels() { return 1; function in class:YUV420pWriter 165 int channels() { return 1; } function in class:YUV420Reader 171 int channels() { return 2; } function in class:YUV422Reader 270 int channels() { return 3; } function in class:YUV888Reader 283 int channels() { return 3; } function in class:RGB888Reader 294 int channels() { return 3; } function in class:BGR888Reader 305 int channels() { return 4; } function in class:RGBA8888Reader 316 int channels() { return 4; } function in class:BGRA8888Reader [all...] |
/external/ImageMagick/ImageMagick/script/ |
porting.html | 56 <p class="text-center"><a href="porting.php#imv7">ImageMagick Version 7</a> ? <a href="porting.php#hdri">High Dynamic Range Imaging</a> ? <a href="porting.php#channels">Pixel Channels</a> ? <a href="porting.php#alpha">Alpha</a> ? <a href="porting.php#grayscale">Grayscale</a> ? <a href="porting.php#mask">Masks</a> ? <a href="porting.php#core">MagickCore API</a> ? <a href="porting.php#headers">Header Files</a> ? <a href="porting.php#deprecate">Deprecated Features Removed</a> ? <a href="porting.php#cli">Command-line Interface</a> ? <a href="porting.php#summary">Version 7 Change Summary</a> </p> 58 <p class="lead magick-description">The design of ImageMagick is an evolutionary process, with the design and implementation efforts serving to influence and guide further progress in the other. With ImageMagick version 7 we aim to improve the design based on lessons learned from the version 6 implementation. ImageMagick was originally designed to display RGB images to an X Windows server. Over time we extended support to RGBA images and then to the CMYK and CMYKA image format. With ImageMagick version 7, we extend support to arbitrary colorspaces with an arbitrary number of pixel channels. Other design changes are in the works and we will document them here so be sure to revisit periodically.</p> 60 <p>To support variable pixel channels in the MagickCore API, pixel handling has changed when getting or setting the pixel channels. You can access channels as an array, <var>pixel[i]</var>, or use an accessor method such as GetPixelRed() or SetPixelRed(). There are some modest changes to the MagickCore and MagickWand API's. The Magick++ and PerlMagick API's have not changed and matches that of the ImageMagick version 6.</p> 81 <h2 class="magick-header"><a id="channels"></a>Pixel Channels</h2> 82 <p>A pixel is comprised of one or more color values, or <var>channels</var> (e.g. red pixel channel).</p> 83 <p>Prior versions of ImageMagick (4-6), support 4 to 5 pixel channels (RGBA or CMYKA). The first 4 channels are accessed with the PixelPacket data structure. The str (…) [all...] |
/external/ImageMagick/www/ |
porting.html | 60 <p class="text-center"><a href="porting.html#imv7">ImageMagick Version 7</a> ? <a href="porting.html#hdri">High Dynamic Range Imaging</a> ? <a href="porting.html#channels">Pixel Channels</a> ? <a href="porting.html#alpha">Alpha</a> ? <a href="porting.html#grayscale">Grayscale</a> ? <a href="porting.html#mask">Masks</a> ? <a href="porting.html#core">MagickCore API</a> ? <a href="porting.html#headers">Header Files</a> ? <a href="porting.html#deprecate">Deprecated Features Removed</a> ? <a href="porting.html#cli">Command-line Interface</a> ? <a href="porting.html#summary">Version 7 Change Summary</a> </p> 62 <p class="lead magick-description">The design of ImageMagick is an evolutionary process, with the design and implementation efforts serving to influence and guide further progress in the other. With ImageMagick version 7 we aim to improve the design based on lessons learned from the version 6 implementation. ImageMagick was originally designed to display RGB images to an X Windows server. Over time we extended support to RGBA images and then to the CMYK and CMYKA image format. With ImageMagick version 7, we extend support to arbitrary colorspaces with an arbitrary number of pixel channels. Other design changes are in the works and we will document them here so be sure to revisit periodically.</p> 64 <p>To support variable pixel channels in the MagickCore API, pixel handling has changed when getting or setting the pixel channels. You can access channels as an array, <var>pixel[i]</var>, or use an accessor method such as GetPixelRed() or SetPixelRed(). There are some modest changes to the MagickCore and MagickWand API's. The Magick++ and PerlMagick API's have not changed and matches that of the ImageMagick version 6.</p> 85 <h2 class="magick-header"><a id="channels"></a>Pixel Channels</h2> 86 <p>A pixel is comprised of one or more color values, or <var>channels</var> (e.g. red pixel channel).</p> 87 <p>Prior versions of ImageMagick (4-6), support 4 to 5 pixel channels (RGBA or CMYKA). The first 4 channels are accessed with the PixelPacket data structure. The str (…) [all...] |
/external/opencv3/modules/core/src/cuda/ |
gpu_mat.cu | 270 CV_DbgAssert( depth() <= CV_64F && channels() <= 4 ); 273 CV_DbgAssert( size() == mask.size() && mask.depth() == CV_8U && (mask.channels() == 1 || mask.channels() == channels()) ); 298 if (mask.channels() == channels()) 306 const func_t func = funcs[elemSize1()][channels() - 1]; 335 CV_DbgAssert( depth() <= CV_64F && channels() <= 4 ); 351 const int cn = channels(); 381 funcs[depth()][channels() - 1](*this, value, stream) [all...] |
/external/opencv3/modules/photo/src/ |
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/webrtc/webrtc/modules/audio_coding/acm2/ |
acm_receiver.cc | 192 last_audio_decoder_->channels > 1) 304 size_t channels, 308 const auto neteq_decoder = [acm_codec_id, channels]() -> NetEqDecoder { 315 RentACodec::NetEqDecoderFromCodecId(*cid, channels); 328 decoder.channels == channels && 354 << " channels: " << channels; 361 decoder.channels = channels; [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
SelectorTest.java | 17 package org.apache.harmony.tests.java.nio.channels; 23 import java.nio.channels.ClosedChannelException; 24 import java.nio.channels.ClosedSelectorException; 25 import java.nio.channels.Pipe; 26 import java.nio.channels.SelectionKey; 27 import java.nio.channels.Selector; 28 import java.nio.channels.ServerSocketChannel; 29 import java.nio.channels.SocketChannel; 30 import java.nio.channels.spi.SelectorProvider; 77 * @tests java.nio.channels.Selector#open( [all...] |
/libcore/ojluni/src/main/java/java/nio/channels/ |
Selector.java | 26 package java.nio.channels; 30 import java.nio.channels.spi.SelectorProvider; 39 * java.nio.channels.spi.SelectorProvider </code>selector provider<code>} to 41 * {@link java.nio.channels.spi.SelectorProvider#openSelector openSelector} 64 * cancelled but whose channels have not yet been deregistered. This set is 141 * channels to become ready, and if so for how long, is the only essential 158 * <p> Keys may be cancelled and channels may be closed at any time. Hence the 217 * java.nio.channels.spi.SelectorProvider#openSelector openSelector} method 219 * java.nio.channels.spi.SelectorProvider} object. </p> 278 * Selects a set of keys whose corresponding channels are ready for I/ [all...] |
/external/autotest/server/cros/ap_configurators/ |
ap_configurator_factory_unittest.py | 37 [{'band': self.ap_config.BAND_2GHZ, 'channels': [5]}, 38 {'band': self.ap_config.BAND_5GHZ, 'channels': [48]}] 57 """@returns supported bands and channels.""" 116 'channels': ap_spec.VALID_2GHZ_CHANNELS}], 126 'channels': ap_spec.VALID_2GHZ_CHANNELS}, 128 'channels': ap_spec.VALID_5GHZ_CHANNELS}], 142 'channels': ap_spec.VALID_2GHZ_CHANNELS}],
|
/external/libpng/contrib/gregbook/ |
readppm.c | 68 int bit_depth, color_type, channels; variable 97 channels = 3; 100 channels = 4; 103 channels = 1; 152 /* GRR WARNING: grayscale needs to be expanded and channels reset! */ 154 *pRowbytes = rowbytes = channels*width; 155 *pChannels = channels;
|
/external/webrtc/webrtc/modules/audio_device/android/ |
audio_record_jni.cc | 46 int sample_rate, size_t channels) { 49 static_cast<jint>(channels)); 134 audio_parameters_.sample_rate(), audio_parameters_.channels()); 188 const size_t channels = audio_parameters_.channels(); local 189 ALOGD("SetRecordingChannels(%" PRIuS ")", channels); 190 audio_device_buffer_->SetRecordingChannels(channels);
|
audio_track_jni.cc | 46 void AudioTrackJni::JavaAudioTrack::InitPlayout(int sample_rate, int channels) { 47 audio_track_->CallVoidMethod(init_playout_, sample_rate, channels); 127 audio_parameters_.sample_rate(), audio_parameters_.channels()); 205 const size_t channels = audio_parameters_.channels(); local 206 ALOGD("SetPlayoutChannels(%" PRIuS ")", channels); 207 audio_device_buffer_->SetPlayoutChannels(channels);
|
/external/aac/libAACenc/src/ |
psy_main.cpp | 442 AAC_ENCODER_ERROR FDKaacEnc_psyMain(INT channels, 455 INT ch; /* counts through channels */ 497 for(ch = 0; ch < channels; ch++) 511 for(ch = 0; ch < channels; ch++) 540 channels, 549 for(ch = 0; ch < channels; ch++) 559 for(ch = 0; ch < channels; ch++) 563 for(ch = 0; ch < channels; ch++) 594 /* Transform and get mdctScaling for all channels and windows. */ 595 for(ch = 0; ch < channels; ch++ [all...] |
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
psy_main.c | 193 Word16 channels, 198 Word32 channelBitRate = bitRate/channels; 207 err = InitTnsConfigurationLong(bitRate, sampleRate, channels, 217 err = InitTnsConfigurationShort(bitRate, sampleRate, channels, 222 for(ch=0;ch < channels;ch++){ 225 bitRate, channels); 261 Word16 ch; /* counts through channels */ 264 Word16 channels; local 267 channels = elemInfo->nChannelsInEl; 271 for(ch = 0; ch < channels; ch++) [all...] |
/external/libopus/celt/ |
celt_decoder.c | 67 int channels; member in struct:OpusCustomDecoder 91 celt_sig _decode_mem[1]; /* Size = channels*(DECODE_BUFFER_SIZE+mode->overlap) */ 92 /* opus_val16 lpc[], Size = channels*LPC_ORDER */ 99 int celt_decoder_get_size(int channels) 102 return opus_custom_decoder_get_size(mode, channels); 105 OPUS_CUSTOM_NOSTATIC int opus_custom_decoder_get_size(const CELTMode *mode, int channels) 108 + (channels*(DECODE_BUFFER_SIZE+mode->overlap)-1)*sizeof(celt_sig) 109 + channels*LPC_ORDER*sizeof(opus_val16) 115 CELTDecoder *opus_custom_decoder_create(const CELTMode *mode, int channels, int *error) 118 CELTDecoder *st = (CELTDecoder *)opus_alloc(opus_custom_decoder_get_size(mode, channels)); [all...] |
/external/libpng/contrib/pngminus/ |
pnm2png.c | 212 int channels=0; local 351 /* calculate the number of channels and store alpha-presence */ 353 channels = 1; 355 channels = 2; 357 channels = 3; 359 channels = 4; 362 channels = 0; /* cannot happen */ 365 alpha_present = (channels - 1) % 2; 369 /* row data is as many bytes as can fit width x channels x bit_depth */ 370 row_bytes = (width * channels * bit_depth + 7) / 8 [all...] |