/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 | 170 static bool needsFineScale(const int fullSize, const int decodedSize, const int sampleSize) { in needsFineScale() argument 171 if (fullSize % sampleSize == 0 && fullSize / sampleSize != decodedSize) { in needsFineScale() 173 } else if ((fullSize / sampleSize + 1) != decodedSize && in needsFineScale() 174 (fullSize / sampleSize) != decodedSize) { in needsFineScale() 181 const int sampleSize) { in needsFineScale() argument 182 return needsFineScale(fullSize.width(), decodedSize.width(), sampleSize) || in needsFineScale() 183 needsFineScale(fullSize.height(), decodedSize.height(), sampleSize); in needsFineScale() 187 sp<uirenderer::Gainmap>* outGainmap, const int sampleSize, float scale) { in decodeGainmap() argument 201 SkISize size = codec->getSampledDimensions(sampleSize); in decodeGainmap() 208 if (needsFineScale(codec->getInfo().dimensions(), size, sampleSize) || scale != 1.0f) { in decodeGainmap() [all …]
|
D | BitmapRegionDecoder.cpp | 84 int sampleSize, SkColorType colorType, bool requireUnpremul, in decodeRegion() argument 86 return mMainImageBRD->decodeRegion(bitmap, allocator, desiredSubset, sampleSize, colorType, in decodeRegion() 91 const SkIRect& desiredSubset, int sampleSize, bool requireUnpremul) { in decodeGainmapRegion() argument 116 if (!mGainmapBRD->decodeRegion(&bm, &allocator, desiredSubset, sampleSize, decodeColorType, in decodeGainmapRegion() 228 int sampleSize = 1; in nativeDecodeRegion() local 236 sampleSize = env->GetIntField(options, gOptions_sampleSizeFieldID); in nativeDecodeRegion() 295 if (!brd->decodeRegion(&bitmap, allocator, subset, sampleSize, in nativeDecodeRegion() 339 sampleSize, requireUnpremul)) { in nativeDecodeRegion()
|
/frameworks/av/media/ndk/fuzzer/ |
D | ndk_extractor_fuzzer.cpp | 89 int32_t sampleSize = AMediaExtractor_getSampleSize(mMediaExtractor); in process() local 90 if (sampleSize > 0) { in process() 91 std::vector<uint8_t> buffer(sampleSize); in process() 94 mFdp.ConsumeIntegralInRange<size_t>(0, sampleSize) /* capacity */); in process()
|
/frameworks/av/media/module/libmediatranscoding/transcoder/tests/ |
D | PassthroughTrackTranscoderTests.cpp | 103 SampleID(const uint8_t* sampleData, ssize_t sampleSize) : mSize{sampleSize} { in SampleID() argument 106 MD5_Update(&md5Ctx, sampleData, sampleSize); 136 ssize_t sampleSize = AMediaExtractor_getSampleSize(mExtractor); in TEST_F() local 137 if (bufferSize < sampleSize) { in TEST_F() 138 bufferSize = sampleSize; in TEST_F() 144 ASSERT_EQ(bytesRead, sampleSize); in TEST_F() 146 SampleID sampleId{buffer.get(), sampleSize}; in TEST_F()
|
/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 ssize_t sampleSize = AMediaExtractor_readSampleData(ex.get(), buf, bufsize); in decode() local 103 ALOGV("%s: read %zd", __func__, sampleSize); in decode() 104 if (sampleSize < 0) { in decode() 105 sampleSize = 0; in decode() 113 0 /* offset */, sampleSize, presentationTimeUs, in decode()
|
/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/services/core/java/com/android/server/wallpaper/ |
D | WallpaperCropper.java | 593 float sampleSize = Float.MAX_VALUE; in generateCropInternal() local 606 sampleSize = Math.min(sampleSize, sampleSizeForThisOrientation); in generateCropInternal() 616 sampleSize = Math.max(sampleSize, minimumSampleSize); in generateCropInternal() 617 needScale = sampleSize > 1f; in generateCropInternal() 679 else estimateCrop.scale(1f / sampleSize); in generateCropInternal() 707 : (int) (cropHint.height() / sampleSize + 0.5f); in generateCropInternal() 710 : (int) (cropHint.width() / sampleSize + 0.5f); in generateCropInternal() 723 Slog.v(TAG, " sampleSize=" + sampleSize); in generateCropInternal() 741 final int rescaledBitmapWidth = (int) (0.5f + bitmapSize.x / sampleSize); in generateCropInternal() 742 final int rescaledBitmapHeight = (int) (0.5f + bitmapSize.y / sampleSize); in generateCropInternal() [all …]
|
/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 230 *sampleSize = buffer->size(); in readSampleData() 243 byteBuf, limitID, offset + *sampleSize); in readSampleData() 261 status_t JMediaExtractor::getSampleSize(size_t *sampleSize) { in getSampleSize() argument 262 return mImpl->getSampleSize(sampleSize); in getSampleSize() 476 size_t sampleSize; in android_media_MediaExtractor_readSampleData() local 477 status_t err = extractor->readSampleData(byteBuf, offset, &sampleSize); in android_media_MediaExtractor_readSampleData() 486 return (jint) sampleSize; in android_media_MediaExtractor_readSampleData() 542 size_t sampleSize; in android_media_MediaExtractor_getSampleSize() local 543 status_t err = extractor->getSampleSize(&sampleSize); in android_media_MediaExtractor_getSampleSize() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | ImageDecoder.java | 1144 private Size getSampledSize(int sampleSize) { in getSampledSize() argument 1145 if (sampleSize <= 0) { in getSampledSize() 1147 + "provided " + sampleSize); in getSampledSize() 1153 return nGetSampledSize(mNativePtr, sampleSize); in getSampledSize() 1188 private int getTargetDimension(int original, int sampleSize, int computed) { in getTargetDimension() argument 1190 if (sampleSize >= original) { in getTargetDimension() 1196 int target = original / sampleSize; in getTargetDimension() 1204 int reverse = computed * sampleSize; in getTargetDimension() 1205 if (Math.abs(reverse - original) < sampleSize) { in getTargetDimension() 1242 public void setTargetSampleSize(@IntRange(from = 1) int sampleSize) { in setTargetSampleSize() [all …]
|
/frameworks/av/media/module/libmediatranscoding/transcoder/ |
D | MediaSampleReaderNDK.cpp | 436 ssize_t sampleSize = AMediaExtractor_getSampleSize(mExtractor); in readSampleDataForTrack() local 437 if (bufferSize < sampleSize) { in readSampleDataForTrack() 438 LOG(ERROR) << "Buffer is too small for sample, " << bufferSize << " vs " << sampleSize; in readSampleDataForTrack() 443 if (bytesRead < sampleSize) { in readSampleDataForTrack() 444 LOG(ERROR) << "Unable to read full sample, " << bytesRead << " vs " << sampleSize; in readSampleDataForTrack()
|
/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/av/media/module/extractors/mp4/include/ |
D | SampleTable.h | 92 void setPredictSampleSize(uint32_t sampleSize) { in setPredictSampleSize() argument 93 mDefaultSampleSize = sampleSize; in setPredictSampleSize()
|
/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/module/extractors/mp4/ |
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/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 | 124 int sampleSize = extractor.getFrameSample(); in testMuxer() local 134 if (sampleSize < 0) { in testMuxer()
|
/frameworks/av/media/module/codecs/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/av/media/libstagefright/ |
D | MediaAppender.cpp | 149 size_t sampleSize; in init() local 150 status = mExtractor->getSampleSize(&sampleSize); in init() 155 mSampleSizeVect.emplace_back(sampleSize); in init() 156 tmpSDI.size = sampleSize; in init()
|
D | NuMediaExtractor.cpp | 711 size_t sampleSize = it->mBuffer->range_length(); in readSampleData() local 716 sampleSize += sizeof(int32_t); in readSampleData() 720 if (buffer->capacity() < sampleSize) { in readSampleData() 741 status_t NuMediaExtractor::getSampleSize(size_t *sampleSize) { in getSampleSize() argument 752 *sampleSize = it->mBuffer->range_length(); in getSampleSize() 757 *sampleSize += sizeof(int32_t); in getSampleSize()
|
/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()
|