/frameworks/opt/bitmap/src/com/android/bitmap/util/ |
D | BitmapUtils.java | 55 final int dstH, final int dstSliceH, int sampleSize, final float vertSliceFrac, in calculateCroppedSrcRect() argument 57 if (sampleSize < 1) { in calculateCroppedSrcRect() 58 sampleSize = 1; in calculateCroppedSrcRect() 69 final float scale = Math.min(sampleSize, regularScale); in calculateCroppedSrcRect() 106 int sampleSize, Rect outRect) { in calculateCroppedSrcRect() argument 107 if (sampleSize < 1) { in calculateCroppedSrcRect() 108 sampleSize = 1; in calculateCroppedSrcRect() 114 final float scale = Math.min(sampleSize, regularScale); in calculateCroppedSrcRect()
|
/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/core/jni/android/graphics/ |
D | BitmapRegionDecoder.cpp | 63 SkColorType pref, int sampleSize) { in decodeRegion() argument 64 fDecoder->setSampleSize(sampleSize); in decodeRegion() 177 int sampleSize = 1; in nativeDecodeRegion() local 184 sampleSize = env->GetIntField(options, gOptions_sampleSizeFieldID); in nativeDecodeRegion() 229 if (!brd->decodeRegion(bitmap, region, prefColorType, sampleSize)) { in nativeDecodeRegion()
|
D | BitmapFactory.cpp | 213 int sampleSize = 1; in doDecode() local 227 sampleSize = env->GetIntField(options, gOptions_sampleSizeFieldID); in doDecode() 263 decoder->setSampleSize(sampleSize); in doDecode()
|
/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/support/v4/kitkat/android/support/v4/print/ |
D | PrintHelperKitkat.java | 496 int sampleSize = 1; in loadConstrainedBitmap() local 499 sampleSize <<= 1; in loadConstrainedBitmap() 503 if (sampleSize <= 0 || 0 >= (int) (Math.min(w, h) / sampleSize)) { in loadConstrainedBitmap() 510 mDecodeOptions.inSampleSize = sampleSize; in loadConstrainedBitmap()
|
/frameworks/av/media/libstagefright/ |
D | SampleIterator.cpp | 107 size_t sampleSize; in seekTo() local 109 firstChunkSampleIndex + i, &sampleSize)) != OK) { in seekTo() 114 mCurrentChunkSampleSizes.push(sampleSize); in seekTo()
|
D | SampleTable.cpp | 732 size_t sampleSize; in findThumbnailSample() local 733 status_t err = getSampleSize_l(x, &sampleSize); in findThumbnailSample() 738 if (i == 0 || sampleSize > maxSampleSize) { in findThumbnailSample() 740 maxSampleSize = sampleSize; in findThumbnailSample() 750 uint32_t sampleIndex, size_t *sampleSize) { in getSampleSize_l() argument 752 sampleIndex, sampleSize); in getSampleSize_l()
|
D | NuMediaExtractor.cpp | 456 size_t sampleSize = info->mSample->range_length(); in readSampleData() local 461 sampleSize += sizeof(int32_t); in readSampleData() 464 if (buffer->capacity() < sampleSize) { in readSampleData() 486 buffer->setRange(0, sampleSize); in readSampleData()
|
D | MPEG4Writer.cpp | 2171 size_t sampleSize = copy->range_length(); in threadEntry() local 2174 sampleSize += 4; in threadEntry() 2176 sampleSize += 2; in threadEntry() 2181 mMdatSizeBytes += sampleSize; in threadEntry() 2336 mStszTableEntries->add(htonl(sampleSize)); in threadEntry() 2350 if (mStszTableEntries->count() >= 2 && previousSampleSize != sampleSize) { in threadEntry() 2353 previousSampleSize = sampleSize; in threadEntry()
|
D | MPEG4Extractor.cpp | 3546 uint32_t sampleDuration = 0, sampleSize = 0, sampleFlags = 0, in parseTrackFragmentRun() local 3563 sampleSize = mTrackFragmentHeaderInfo.mDefaultSampleSize; in parseTrackFragmentRun() 3565 sampleSize = mTrackFragmentHeaderInfo.mDefaultSampleSize; in parseTrackFragmentRun() 3597 if (!mDataSource->getUInt32(offset, &sampleSize)) { in parseTrackFragmentRun() 3619 dataOffset, sampleSize, sampleDuration, in parseTrackFragmentRun() 3623 tmp.size = sampleSize; in parseTrackFragmentRun() 3628 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/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/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 | 203 jobject byteBuf, size_t offset, size_t *sampleSize) { in readSampleData() argument 254 *sampleSize = buffer->size(); in readSampleData() 267 byteBuf, limitID, offset + *sampleSize); in readSampleData() 482 size_t sampleSize; in android_media_MediaExtractor_readSampleData() local 483 status_t err = extractor->readSampleData(byteBuf, offset, &sampleSize); in android_media_MediaExtractor_readSampleData() 492 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 | 80 int sampleSize = Math.min(w / minSideLength, h / minSideLength); in computeInitialSampleSize() local 81 return Math.max(sampleSize, lowerBound); in computeInitialSampleSize()
|