Home
last modified time | relevance | path

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

123456

/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/
Dstatistics_calculator.cc55 void StatisticsCalculator::ExpandedVoiceSamples(int num_samples) { in ExpandedVoiceSamples() argument
56 expanded_voice_samples_ += num_samples; in ExpandedVoiceSamples()
59 void StatisticsCalculator::ExpandedNoiseSamples(int num_samples) { in ExpandedNoiseSamples() argument
60 expanded_noise_samples_ += num_samples; in ExpandedNoiseSamples()
63 void StatisticsCalculator::PreemptiveExpandedSamples(int num_samples) { in PreemptiveExpandedSamples() argument
64 preemptive_samples_ += num_samples; in PreemptiveExpandedSamples()
67 void StatisticsCalculator::AcceleratedSamples(int num_samples) { in AcceleratedSamples() argument
68 accelerate_samples_ += num_samples; in AcceleratedSamples()
71 void StatisticsCalculator::AddZeros(int num_samples) { in AddZeros() argument
72 added_zero_samples_ += num_samples; in AddZeros()
[all …]
Dstatistics_calculator.h44 void ExpandedVoiceSamples(int num_samples);
48 void ExpandedNoiseSamples(int num_samples);
52 void PreemptiveExpandedSamples(int num_samples);
55 void AcceleratedSamples(int num_samples);
58 void AddZeros(int num_samples);
64 void LostSamples(int num_samples);
68 void IncreaseCounter(int num_samples, int fs_hz);
Ddtmf_tone_generator.cc152 int DtmfToneGenerator::Generate(int num_samples, in Generate() argument
158 if (num_samples < 0 || !output) { in Generate()
162 output->AssertSize(num_samples); in Generate()
163 for (int i = 0; i < num_samples; ++i) { in Generate()
189 return num_samples; in Generate()
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/i965/
Dgen6_multisample_state.c35 unsigned num_samples) in gen6_emit_3dstate_multisample() argument
43 switch (num_samples) { in gen6_emit_3dstate_multisample()
118 unsigned num_samples, float coverage, in gen6_emit_3dstate_sample_mask() argument
125 if (num_samples > 1) { in gen6_emit_3dstate_sample_mask()
126 int coverage_int = (int) (num_samples * coverage + 0.5); in gen6_emit_3dstate_sample_mask()
129 coverage_bits ^= (1 << num_samples) - 1; in gen6_emit_3dstate_sample_mask()
146 unsigned num_samples = ctx->DrawBuffer->Visual.samples; in upload_multisample_state() local
157 gen6_emit_3dstate_multisample(brw, num_samples); in upload_multisample_state()
158 gen6_emit_3dstate_sample_mask(brw, num_samples, coverage, coverage_invert); in upload_multisample_state()
Dbrw_blorp_blit.cpp496 void encode_msaa(unsigned num_samples, intel_msaa_layout layout);
497 void decode_msaa(unsigned num_samples, intel_msaa_layout layout);
501 void manual_blend(unsigned num_samples);
1016 brw_blorp_blit_program::encode_msaa(unsigned num_samples, in encode_msaa() argument
1034 switch (num_samples) { in encode_msaa()
1103 brw_blorp_blit_program::decode_msaa(unsigned num_samples, in decode_msaa() argument
1122 switch (num_samples) { in decode_msaa()
1247 brw_blorp_blit_program::manual_blend(unsigned num_samples) in manual_blend() argument
1288 for (unsigned i = 0; i < num_samples; ++i) { in manual_blend()
1344 brw_imm_f(1.0/num_samples)); in manual_blend()
[all …]
Dintel_mipmap_tree.c84 GLuint num_samples, in intel_miptree_create_internal() argument
105 mt->num_samples = num_samples; in intel_miptree_create_internal()
138 num_samples > 1 ? INTEL_MSAA_LAYOUT_IMS : INTEL_MSAA_LAYOUT_NONE; in intel_miptree_create_internal()
148 num_samples, in intel_miptree_create_internal()
196 GLuint num_samples, in intel_miptree_create() argument
238 false, num_samples, msaa_layout); in intel_miptree_create()
349 uint32_t num_samples, in intel_miptree_create_for_dri2_buffer() argument
369 if (num_samples == 0) in intel_miptree_create_for_dri2_buffer()
376 num_samples); in intel_miptree_create_for_dri2_buffer()
399 uint32_t num_samples) in intel_miptree_create_for_renderbuffer() argument
[all …]
/external/mesa3d/src/mesa/drivers/dri/i965/
Dgen6_multisample_state.c35 unsigned num_samples) in gen6_emit_3dstate_multisample() argument
43 switch (num_samples) { in gen6_emit_3dstate_multisample()
118 unsigned num_samples, float coverage, in gen6_emit_3dstate_sample_mask() argument
125 if (num_samples > 1) { in gen6_emit_3dstate_sample_mask()
126 int coverage_int = (int) (num_samples * coverage + 0.5); in gen6_emit_3dstate_sample_mask()
129 coverage_bits ^= (1 << num_samples) - 1; in gen6_emit_3dstate_sample_mask()
146 unsigned num_samples = ctx->DrawBuffer->Visual.samples; in upload_multisample_state() local
157 gen6_emit_3dstate_multisample(brw, num_samples); in upload_multisample_state()
158 gen6_emit_3dstate_sample_mask(brw, num_samples, coverage, coverage_invert); in upload_multisample_state()
Dbrw_blorp_blit.cpp496 void encode_msaa(unsigned num_samples, intel_msaa_layout layout);
497 void decode_msaa(unsigned num_samples, intel_msaa_layout layout);
501 void manual_blend(unsigned num_samples);
1016 brw_blorp_blit_program::encode_msaa(unsigned num_samples, in encode_msaa() argument
1034 switch (num_samples) { in encode_msaa()
1103 brw_blorp_blit_program::decode_msaa(unsigned num_samples, in decode_msaa() argument
1122 switch (num_samples) { in decode_msaa()
1247 brw_blorp_blit_program::manual_blend(unsigned num_samples) in manual_blend() argument
1288 for (unsigned i = 0; i < num_samples; ++i) { in manual_blend()
1344 brw_imm_f(1.0/num_samples)); in manual_blend()
[all …]
Dintel_mipmap_tree.c84 GLuint num_samples, in intel_miptree_create_internal() argument
105 mt->num_samples = num_samples; in intel_miptree_create_internal()
138 num_samples > 1 ? INTEL_MSAA_LAYOUT_IMS : INTEL_MSAA_LAYOUT_NONE; in intel_miptree_create_internal()
148 num_samples, in intel_miptree_create_internal()
196 GLuint num_samples, in intel_miptree_create() argument
238 false, num_samples, msaa_layout); in intel_miptree_create()
349 uint32_t num_samples, in intel_miptree_create_for_dri2_buffer() argument
369 if (num_samples == 0) in intel_miptree_create_for_dri2_buffer()
376 num_samples); in intel_miptree_create_for_dri2_buffer()
399 uint32_t num_samples) in intel_miptree_create_for_renderbuffer() argument
[all …]
/external/chromium_org/third_party/webrtc/common_audio/
Dwav_writer.cc49 void WavFile::WriteSamples(const int16_t* samples, size_t num_samples) { in WriteSamples() argument
54 fwrite(samples, sizeof(*samples), num_samples, file_handle_); in WriteSamples()
55 CHECK_EQ(num_samples, written); in WriteSamples()
66 void WavFile::WriteSamples(const float* samples, size_t num_samples) { in WriteSamples() argument
68 for (size_t i = 0; i < num_samples; i += kChunksize) { in WriteSamples()
70 const size_t chunk = std::min(kChunksize, num_samples - i); in WriteSamples()
101 size_t num_samples) { in rtc_WavWriteSamples() argument
102 reinterpret_cast<webrtc::WavFile*>(wf)->WriteSamples(samples, num_samples); in rtc_WavWriteSamples()
114 return reinterpret_cast<const webrtc::WavFile*>(wf)->num_samples(); in rtc_WavNumSamples()
Dwav_writer.h35 void WriteSamples(const float* samples, size_t num_samples);
36 void WriteSamples(const int16_t* samples, size_t num_samples);
40 uint32_t num_samples() const { return num_samples_; } in num_samples() function
63 size_t num_samples);
Dwav_header.cc35 uint32_t num_samples) { in CheckWavParameters() argument
75 if (num_samples > max_samples) in CheckWavParameters()
79 if (num_samples % num_channels != 0) in CheckWavParameters()
103 uint32_t num_samples) { in WriteWavHeader() argument
105 bytes_per_sample, num_samples)); in WriteWavHeader()
127 const uint32_t bytes_in_payload = bytes_per_sample * num_samples; in WriteWavHeader()
/external/opencv/ml/src/
Dmltestset.cpp60 int num_samples, in cvCreateTestSet() argument
87 if( num_samples < 1 ) in cvCreateTestSet()
105 CV_CALL( *samples = cvCreateMat( num_samples, num_features, CV_32FC1 ) ); in cvCreateTestSet()
106 CV_CALL( *responses = cvCreateMat( 1, num_samples, CV_32SC1 ) ); in cvCreateTestSet()
133 num_classes = MIN( num_samples, num_classes ); in cvCreateTestSet()
136 for( i = 0, cur_class = 0; i < num_samples; ++cur_class ) in cvCreateTestSet()
141 last_idx = num_samples * (cur_class + 1) / num_classes - 1; in cvCreateTestSet()
145 for( ; elem.d <= max_dst && i < num_samples; ++i ) in cvCreateTestSet()
148 if( i < num_samples - 1 ) in cvCreateTestSet()
/external/chromium_org/content/browser/speech/
Daudio_encoder.cc90 const int num_samples = raw_audio.NumSamples(); in Encode() local
91 scoped_ptr<FLAC__int32[]> flac_samples(new FLAC__int32[num_samples]); in Encode()
93 for (int i = 0; i < num_samples; ++i) in Encode()
96 FLAC__stream_encoder_process(encoder_, &flac_samples_ptr, num_samples); in Encode()
154 int num_samples = raw_audio.NumSamples(); in Encode() local
156 num_samples -= (num_samples % samples_per_frame_); in Encode()
157 for (int i = 0; i < num_samples; i += samples_per_frame_) { in Encode()
/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/tools/
Daudio_sink.h30 virtual bool WriteArray(const int16_t* audio, size_t num_samples) = 0;
50 virtual bool WriteArray(const int16_t* audio, size_t num_samples) OVERRIDE { in WriteArray() argument
51 return left_sink_->WriteArray(audio, num_samples) && in WriteArray()
52 right_sink_->WriteArray(audio, num_samples); in WriteArray()
Doutput_audio_file.h37 virtual bool WriteArray(const int16_t* audio, size_t num_samples) OVERRIDE { in WriteArray() argument
39 return fwrite(audio, sizeof(*audio), num_samples, out_file_) == num_samples; in WriteArray()
/external/chromium_org/third_party/webrtc/modules/utility/source/
Dfile_player_unittests.cc64 int num_samples; in PlayFileAndCheck() local
66 player_->Get10msAudioFromFile(out, num_samples, kSampleRateHz)); in PlayFileAndCheck()
67 checksum.Update(out, num_samples * sizeof(out[0])); in PlayFileAndCheck()
69 ASSERT_EQ(static_cast<size_t>(num_samples), in PlayFileAndCheck()
70 fwrite(out, sizeof(out[0]), num_samples, output_file_)); in PlayFileAndCheck()
/external/chromium_org/third_party/webrtc/modules/video_coding/utility/
Dquality_scaler.cc105 bool QualityScaler::MovingAverage::GetAverage(size_t num_samples, int* avg) { in GetAverage() argument
106 assert(num_samples > 0); in GetAverage()
107 if (num_samples > samples_.size()) in GetAverage()
111 while (num_samples < samples_.size()) { in GetAverage()
116 *avg = sum_ / static_cast<int>(num_samples); in GetAverage()
/external/chromium_org/gpu/command_buffer/tests/
Dgl_chromium_framebuffer_multisample_unittest.cc78 GLsizei num_samples = 4, max_samples = 0; in TEST_F() local
80 num_samples = std::min(num_samples, max_samples); in TEST_F()
86 GL_RENDERBUFFER, num_samples, GL_RGBA8_OES, width, height); in TEST_F()
90 EXPECT_GE(param, num_samples); in TEST_F()
/external/srec/srec/cfront/
Dspec_anl.c50 int num_samples, coefdata pre_mel,
58 samdata *outgo, int num_samples) in filterbank_emulation() argument
71 preemph(channel->prebuff, freqobj->window_length, income, num_samples, in filterbank_emulation()
144 int num_samples, coefdata pre_mel, in preemph() argument
156 ASSERT(num_samples >= 0); in preemph()
157 if (num_samples > window_len) in preemph()
158 num_samples = window_len; in preemph()
160 if (num_samples < window_len) in preemph()
161 MEMMOVE(data, data + num_samples, (window_len - num_samples), in preemph()
163 data += window_len - num_samples; in preemph()
[all …]
/external/chromium_org/media/cast/test/utility/
Dgenerate_timecode_audio.cc24 size_t num_samples = 0; in main() local
27 frame_id, num_samples, samples.size(), &samples.front())); in main()
28 num_samples += samples.size(); in main()
/external/mesa3d/src/mesa/drivers/dri/intel/
Dintel_mipmap_tree.h217 GLuint num_samples; member
381 GLuint num_samples,
394 uint32_t num_samples,
409 uint32_t num_samples);
487 GLuint num_samples);
506 GLuint num_samples);
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/intel/
Dintel_mipmap_tree.h217 GLuint num_samples; member
381 GLuint num_samples,
394 uint32_t num_samples,
409 uint32_t num_samples);
487 GLuint num_samples);
506 GLuint num_samples);
Dintel_mipmap_tree.c84 GLuint num_samples, in intel_miptree_create_internal() argument
105 mt->num_samples = num_samples; in intel_miptree_create_internal()
138 num_samples > 1 ? INTEL_MSAA_LAYOUT_IMS : INTEL_MSAA_LAYOUT_NONE; in intel_miptree_create_internal()
148 num_samples, in intel_miptree_create_internal()
196 GLuint num_samples, in intel_miptree_create() argument
238 false, num_samples, msaa_layout); in intel_miptree_create()
349 uint32_t num_samples, in intel_miptree_create_for_dri2_buffer() argument
369 if (num_samples == 0) in intel_miptree_create_for_dri2_buffer()
376 num_samples); in intel_miptree_create_for_dri2_buffer()
399 uint32_t num_samples) in intel_miptree_create_for_renderbuffer() argument
[all …]
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/i915/
Dintel_mipmap_tree.c84 GLuint num_samples, in intel_miptree_create_internal() argument
105 mt->num_samples = num_samples; in intel_miptree_create_internal()
138 num_samples > 1 ? INTEL_MSAA_LAYOUT_IMS : INTEL_MSAA_LAYOUT_NONE; in intel_miptree_create_internal()
148 num_samples, in intel_miptree_create_internal()
196 GLuint num_samples, in intel_miptree_create() argument
238 false, num_samples, msaa_layout); in intel_miptree_create()
349 uint32_t num_samples, in intel_miptree_create_for_dri2_buffer() argument
369 if (num_samples == 0) in intel_miptree_create_for_dri2_buffer()
376 num_samples); in intel_miptree_create_for_dri2_buffer()
399 uint32_t num_samples) in intel_miptree_create_for_renderbuffer() argument
[all …]

123456