Home
last modified time | relevance | path

Searched refs:channel_count (Results 1 – 25 of 25) sorted by relevance

/external/tensorflow/tensorflow/contrib/ffmpeg/
Ddecode_audio_op_test.py35 samples_per_second, channel_count, argument
69 channel_count=channel_count, stream=stream)
77 self.assertEqual(audio.shape[1], channel_count)
132 channel_count=2)
175 channel_count=2)
180 channel_count = array_ops.placeholder(dtypes.int32)
184 channel_count=channel_count)
194 channel_count=0)
203 channel_count=-2)
Ddecode_audio_op.cc47 const int32 channel_count, const string& stream) { in Decode() argument
57 channel_count, stream, &output_samples); in Decode()
76 context, output_samples.size() % channel_count == 0, in Decode()
81 const int64 frame_count = output_samples.size() / channel_count; in Decode()
84 0, TensorShape({frame_count, channel_count}), &output)); in Decode()
87 for (int32 channel = 0; channel < channel_count; ++channel) { in Decode()
88 matrix(frame, channel) = output_samples[frame * channel_count + channel]; in Decode()
143 const int32 channel_count = channel_count_tensor.scalar<int32>()(); in Compute() local
157 context, channel_count > 0, in Compute()
159 channel_count)); in Compute()
[all …]
Dffmpeg_ops.py34 channel_count=None, stream=None): argument
67 channel_count=channel_count, stream=stream)
Dffmpeg_lib.h44 int32 samples_per_second, int32 channel_count,
53 int32 samples_per_second, int32 channel_count,
Dencode_audio_op_test.py69 channel_count=1)
82 channel_count=1)
Dencode_audio_op.cc39 const int32 channel_count = contents.dim_size(1); in Encode() local
43 channel_count, samples, &encoded_audio)); in Encode()
/external/tensorflow/tensorflow/contrib/image/kernels/
Dadjust_hsv_in_yiq_op.cc44 int64 channel_count = 0; member
78 const int64 channel_count = input.NumElements() / channels; in Compute() local
85 options.channel_count = channel_count; in Compute()
104 const int64 channel_count = options.channel_count; in DoCompute() local
105 auto input_data = input->shaped<float, 2>({channel_count, kChannelSize}); in DoCompute()
109 auto output_data = output->shaped<float, 2>({channel_count, kChannelSize}); in DoCompute()
116 Shard(worker_threads.num_threads, worker_threads.workers, channel_count, in DoCompute()
118 [channel_count, &input_data, &output_data, &tranformation_matrix]( in DoCompute()
158 functor::AdjustHsvInYiqGPU()(ctx, options.channel_count, options.input, in DoCompute()
Dadjust_hsv_in_yiq_op_gpu.cu.cc41 void AdjustHsvInYiqGPU::operator()(OpKernelContext* ctx, int channel_count, in operator ()() argument
47 const uint64 m = channel_count; in operator ()()
Dadjust_hsv_in_yiq_op.h75 void operator()(OpKernelContext* ctx, int channel_count,
/external/tensorflow/tensorflow/core/kernels/
Dadjust_hue_op.cc48 int64 channel_count; member
74 const int64 channel_count = input.NumElements() / channels; in Compute() local
79 options.channel_count = channel_count; in Compute()
209 const int64 channel_count = options.channel_count; in DoCompute() local
211 auto input_data = input->shaped<float, 2>({channel_count, kChannelSize}); in DoCompute()
213 auto output_data = output->shaped<float, 2>({channel_count, kChannelSize}); in DoCompute()
217 Shard(worker_threads.num_threads, worker_threads.workers, channel_count, in DoCompute()
219 [channel_count, &input_data, &output_data, delta_h]( in DoCompute()
Dadjust_saturation_op.cc47 int64 channel_count; member
73 const int64 channel_count = input.NumElements() / channels; in Compute() local
78 options.channel_count = channel_count; in Compute()
186 const int64 channel_count = options.channel_count; in DoCompute() local
188 auto input_data = input->shaped<float, 2>({channel_count, kChannelSize}); in DoCompute()
190 auto output_data = output->shaped<float, 2>({channel_count, kChannelSize}); in DoCompute()
194 Shard(worker_threads.num_threads, worker_threads.workers, channel_count, in DoCompute()
196 [channel_count, &input_data, &output_data, scale_h]( in DoCompute()
Dspectrogram_op.cc53 const int64 channel_count = input.dim_size(1); in Compute() local
63 const int64 output_slices = channel_count; in Compute()
74 for (int64 channel = 0; channel < channel_count; ++channel) { in Compute()
Dencode_wav_op.cc51 const int32 channel_count = static_cast<int32>(audio.dim_size(1)); in Compute() local
60 audio.flat<float>().data(), sample_rate, channel_count, in Compute()
/external/tensorflow/tensorflow/contrib/ffmpeg/default/
Dffmpeg_lib.cc47 int32 channel_count, in FfmpegAudioCommandLine() argument
58 "-ac:a:0", StrCat(channel_count), "-ar:a:0", StrCat(samples_per_second), in FfmpegAudioCommandLine()
184 string WavHeader(int32 samples_per_second, int32 channel_count, in WavHeader() argument
191 header += LittleEndianDataShort(channel_count); in WavHeader()
194 LittleEndianDataInt(samples_per_second * channel_count * sizeof(int16)); in WavHeader()
195 header += LittleEndianDataShort(channel_count * sizeof(int16)); in WavHeader()
205 string BuildWavFile(int32 samples_per_second, int32 channel_count, in BuildWavFile() argument
207 string data = WavHeader(samples_per_second, channel_count, samples); in BuildWavFile()
311 int32 samples_per_second, int32 channel_count, in ReadAudioFile() argument
317 samples_per_second, channel_count, stream); in ReadAudioFile()
[all …]
/external/tensorflow/tensorflow/python/tools/
Doptimize_for_inference_lib.py250 channel_count = weights.shape[3]
260 if mean_value.shape != (channel_count,):
263 (channel_count,)), node.name))
274 if var_value.shape != (channel_count,):
277 (channel_count,)), node.name))
288 if beta_value.shape != (channel_count,):
291 (channel_count,)), node.name))
302 if gamma_value.shape != (channel_count,):
305 (channel_count,)), node.name))
/external/libxaac/decoder/drc_src/
Dimpd_drc_dec.c139 WORD32 channel_count = 0; in impd_init_selected_drc_set() local
171 channel_count = drc_config->channel_layout.base_channel_count; in impd_init_selected_drc_set()
173 channel_count = audio_num_chan; in impd_init_selected_drc_set()
182 channel_count = drc_config->dwnmix_instructions[n].target_channel_count; in impd_init_selected_drc_set()
186 drc_instructions_uni_drc->audio_num_chan = channel_count; in impd_init_selected_drc_set()
292 p_parametric_drc_params->audio_num_chan = channel_count; in impd_init_selected_drc_set()
Dimpd_drc_selection_process.c683 WORD32 i, j, err, channel_count; in impd_manage_drc_complexity() local
704 channel_count = uni_drc_sel_proc_output->target_channel_count; in impd_manage_drc_complexity()
706 channel_count = uni_drc_sel_proc_output->base_channel_count; in impd_manage_drc_complexity()
725 (FLOAT32)(channel_count * in impd_manage_drc_complexity()
734 channel_count = uni_drc_sel_proc_output->target_channel_count; in impd_manage_drc_complexity()
736 channel_count = uni_drc_sel_proc_output->base_channel_count; in impd_manage_drc_complexity()
757 channel_count * in impd_manage_drc_complexity()
883 WORD32 channel_count; in impd_manage_complexity() local
912 channel_count = uni_drc_sel_proc_output->target_channel_count; in impd_manage_complexity()
914 channel_count = uni_drc_sel_proc_output->base_channel_count; in impd_manage_complexity()
[all …]
Dimpd_drc_dynamic_payload.c1051 WORD32 i, k, channel_count, temp; in impd_parse_eq_instructions() local
1126 str_eq_instructions->eq_channel_count = channel_count = in impd_parse_eq_instructions()
1143 str_eq_instructions->eq_channel_count = channel_count = in impd_parse_eq_instructions()
1147 channel_count = 1; in impd_parse_eq_instructions()
1152 for (i = 0; i < channel_count; i++) { in impd_parse_eq_instructions()
/external/tensorflow/tensorflow/examples/speech_commands/
Dtest_streaming_accuracy.cc219 uint16 channel_count; in main() local
222 wav_string, &audio_data, &sample_count, &channel_count, &sample_rate); in main()
227 if (channel_count != 1) { in main()
229 << channel_count << " channels."; in main()
/external/tensorflow/tensorflow/core/lib/wav/
Dwav_io.cc212 uint32* sample_count, uint16* channel_count, in DecodeLin16WaveAsFloatVector() argument
233 TF_RETURN_IF_ERROR(ReadValue<uint16>(wav_string, channel_count, &offset)); in DecodeLin16WaveAsFloatVector()
250 ((bits_per_sample * *channel_count) + 7) / 8; in DecodeLin16WaveAsFloatVector()
281 const uint32 data_count = *sample_count * *channel_count; in DecodeLin16WaveAsFloatVector()
Dwav_io.h55 uint32* sample_count, uint16* channel_count,
/external/tensorflow/tensorflow/docs_src/api_guides/python/
Dcontrib.ffmpeg.md17 audio_binary, file_format='mp3', samples_per_second=44100, channel_count=2)
/external/tensorflow/tensorflow/compiler/tests/
Dimage_ops_test.py225 channel_count = x_v.shape[0]
226 for i in xrange(channel_count):
345 channel_count = x_v.shape[0]
346 for i in xrange(channel_count):
/external/vulkan-validation-layers/layers/
Dvk_format_utils.cpp31 uint32_t channel_count; member
921 return item->second.channel_count; in FormatChannelCount()
/external/tensorflow/tensorflow/python/ops/
Dimage_ops_test.py397 channel_count = x_v.shape[0]
398 for i in xrange(channel_count):
883 channel_count = x_v.shape[0]
884 for i in xrange(channel_count):