Searched refs:samples (Results 1 - 25 of 685) sorted by relevance

1234567891011>>

/external/chromium_org/media/cast/test/utility/
H A Daudio_utility_unittest.cc15 std::vector<float> samples(480);
17 EncodeTimestamp(in_timestamp, 0, samples.size(), &samples.front());
20 DecodeTimestamp(&samples.front(), samples.size(), &out_timestamp));
26 std::vector<float> samples(480);
29 DecodeTimestamp(&samples.front(), samples.size(), &out_timestamp));
33 std::vector<float> samples(4800);
34 EncodeTimestamp(4711, 0, samples
[all...]
H A Dgenerate_timecode_audio.cc23 std::vector<float> samples(kSamplingFrequency / fps);
27 frame_id, num_samples, samples.size(), &samples.front()));
28 num_samples += samples.size();
29 for (size_t i = 0; i < samples.size(); ++i) {
30 const int16 sample_s16 = static_cast<int16>(samples[i] * kint16max);
H A Daudio_utility.h32 // of sine wave samples.
47 // Assuming |samples| contains a single-frequency sine wave (and maybe some
56 // ...where seconds_per_frame is the number of samples divided by the sampling
60 int CountZeroCrossings(const float* samples, int length);
62 // Encode |timestamp| into the samples pointed to by 'samples' in a way
64 // Assumes 48Khz sampling rate and needs at least 240 samples. Returns
65 // false if |length| of |samples| is too small. If more than 240 samples are
67 // contain how many samples ha
[all...]
/external/eigen/doc/snippets/
H A DLLT_solve.cpp2 // let's generate some samples on the 3D plane of equation z = 2x+3y (with some noise)
3 DataMatrix samples = DataMatrix::Random(12,2); variable
4 VectorXf elevations = 2*samples.col(0) + 3*samples.col(1) + VectorXf::Random(12)*0.1;
5 // and let's solve samples * [x y]^T = elevations in least square sense:
7 = (samples.adjoint() * samples).llt().solve((samples.adjoint()*elevations));
/external/skia/tools/
H A DStats.h5 Stats(const double samples[], int n) { argument
6 min = samples[0];
7 max = samples[0];
9 if (samples[i] < min) { min = samples[i]; }
10 if (samples[i] > max) { max = samples[i]; }
15 sum += samples[i];
21 err += (samples[i] - mean) * (samples[
[all...]
/external/chromium_org/third_party/webrtc/modules/audio_coding/codecs/ilbc/
H A Dfiltered_cb_vecs.c33 int16_t samples /* (i) Number of samples to filter */
39 WebRtcSpl_MemSetW16(cbvectors, 0, lMem-samples);
44 CBmem+CB_HALFFILTERLEN+lMem-samples, cbvectors+lMem-samples,
45 (int16_t*)WebRtcIlbcfix_kCbFiltersRev, CB_FILTERLEN, samples);
H A Dfiltered_cb_vecs.h35 int16_t samples /* (i) Number of samples to filter */
/external/chromium_org/third_party/libvpx/source/libvpx/vpx/internal/
H A Dvpx_psnr.h24 * \param[in] samples Number of samples
28 double vpx_sse_to_psnr(double samples, double peak, double sse);
/external/libvpx/libvpx/vpx/internal/
H A Dvpx_psnr.h24 * \param[in] samples Number of samples
28 double vpx_sse_to_psnr(double samples, double peak, double sse);
/external/chromium_org/tools/telemetry/telemetry/util/
H A Dstatistics_unittest.py12 def Relax(samples, iterations=10):
19 for i in xrange(1, len(samples)):
20 voronoi_boundaries.append((samples[i] + samples[i-1]) * 0.5)
23 relaxed_samples.append(samples[0])
24 for i in xrange(1, len(samples)-1):
27 relaxed_samples.append(samples[-1])
28 samples = relaxed_samples
29 return samples
32 samples
[all...]
H A Dstatistics.py15 def NormalizeSamples(samples):
16 """Sorts the samples, and map them linearly to the range [0,1].
18 They're mapped such that for the N samples, the first sample is 0.5/N and the
27 if not samples:
28 return samples, 1.0
29 samples = sorted(samples)
30 low = min(samples)
31 high = max(samples)
32 new_low = 0.5 / len(samples)
[all...]
/external/chromium_org/components/copresence/test/
H A Daudio_test_support.cc13 void PopulateSamples(int random_seed, size_t size, float* samples) { argument
16 samples[i] = (2.0 * rand() / RAND_MAX) - 1;
21 int samples) {
22 scoped_ptr<media::AudioBus> bus = media::AudioBus::Create(channels, samples);
24 PopulateSamples(random_seed, samples, bus->channel(ch));
29 CreateRandomAudioRefCounted(int random_seed, int channels, int samples) { argument
31 media::AudioBusRefCounted::Create(channels, samples);
33 PopulateSamples(random_seed, samples, bus->channel(ch));
19 CreateRandomAudio(int random_seed, int channels, int samples) argument
H A Daudio_test_support.h20 // Populate random samples given a random seed into the samples array.
21 void PopulateSamples(int random_seed, size_t size, float* samples);
23 // Create an audio bus populated with random samples.
26 int samples);
28 // Create an ref counted audio bus populated with random samples.
30 CreateRandomAudioRefCounted(int random_seed, int channels, int samples);
/external/chromium_org/third_party/libvpx/source/libvpx/vpx/src/
H A Dvpx_psnr.c17 double vpx_sse_to_psnr(double samples, double peak, double sse) { argument
19 const double psnr = 10.0 * log10(samples * peak * peak / sse);
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/
H A DMultisetIteratorTester.java42 Arrays.asList(samples.e0, samples.e1, samples.e1, samples.e2)),
46 return getSubjectGenerator().create(samples.e0, samples.e1, samples.e1, samples.e2)
55 new IteratorTester<E>(4, IteratorFeature.MODIFIABLE, Arrays.asList(samples.e0, samples
[all...]
/external/libvpx/libvpx/vpx/src/
H A Dvpx_psnr.c17 double vpx_sse_to_psnr(double samples, double peak, double sse) { argument
19 const double psnr = 10.0 * log10(samples * peak * peak / sse);
/external/chromium_org/third_party/skia/tools/
H A DStats.h14 Stats(const double samples[], int n) { argument
15 min = samples[0];
16 max = samples[0];
18 if (samples[i] < min) { min = samples[i]; }
19 if (samples[i] > max) { max = samples[i]; }
24 sum += samples[i];
30 err += (samples[i] - mean) * (samples[
[all...]
/external/guava/guava-testlib/src/com/google/common/collect/testing/testers/
H A DListAddAllTester.java41 getList().addAll(MinimalCollection.of(samples.e0)));
42 expectAdded(samples.e0);
49 getList().addAll(MinimalCollection.of(samples.e0));
59 = MinimalCollection.of(samples.e0, samples.e1, samples.e0, samples.e1);
62 expectAdded(samples.e0, samples.e1, samples
[all...]
H A DSetAddAllTester.java41 getSet().addAll(MinimalCollection.of(samples.e3, samples.e0)));
42 expectAdded(samples.e3);
48 = MinimalCollection.of(samples.e3, samples.e4, samples.e3, samples.e4);
51 expectAdded(samples.e3, samples.e4);
58 getSet().addAll(MinimalCollection.of(samples
[all...]
H A DListAddAtIndexTester.java44 getList().add(0, samples.e0);
45 expectAdded(0, samples.e0);
56 getList().add(0, samples.e0);
65 getList().add(0, samples.e3);
66 expectAdded(0, samples.e3);
72 getList().add(0, samples.e3);
77 expectMissing(samples.e3);
83 getList().add(getNumElements() / 2, samples.e3);
84 expectAdded(getNumElements() / 2, samples.e3);
90 getList().add(getNumElements(), samples
[all...]
/external/chromium_org/content/test/data/media/
H A Dwebrtc_test_audio.js18 // Gather 50 samples per second for 2 seconds.
19 gatherAudioLevelSamples(peerConnection, 100, 50, function(samples) {
20 identifyFakeDeviceSignal_(samples, beLenient);
30 gatherAudioLevelSamples(peerConnection, 100, 50, function(samples) {
31 identifySilence_(samples);
37 // Gathers |numSamples| samples at |frequency| number of times per second and
41 console.log('Gathering ' + numSamples + ' audio samples...');
56 console.log('Gathered all samples.');
67 * test if we can't see a signal. The samples should have been gathered over at
76 function identifyFakeDeviceSignal_(samples, beLenien
[all...]
/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/tools/
H A Dinput_audio_file.cc22 bool InputAudioFile::Read(size_t samples, int16_t* destination) { argument
26 size_t samples_read = fread(destination, sizeof(int16_t), samples, fp_);
27 if (samples_read < samples) {
28 // Rewind and read the missing samples.
30 size_t missing_samples = samples - samples_read;
40 void InputAudioFile::DuplicateInterleaved(const int16_t* source, size_t samples, argument
46 for (int i = static_cast<int>(samples - 1); i >= 0; --i) {
/external/chromium_org/base/metrics/
H A Dsample_vector_unittest.cc24 SampleVector samples(&ranges);
26 samples.Accumulate(1, 200);
27 samples.Accumulate(2, -300);
28 EXPECT_EQ(-100, samples.GetCountAtIndex(0));
30 samples.Accumulate(5, 200);
31 EXPECT_EQ(200, samples.GetCountAtIndex(1));
33 EXPECT_EQ(600, samples.sum());
34 EXPECT_EQ(100, samples.redundant_count());
35 EXPECT_EQ(samples.TotalCount(), samples
[all...]
H A Dsample_map_unittest.cc13 SampleMap samples; local
15 samples.Accumulate(1, 100);
16 samples.Accumulate(2, 200);
17 samples.Accumulate(1, -200);
18 EXPECT_EQ(-100, samples.GetCount(1));
19 EXPECT_EQ(200, samples.GetCount(2));
21 EXPECT_EQ(300, samples.sum());
22 EXPECT_EQ(100, samples.TotalCount());
23 EXPECT_EQ(samples.redundant_count(), samples
58 SampleMap samples; local
101 SampleMap samples; local
[all...]
/external/guava/guava-testlib/src/com/google/common/collect/testing/
H A DOneSizeGenerator.java50 public SampleElements<E> samples() { method in class:OneSizeGenerator
51 return generator.samples();
73 SampleElements<E> samples = samples();
76 samples.e0, samples.e1, samples.e2, samples.e3, samples.e4);

Completed in 502 milliseconds

1234567891011>>