Home
last modified time | relevance | path

Searched refs:sampleSize (Results 1 – 17 of 17) sorted by relevance

/frameworks/opt/bitmap/src/com/android/bitmap/util/
DBitmapUtils.java55 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/
DTrackDecoder.java116 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/
DBitmapRegionDecoder.cpp63 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()
DBitmapFactory.cpp213 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/
DDecodeTask.java238 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/
DPrintHelperKitkat.java496 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/
DSampleIterator.cpp107 size_t sampleSize; in seekTo() local
109 firstChunkSampleIndex + i, &sampleSize)) != OK) { in seekTo()
114 mCurrentChunkSampleSizes.push(sampleSize); in seekTo()
DSampleTable.cpp732 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()
DNuMediaExtractor.cpp456 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()
DMPEG4Writer.cpp2171 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()
DMPEG4Extractor.cpp3546 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()
DAVIExtractor.cpp616 uint32_t sampleSize = U32LE_AT(&data[44]); in parseStreamHeader() local
657 track->mBytesPerSample = sampleSize; in parseStreamHeader()
/frameworks/base/core/java/android/gesture/
DGestureUtils.java209 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/
DBitmapRegionTileSource.java127 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/
Dandroid_media_MediaExtractor.cpp203 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()
Dandroid_media_MediaExtractor.h58 status_t readSampleData(jobject byteBuf, size_t offset, size_t *sampleSize);
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
DBitmapUtils.java80 int sampleSize = Math.min(w / minSideLength, h / minSideLength); in computeInitialSampleSize() local
81 return Math.max(sampleSize, lowerBound); in computeInitialSampleSize()