HomeSort by relevance Sort by last modified time
    Searched full:samplesize (Results 1 - 25 of 109) sorted by null

1 2 3 4 5

  /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...]
  /external/skia/bench/
BitmapRegionDecoderBench.cpp 15 uint32_t sampleSize, const SkIRect& subset)
20 , fSampleSize(sampleSize)
42 if (1 != sampleSize) {
43 fName.appendf("_%.3f", 1.0f / (float) sampleSize);
AndroidCodecBench.cpp 15 AndroidCodecBench::AndroidCodecBench(SkString baseName, SkData* encoded, int sampleSize)
17 , fSampleSize(sampleSize)
20 fName.printf("AndroidCodec_%s_SampleSize%d", baseName.c_str(), sampleSize);
BitmapRegionDecoderBench.h 19 * Benchmark Android's BitmapRegionDecoder for a particular colorType, sampleSize, and subset.
31 uint32_t sampleSize, const SkIRect& subset);
AndroidCodecBench.h 23 AndroidCodecBench(SkString basename, SkData* encoded, int sampleSize);
  /external/skia/src/codec/
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;
SkRawAdapterCodec.cpp 16 SkISize SkRawAdapterCodec::onGetSampledDimensions(int sampleSize) const {
17 float scale = 1.f / static_cast<float>(sampleSize);
SkAndroidCodec.cpp 15 static bool is_valid_sample_size(int sampleSize) {
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 {
141 if (!is_valid_sample_size(sampleSize)) {
155 return this->getSampledDimensions(sampleSize);
    [all...]
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...]
SkWebpAdapterCodec.h 26 SkISize onGetSampledDimensions(int sampleSize) const override;
SkWebpAdapterCodec.cpp 16 SkISize SkWebpAdapterCodec::onGetSampledDimensions(int sampleSize) const {
17 float scale = get_scale_from_sample_size(sampleSize);
SkRawAdapterCodec.h 31 SkISize onGetSampledDimensions(int sampleSize) const override;
  /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/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/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/skia/src/android/
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));
    [all...]
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;
    [all...]
SkBitmapRegionCodec.h 24 const SkIRect& desiredSubset, int 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/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/opt/bitmap/src/com/android/bitmap/util/
BitmapUtils.java 35 * @param sampleSize a scaling factor that rect calculation will only use if
58 final int dstH, final int dstSliceH, int sampleSize, final float horizSliceFrac,
61 if (sampleSize < 1) {
62 sampleSize = 1;
73 final float scale = Math.min(sampleSize, regularScale);
110 int sampleSize, Rect outRect) {
111 if (sampleSize < 1) {
112 sampleSize = 1;
118 final float scale = Math.min(sampleSize, regularScale);
  /packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/
ImageLoader.java 309 * Loads a bitmap that has been downsampled using sampleSize from a given url.
311 public static Bitmap loadDownsampledBitmap(Context context, Uri uri, int sampleSize) {
314 options.inSampleSize = sampleSize;
376 int sampleSize = 1;
379 sampleSize <<= 1;
383 if (sampleSize <= 0 ||
384 0 >= (int) (Math.min(w, h) / sampleSize)) {
387 return loadDownsampledBitmap(context, uri, sampleSize);
424 int sampleSize = 1;
427 sampleSize *= 2
    [all...]
  /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;
  /packages/apps/TV/usbtuner/src/com/android/usbtuner/exoplayer/ac3/
AudioTrackMonitor.java 72 * @param sampleSize the size in bytes of the sample
75 public void addPts(long pts, int sampleSize, int header) {
78 mSampleSize.add(sampleSize);
80 mCurSampleSize.add(sampleSize);

Completed in 1393 milliseconds

1 2 3 4 5