HomeSort by relevance Sort by last modified time
    Searched full:samplesize (Results 26 - 50 of 109) sorted by null

12 3 4 5

  /packages/apps/Gallery2/src/com/android/photos/drawables/
AutoThumbnailDrawable.java 174 int sampleSize = calculateSampleSizeLocked(mImageWidth, mImageHeight);
175 if (sampleSize != mSampleSize || mBitmap == null) {
176 mSampleSize = sampleSize;
240 int sampleSize, width, height;
251 sampleSize = calculateSampleSizeLocked(width, height);
270 mOptions.inSampleSize = sampleSize;
271 mOptions.inBitmap = sBitmapPool.get(width / sampleSize, height / sampleSize);
  /frameworks/base/core/jni/android/graphics/
BitmapFactory.cpp 207 // Necessary for decodes when the native decoder cannot scale to appropriately match the sampleSize
208 // (for example, RAW). If the sampleSize divides evenly into the dimension, we require that the
209 // scale matches exactly. If sampleSize does not divide evenly, we allow the decoder to choose how
211 static bool needsFineScale(const int fullSize, const int decodedSize, const int sampleSize) {
212 if (fullSize % sampleSize == 0 && fullSize / sampleSize != decodedSize) {
214 } else if ((fullSize / sampleSize + 1) != decodedSize &&
215 (fullSize / sampleSize) != decodedSize) {
222 const int sampleSize) {
223 return needsFineScale(fullSize.width(), decodedSize.width(), sampleSize) ||
    [all...]
  /external/apache-commons-math/src/main/java/org/apache/commons/math/distribution/
AbstractContinuousDistribution.java 172 * @param sampleSize number of random values to generate
176 * @throws IllegalArgumentException if sampleSize is not positive
178 public double[] sample(int sampleSize) throws MathException {
179 if (sampleSize <= 0) {
180 MathRuntimeException.createIllegalArgumentException(LocalizedFormats.NOT_POSITIVE_SAMPLE_SIZE, sampleSize);
182 double[] out = new double[sampleSize];
183 for (int i = 0; i < sampleSize; i++) {
AbstractIntegerDistribution.java 238 * @param sampleSize number of random values to generate
242 * @throws IllegalArgumentException if sampleSize is not positive
244 public int[] sample(int sampleSize) throws MathException {
245 if (sampleSize <= 0) {
246 MathRuntimeException.createIllegalArgumentException(LocalizedFormats.NOT_POSITIVE_SAMPLE_SIZE, sampleSize);
248 int[] out = new int[sampleSize];
249 for (int i = 0; i < sampleSize; i++) {
  /art/runtime/base/
histogram.h 52 // Accumulative summation of percentiles; which is the frequency / SampleSize
53 // cumulative_perc[i] = sum(frequency[j] / SampleSize : 0 < j < i )
68 uint64_t SampleSize() const {
  /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/decoder/
TrackDecoder.java 116 int sampleSize = mediaExtractor.readSampleData(destinationBuffer, 0);
118 if (sampleSize < 0) {
131 sampleSize,
  /packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
MtpBitmapFetch.java 88 int sampleSize = 1;
91 sampleSize++;
93 o.inSampleSize = sampleSize;
  /external/skia/src/codec/
SkCodecPriv.h 23 inline float get_scale_from_sample_size(int sampleSize) {
24 return 1.0f / ((float) sampleSize);
32 * returns a scaled dimension based on the original dimension and the sampleSize
36 inline int get_scaled_dimension(int srcDimension, int sampleSize) {
37 if (sampleSize > srcDimension) {
40 return srcDimension / sampleSize;
  /external/skia/include/android/
SkBitmapRegionDecoder.h 52 * @param sampleSize An integer downscaling factor for the decode.
63 const SkIRect& desiredSubset, int sampleSize,
  /prebuilts/gdb/darwin-x86/lib/python2.7/plat-mac/Carbon/
MediaDescr.py 71 'version', 'revlevel', 'vendor', 'numChannels', 'sampleSize',
80 'version', 'revlevel', 'vendor', 'numChannels', 'sampleSize',
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/plat-mac/Carbon/
MediaDescr.py 71 'version', 'revlevel', 'vendor', 'numChannels', 'sampleSize',
80 'version', 'revlevel', 'vendor', 'numChannels', 'sampleSize',
  /external/skia/src/android/
SkBitmapRegionCanvas.h 36 const SkIRect& desiredSubset, int sampleSize,
  /external/skia/include/codec/
SkAndroidCodec.h 75 * sampleSize.
86 * dimension will always be one if the sampleSize is greater than the
89 SkISize getSampledDimensions(int sampleSize) const;
116 * input sampleSize and subset.
118 * @param sampleSize Factor to scale down by.
126 SkISize getSampledSubsetDimensions(int sampleSize, const SkIRect& subset) const;
249 virtual SkISize onGetSampledDimensions(int sampleSize) const = 0;
  /cts/tests/tests/media/libmediandkjni/
native-media-jni.cpp 270 int sampleSize = AMediaExtractor_readSampleData(ex, buf, bufsize);
271 ALOGV("read %d", sampleSize);
272 if (sampleSize < 0) {
273 sampleSize = 0;
280 AMediaCodec_queueInputBuffer(codec[t], bufidx, 0, sampleSize, presentationTimeUs,
415 int sampleSize = AMediaExtractor_readSampleData(ex, buf, bufsize);
416 ALOGV("read %d", sampleSize);
417 if (sampleSize < 0) {
418 sampleSize = 0;
424 AMediaCodec_queueInputBuffer(codec, bufidx, 0, sampleSize, presentationTimeUs
    [all...]
  /external/libgdx/gdx/src/com/badlogic/gdx/input/
GestureDetector.java 377 int sampleSize = 10;
382 float[] meanX = new float[sampleSize];
383 float[] meanY = new float[sampleSize];
384 long[] meanTime = new long[sampleSize];
392 for (int i = 0; i < sampleSize; i++) {
408 int index = numSamples % sampleSize;
430 numSamples = Math.min(sampleSize, numSamples);
439 numSamples = Math.min(sampleSize, numSamples);
449 numSamples = Math.min(sampleSize, numSamples);
  /external/skia/src/images/
SkImageDecoder_libjpeg.cpp 129 not sufficient. If so, we can recompute a modified sampleSize value to
132 To skip this additional scaling, just set sampleSize = 1; below.
134 static int recompute_sampleSize(int sampleSize,
136 return sampleSize * cinfo.output_width / cinfo.image_width;
381 /* Try to fulfill the requested sampleSize. Since jpeg can do it (when it
385 int sampleSize = this->getSampleSize();
390 cinfo.scale_denom = sampleSize;
398 if (1 == sampleSize && SkImageDecoder::kDecodeBounds_Mode == mode) {
414 to the caller if they just wanted (subsampled bounds). If sampleSize
424 recompute_sampleSize(sampleSize, cinfo))
    [all...]
  /cts/tests/tests/media/src/android/media/cts/
CodecState.java 210 int sampleSize =
217 if (sampleSize <= 0) {
218 Log.d(TAG, "sampleSize: " + sampleSize + " trackIndex:" + trackIndex +
247 index, 0 /* offset */, sampleSize, sampleTime, 0 /* flags */);
265 index, 0 /* offset */, 0 /* sampleSize */,
  /development/samples/devbytes/graphics/BitmapScaling/src/com/example/android/bitmapscaling/
BitmapScaling.java 55 private void addScaledImageView(Bitmap original, int sampleSize, LinearLayout container) {
65 bitmapOptions.inSampleSize = sampleSize;
  /development/ndk/platforms/android-21/samples/native-codec/jni/
native-codec-jni.cpp 96 ssize_t sampleSize = AMediaExtractor_readSampleData(d->ex, buf, bufsize);
97 if (sampleSize < 0) {
98 sampleSize = 0;
104 AMediaCodec_queueInputBuffer(d->codec, bufidx, 0, sampleSize, presentationTimeUs,
  /frameworks/base/media/jni/
android_media_MediaExtractor.h 58 status_t readSampleData(jobject byteBuf, size_t offset, size_t *sampleSize);
android_media_MediaExtractor.cpp 136 jobject byteBuf, size_t offset, size_t *sampleSize) {
187 *sampleSize = buffer->size();
200 byteBuf, limitID, offset + *sampleSize);
415 size_t sampleSize;
416 status_t err = extractor->readSampleData(byteBuf, offset, &sampleSize);
425 return (jint) sampleSize;
  /frameworks/av/media/libstagefright/
SampleIterator.cpp 112 size_t sampleSize;
114 firstChunkSampleIndex + i, &sampleSize)) != OK) {
119 mCurrentChunkSampleSizes.push(sampleSize);
  /packages/apps/Launcher3/WallpaperPicker/src/com/android/photos/
BitmapRegionTileSource.java 126 int sampleSize = Math.max(options.inSampleSize, 1);
128 wantRegion.width() / sampleSize,
129 wantRegion.height() / sampleSize,
133 mTempCanvas.scale(1f / sampleSize, 1f / sampleSize);
  /packages/apps/Messaging/src/com/android/messaging/util/
ImageUtils.java 374 * When computing sampleSize target scaling of no more than this ratio
624 int sampleSize = 1;
631 sampleSize = sampleSize * 2;
633 if (sampleSize >= (Integer.MAX_VALUE / 4)) {
643 "computeInitialSampleSize: Increasing sampleSize to " + sampleSize
648 imageHeight = mHeight / sampleSize;
649 imageWidth = mWidth / sampleSize;
657 "computeInitialSampleSize: Initial sampleSize " + sampleSiz
    [all...]
  /external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
Downsampler.java 138 final int sampleSize = getRoundedSampleSize(degreesToRotate, inWidth, inHeight, outWidth, outHeight);
141 downsampleWithSize(stream, options, pool, inWidth, inHeight, sampleSize,
191 int inWidth, int inHeight, int sampleSize, DecodeFormat decodeFormat) {
194 options.inSampleSize = sampleSize;
197 int targetWidth = (int) Math.ceil(inWidth / (double) sampleSize);
198 int targetHeight = (int) Math.ceil(inHeight / (double) sampleSize);

Completed in 2228 milliseconds

12 3 4 5