/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/ |
D | SampleSizeBox.java | 33 private long sampleSize; field in SampleSizeBox 50 return sampleSize; in getSampleSize() 53 public void setSampleSize(long sampleSize) { in setSampleSize() argument 54 this.sampleSize = sampleSize; in setSampleSize() 59 if (sampleSize > 0) { in getSampleSizeAtIndex() 60 return sampleSize; in getSampleSizeAtIndex() 67 if (sampleSize > 0) { in getSampleCount() 84 return 12 + (sampleSize == 0 ? sampleSizes.length * 4 : 0); in getContentSize() 90 sampleSize = IsoTypeReader.readUInt32(content); in _parseDetails() 93 if (sampleSize == 0) { in _parseDetails() [all …]
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/distribution/ |
D | HypergeometricDistributionImpl.java | 45 private int sampleSize; field in HypergeometricDistributionImpl 56 int numberOfSuccesses, int sampleSize) { in HypergeometricDistributionImpl() argument 64 if (sampleSize > populationSize) { in HypergeometricDistributionImpl() 68 sampleSize, populationSize); in HypergeometricDistributionImpl() 72 setSampleSizeInternal(sampleSize); in HypergeometricDistributionImpl() 86 int[] domain = getDomain(populationSize, numberOfSuccesses, sampleSize); in cumulativeProbability() 93 numberOfSuccesses, sampleSize); in cumulativeProbability() 122 return getLowerDomain(populationSize, numberOfSuccesses, sampleSize); in getDomainLowerBound() 135 return getUpperDomain(sampleSize, numberOfSuccesses); in getDomainUpperBound() 175 return sampleSize; in getSampleSize() [all …]
|
D | AbstractContinuousDistribution.java | 178 public double[] sample(int sampleSize) throws MathException { in sample() argument 179 if (sampleSize <= 0) { in sample() 180 …imeException.createIllegalArgumentException(LocalizedFormats.NOT_POSITIVE_SAMPLE_SIZE, sampleSize); in sample() 182 double[] out = new double[sampleSize]; in sample() 183 for (int i = 0; i < sampleSize; i++) { in sample()
|
D | AbstractIntegerDistribution.java | 244 public int[] sample(int sampleSize) throws MathException { in sample() argument 245 if (sampleSize <= 0) { in sample() 246 …imeException.createIllegalArgumentException(LocalizedFormats.NOT_POSITIVE_SAMPLE_SIZE, sampleSize); in sample() 248 int[] out = new int[sampleSize]; in sample() 249 for (int i = 0; i < sampleSize; i++) { in sample()
|
/external/skqp/src/codec/ |
D | SkAndroidCodec.cpp | 17 static bool is_valid_sample_size(int sampleSize) { in is_valid_sample_size() argument 19 return sampleSize > 0; in is_valid_sample_size() 240 int sampleSize = std::min(sampleX, sampleY); in computeSampleSize() local 241 auto computedSize = this->getSampledDimensions(sampleSize); in computeSampleSize() 243 return sampleSize; in computeSampleSize() 246 if (computedSize == fInfo.dimensions() || sampleSize == 1) { in computeSampleSize() 255 auto smaller = this->getSampledDimensions(sampleSize + 1); in computeSampleSize() 257 return sampleSize + 1; in computeSampleSize() 262 return sampleSize; in computeSampleSize() 265 sampleSize++; in computeSampleSize() [all …]
|
D | SkSampledCodec.cpp | 22 int sampleSize = *sampleSizePtr; in accountForNativeScaling() local 23 SkASSERT(sampleSize > 1); in accountForNativeScaling() 32 switch (sampleSize) { in accountForNativeScaling() 38 return this->codec()->getScaledDimensions(get_scale_from_sample_size(sampleSize)); in accountForNativeScaling() 48 SkTDivMod(sampleSize, supportedSampleSize, &actualSampleSize, &remainder); in accountForNativeScaling() 68 SkISize SkSampledCodec::onGetSampledDimensions(int sampleSize) const { in onGetSampledDimensions() 69 const SkISize size = this->accountForNativeScaling(&sampleSize); in onGetSampledDimensions() 70 return SkISize::Make(get_scaled_dimension(size.width(), sampleSize), in onGetSampledDimensions() 71 get_scaled_dimension(size.height(), sampleSize)); in onGetSampledDimensions() 91 int sampleSize = options.fSampleSize; in onGetAndroidPixels() local [all …]
|
D | SkCodecPriv.h | 29 static inline float get_scale_from_sample_size(int sampleSize) { in get_scale_from_sample_size() argument 30 return 1.0f / ((float) sampleSize); in get_scale_from_sample_size() 42 static inline int get_scaled_dimension(int srcDimension, int sampleSize) { in get_scaled_dimension() argument 43 if (sampleSize > srcDimension) { in get_scaled_dimension() 46 return srcDimension / sampleSize; in get_scaled_dimension()
|
/external/skia/src/codec/ |
D | SkAndroidCodec.cpp | 17 static bool is_valid_sample_size(int sampleSize) { in is_valid_sample_size() argument 19 return sampleSize > 0; in is_valid_sample_size() 236 int sampleSize = std::min(sampleX, sampleY); in computeSampleSize() local 237 auto computedSize = this->getSampledDimensions(sampleSize); in computeSampleSize() 239 return sampleSize; in computeSampleSize() 242 if (computedSize == fInfo.dimensions() || sampleSize == 1) { in computeSampleSize() 251 auto smaller = this->getSampledDimensions(sampleSize + 1); in computeSampleSize() 253 return sampleSize + 1; in computeSampleSize() 258 return sampleSize; in computeSampleSize() 261 sampleSize++; in computeSampleSize() [all …]
|
D | SkSampledCodec.cpp | 22 int sampleSize = *sampleSizePtr; in accountForNativeScaling() local 23 SkASSERT(sampleSize > 1); in accountForNativeScaling() 32 switch (sampleSize) { in accountForNativeScaling() 38 return this->codec()->getScaledDimensions(get_scale_from_sample_size(sampleSize)); in accountForNativeScaling() 48 SkTDivMod(sampleSize, supportedSampleSize, &actualSampleSize, &remainder); in accountForNativeScaling() 68 SkISize SkSampledCodec::onGetSampledDimensions(int sampleSize) const { in onGetSampledDimensions() 69 const SkISize size = this->accountForNativeScaling(&sampleSize); in onGetSampledDimensions() 70 return SkISize::Make(get_scaled_dimension(size.width(), sampleSize), in onGetSampledDimensions() 71 get_scaled_dimension(size.height(), sampleSize)); in onGetSampledDimensions() 91 int sampleSize = options.fSampleSize; in onGetAndroidPixels() local [all …]
|
D | SkCodecPriv.h | 29 static inline float get_scale_from_sample_size(int sampleSize) { in get_scale_from_sample_size() argument 30 return 1.0f / ((float) sampleSize); in get_scale_from_sample_size() 42 static inline int get_scaled_dimension(int srcDimension, int sampleSize) { in get_scaled_dimension() argument 43 if (sampleSize > srcDimension) { in get_scaled_dimension() 46 return srcDimension / sampleSize; in get_scaled_dimension()
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/mdat/ |
D | SampleList.java | 66 long sampleSize = sizes[sampleIndex]; in SampleList() local 68 sampleOffset += sampleSize; in SampleList() 170 int sampleSize = l2i(sizes[index]); in get() local 175 if ((start <= offset) && (offset + sampleSize <= end)) { in get() 176 return mediaDataBox.getContent(offset - start, sampleSize); in get() 180 …throw new RuntimeException("The sample with offset " + offset + " and size " + sampleSize + " is N… in get() 201 final long sampleSize; in getOffsets() local 203 sampleSize = entry.getSampleSize(); in getOffsets() 204 offsets2Sizes.put(offset + sampleBaseOffset, sampleSize); in getOffsets() 205 offset += sampleSize; in getOffsets() [all …]
|
/external/skqp/src/android/ |
D | SkBitmapRegionCodec.cpp | 19 const SkIRect& desiredSubset, int sampleSize, SkColorType dstColorType, in decodeRegion() argument 23 if (sampleSize < 1) { in decodeRegion() 24 sampleSize = 1; in decodeRegion() 49 SkISize scaledSize = fCodec->getSampledSubsetDimensions(sampleSize, subset); in decodeRegion() 62 scaledOutX = outX / sampleSize; in decodeRegion() 63 scaledOutY = outY / sampleSize; in decodeRegion() 67 const int scaledExtraX = extraX / sampleSize; in decodeRegion() 68 const int scaledExtraY = extraY / sampleSize; in decodeRegion() 101 options.fSampleSize = sampleSize; in decodeRegion()
|
/external/skia/src/android/ |
D | SkBitmapRegionCodec.cpp | 19 const SkIRect& desiredSubset, int sampleSize, SkColorType dstColorType, in decodeRegion() argument 23 if (sampleSize < 1) { in decodeRegion() 24 sampleSize = 1; in decodeRegion() 49 SkISize scaledSize = fCodec->getSampledSubsetDimensions(sampleSize, subset); in decodeRegion() 62 scaledOutX = outX / sampleSize; in decodeRegion() 63 scaledOutY = outY / sampleSize; in decodeRegion() 67 const int scaledExtraX = extraX / sampleSize; in decodeRegion() 68 const int scaledExtraY = extraY / sampleSize; in decodeRegion() 101 options.fSampleSize = sampleSize; in decodeRegion()
|
/external/skia/fuzz/oss_fuzz/ |
D | FuzzAndroidCodec.cpp | 16 bool FuzzAndroidCodec(sk_sp<SkData> bytes, uint8_t sampleSize) { in FuzzAndroidCodec() argument 22 auto size = codec->getSampledDimensions(sampleSize); in FuzzAndroidCodec() 31 options.fSampleSize = sampleSize; in FuzzAndroidCodec() 57 uint8_t sampleSize; in LLVMFuzzerTestOneInput() local 58 fuzz.nextRange(&sampleSize, 1, 64); in LLVMFuzzerTestOneInput() 60 FuzzAndroidCodec(bytes, sampleSize); in LLVMFuzzerTestOneInput()
|
/external/skqp/fuzz/oss_fuzz/ |
D | FuzzAndroidCodec.cpp | 16 bool FuzzAndroidCodec(sk_sp<SkData> bytes, uint8_t sampleSize) { in FuzzAndroidCodec() argument 22 auto size = codec->getSampledDimensions(sampleSize); in FuzzAndroidCodec() 31 options.fSampleSize = sampleSize; in FuzzAndroidCodec() 57 uint8_t sampleSize; in LLVMFuzzerTestOneInput() local 58 fuzz.nextRange(&sampleSize, 1, 64); in LLVMFuzzerTestOneInput() 60 FuzzAndroidCodec(bytes, sampleSize); in LLVMFuzzerTestOneInput()
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/fragment/ |
D | TrackRunBox.java | 60 private long sampleSize; field in TrackRunBox.Entry 67 …public Entry(long sampleDuration, long sampleSize, SampleFlags sampleFlags, int sampleCompositionT… in Entry() argument 69 this.sampleSize = sampleSize; in Entry() 79 return sampleSize; in getSampleSize() 94 public void setSampleSize(long sampleSize) { in setSampleSize() argument 95 this.sampleSize = sampleSize; in setSampleSize() 110 ", sampleSize=" + sampleSize + in toString() 204 IsoTypeWriter.writeUInt32(byteBuffer, entry.sampleSize); in getContent() 235 entry.sampleSize = IsoTypeReader.readUInt32(content); in _parseDetails()
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/apple/ |
D | AppleLosslessSpecificBox.java | 24 private int sampleSize; // 8bit field in AppleLosslessSpecificBox 51 return sampleSize; in getSampleSize() 54 public void setSampleSize(int sampleSize) { in setSampleSize() argument 55 this.sampleSize = sampleSize; in setSampleSize() 128 sampleSize = IsoTypeReader.readUInt8(content); in _parseDetails() 144 IsoTypeWriter.writeUInt8(byteBuffer, sampleSize); in getContent()
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/sampleentry/ |
D | AudioSampleEntry.java | 54 private int sampleSize; field in AudioSampleEntry 78 return sampleSize; in getSampleSize() 129 public void setSampleSize(int sampleSize) { in setSampleSize() argument 130 this.sampleSize = sampleSize; in setSampleSize() 193 sampleSize = IsoTypeReader.readUInt16(content); in _parseDetails() 243 ", sampleSize=" + sampleSize + in toString() 256 IsoTypeWriter.writeUInt16(byteBuffer, sampleSize); in getContent()
|
/external/skqp/bench/ |
D | BitmapRegionDecoderBench.cpp | 14 SkColorType colorType, uint32_t sampleSize, const SkIRect& subset) in BitmapRegionDecoderBench() argument 18 , fSampleSize(sampleSize) in BitmapRegionDecoderBench() 25 if (1 != sampleSize) { in BitmapRegionDecoderBench() 26 fName.appendf("_%.3f", 1.0f / (float) sampleSize); in BitmapRegionDecoderBench()
|
D | AndroidCodecBench.cpp | 15 AndroidCodecBench::AndroidCodecBench(SkString baseName, SkData* encoded, int sampleSize) in AndroidCodecBench() argument 17 , fSampleSize(sampleSize) in AndroidCodecBench() 20 fName.printf("AndroidCodec_%s_SampleSize%d", baseName.c_str(), sampleSize); in AndroidCodecBench()
|
/external/skia/bench/ |
D | BitmapRegionDecoderBench.cpp | 14 SkColorType colorType, uint32_t sampleSize, const SkIRect& subset) in BitmapRegionDecoderBench() argument 18 , fSampleSize(sampleSize) in BitmapRegionDecoderBench() 25 if (1 != sampleSize) { in BitmapRegionDecoderBench() 26 fName.appendf("_%.3f", 1.0f / (float) sampleSize); in BitmapRegionDecoderBench()
|
D | AndroidCodecBench.cpp | 15 AndroidCodecBench::AndroidCodecBench(SkString baseName, SkData* encoded, int sampleSize) in AndroidCodecBench() argument 17 , fSampleSize(sampleSize) in AndroidCodecBench() 20 fName.printf("AndroidCodec_%s_SampleSize%d", baseName.c_str(), sampleSize); in AndroidCodecBench()
|
/external/skia/tests/ |
D | AndroidCodecTest.cpp | 118 for (int sampleSize : { 1, 2, 3, 4, 8, 16, 32 }) { in DEF_TEST() 119 const SkISize sampledDims = codec->getSampledDimensions(sampleSize); in DEF_TEST() 126 file, sampleSize, computedSampleSize, in DEF_TEST() 283 constexpr int sampleSize = 7; in DEF_TEST() local 284 auto sampledDims = androidCodec->getSampledDimensions(sampleSize); in DEF_TEST() 287 options.fSampleSize = sampleSize; in DEF_TEST()
|
/external/skqp/tests/ |
D | AndroidCodecTest.cpp | 118 for (int sampleSize : { 1, 2, 3, 4, 8, 16, 32 }) { in DEF_TEST() 119 const SkISize sampledDims = codec->getSampledDimensions(sampleSize); in DEF_TEST() 126 file, sampleSize, computedSampleSize, in DEF_TEST() 283 constexpr int sampleSize = 7; in DEF_TEST() local 284 auto sampledDims = androidCodec->getSampledDimensions(sampleSize); in DEF_TEST() 287 options.fSampleSize = sampleSize; in DEF_TEST()
|
/external/skqp/include/codec/ |
D | SkAndroidCodec.h | 145 SkISize getSampledDimensions(int sampleSize) const; 182 SkISize getSampledSubsetDimensions(int sampleSize, const SkIRect& subset) const; 275 virtual SkISize onGetSampledDimensions(int sampleSize) const = 0;
|