/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/ |
H A D | SampleSizeBox.java | 33 private long sampleSize; field in class:SampleSizeBox 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) { argument 54 this.sampleSize = sampleSize; 59 if (sampleSize > 0) { 60 return sampleSize; [all...] |
/external/skia/src/android/ |
H A D | SkBitmapRegionCanvas.cpp | 19 const SkIRect& desiredSubset, int sampleSize, SkColorType dstColorType, 38 // Fix the input sampleSize if necessary. 39 if (sampleSize < 1) { 40 sampleSize = 1; 89 const int outWidth = get_scaled_dimension(desiredSubset.width(), sampleSize); 90 const int outHeight = get_scaled_dimension(desiredSubset.height(), sampleSize); 117 SkRect dst = SkRect::MakeXYWH((SkScalar) (outX / sampleSize), (SkScalar) (outY / sampleSize), 118 (SkScalar) get_scaled_dimension(subset.width(), sampleSize), 119 (SkScalar) get_scaled_dimension(subset.height(), sampleSize)); 18 decodeRegion(SkBitmap* bitmap, SkBRDAllocator* allocator, const SkIRect& desiredSubset, int sampleSize, SkColorType dstColorType, bool requireUnpremul) argument [all...] |
H A D | SkBitmapRegionCodec.cpp | 20 const SkIRect& desiredSubset, int sampleSize, SkColorType prefColorType, 23 // Fix the input sampleSize if necessary. 24 if (sampleSize < 1) { 25 sampleSize = 1; 50 SkISize scaledSize = fCodec->getSampledSubsetDimensions(sampleSize, subset); 84 scaledOutX = outX / sampleSize; 85 scaledOutY = outY / sampleSize; 89 const int scaledExtraX = extraX / sampleSize; 90 const int scaledExtraY = extraY / sampleSize; 123 options.fSampleSize = sampleSize; 19 decodeRegion(SkBitmap* bitmap, SkBRDAllocator* allocator, const SkIRect& desiredSubset, int sampleSize, SkColorType prefColorType, bool requireUnpremul) argument [all...] |
H A D | SkBitmapRegionCanvas.h | 36 const SkIRect& desiredSubset, int sampleSize,
|
H A D | SkBitmapRegionCodec.h | 24 const SkIRect& desiredSubset, int sampleSize,
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/distribution/ |
H A D | HypergeometricDistributionImpl.java | 45 private int sampleSize; field in class:HypergeometricDistributionImpl 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, numberOfSuccesse 55 HypergeometricDistributionImpl(int populationSize, int numberOfSuccesses, int sampleSize) argument [all...] |
H A D | 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 { argument 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++) {
|
H A D | 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 { argument 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++) {
|
/external/skia/src/codec/ |
H A D | SkRawAdapterCodec.cpp | 16 SkISize SkRawAdapterCodec::onGetSampledDimensions(int sampleSize) const { 17 float scale = 1.f / static_cast<float>(sampleSize);
|
H A D | SkSampledCodec.h | 26 SkISize onGetSampledDimensions(int sampleSize) const override; 37 * Return a size that fCodec can scale to, and adjust sampleSize to finish scaling. 39 * @param sampleSize As an input, the requested sample size. 46 SkISize accountForNativeScaling(int* sampleSize, int* nativeSampleSize = nullptr) const;
|
H A D | SkAndroidCodec.cpp | 15 static bool is_valid_sample_size(int sampleSize) { argument 16 // FIXME: As Leon has mentioned elsewhere, surely there is also a maximum sampleSize? 17 return sampleSize > 0; 119 SkISize SkAndroidCodec::getSampledDimensions(int sampleSize) const { 120 if (!is_valid_sample_size(sampleSize)) { 125 if (1 == sampleSize) { 129 return this->onGetSampledDimensions(sampleSize); 140 SkISize SkAndroidCodec::getSampledSubsetDimensions(int sampleSize, const SkIRect& subset) const { argument 141 if (!is_valid_sample_size(sampleSize)) { 155 return this->getSampledDimensions(sampleSize); [all...] |
H A D | SkWebpAdapterCodec.cpp | 16 SkISize SkWebpAdapterCodec::onGetSampledDimensions(int sampleSize) const { 17 float scale = get_scale_from_sample_size(sampleSize);
|
H A D | SkRawAdapterCodec.h | 31 SkISize onGetSampledDimensions(int sampleSize) const override;
|
H A D | SkWebpAdapterCodec.h | 26 SkISize onGetSampledDimensions(int sampleSize) const override;
|
H A D | SkSampledCodec.cpp | 21 int sampleSize = *sampleSizePtr; local 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)); 91 int sampleSize = options.fSampleSize; local 148 int sampleSize = options.fSampleSize; local [all...] |
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/mdat/ |
H A D | 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/bench/ |
H A D | BitmapRegionDecoderBench.cpp | 15 uint32_t sampleSize, const SkIRect& subset) 20 , fSampleSize(sampleSize) 42 if (1 != sampleSize) { 43 fName.appendf("_%.3f", 1.0f / (float) sampleSize); 13 BitmapRegionDecoderBench(const char* baseName, SkData* encoded, SkBitmapRegionDecoder::Strategy strategy, SkColorType colorType, uint32_t sampleSize, const SkIRect& subset) argument
|
H A D | AndroidCodecBench.h | 23 AndroidCodecBench(SkString basename, SkData* encoded, int sampleSize);
|
H A D | AndroidCodecBench.cpp | 15 AndroidCodecBench::AndroidCodecBench(SkString baseName, SkData* encoded, int sampleSize) argument 17 , fSampleSize(sampleSize) 20 fName.printf("AndroidCodec_%s_SampleSize%d", baseName.c_str(), sampleSize);
|
H A D | BitmapRegionDecoderBench.h | 19 * Benchmark Android's BitmapRegionDecoder for a particular colorType, sampleSize, and subset. 31 uint32_t sampleSize, const SkIRect& subset);
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/apple/ |
H A D | AppleLosslessSpecificBox.java | 24 private int sampleSize; // 8bit
field in class:AppleLosslessSpecificBox 51 return sampleSize;
54 public void setSampleSize(int sampleSize) {
argument 55 this.sampleSize = sampleSize;
128 sampleSize = IsoTypeReader.readUInt8(content);
144 IsoTypeWriter.writeUInt8(byteBuffer, sampleSize);
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/sampleentry/ |
H A D | AudioSampleEntry.java | 54 private int sampleSize; field in class:AudioSampleEntry 78 return sampleSize; 129 public void setSampleSize(int sampleSize) { argument 130 this.sampleSize = sampleSize; 193 sampleSize = IsoTypeReader.readUInt16(content); 243 ", sampleSize=" + sampleSize + 256 IsoTypeWriter.writeUInt16(byteBuffer, sampleSize);
|
/external/skia/include/codec/ |
H A D | 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;
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/fragment/ |
H A D | TrackRunBox.java | 60 private long sampleSize; field in class:TrackRunBox.Entry 67 public Entry(long sampleDuration, long sampleSize, SampleFlags sampleFlags, int sampleCompositionTimeOffset) { argument 69 this.sampleSize = sampleSize; 79 return sampleSize; 94 public void setSampleSize(long sampleSize) { argument 95 this.sampleSize = sampleSize; 110 ", sampleSize=" + sampleSize [all...] |
/external/skia/include/android/ |
H A D | SkBitmapRegionDecoder.h | 52 * @param sampleSize An integer downscaling factor for the decode. 63 const SkIRect& desiredSubset, int sampleSize,
|