Searched refs:num_samples (Results 1 - 25 of 88) sorted by relevance

1234

/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dgen6_multisample_state.c35 unsigned num_samples)
43 switch (num_samples) {
98 assert(!"Unrecognized num_samples in gen6_emit_3dstate_multisample");
118 unsigned num_samples, float coverage,
125 if (num_samples > 1) {
126 int coverage_int = (int) (num_samples * coverage + 0.5);
129 coverage_bits ^= (1 << num_samples) - 1;
146 unsigned num_samples = ctx->DrawBuffer->Visual.samples; local
157 gen6_emit_3dstate_multisample(brw, num_samples);
158 gen6_emit_3dstate_sample_mask(brw, num_samples, coverag
34 gen6_emit_3dstate_multisample(struct brw_context *brw, unsigned num_samples) argument
117 gen6_emit_3dstate_sample_mask(struct brw_context *brw, unsigned num_samples, float coverage, bool coverage_invert) argument
[all...]
H A Dbrw_blorp.cpp42 num_samples(0)
72 this->num_samples = mt->num_samples;
150 num_samples(0),
/external/webrtc/webrtc/modules/audio_coding/neteq/tools/
H A Doutput_audio_file.h37 bool WriteArray(const int16_t* audio, size_t num_samples) override {
39 return fwrite(audio, sizeof(*audio), num_samples, out_file_) == num_samples;
H A Daudio_sink.h28 // Writes |num_samples| from |audio| to the AudioSink. Returns true if
30 virtual bool WriteArray(const int16_t* audio, size_t num_samples) = 0;
50 bool WriteArray(const int16_t* audio, size_t num_samples) override {
51 return left_sink_->WriteArray(audio, num_samples) &&
52 right_sink_->WriteArray(audio, num_samples);
H A Doutput_wav_file.h30 bool WriteArray(const int16_t* audio, size_t num_samples) override {
31 wav_writer_.WriteSamples(audio, num_samples);
H A Daudio_checksum.h29 bool WriteArray(const int16_t* audio, size_t num_samples) override {
36 checksum_.Update(audio, num_samples * sizeof(*audio));
/external/webrtc/webrtc/common_audio/
H A Dwav_file.h31 virtual size_t num_samples() const = 0;
50 void WriteSamples(const float* samples, size_t num_samples);
51 void WriteSamples(const int16_t* samples, size_t num_samples);
55 size_t num_samples() const override { return num_samples_; }
78 size_t ReadSamples(size_t num_samples, float* samples);
79 size_t ReadSamples(size_t num_samples, int16_t* samples);
83 size_t num_samples() const override { return num_samples_; }
109 size_t num_samples);
H A Dwav_header.h39 size_t num_samples);
50 size_t num_samples);
60 size_t* num_samples);
H A Dwav_file.cc45 << (1.f * num_samples()) / (num_channels() * sample_rate()) << " s";
67 size_t WavReader::ReadSamples(size_t num_samples, int16_t* samples) { argument
72 num_samples = std::min(num_samples, num_samples_remaining_);
74 fread(samples, sizeof(*samples), num_samples, file_handle_);
76 RTC_CHECK(read == num_samples || feof(file_handle_));
82 size_t WavReader::ReadSamples(size_t num_samples, float* samples) { argument
85 for (size_t i = 0; i < num_samples; i += kChunksize) {
87 size_t chunk = std::min(kChunksize, num_samples - i);
121 void WavWriter::WriteSamples(const int16_t* samples, size_t num_samples) { argument
132 WriteSamples(const float* samples, size_t num_samples) argument
165 rtc_WavWriteSamples(rtc_WavWriter* wf, const float* samples, size_t num_samples) argument
[all...]
H A Dwav_header_unittest.cc98 size_t num_samples = 0; local
123 &bytes_per_sample, &num_samples));
144 &bytes_per_sample, &num_samples));
165 &bytes_per_sample, &num_samples));
187 &bytes_per_sample, &num_samples));
210 &bytes_per_sample, &num_samples));
229 &bytes_per_sample, &num_samples));
241 &bytes_per_sample, &num_samples));
275 size_t num_samples = 0; local
279 &bytes_per_sample, &num_samples));
311 size_t num_samples = 0; local
[all...]
H A Dwav_header.cc66 size_t num_samples) {
104 if (num_samples > max_samples)
108 if (num_samples % num_channels != 0)
153 size_t num_samples) {
155 bytes_per_sample, num_samples));
158 const size_t bytes_in_payload = bytes_per_sample * num_samples;
188 size_t* num_samples) {
217 *num_samples = bytes_in_payload / *bytes_per_sample;
239 *bytes_per_sample, *num_samples);
62 CheckWavParameters(size_t num_channels, int sample_rate, WavFormat format, size_t bytes_per_sample, size_t num_samples) argument
148 WriteWavHeader(uint8_t* buf, size_t num_channels, int sample_rate, WavFormat format, size_t bytes_per_sample, size_t num_samples) argument
183 ReadWavHeader(ReadableWav* readable, size_t* num_channels, int* sample_rate, WavFormat* format, size_t* bytes_per_sample, size_t* num_samples) argument
/external/opencv/ml/src/
H A Dmltestset.cpp60 int num_samples,
87 if( num_samples < 1 )
88 CV_ERROR( CV_StsBadArg, "num_samples parameter must be positive" );
105 CV_CALL( *samples = cvCreateMat( num_samples, num_features, CV_32FC1 ) );
106 CV_CALL( *responses = cvCreateMat( 1, num_samples, CV_32SC1 ) );
133 num_classes = MIN( num_samples, num_classes );
136 for( i = 0, cur_class = 0; i < num_samples; ++cur_class )
141 last_idx = num_samples * (cur_class + 1) / num_classes - 1;
145 for( ; elem.d <= max_dst && i < num_samples; ++i )
148 if( i < num_samples
59 cvCreateTestSet( int type, CvMat** samples, int num_samples, int num_features, CvMat** responses, int num_classes, ... ) argument
[all...]
/external/webrtc/webrtc/modules/video_coding/utility/
H A Dmoving_average.h24 bool GetAverage(size_t num_samples, T* average);
44 bool MovingAverage<T>::GetAverage(size_t num_samples, T* avg) { argument
45 if (num_samples > samples_.size())
49 while (num_samples < samples_.size()) {
54 *avg = sum_ / static_cast<T>(num_samples);
/external/webrtc/webrtc/modules/audio_coding/neteq/
H A Dstatistics_calculator.h40 // Reports that |num_samples| samples were produced through expansion, and
42 void ExpandedVoiceSamples(size_t num_samples);
44 // Reports that |num_samples| samples were produced through expansion, and
46 void ExpandedNoiseSamples(size_t num_samples);
48 // Reports that |num_samples| samples were produced through preemptive
50 void PreemptiveExpandedSamples(size_t num_samples);
52 // Reports that |num_samples| samples were removed through accelerate.
53 void AcceleratedSamples(size_t num_samples);
55 // Reports that |num_samples| zeros were inserted into the output.
56 void AddZeros(size_t num_samples);
[all...]
H A Dstatistics_calculator.cc143 void StatisticsCalculator::ExpandedVoiceSamples(size_t num_samples) { argument
144 expanded_speech_samples_ += num_samples;
147 void StatisticsCalculator::ExpandedNoiseSamples(size_t num_samples) { argument
148 expanded_noise_samples_ += num_samples;
151 void StatisticsCalculator::PreemptiveExpandedSamples(size_t num_samples) { argument
152 preemptive_samples_ += num_samples;
155 void StatisticsCalculator::AcceleratedSamples(size_t num_samples) { argument
156 accelerate_samples_ += num_samples;
159 void StatisticsCalculator::AddZeros(size_t num_samples) { argument
160 added_zero_samples_ += num_samples;
167 LostSamples(size_t num_samples) argument
171 IncreaseCounter(size_t num_samples, int fs_hz) argument
185 SecondaryDecodedSamples(int num_samples) argument
[all...]
H A Ddtmf_tone_generator.cc151 // Generate num_samples of DTMF signal and write to |output|.
152 int DtmfToneGenerator::Generate(size_t num_samples, argument
162 output->AssertSize(num_samples);
163 for (size_t i = 0; i < num_samples; ++i) {
189 return static_cast<int>(num_samples);
H A Ddtmf_tone_generator.h33 virtual int Generate(size_t num_samples, AudioMultiVector* output);
/external/webrtc/webrtc/common_audio/vad/mock/
H A Dmock_vad.h27 size_t num_samples,
/external/webrtc/webrtc/modules/audio_coding/neteq/mock/
H A Dmock_dtmf_tone_generator.h29 int(size_t num_samples, AudioMultiVector* output));
/external/webrtc/webrtc/modules/utility/source/
H A Dfile_player_unittests.cc64 size_t num_samples; local
66 player_->Get10msAudioFromFile(out, num_samples, kSampleRateHz));
67 checksum.Update(out, num_samples * sizeof(out[0]));
69 ASSERT_EQ(num_samples,
70 fwrite(out, sizeof(out[0]), num_samples, output_file_));
/external/webrtc/webrtc/common_audio/vad/
H A Dvad.cc29 size_t num_samples,
31 int ret = WebRtcVad_Process(handle_, sample_rate_hz, audio, num_samples);
/external/mesa3d/src/gallium/drivers/r300/
H A Dr300_texture_desc.h41 unsigned num_samples,
/external/webrtc/webrtc/common_audio/vad/include/
H A Dvad.h38 size_t num_samples,
/external/webrtc/webrtc/modules/audio_processing/logging/
H A Daec_logging.h21 #define RTC_AEC_DEBUG_WAV_WRITE(file, data, num_samples) \
23 rtc_WavWriteSamples(file, data, num_samples); \
73 #define RTC_AEC_DEBUG_WAV_WRITE(file, data, num_samples) \
/external/mesa3d/src/mesa/drivers/dri/intel/
H A Dintel_fbo.h133 intel_create_renderbuffer(gl_format format, unsigned num_samples);
136 intel_create_private_renderbuffer(gl_format format, unsigned num_samples);
207 intel_quantize_num_samples(struct intel_screen *intel, unsigned num_samples);

Completed in 562 milliseconds

1234