/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/skia/src/codec/ |
D | SkAndroidCodec.cpp | 15 static bool is_valid_sample_size(int sampleSize) { in is_valid_sample_size() argument 17 return sampleSize > 0; in is_valid_sample_size() 228 int sampleSize = std::min(sampleX, sampleY); in computeSampleSize() local 229 auto computedSize = this->getSampledDimensions(sampleSize); in computeSampleSize() 231 return sampleSize; in computeSampleSize() 234 if (computedSize == origDims || sampleSize == 1) { in computeSampleSize() 243 auto smaller = this->getSampledDimensions(sampleSize + 1); in computeSampleSize() 245 return sampleSize + 1; in computeSampleSize() 250 return sampleSize; in computeSampleSize() 253 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() 87 int sampleSize = options.fSampleSize; in onGetAndroidPixels() local [all …]
|
/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/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/client_utils/android/ |
D | BitmapRegionDecoder.cpp | 49 const SkIRect& desiredSubset, int sampleSize, SkColorType dstColorType, in decodeRegion() argument 53 if (sampleSize < 1) { in decodeRegion() 54 sampleSize = 1; in decodeRegion() 79 SkISize scaledSize = fCodec->getSampledSubsetDimensions(sampleSize, subset); in decodeRegion() 92 scaledOutX = outX / sampleSize; in decodeRegion() 93 scaledOutY = outY / sampleSize; in decodeRegion() 97 const int scaledExtraX = extraX / sampleSize; in decodeRegion() 98 const int scaledExtraY = extraY / sampleSize; in decodeRegion() 131 options.fSampleSize = sampleSize; in decodeRegion()
|
/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/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() 60 uint8_t sampleSize; in LLVMFuzzerTestOneInput() local 61 fuzz.nextRange(&sampleSize, 1, 64); in LLVMFuzzerTestOneInput() 63 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/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/ts/ |
D | Id3Reader.java | 48 private int sampleSize; field in Id3Reader 78 sampleSize = 0; in packetStarted() 104 sampleSize = ID3_HEADER_LENGTH + id3Header.readSynchSafeInt(); in consume() 108 int bytesToWrite = Math.min(bytesAvailable, sampleSize - sampleBytesRead); in consume() 116 if (!writingSample || sampleSize == 0 || sampleBytesRead != sampleSize) { in packetFinished() 119 output.sampleMetadata(sampleTimeUs, C.BUFFER_FLAG_KEY_FRAME, sampleSize, 0, null); in packetFinished()
|
D | AdtsReader.java | 93 private int sampleSize; field in AdtsReader 238 sampleSize = 0; in setReadingId3HeaderState() 251 int priorReadBytes, int sampleSize) { in setReadingSampleState() argument 256 this.sampleSize = sampleSize; in setReadingSampleState() 523 int sampleSize = adtsScratch.readBits(13) - 2 /* the sync word */ - HEADER_SIZE; in parseAdtsHeader() local 525 sampleSize -= CRC_SIZE; in parseAdtsHeader() 528 setReadingSampleState(output, sampleDurationUs, 0, sampleSize); in parseAdtsHeader() 534 int bytesToRead = Math.min(data.bytesLeft(), sampleSize - bytesRead); in readSample() 537 if (bytesRead == sampleSize) { in readSample() 538 currentOutput.sampleMetadata(timeUs, C.BUFFER_FLAG_KEY_FRAME, sampleSize, 0, null); in readSample()
|
D | DtsReader.java | 56 private int sampleSize; field in DtsReader 110 int bytesToRead = Math.min(data.bytesLeft(), sampleSize - bytesRead); in consume() 113 if (bytesRead == sampleSize) { in consume() 114 output.sampleMetadata(timeUs, C.BUFFER_FLAG_KEY_FRAME, sampleSize, 0, null); in consume() 178 sampleSize = DtsUtil.getDtsFrameSize(frameData); in parseHeader()
|
/external/exoplayer/tree/library/hls/src/main/java/com/google/android/exoplayer2/source/hls/ |
D | WebvttExtractor.java | 63 private int sampleSize; field in WebvttExtractor 117 if (sampleSize == sampleData.length) { in read() 123 int bytesRead = input.read(sampleData, sampleSize, sampleData.length - sampleSize); in read() 125 sampleSize += bytesRead; in read() 126 if (currentFileSize == C.LENGTH_UNSET || sampleSize != currentFileSize) { in read() 185 sampleDataWrapper.reset(sampleData, sampleSize); in processSample() 186 trackOutput.sampleData(sampleDataWrapper, sampleSize); in processSample() 187 trackOutput.sampleMetadata(sampleTimeUs, C.BUFFER_FLAG_KEY_FRAME, sampleSize, 0, null); in processSample()
|
/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/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/flv/ |
D | AudioTagPayloadReader.java | 97 int sampleSize = data.bytesLeft(); in parsePayload() local 98 output.sampleData(data, sampleSize); in parsePayload() 99 output.sampleMetadata(timeUs, C.BUFFER_FLAG_KEY_FRAME, sampleSize, 0, null); in parsePayload() 120 int sampleSize = data.bytesLeft(); in parsePayload() local 121 output.sampleData(data, sampleSize); in parsePayload() 122 output.sampleMetadata(timeUs, C.BUFFER_FLAG_KEY_FRAME, sampleSize, 0, null); in parsePayload()
|
/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()
|
/external/skia/bench/ |
D | BitmapRegionDecoderBench.cpp | 16 SkColorType colorType, uint32_t sampleSize, const SkIRect& subset) in BitmapRegionDecoderBench() argument 20 , fSampleSize(sampleSize) in BitmapRegionDecoderBench() 27 if (1 != sampleSize) { in BitmapRegionDecoderBench() 28 fName.appendf("_%.3f", 1.0f / (float) sampleSize); in BitmapRegionDecoderBench()
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/ |
D | SingleSampleMediaPeriod.java | 71 /* package */ int sampleSize; field in SingleSampleMediaPeriod 216 sampleSize = (int) loadable.dataSource.getBytesRead(); in onLoadCompleted() 227 sampleSize), in onLoadCompleted() 349 buffer.ensureSpaceForWrite(sampleSize); in readData() 350 buffer.data.put(sampleData, 0, sampleSize); in readData() 411 int sampleSize = (int) dataSource.getBytesRead(); in load() local 414 } else if (sampleSize == sampleData.length) { in load() 417 result = dataSource.read(sampleData, sampleSize, sampleData.length - sampleSize); in load()
|