/external/tensorflow/tensorflow/compiler/tf2xla/kernels/ |
image_resize_ops.cc | 104 int64 channels) { 126 XlaHelpers::Iota(builder, DataType::DT_INT32, channels, &channels_iota)); 131 2 * kernel_size[1] - 1, channels}), 145 std::vector<int64> out_size, const int64 channels) { 172 MakeBilinearResizeKernel(builder, dims.kernel_size, channels); 195 std::vector<int64> grad_size, const int64 channels) { 214 MakeBilinearResizeKernel(builder, dims.kernel_size, channels); 270 const int64 channels = input_shape.dim_size(3); variable 302 {batch, slice_size[0], slice_size[1], channels}, 332 b, input, num_spatial_dims, in_size, next_out_size, channels); 381 const int64 channels = input_shape.dim_size(3); variable [all...] |
/external/adhd/cras/src/dsp/ |
dsp_util.c | 376 void dsp_util_deinterleave(int16_t *input, float *const *output, int channels, 379 float *output_ptr[channels]; 383 if (channels == 2) { 389 for (i = 0; i < channels; i++) 393 for (j = 0; j < channels; j++) 397 void dsp_util_interleave(float *const *input, int16_t *output, int channels, 400 float *input_ptr[channels]; 404 if (channels == 2) { 410 for (i = 0; i < channels; i++) 414 for (j = 0; j < channels; j++) [all...] |
/external/tensorflow/tensorflow/core/kernels/ |
eigen_pooling_test.cc | 126 const int channels = 10; local 138 Tensor<float, 5> input(channels, input_planes, input_rows, input_cols, 140 Tensor<float, 5> result(channels, output_planes, output_rows, output_cols, 151 EXPECT_EQ(result.dimension(0), channels); 158 for (int d = 0; d < channels; ++d) { 186 const int channels = 10; local 199 input_planes, channels); 201 output_planes, channels); 211 EXPECT_EQ(result.dimension(4), channels); 218 for (int d = 0; d < channels; ++d) 246 const int channels = 10; local 308 const int channels = 10; local 370 const int channels = 10; local 448 const int channels = 10; local 623 const int channels = 10; local 683 const int channels = 10; local [all...] |
resize_area_op_test.cc | 65 const int channels = input_data.dimension(3); local 68 ASSERT_EQ(channels, output_data.dimension(3)); 77 Tensor sum_tensor(DT_FLOAT, TensorShape({channels})); 126 for (int64 c = 0; c < channels; ++c) { 136 for (int64 c = 0; c < channels; ++c) { 146 int target_width, int channels) { 148 SetRandomImageInput(TensorShape({1, in_height, in_width, channels})); 155 TensorShape({1, target_height, target_width, channels}))); 160 void RunManyRandomTests(int channels) { 165 RunRandomTest(in_h, in_w, target_height, target_width, channels); [all...] |
colorspace_op.cc | 52 auto channels = input.dim_size(input.dims() - 1); variable 53 OP_REQUIRES(context, channels == 3, 55 "input must have 3 channels but input only has ", channels, 56 " channels.")); 91 auto channels = input.dim_size(input.dims() - 1); variable 92 OP_REQUIRES(context, channels == 3, 94 "input must have 3 channels but input only has ", channels, 95 " channels.")) [all...] |
decode_bmp_op.cc | 35 OP_REQUIRES_OK(context, context->GetAttr("channels", &channels_)); 39 errors::InvalidArgument("channels must be 0, 1, 3 or 4, got ", 82 "channels attribute ", channels_, 92 "Number of channels must be 1, 3 or 4, was ", channels_)); 111 // 8 * channels == bits per pixel 118 // [expected file size] = [last pixel offset] + [last pixel size=channels] 154 const int height, const int channels, 162 src_pos = ((height - 1 - i) * row_size) + j * channels; 164 src_pos = i * row_size + j * channels; 167 dst_pos = (i * width + j) * channels; [all...] |
image_resizer_state.h | 82 channels = input.dim_size(3); 86 context, channels > 0, 123 int64 channels; member in struct:tensorflow::ImageResizerState 153 channels = input.dim_size(3); 174 original_width, channels}), 179 int64 channels; member in struct:tensorflow::ImageResizerGradientState
|
resize_bicubic_op_test.cc | 115 const int channels = images.dimension(3); local 118 ASSERT_EQ(channels, output.dimension(3)); 138 for (int64 c = 0; c < channels; ++c) { 160 const int target_width, int channels) { 162 << channels << " to " << target_height << "x" << target_width 163 << "x" << channels; local 165 TensorShape({batch_size, in_height, in_width, channels})); 173 TensorShape({batch_size, target_height, target_width, channels}))); 185 void RunManyRandomTests(int channels) { 192 channels); [all...] |
/external/tinyalsa/ |
tinycap.c | 63 unsigned int channels, unsigned int rate, 78 unsigned int channels = 2; local 89 " [-c channels] [-r rate] [-b bits] [-p period_size]" 110 channels = atoi(*argv); 146 header.num_channels = channels; 166 header.byte_rate = (header.bits_per_sample / 8) * channels * rate; 167 header.block_align = channels * (header.bits_per_sample / 8); 194 unsigned int channels, unsigned int rate, 208 config.channels = channels; [all...] |
/external/webrtc/webrtc/modules/audio_processing/test/ |
audio_file_processor.cc | 62 ap_->ProcessStream(in_buf_.channels(), input_config_, 63 output_config_, out_buf_.channels())); 139 RTC_CHECK_EQ(in_buf_->num_frames() * sizeof(*in_buf_->channels()[i]), 141 std::memcpy(in_buf_->channels()[i], msg.input_channel(i).data(), 152 ap_->ProcessStream(in_buf_->channels(), input_config_, 153 output_config_, out_buf_.channels())); 165 RTC_CHECK_EQ(reverse_buf_->num_frames() * sizeof(*in_buf_->channels()[i]), 167 std::memcpy(reverse_buf_->channels()[i], msg.channel(i).data(), 175 reverse_buf_->channels(), reverse_config_, 176 reverse_config_, reverse_buf_->channels())); [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/ |
AbstractSelectableChannelTest.java | 17 package org.apache.harmony.tests.java.nio.channels.spi; 20 import java.nio.channels.ClosedChannelException; 21 import java.nio.channels.IllegalBlockingModeException; 22 import java.nio.channels.IllegalSelectorException; 23 import java.nio.channels.SelectableChannel; 24 import java.nio.channels.SelectionKey; 25 import java.nio.channels.Selector; 26 import java.nio.channels.SocketChannel; 27 import java.nio.channels.spi.AbstractSelectableChannel; 28 import java.nio.channels.spi.SelectorProvider [all...] |
/external/opencv/otherlibs/highgui/ |
grfmt_pxm.cpp | 381 int channels = _channels > 1 ? 3 : 1; local 382 int fileStep = width*channels*(depth/8); 394 lineLength = channels * width * depth / 8; 396 lineLength = (6 * channels + (channels > 1 ? 2 : 0)) * width + 32; 410 '2' + (channels > 1 ? 1 : 0) + (isBinary ? 3 : 0), 434 for( x = 0; x < width*channels*2; x += 2 ) 441 m_strm.PutBytes( (channels > 1 || depth > 8) ? buffer : (char*)data, fileStep ); 447 if( channels > 1 ) 451 for( x = 0; x < width*channels; x += channels [all...] |
/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/webrtc/talk/media/base/ |
codec.cc | 170 size_t channels, 174 channels(channels) { 177 AudioCodec::AudioCodec() : Codec(), bitrate(0), channels(0) { 185 channels = c.channels; 190 return bitrate == c.bitrate && channels == c.channels && Codec::operator==(c); 197 // The number of channels must match exactly, with the exception 198 // that channels=0 is treated synonymously as channels=1, per RF [all...] |
/hardware/google/av/media/codecs/opus/ |
C2SoftOpusDec.cpp | 198 // mappings for up to 8 channels. This information is part of the Vorbis I 209 // stereo output: Opus streams with more than 2 channels require a stream map. 237 // - Byte 2: Starting at byte 2 are |header->channels| uint8 mapping 247 header->channels = *(data + kOpusHeaderChannelsOffset); 248 if (header->channels <= 0 || header->channels > kMaxChannels) { 249 ALOGE("Invalid Header, wrong channel count: %d", header->channels); 263 if (header->channels > kMaxChannelsWithDefaultLayout) { 268 header->num_coupled = header->channels > 1; 273 if (data_size < kOpusHeaderStreamMapOffset + header->channels) { [all...] |
/external/tensorflow/tensorflow/contrib/labeled_tensor/python/ops/ |
sugar_test.py | 48 self.channels = ['red', 'green', 'blue'] 53 len(self.channels) * len(self.masks)) 55 self.batch_size, self.num_rows, self.num_columns, len(self.channels), 62 self.channel_axis = ('channel', self.channels) 84 ('depth', len(self.channels) * len(self.masks)) 92 depth_axis = core.Axis('depth', range(len(self.channels) * len(self.masks)))
|
/external/webrtc/webrtc/modules/audio_coding/acm2/ |
acm_codec_database.cc | 115 // Basic block samples, max number of channels that are supported. 285 // Looks for a matching payload name, frequency, and channels in the 287 // entries with different frequencies and/or channels. 292 codec_inst.channels)); 297 size_t channels) { 303 // Payload name, sampling frequency and number of channels need to match. 308 // The number of channels must match for all codecs but Opus. 310 channels_match = (channels == ci.channels); 312 // For opus we just check that number of channels is valid [all...] |
codec_manager.cc | 27 if ((send_codec.channels != 1) && (send_codec.channels != 2)) { 29 "Wrong number of channels (%" PRIuS ", only mono and stereo " 31 send_codec.channels); 49 if (!RentACodec::IsSupportedNumChannels(*maybe_codec_id, send_codec.channels) 52 "%" PRIuS " number of channels not supportedn for %s.", 53 send_codec.channels, send_codec.plname); 123 ci.channels = external_speech_encoder->NumChannels();
|
/external/webrtc/webrtc/modules/audio_coding/neteq/ |
expand_unittest.cc | 29 size_t channels = 1; local 30 BackgroundNoise bgn(channels); 34 Expand expand(&bgn, &sync_buffer, &random_vector, &statistics, fs, channels); 39 size_t channels = 1; local 40 BackgroundNoise bgn(channels); 46 &statistics, fs, channels); 98 ASSERT_EQ(1u, num_channels_) << "Fix: Must populate all channels.";
|
/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...] |
/hardware/libhardware_legacy/audio/ |
AudioDumpInterface.h | 41 uint32_t channels, 48 virtual uint32_t channels() const; 83 uint32_t channels, 89 virtual uint32_t channels() const; 124 uint32_t *channels=0, 151 virtual AudioStreamIn* openInputStream(uint32_t devices, int *format, uint32_t *channels,
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
FileChannelLockingTest.java | 17 package org.apache.harmony.tests.java.nio.channels; 25 import java.nio.channels.FileChannel; 26 import java.nio.channels.FileLock; 27 import java.nio.channels.NonReadableChannelException; 28 import java.nio.channels.NonWritableChannelException; 29 import java.nio.channels.OverlappingFileLockException; 62 // Open read, write, and read/write channels on the temp files.
|
UnixSelectorTest.java | 17 package org.apache.harmony.tests.java.nio.channels; 21 import java.nio.channels.SelectableChannel; 22 import java.nio.channels.SelectionKey; 23 import java.nio.channels.Selector; 24 import java.nio.channels.ServerSocketChannel; 25 import java.nio.channels.SocketChannel;
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
ChannelsTest.java | 17 package libcore.java.nio.channels; 23 import java.nio.channels.AsynchronousByteChannel; 24 import java.nio.channels.Channels; 25 import java.nio.channels.IllegalBlockingModeException; 26 import java.nio.channels.Pipe; 27 import java.nio.channels.WritableByteChannel; 45 Channels.newInputStream(sourceChannel).read(); 58 Channels.newReader(sourceChannel, "UTF-8").read(); 75 InputStream is = Channels.newInputStream(abc) [all...] |
/external/tensorflow/tensorflow/python/kernel_tests/ |
summary_audio_op_test.py | 52 for channels in (1, 2, 5, 8): 55 shape = (4, num_frames, channels) 68 self._CheckProto(audio_summ, sample_rate, channels, num_frames)
|