/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...] |
/frameworks/base/core/jni/android/graphics/ |
BitmapRegionDecoder.cpp | 129 int sampleSize = 1; 136 sampleSize = env->GetIntField(options, gOptions_sampleSizeFieldID); 179 if (!brd->decodeRegion(&bitmap, allocator, subset, sampleSize, colorType, requireUnpremul)) {
|
/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...] |
/external/skia/src/codec/ |
SkSampledCodec.cpp | 21 int sampleSize = *sampleSizePtr; 22 SkASSERT(sampleSize > 1); 31 switch (sampleSize) { 37 return this->codec()->getScaledDimensions(get_scale_from_sample_size(sampleSize)); 42 // Check if sampleSize is a multiple of something libjpeg can support. 47 SkTDivMod(sampleSize, supportedSampleSize, &actualSampleSize, &remainder); 67 SkISize SkSampledCodec::onGetSampledDimensions(int sampleSize) const { 68 const SkISize size = this->accountForNativeScaling(&sampleSize); 69 return SkISize::Make(get_scaled_dimension(size.width(), sampleSize), 70 get_scaled_dimension(size.height(), sampleSize)); [all...] |
/frameworks/av/media/libstagefright/ |
NuMediaExtractor.cpp | 537 size_t sampleSize = info->mSample->range_length(); 542 sampleSize += sizeof(int32_t); 545 if (buffer->capacity() < sampleSize) { 561 buffer->setRange(0, sampleSize);
|
SampleTable.cpp | 900 size_t sampleSize; 901 status_t err = getSampleSize_l(x, &sampleSize); 906 if (i == 0 || sampleSize > maxSampleSize) { 908 maxSampleSize = sampleSize; 918 uint32_t sampleIndex, size_t *sampleSize) { 920 sampleIndex, 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);
|
/external/opencv3/modules/flann/include/opencv2/flann/ |
autotuned_index.h | 415 int sampleSize = int(sample_fraction_ * dataset_.rows); 416 int testSampleSize = std::min(sampleSize / 10, 1000); 418 Logger::info("Entering autotuning, dataset size: %d, sampleSize: %d, testSampleSize: %d, target precision: %g\n", dataset_.rows, sampleSize, testSampleSize, target_precision_); 428 sampledDataset_ = random_sample(dataset_, sampleSize);
|
/external/skia/src/images/ |
SkImageDecoder_libwebp.cpp | 298 const int sampleSize = this->getSampleSize(); 299 SkScaledBitmapSampler sampler(origWidth, origHeight, 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 */); 265 index, 0 /* offset */, 0 /* sampleSize */,
|