/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/core/jni/android/graphics/ |
D | BitmapFactory.cpp | 211 static bool needsFineScale(const int fullSize, const int decodedSize, const int sampleSize) { in needsFineScale() argument 212 if (fullSize % sampleSize == 0 && fullSize / sampleSize != decodedSize) { in needsFineScale() 214 } else if ((fullSize / sampleSize + 1) != decodedSize && in needsFineScale() 215 (fullSize / sampleSize) != decodedSize) { in needsFineScale() 222 const int sampleSize) { in needsFineScale() argument 223 return needsFineScale(fullSize.width(), decodedSize.width(), sampleSize) || in needsFineScale() 224 needsFineScale(fullSize.height(), decodedSize.height(), sampleSize); in needsFineScale() 235 int sampleSize = 1; in doDecode() local 245 sampleSize = env->GetIntField(options, gOptions_sampleSizeFieldID); in doDecode() 248 if (sampleSize <= 0) { in doDecode() [all …]
|
D | BitmapRegionDecoder.cpp | 129 int sampleSize = 1; in nativeDecodeRegion() local 136 sampleSize = env->GetIntField(options, gOptions_sampleSizeFieldID); in nativeDecodeRegion() 179 if (!brd->decodeRegion(&bitmap, allocator, subset, sampleSize, colorType, requireUnpremul)) { in nativeDecodeRegion()
|
/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/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/support/v4/kitkat/android/support/v4/print/ |
D | PrintHelperKitkat.java | 598 int sampleSize = 1; in loadConstrainedBitmap() local 601 sampleSize <<= 1; in loadConstrainedBitmap() 605 if (sampleSize <= 0 || 0 >= (int) (Math.min(w, h) / sampleSize)) { in loadConstrainedBitmap() 612 mDecodeOptions.inSampleSize = sampleSize; in loadConstrainedBitmap()
|
/frameworks/av/media/libstagefright/ |
D | SampleIterator.cpp | 112 size_t sampleSize; in seekTo() local 114 firstChunkSampleIndex + i, &sampleSize)) != OK) { in seekTo() 119 mCurrentChunkSampleSizes.push(sampleSize); in seekTo()
|
D | SampleTable.cpp | 799 size_t sampleSize; in findThumbnailSample() local 800 status_t err = getSampleSize_l(x, &sampleSize); in findThumbnailSample() 805 if (i == 0 || sampleSize > maxSampleSize) { in findThumbnailSample() 807 maxSampleSize = sampleSize; in findThumbnailSample() 817 uint32_t sampleIndex, size_t *sampleSize) { in getSampleSize_l() argument 819 sampleIndex, sampleSize); in getSampleSize_l()
|
D | NuMediaExtractor.cpp | 534 size_t sampleSize = info->mSample->range_length(); in readSampleData() local 539 sampleSize += sizeof(int32_t); in readSampleData() 542 if (buffer->capacity() < sampleSize) { in readSampleData() 558 buffer->setRange(0, sampleSize); in readSampleData()
|
D | MPEG4Writer.cpp | 2390 size_t sampleSize = copy->range_length(); in threadEntry() local 2393 sampleSize += 4; in threadEntry() 2395 sampleSize += 2; in threadEntry() 2400 mMdatSizeBytes += sampleSize; in threadEntry() 2560 mStszTableEntries->add(htonl(sampleSize)); in threadEntry() 2574 if (mStszTableEntries->count() >= 2 && previousSampleSize != sampleSize) { in threadEntry() 2577 previousSampleSize = sampleSize; in threadEntry()
|
D | MPEG4Extractor.cpp | 4068 uint32_t sampleDuration = 0, sampleSize = 0, sampleFlags = 0, in parseTrackFragmentRun() local 4085 sampleSize = mTrackFragmentHeaderInfo.mDefaultSampleSize; in parseTrackFragmentRun() 4087 sampleSize = mTrackFragmentHeaderInfo.mDefaultSampleSize; in parseTrackFragmentRun() 4119 if (!mDataSource->getUInt32(offset, &sampleSize)) { in parseTrackFragmentRun() 4141 dataOffset, sampleSize, sampleDuration, in parseTrackFragmentRun() 4145 tmp.size = sampleSize; in parseTrackFragmentRun() 4150 dataOffset += sampleSize; in parseTrackFragmentRun()
|
D | AVIExtractor.cpp | 616 uint32_t sampleSize = U32LE_AT(&data[44]); in parseStreamHeader() local 657 track->mBytesPerSample = sampleSize; in parseStreamHeader()
|
/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/media/jni/ |
D | android_media_MediaExtractor.cpp | 136 jobject byteBuf, size_t offset, size_t *sampleSize) { in readSampleData() argument 187 *sampleSize = buffer->size(); in readSampleData() 200 byteBuf, limitID, offset + *sampleSize); in readSampleData() 415 size_t sampleSize; in android_media_MediaExtractor_readSampleData() local 416 status_t err = extractor->readSampleData(byteBuf, offset, &sampleSize); in android_media_MediaExtractor_readSampleData() 425 return (jint) sampleSize; in android_media_MediaExtractor_readSampleData()
|
D | android_media_MediaExtractor.h | 58 status_t readSampleData(jobject byteBuf, size_t offset, size_t *sampleSize);
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
D | BitmapUtils.java | 79 int sampleSize = Math.min(w / minSideLength, h / minSideLength); in computeInitialSampleSize() local 80 return Math.max(sampleSize, lowerBound); in computeInitialSampleSize()
|
/frameworks/base/media/jni/soundpool/ |
D | SoundPool.cpp | 561 int sampleSize = AMediaExtractor_readSampleData(ex, buf, bufsize); in decode() local 562 ALOGV("read %d", sampleSize); in decode() 563 if (sampleSize < 0) { in decode() 564 sampleSize = 0; in decode() 571 0 /* offset */, sampleSize, presentationTimeUs, in decode()
|