Home
last modified time | relevance | path

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

/frameworks/opt/bitmap/src/com/android/bitmap/util/
DBitmapUtils.java58 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/
DBitmapFactory.cpp211 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 …]
DBitmapRegionDecoder.cpp129 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/
DTrackDecoder.java116 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/
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/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/support/v4/kitkat/android/support/v4/print/
DPrintHelperKitkat.java598 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/
DSampleIterator.cpp112 size_t sampleSize; in seekTo() local
114 firstChunkSampleIndex + i, &sampleSize)) != OK) { in seekTo()
119 mCurrentChunkSampleSizes.push(sampleSize); in seekTo()
DSampleTable.cpp799 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()
DNuMediaExtractor.cpp534 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()
DMPEG4Writer.cpp2390 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()
DMPEG4Extractor.cpp4068 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()
DAVIExtractor.cpp616 uint32_t sampleSize = U32LE_AT(&data[44]); in parseStreamHeader() local
657 track->mBytesPerSample = sampleSize; in parseStreamHeader()
/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.cpp136 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()
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.java79 int sampleSize = Math.min(w / minSideLength, h / minSideLength); in computeInitialSampleSize() local
80 return Math.max(sampleSize, lowerBound); in computeInitialSampleSize()
/frameworks/base/media/jni/soundpool/
DSoundPool.cpp561 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()