/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
D | BitmapUtils.java | 58 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/ |
D | BitmapFactory.cpp | 157 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 …]
|
D | BitmapRegionDecoder.cpp | 124 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/ |
D | Extractor.java | 90 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/ |
D | Sound.cpp | 102 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/ |
D | ImageDecoder.java | 1088 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/ |
D | TrackDecoder.java | 116 int sampleSize = mediaExtractor.readSampleData(destinationBuffer, 0); in feedInput() local 118 if (sampleSize < 0) { in feedInput() 131 sampleSize, in feedInput()
|
/frameworks/base/media/jni/ |
D | android_media_MediaExtractor.h | 61 status_t readSampleData(jobject byteBuf, size_t offset, size_t *sampleSize); 64 status_t getSampleSize(size_t *sampleSize);
|
D | android_media_MediaExtractor.cpp | 168 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/ |
D | DecodeTask.java | 238 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/ |
D | GestureUtils.java | 209 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/ |
D | SampleTable.h | 92 void setPredictSampleSize(uint32_t sampleSize) { in setPredictSampleSize() argument 93 mDefaultSampleSize = sampleSize; in setPredictSampleSize()
|
D | SampleIterator.cpp | 109 size_t sampleSize; in seekTo() local 111 firstChunkSampleIndex + i, &sampleSize)) != OK) { in seekTo() 124 mCurrentChunkSampleSizes.push(sampleSize); in seekTo()
|
D | SampleTable.cpp | 925 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/ |
D | NuMediaExtractor.cpp | 674 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/ |
D | DecoderTest.java | 141 int sampleSize; in testDecoder() local 143 sampleSize = extractor.getFrameSample(); in testDecoder() 155 } while (sampleSize > 0); in testDecoder()
|
D | MuxerTest.java | 126 int sampleSize = extractor.getFrameSample(); in testMuxer() local 136 if (sampleSize < 0) { in testMuxer()
|
D | EncoderTest.java | 134 int sampleSize; in testEncoder() local 136 sampleSize = extractor.getFrameSample(); in testEncoder() 148 } while (sampleSize > 0); in testEncoder()
|
/frameworks/av/media/libstagefright/flac/dec/test/ |
D | FlacDecoderTest.cpp | 142 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/ |
D | BitmapRegionTileSource.java | 127 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/ |
D | imagedecoder.cpp | 294 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/ |
D | MtpDatabaseTest.java | 198 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/ |
D | ImageDecoder.cpp | 81 int sampleSize = mCodec->computeSampleSize(&decodeSize); in setTargetSize() local 89 mSampleSize = sampleSize; in setTargetSize()
|
/frameworks/av/media/codec2/components/flac/ |
D | C2SoftFlacDec.cpp | 274 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/ |
D | imagedecoder.h | 338 int AImageDecoder_computeSampledSize(const AImageDecoder*, int sampleSize,
|