Home
last modified time | relevance | path

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

12

/frameworks/opt/bitmap/src/com/android/bitmap/util/
DBitmapUtils.java58 final int dstH, final int dstSliceH, int sampleSize, final float horizSliceFrac, in calculateCroppedSrcRect() argument
61 if (sampleSize < 1) { in calculateCroppedSrcRect()
62 sampleSize = 1; in calculateCroppedSrcRect()
73 final float scale = Math.min(sampleSize, regularScale); in calculateCroppedSrcRect()
110 int sampleSize, Rect outRect) { in calculateCroppedSrcRect() argument
111 if (sampleSize < 1) { in calculateCroppedSrcRect()
112 sampleSize = 1; in calculateCroppedSrcRect()
118 final float scale = Math.min(sampleSize, regularScale); in calculateCroppedSrcRect()
/frameworks/base/libs/hwui/jni/
DBitmapFactory.cpp157 static bool needsFineScale(const int fullSize, const int decodedSize, const int sampleSize) { in needsFineScale() argument
158 if (fullSize % sampleSize == 0 && fullSize / sampleSize != decodedSize) { in needsFineScale()
160 } else if ((fullSize / sampleSize + 1) != decodedSize && in needsFineScale()
161 (fullSize / sampleSize) != decodedSize) { in needsFineScale()
168 const int sampleSize) { in needsFineScale() argument
169 return needsFineScale(fullSize.width(), decodedSize.width(), sampleSize) || in needsFineScale()
170 needsFineScale(fullSize.height(), decodedSize.height(), sampleSize); in needsFineScale()
177 int sampleSize = 1; in doDecode() local
189 sampleSize = env->GetIntField(options, gOptions_sampleSizeFieldID); in doDecode()
192 if (sampleSize <= 0) { in doDecode()
[all …]
DBitmapRegionDecoder.cpp124 int sampleSize = 1; in nativeDecodeRegion() local
132 sampleSize = env->GetIntField(options, gOptions_sampleSizeFieldID); in nativeDecodeRegion()
186 if (!brd->decodeRegion(&bitmap, allocator, subset, sampleSize, in nativeDecodeRegion()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/
DExtractor.java90 int sampleSize = mExtractor.readSampleData(mFrameBuffer, 0); in getFrameSample() local
91 if (sampleSize < 0) { in getFrameSample()
95 mBufferInfo.size = sampleSize; in getFrameSample()
101 return sampleSize; in getFrameSample()
/frameworks/base/media/jni/soundpool/
DSound.cpp102 int sampleSize = AMediaExtractor_readSampleData(ex.get(), buf, bufsize); in decode() local
103 ALOGV("%s: read %d", __func__, sampleSize); in decode()
104 if (sampleSize < 0) { in decode()
105 sampleSize = 0; in decode()
113 0 /* offset */, sampleSize, presentationTimeUs, in decode()
/frameworks/base/graphics/java/android/graphics/
DImageDecoder.java1088 public Size getSampledSize(int sampleSize) { in getSampledSize() argument
1089 if (sampleSize <= 0) { in getSampledSize()
1091 + "provided " + sampleSize); in getSampledSize()
1097 return nGetSampledSize(mNativePtr, sampleSize); in getSampledSize()
1144 public ImageDecoder setResize(int sampleSize) { in setResize() argument
1145 this.setTargetSampleSize(sampleSize); in setResize()
1149 private int getTargetDimension(int original, int sampleSize, int computed) { in getTargetDimension() argument
1151 if (sampleSize >= original) { in getTargetDimension()
1157 int target = original / sampleSize; in getTargetDimension()
1165 int reverse = computed * sampleSize; in getTargetDimension()
[all …]
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
DTrackDecoder.java116 int sampleSize = mediaExtractor.readSampleData(destinationBuffer, 0); in feedInput() local
118 if (sampleSize < 0) { in feedInput()
131 sampleSize, in feedInput()
/frameworks/base/media/jni/
Dandroid_media_MediaExtractor.h61 status_t readSampleData(jobject byteBuf, size_t offset, size_t *sampleSize);
64 status_t getSampleSize(size_t *sampleSize);
Dandroid_media_MediaExtractor.cpp168 jobject byteBuf, size_t offset, size_t *sampleSize) { in readSampleData() argument
219 *sampleSize = buffer->size(); in readSampleData()
232 byteBuf, limitID, offset + *sampleSize); in readSampleData()
250 status_t JMediaExtractor::getSampleSize(size_t *sampleSize) { in getSampleSize() argument
251 return mImpl->getSampleSize(sampleSize); in getSampleSize()
462 size_t sampleSize; in android_media_MediaExtractor_readSampleData() local
463 status_t err = extractor->readSampleData(byteBuf, offset, &sampleSize); in android_media_MediaExtractor_readSampleData()
472 return (jint) sampleSize; in android_media_MediaExtractor_readSampleData()
528 size_t sampleSize; in android_media_MediaExtractor_getSampleSize() local
529 status_t err = extractor->getSampleSize(&sampleSize); in android_media_MediaExtractor_getSampleSize()
[all …]
/frameworks/opt/bitmap/src/com/android/bitmap/
DDecodeTask.java238 final int sampleSize; in decode() local
241 sampleSize = (int) sz; in decode()
244 sampleSize = (int) Math.ceil(sz); in decode()
248 sampleSize = (int) Math.pow(2, (int) (0.5 + (Math.log(sz) / Math.log(2)))); in decode()
251 mOpts.inSampleSize = Math.max(1, sampleSize); in decode()
/frameworks/base/core/java/android/gesture/
DGestureUtils.java209 private static void plot(float x, float y, float[] sample, int sampleSize) { in plot() argument
219 int index = yCeiling * sampleSize + xCeiling; in plot()
235 int index = yFloor * sampleSize + xFloor; in plot()
241 index = yFloor * sampleSize + xCeiling; in plot()
247 index = yCeiling * sampleSize + xFloor; in plot()
253 index = yCeiling * sampleSize + xCeiling; in plot()
/frameworks/av/media/extractors/mp4/
DSampleTable.h92 void setPredictSampleSize(uint32_t sampleSize) { in setPredictSampleSize() argument
93 mDefaultSampleSize = sampleSize; in setPredictSampleSize()
DSampleIterator.cpp109 size_t sampleSize; in seekTo() local
111 firstChunkSampleIndex + i, &sampleSize)) != OK) { in seekTo()
124 mCurrentChunkSampleSizes.push(sampleSize); in seekTo()
DSampleTable.cpp925 size_t sampleSize; in findThumbnailSample() local
926 status_t err = getSampleSize_l(x, &sampleSize); in findThumbnailSample()
931 if (i == 0 || sampleSize > maxSampleSize) { in findThumbnailSample()
933 maxSampleSize = sampleSize; in findThumbnailSample()
943 uint32_t sampleIndex, size_t *sampleSize) { in getSampleSize_l() argument
945 sampleIndex, sampleSize); in getSampleSize_l()
/frameworks/av/media/libstagefright/
DNuMediaExtractor.cpp674 size_t sampleSize = it->mBuffer->range_length(); in readSampleData() local
679 sampleSize += sizeof(int32_t); in readSampleData()
682 if (buffer->capacity() < sampleSize) { in readSampleData()
698 buffer->setRange(0, sampleSize); in readSampleData()
704 status_t NuMediaExtractor::getSampleSize(size_t *sampleSize) { in getSampleSize() argument
715 *sampleSize = it->mBuffer->range_length(); in getSampleSize()
720 *sampleSize += sizeof(int32_t); in getSampleSize()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/androidTest/java/com/android/media/benchmark/tests/
DDecoderTest.java141 int sampleSize; in testDecoder() local
143 sampleSize = extractor.getFrameSample(); in testDecoder()
155 } while (sampleSize > 0); in testDecoder()
DMuxerTest.java126 int sampleSize = extractor.getFrameSample(); in testMuxer() local
136 if (sampleSize < 0) { in testMuxer()
DEncoderTest.java134 int sampleSize; in testEncoder() local
136 sampleSize = extractor.getFrameSample(); in testEncoder()
148 } while (sampleSize > 0); in testEncoder()
/frameworks/av/media/libstagefright/flac/dec/test/
DFlacDecoderTest.cpp142 const size_t sampleSize = outputFloat ? sizeof(float) : sizeof(int16_t); in processFlacDecoder() local
144 ? mStreamInfo.max_blocksize * mStreamInfo.channels * sampleSize in processFlacDecoder()
145 : kMaxBlockSize * FLACDecoder::kMaxChannels * sampleSize; in processFlacDecoder()
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/
DBitmapRegionTileSource.java127 int sampleSize = Math.max(options.inSampleSize, 1); in decodeRegion() local
129 wantRegion.width() / sampleSize, in decodeRegion()
130 wantRegion.height() / sampleSize, in decodeRegion()
134 mTempCanvas.scale(1f / sampleSize, 1f / sampleSize); in decodeRegion()
/frameworks/base/native/graphics/jni/
Dimagedecoder.cpp294 int AImageDecoder_computeSampledSize(const AImageDecoder* decoder, int sampleSize, in AImageDecoder_computeSampledSize() argument
296 if (!decoder || !width || !height || sampleSize < 1) { in AImageDecoder_computeSampledSize()
300 SkISize size = toDecoder(decoder)->mCodec->getSampledDimensions(sampleSize); in AImageDecoder_computeSampledSize()
/frameworks/base/media/tests/MtpTests/src/android/mtp/
DMtpDatabaseTest.java198 public static Bitmap decodeBitmapFromBytes(byte[] bytes, int sampleSize) { in decodeBitmapFromBytes() argument
200 if (sampleSize <= 1) { in decodeBitmapFromBytes()
204 options.inSampleSize = sampleSize; in decodeBitmapFromBytes()
/frameworks/base/libs/hwui/hwui/
DImageDecoder.cpp81 int sampleSize = mCodec->computeSampleSize(&decodeSize); in setTargetSize() local
89 mSampleSize = sampleSize; in setTargetSize()
/frameworks/av/media/codec2/components/flac/
DC2SoftFlacDec.cpp274 const size_t sampleSize = outputFloat ? sizeof(float) : sizeof(short); in process() local
276 mStreamInfo.max_blocksize * mStreamInfo.channels * sampleSize in process()
277 : kMaxBlockSize * FLACDecoder::kMaxChannels * sampleSize; in process()
/frameworks/native/include/android/
Dimagedecoder.h338 int AImageDecoder_computeSampledSize(const AImageDecoder*, int sampleSize,

12