/frameworks/opt/net/voip/src/jni/rtp/ |
D | G711Codec.cpp | 51 int sample = samples[i]; in encode() local 52 int sign = (sample >> 8) & 0x80; in encode() 53 if (sample < 0) { in encode() 54 sample = -sample; in encode() 56 sample += 132; in encode() 57 if (sample > 32767) { in encode() 58 sample = 32767; in encode() 60 int exponent = gExponents[sample >> 8]; in encode() 61 int mantissa = (sample >> (exponent + 3)) & 0x0F; in encode() 77 int sample = (((mantissa << 3) + 132) << exponent) - 132; in decode() local [all …]
|
/frameworks/av/media/libmediatranscoding/transcoder/tests/ |
D | MediaSampleQueueTests.cpp | 59 std::shared_ptr<MediaSample> sample; in TEST_F() local 60 bool aborted = sampleQueue.dequeue(&sample); in TEST_F() 61 EXPECT_NE(sample, nullptr); in TEST_F() 62 EXPECT_EQ(sample->bufferId, i); in TEST_F() 79 std::shared_ptr<MediaSample> sample; in TEST_F() local 80 bool aborted = sampleQueue.dequeue(&sample); in TEST_F() 81 EXPECT_NE(sample, nullptr); in TEST_F() 82 EXPECT_EQ(sample->bufferId, i); in TEST_F() 101 std::shared_ptr<MediaSample> sample; in TEST_F() local 102 bool aborted = sampleQueue.dequeue(&sample); in TEST_F() [all …]
|
D | VideoTrackTranscoderTests.cpp | 111 transcoder->setSampleConsumer([&sampleCount, &eos](const std::shared_ptr<MediaSample>& sample) { in TEST_F() argument 112 ASSERT_NE(sample, nullptr); in TEST_F() 113 const uint32_t flags = sample->info.flags; in TEST_F() 130 EXPECT_NE(sample->buffer, nullptr); in TEST_F() 131 EXPECT_NE(sample->bufferId, 0xBAADF00D); in TEST_F() 132 EXPECT_GT(sample->info.size, 0); in TEST_F() 194 [&samples, &semaphore](const std::shared_ptr<MediaSample>& sample) { in TEST_F() argument 197 ASSERT_NE(sample, nullptr); in TEST_F() 198 samples.push_back(sample); in TEST_F() 200 if (samples.size() == 4 || sample->info.flags & SAMPLE_FLAG_END_OF_STREAM) { in TEST_F()
|
D | MediaSampleWriterTests.cpp | 255 auto sample = std::make_shared<MediaSample>(); in newSample() local 256 sample->info.presentationTimeUs = ptsUs; in newSample() 257 sample->info.flags = flags; in newSample() 258 sample->info.size = size; in newSample() 259 sample->dataOffset = offset; in newSample() 260 sample->buffer = buffer; in newSample() 261 return sample; in newSample() 411 auto sample = newSampleWithPts(pts); in TEST_F() local 412 sampleConsumers[trackIndex](sample); in TEST_F() 413 addedSamples.emplace_back(sample, trackIndex); in TEST_F() [all …]
|
/frameworks/av/media/codecs/mp3dec/src/ |
D | pvmp3_polyphase_filter_window.h | 93 __inline int16 saturate16(int32 sample) in saturate16() argument 99 mov a, sample, asr#15 in saturate16() 100 teq a, sample, asr b in saturate16() 101 eorne sample, MAX_16BITS_INT, sample, asr#31 in saturate16() 103 return sample ; in saturate16() 108 inline int16 saturate16(int32 sample) 111 if ((sample >> 15) ^(sample >> 31)) 113 sample = MAX_16BITS_INT ^(sample >> 31); 115 return sample;
|
/frameworks/av/media/libaudioclient/tests/ |
D | track_test_output_v1.0_ref_walleye.txt | 7 sample rate(48000), original sample rate(48000), speed(1.000000) 18 sample rate(24000), original sample rate(24000), speed(1.000000) 29 sample rate(16000), original sample rate(16000), speed(1.000000) 40 sample rate(8000), original sample rate(8000), speed(1.000000) 51 sample rate(44100), original sample rate(44100), speed(1.000000) 62 sample rate(22050), original sample rate(22050), speed(1.000000) 73 sample rate(11025), original sample rate(11025), speed(1.000000) 84 sample rate(48000), original sample rate(48000), speed(1.000000) 95 sample rate(48000), original sample rate(48000), speed(1.000000) 106 sample rate(48000), original sample rate(48000), speed(1.000000) [all …]
|
D | record_test_output_v1.0_ref_walleye.txt | 6 format(0x1), channel mask(0x10), channel count(1), sample rate(48000) 15 format(0x1), channel mask(0x10), channel count(1), sample rate(24000) 24 format(0x1), channel mask(0x10), channel count(1), sample rate(16000) 33 format(0x1), channel mask(0x10), channel count(1), sample rate(8000) 42 format(0x1), channel mask(0x10), channel count(1), sample rate(44100) 51 format(0x1), channel mask(0x10), channel count(1), sample rate(22050) 60 format(0x1), channel mask(0x10), channel count(1), sample rate(11025) 69 format(0x2), channel mask(0x10), channel count(1), sample rate(48000) 78 format(0x3), channel mask(0x10), channel count(1), sample rate(48000) 87 format(0x5), channel mask(0x10), channel count(1), sample rate(48000) [all …]
|
/frameworks/av/media/libmediatranscoding/transcoder/include/media/ |
D | MediaSample.h | 67 using OnSampleReleasedCallback = std::function<void(MediaSample* sample)>; 82 MediaSample* sample = new MediaSample(buffer, dataOffset, bufferId, releaseCallback); in createWithReleaseCallback() local 84 sample, std::bind(&MediaSample::releaseSample, std::placeholders::_1)); in createWithReleaseCallback() 117 static void releaseSample(MediaSample* sample) { in releaseSample() 118 if (sample->mReleaseCallback != nullptr) { in releaseSample() 119 sample->mReleaseCallback(sample); in releaseSample() 121 delete sample; in releaseSample() local
|
/frameworks/av/media/libmediatranscoding/transcoder/ |
D | MediaTrackTranscoder.cpp | 82 auto sample = std::make_shared<MediaSample>(); in start() local 83 sample->info.flags = SAMPLE_FLAG_END_OF_STREAM; in start() 84 onOutputSampleAvailable(sample); in start() 120 void MediaTrackTranscoder::onOutputSampleAvailable(const std::shared_ptr<MediaSample>& sample) { in onOutputSampleAvailable() argument 123 mSampleQueue.enqueue(sample); in onOutputSampleAvailable() 125 mSampleConsumer(sample); in onOutputSampleAvailable() 134 std::shared_ptr<MediaSample> sample; in setSampleConsumer() local 135 while (!mSampleQueue.isEmpty() && !mSampleQueue.dequeue(&sample)) { in setSampleConsumer() 136 mSampleConsumer(sample); in setSampleConsumer()
|
D | MediaSampleWriter.cpp | 153 return [self = shared_from_this(), trackIndex](const std::shared_ptr<MediaSample>& sample) { in addTrack() argument 154 self->addSampleToTrack(trackIndex, sample); in addTrack() 159 const std::shared_ptr<MediaSample>& sample) { in addSampleToTrack() argument 160 if (sample == nullptr) return; in addSampleToTrack() 166 mSampleQueue.push(std::make_pair(trackIndex, sample)); in addSampleToTrack() 263 std::shared_ptr<MediaSample> sample; in runWriterLoop() local 291 sample = topEntry.second; in runWriterLoop() 297 if (sample->info.flags & SAMPLE_FLAG_END_OF_STREAM) { in runWriterLoop() 309 sample->info.presentationTimeUs = track.mDurationUs + track.mFirstSampleTimeUs; in runWriterLoop() 313 track.mPrevSampleTimeUs = sample->info.presentationTimeUs; in runWriterLoop() [all …]
|
D | MediaSampleQueue.cpp | 25 bool MediaSampleQueue::enqueue(const std::shared_ptr<MediaSample>& sample) { in enqueue() argument 28 mSampleQueue.push(sample); in enqueue() 35 bool MediaSampleQueue::dequeue(std::shared_ptr<MediaSample>* sample) NO_THREAD_SAFETY_ANALYSIS { in dequeue() argument 42 if (sample != nullptr) { in dequeue() 43 *sample = mSampleQueue.front(); in dequeue()
|
D | PassthroughTrackTranscoder.cpp | 101 std::shared_ptr<MediaSample> sample; in runTranscodeLoop() local 108 [bufferPool = mBufferPool](MediaSample* sample) { in runTranscodeLoop() argument 109 bufferPool->returnBuffer(const_cast<uint8_t*>(sample->buffer)); in runTranscodeLoop() 127 sample = MediaSample::createWithReleaseCallback( in runTranscodeLoop() 137 sample = std::make_shared<MediaSample>(); in runTranscodeLoop() 144 sample->info = info; in runTranscodeLoop() 145 onOutputSampleAvailable(sample); in runTranscodeLoop()
|
/frameworks/av/media/libeffects/testlibs/ |
D | AudioCommon.h | 73 inline int16_t audio_sample_t_to_s15(audio_sample_t sample) { in audio_sample_t_to_s15() argument 74 return int16_t((sample + (1 << 8)) >> 9); in audio_sample_t_to_s15() 78 inline int16_t audio_sample_t_to_s15_clip(audio_sample_t sample) { in audio_sample_t_to_s15_clip() argument 80 if (CC_UNLIKELY(sample >= (0x7FFF << 9))) { in audio_sample_t_to_s15_clip() 82 } else if (CC_UNLIKELY(sample <= -(0x8000 << 9))) { in audio_sample_t_to_s15_clip() 85 return audio_sample_t_to_s15(sample); in audio_sample_t_to_s15_clip()
|
/frameworks/base/core/java/android/gesture/ |
D | Instance.java | 44 private Instance(long id, float[] sample, String sampleName) { in Instance() argument 46 vector = sample; in Instance() 51 float[] sample = vector; in normalize() local 54 int size = sample.length; in normalize() 56 sum += sample[i] * sample[i]; in normalize() 61 sample[i] /= magnitude; in normalize()
|
D | InstanceLearner.java | 50 Instance sample = instances.get(i); in classify() local 51 if (sample.vector.length != vector.length) { in classify() 56 … distance = GestureUtils.minimumCosineDistance(sample.vector, vector, orientationType); in classify() 58 distance = GestureUtils.squaredEuclideanDistance(sample.vector, vector); in classify() 66 Double score = label2score.get(sample.label); in classify() 68 label2score.put(sample.label, weight); in classify()
|
D | GestureUtils.java | 93 float[] sample = new float[bitmapSize * bitmapSize]; in spatialSampling() local 94 Arrays.fill(sample, 0); in spatialSampling() 159 plot(segmentStartX, segmentStartY, sample, bitmapSize); in spatialSampling() 168 plot(xpos, ypos, sample, bitmapSize); in spatialSampling() 177 plot(xpos, ypos, sample, bitmapSize); in spatialSampling() 188 plot(xpos, ypos, sample, bitmapSize); in spatialSampling() 197 plot(xpos, ypos, sample, bitmapSize); in spatialSampling() 206 return sample; in spatialSampling() 209 private static void plot(float x, float y, float[] sample, int sampleSize) { in plot() argument 220 if (sample[index] < 1){ in plot() [all …]
|
/frameworks/base/tests/SystemMemoryTest/host/src/com/android/tests/sysmem/host/ |
D | MemoryTest.java | 63 private void sample() throws TestException { in sample() method in MemoryTest 64 mMetrics.sample(String.format("%03d", mIterations)); in sample() 72 sample(); // Sample before running cujs in run() 74 sample(); // Sample after first iteration of cujs in run() 81 sample(); in run()
|
/frameworks/native/opengl/include/EGL/ |
D | Platform.h | 194 int sample, 200 int sample, in DefaultHistogramCustomCounts() argument 210 int sample, 214 int sample, in DefaultHistogramEnumeration() argument 219 using HistogramSparseFunc = void (*)(PlatformMethods *platform, const char *name, int sample); 220 inline void DefaultHistogramSparse(PlatformMethods *platform, const char *name, int sample) in DefaultHistogramSparse() argument 224 using HistogramBooleanFunc = void (*)(PlatformMethods *platform, const char *name, bool sample); 225 inline void DefaultHistogramBoolean(PlatformMethods *platform, const char *name, bool sample) in DefaultHistogramBoolean() argument
|
/frameworks/base/media/tests/audiotests/ |
D | shared_mem_test.cpp | 152 long sample; in ComputeSine() local 155 sample = (amplitude*sin1024[(phi>>22) & 0x3ff]) >> 15; in ComputeSine() 161 sample = sample + l0; in ComputeSine() 163 return (short)sample; in ComputeSine()
|
/frameworks/av/media/libaaudio/examples/utils/ |
D | AAudioSimpleRecorder.h | 266 float sample; in SimpleRecorderDataCallbackProc() local 273 sample = audioBuffer[frameIndex * samplesPerFrame] * (1.0/32768); in SimpleRecorderDataCallbackProc() 275 if (sample > data->peakLevel) { in SimpleRecorderDataCallbackProc() 276 data->peakLevel = sample; in SimpleRecorderDataCallbackProc() 285 sample = audioBuffer[frameIndex * samplesPerFrame]; in SimpleRecorderDataCallbackProc() 287 if (sample > data->peakLevel) { in SimpleRecorderDataCallbackProc() 288 data->peakLevel = sample; in SimpleRecorderDataCallbackProc()
|
/frameworks/opt/net/wifi/RROOverlaySampleApp/ |
D | Readme.txt | 1 a) Please see `device/google/coral/rro_overlays/WifiOverlay/` for a sample overlay app. 3 c) OEMs can add the flags they want to override in res/values/config.xml of this sample app 4 and put the sample app in either system, product or vendor partition of the device.
|
/frameworks/ex/camera2/extensions/ |
D | README.android | 1 Library Name: CameraX Extension stub and sample 3 Description: The CameraX Extension stub library along with a very basic sample 9 - Minor modifications to the sample implementation switching effects to white balance modes
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BinderLatencyBuckets.java | 71 public int sampleToBucket(int sample) { in sampleToBucket() argument 72 if (sample >= mBuckets[mBuckets.length - 1]) { in sampleToBucket() 81 int searchResult = Arrays.binarySearch(mBuckets, sample); in sampleToBucket()
|
/frameworks/av/media/codec2/hidl/plugin/samples/ |
D | Android.bp | 11 name: "sample-codec2-hidl-plugin-defaults", 52 name: "sample-codec2-hidl-plugin", 56 "sample-codec2-hidl-plugin-defaults",
|
/frameworks/av/media/libaaudio/examples/input_monitor/src/ |
D | input_monitor.cpp | 149 float sample = 0.0f; in main() local 151 sample = shortData[frameIndex * actualSamplesPerFrame] * (1.0/32768); in main() 153 sample = floatData[frameIndex * actualSamplesPerFrame]; in main() 155 if (sample > peakLevel) { in main() 156 peakLevel = sample; in main()
|