/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 | BitmapRegionDecoder.cpp | 57 SkColorType pref, int sampleSize) { in decodeRegion() argument 58 fDecoder->setSampleSize(sampleSize); in decodeRegion() 175 int sampleSize = 1; in nativeDecodeRegion() local 182 sampleSize = env->GetIntField(options, gOptions_sampleSizeFieldID); in nativeDecodeRegion() 222 if (!brd->decodeRegion(&bitmap, region, prefColorType, sampleSize)) { in nativeDecodeRegion()
|
D | BitmapFactory.cpp | 202 int sampleSize = 1; in doDecode() local 216 sampleSize = env->GetIntField(options, gOptions_sampleSizeFieldID); in doDecode() 252 decoder->setSampleSize(sampleSize); in doDecode()
|
/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/support/v4/kitkat/android/support/v4/print/ |
D | PrintHelperKitkat.java | 519 int sampleSize = 1; in loadConstrainedBitmap() local 522 sampleSize <<= 1; in loadConstrainedBitmap() 526 if (sampleSize <= 0 || 0 >= (int) (Math.min(w, h) / sampleSize)) { in loadConstrainedBitmap() 533 mDecodeOptions.inSampleSize = sampleSize; in loadConstrainedBitmap()
|
/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/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 | 758 size_t sampleSize; in findThumbnailSample() local 759 status_t err = getSampleSize_l(x, &sampleSize); in findThumbnailSample() 764 if (i == 0 || sampleSize > maxSampleSize) { in findThumbnailSample() 766 maxSampleSize = sampleSize; in findThumbnailSample() 776 uint32_t sampleIndex, size_t *sampleSize) { in getSampleSize_l() argument 778 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 | 2255 size_t sampleSize = copy->range_length(); in threadEntry() local 2258 sampleSize += 4; in threadEntry() 2260 sampleSize += 2; in threadEntry() 2265 mMdatSizeBytes += sampleSize; in threadEntry() 2420 mStszTableEntries->add(htonl(sampleSize)); in threadEntry() 2434 if (mStszTableEntries->count() >= 2 && previousSampleSize != sampleSize) { in threadEntry() 2437 previousSampleSize = sampleSize; in threadEntry()
|
D | MPEG4Extractor.cpp | 3860 uint32_t sampleDuration = 0, sampleSize = 0, sampleFlags = 0, in parseTrackFragmentRun() local 3877 sampleSize = mTrackFragmentHeaderInfo.mDefaultSampleSize; in parseTrackFragmentRun() 3879 sampleSize = mTrackFragmentHeaderInfo.mDefaultSampleSize; in parseTrackFragmentRun() 3911 if (!mDataSource->getUInt32(offset, &sampleSize)) { in parseTrackFragmentRun() 3933 dataOffset, sampleSize, sampleDuration, in parseTrackFragmentRun() 3937 tmp.size = sampleSize; in parseTrackFragmentRun() 3942 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 | 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 | 544 int sampleSize = AMediaExtractor_readSampleData(ex, buf, bufsize); in decode() local 545 ALOGV("read %d", sampleSize); in decode() 546 if (sampleSize < 0) { in decode() 547 sampleSize = 0; in decode() 554 0 /* offset */, sampleSize, presentationTimeUs, in decode()
|