HomeSort by relevance Sort by last modified time
    Searched defs:sampleSize (Results 1 - 25 of 56) sorted by null

1 2 3

  /external/apache-commons-math/src/main/java/org/apache/commons/math/stat/descriptive/moment/
Mean.java 157 double sampleSize = length;
160 double xbar = sum.evaluate(values, begin, length) / sampleSize;
167 return xbar + (correction/sampleSize);
  /external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/
SampleSizeBox.java 33 private long sampleSize;
44 * If sampleSize > 0 every sample has the same size.
45 * If sampleSize == 0 the samples have different size as stated in the sampleSizes field.
47 * @return the sampleSize field
50 return sampleSize;
53 public void setSampleSize(long sampleSize) {
54 this.sampleSize = sampleSize;
59 if (sampleSize > 0) {
60 return sampleSize;
    [all...]
  /packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
MtpBitmapFetch.java 88 int sampleSize = 1;
91 sampleSize++;
93 o.inSampleSize = sampleSize;
  /development/samples/training/threadsample/src/com/example/android/threadsample/
PhotoDecodeRunnable.java 185 int sampleSize = Math.max(hScale, wScale);
194 if (sampleSize > 1) {
195 bitmapOptions.inSampleSize = sampleSize;
  /packages/apps/Camera2/src/com/android/camera/data/
FilmstripItemUtils.java 107 int sampleSize = 1;
111 sampleSize <<= 1;
112 targetWidth = imageWidth / sampleSize;
113 targetHeight = imageWidth / sampleSize;
123 targetWidth * targetHeight < maximumPixels / 4 && sampleSize > 1) {
124 sampleSize >>= 2;
128 opts.inSampleSize = sampleSize;
  /packages/apps/ContactsCommon/src/com/android/contacts/common/util/
BitmapUtil.java 52 * Finds the optimal sampleSize for loading the picture
69 int sampleSize = 1;
71 sampleSize <<= 1;
75 return sampleSize;
81 public static Bitmap decodeBitmapFromBytes(byte[] bytes, int sampleSize) {
83 if (sampleSize <= 1) {
87 options.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,
  /external/apache-commons-math/src/main/java/org/apache/commons/math/distribution/
HypergeometricDistributionImpl.java 45 private int sampleSize;
53 * @param sampleSize the sample size.
56 int numberOfSuccesses, int sampleSize) {
64 if (sampleSize > populationSize) {
68 sampleSize, populationSize);
72 setSampleSizeInternal(sampleSize);
86 int[] domain = getDomain(populationSize, numberOfSuccesses, sampleSize);
93 numberOfSuccesses, sampleSize);
122 return getLowerDomain(populationSize, numberOfSuccesses, sampleSize);
135 return getUpperDomain(sampleSize, numberOfSuccesses)
    [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);
  /external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/apple/
AppleLosslessSpecificBox.java 24 private int sampleSize; // 8bit
51 return sampleSize;
54 public void setSampleSize(int sampleSize) {
55 this.sampleSize = sampleSize;
128 sampleSize = IsoTypeReader.readUInt8(content);
144 IsoTypeWriter.writeUInt8(byteBuffer, sampleSize);
  /external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/fragment/
TrackRunBox.java 60 private long sampleSize;
67 public Entry(long sampleDuration, long sampleSize, SampleFlags sampleFlags, int sampleCompositionTimeOffset) {
69 this.sampleSize = sampleSize;
79 return sampleSize;
94 public void setSampleSize(long sampleSize) {
95 this.sampleSize = sampleSize;
110 ", sampleSize=" + sampleSize
    [all...]
  /external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/mdat/
SampleList.java 66 long sampleSize = sizes[sampleIndex];
68 sampleOffset += sampleSize;
170 int sampleSize = l2i(sizes[index]);
175 if ((start <= offset) && (offset + sampleSize <= end)) {
176 return mediaDataBox.getContent(offset - start, sampleSize);
180 throw new RuntimeException("The sample with offset " + offset + " and size " + sampleSize + " is NOT located within an mdat");
201 final long sampleSize;
203 sampleSize = entry.getSampleSize();
204 offsets2Sizes.put(offset + sampleBaseOffset, sampleSize);
205 offset += sampleSize;
    [all...]
  /frameworks/av/media/libstagefright/
NuMediaExtractor.cpp 456 size_t sampleSize = info->mSample->range_length();
461 sampleSize += sizeof(int32_t);
464 if (buffer->capacity() < sampleSize) {
486 buffer->setRange(0, sampleSize);
SampleTable.cpp 758 size_t sampleSize;
759 status_t err = getSampleSize_l(x, &sampleSize);
764 if (i == 0 || sampleSize > maxSampleSize) {
766 maxSampleSize = sampleSize;
776 uint32_t sampleIndex, size_t *sampleSize) {
778 sampleIndex, sampleSize);
  /frameworks/base/core/jni/android/graphics/
BitmapRegionDecoder.cpp 57 SkColorType pref, int sampleSize) {
58 fDecoder->setSampleSize(sampleSize);
175 int sampleSize = 1;
182 sampleSize = env->GetIntField(options, gOptions_sampleSizeFieldID);
222 if (!brd->decodeRegion(&bitmap, region, prefColorType, sampleSize)) {
BitmapFactory.cpp 202 int sampleSize = 1;
216 sampleSize = env->GetIntField(options, gOptions_sampleSizeFieldID);
252 decoder->setSampleSize(sampleSize);
  /frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
BitmapUtils.java 79 int sampleSize = Math.min(w / minSideLength, h / minSideLength);
80 return Math.max(sampleSize, lowerBound);
  /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/gallerycommon/src/com/android/gallery3d/common/
BitmapUtils.java 79 int sampleSize = Math.min(w / minSideLength, h / minSideLength);
80 return Math.max(sampleSize, lowerBound);
  /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/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/sampleentry/
AudioSampleEntry.java 54 private int sampleSize;
78 return sampleSize;
129 public void setSampleSize(int sampleSize) {
130 this.sampleSize = sampleSize;
193 sampleSize = IsoTypeReader.readUInt16(content);
243 ", sampleSize=" + sampleSize +
256 IsoTypeWriter.writeUInt16(byteBuffer, sampleSize);
  /frameworks/support/v4/kitkat/android/support/v4/print/
PrintHelperKitkat.java 519 int sampleSize = 1;
522 sampleSize <<= 1;
526 if (sampleSize <= 0 || 0 >= (int) (Math.min(w, h) / sampleSize)) {
533 mDecodeOptions.inSampleSize = sampleSize;
  /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);
  /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 */);
260 index, 0 /* offset */, 0 /* sampleSize */,
  /external/skia/src/images/
SkImageDecoder_libwebp.cpp 349 const int sampleSize = this->getSampleSize();
350 SkScaledBitmapSampler sampler(rect.width(), rect.height(), sampleSize);
398 return cropBitmap(decodedBitmap, bitmap, sampleSize, region.x(), region.y(),
416 const int sampleSize = this->getSampleSize();
417 SkScaledBitmapSampler sampler(origWidth, origHeight, sampleSize);

Completed in 1471 milliseconds

1 2 3