HomeSort by relevance Sort by last modified time
    Searched refs:sampleSize (Results 1 - 25 of 77) sorted by null

1 2 3 4

  /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/chromium_org/third_party/skia/include/images/
SkDecodingImageGenerator.h 55 Options(int sampleSize, bool dither)
56 : fSampleSize(sampleSize)
61 Options(int sampleSize, bool dither, SkColorType colorType)
62 : fSampleSize(sampleSize)
67 Options(int sampleSize, bool dither, SkColorType colorType,
69 : fSampleSize(sampleSize)
  /external/skia/include/images/
SkDecodingImageGenerator.h 55 Options(int sampleSize, bool dither)
56 : fSampleSize(sampleSize)
61 Options(int sampleSize, bool dither, SkColorType colorType)
62 : fSampleSize(sampleSize)
67 Options(int sampleSize, bool dither, SkColorType colorType,
69 : fSampleSize(sampleSize)
  /packages/apps/ContactsCommon/src/com/android/contacts/common/util/
BitmapUtil.java 47 * Finds the optimal sampleSize for loading the picture
64 int sampleSize = 1;
66 sampleSize <<= 1;
70 return sampleSize;
76 public static Bitmap decodeBitmapFromBytes(byte[] bytes, int sampleSize) {
78 if (sampleSize <= 1) {
82 options.inSampleSize = sampleSize;
  /frameworks/opt/bitmap/src/com/android/bitmap/util/
BitmapUtils.java 35 * @param sampleSize a scaling factor that rect calculation will only use if
55 final int dstH, final int dstSliceH, int sampleSize, final float vertSliceFrac,
57 if (sampleSize < 1) {
58 sampleSize = 1;
69 final float scale = Math.min(sampleSize, regularScale);
106 int sampleSize, Rect outRect) {
107 if (sampleSize < 1) {
108 sampleSize = 1;
114 final float scale = Math.min(sampleSize, regularScale);
  /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/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/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...]
  /packages/apps/Camera2/src/com/android/camera/data/
LocalDataUtil.java 132 int sampleSize = 1;
136 sampleSize <<= 1;
137 targetWidth = imageWidth / sampleSize;
138 targetHeight = imageWidth / sampleSize;
148 targetWidth * targetHeight < maximumPixels / 4 && sampleSize > 1) {
149 sampleSize >>= 2;
153 opts.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;
  /development/samples/devbytes/graphics/BitmapScaling/src/com/example/android/bitmapscaling/
BitmapScaling.java 55 private void addScaledImageView(Bitmap original, int sampleSize, LinearLayout container) {
65 bitmapOptions.inSampleSize = 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);
  /packages/apps/Camera2/src/com/android/camera/util/
ImageLoader.java 233 * Loads a bitmap that has been downsampled using sampleSize from a given url.
235 public static Bitmap loadDownsampledBitmap(Context context, Uri uri, int sampleSize) {
238 options.inSampleSize = sampleSize;
299 int sampleSize = 1;
302 sampleSize <<= 1;
306 if (sampleSize <= 0 ||
307 0 >= (Math.min(w, h) / sampleSize)) {
310 return loadDownsampledBitmap(context, uri, sampleSize);
342 public static Bitmap loadBitmapWithBackouts(Context context, Uri sourceUri, int sampleSize) {
345 if (sampleSize <= 0)
    [all...]
  /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...]
  /external/chromium_org/third_party/skia/src/images/
SkImageDecoder.cpp 215 bool SkImageDecoder::cropBitmap(SkBitmap *dst, SkBitmap *src, int sampleSize,
218 int w = width / sampleSize;
219 int h = height / sampleSize;
229 int x = (dstX - srcX) / sampleSize;
230 int y = (dstY - srcY) / sampleSize;
256 canvas.drawSprite(*src, (srcX - dstX) / sampleSize,
257 (srcY - dstY) / sampleSize,
  /external/skia/src/images/
SkImageDecoder.cpp 215 bool SkImageDecoder::cropBitmap(SkBitmap *dst, SkBitmap *src, int sampleSize,
218 int w = width / sampleSize;
219 int h = height / sampleSize;
229 int x = (dstX - srcX) / sampleSize;
230 int y = (dstY - srcY) / sampleSize;
256 canvas.drawSprite(*src, (srcX - dstX) / sampleSize,
257 (srcY - dstY) / sampleSize,
  /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/src/com/android/gallery3d/ingest/data/
MtpBitmapFetch.java 88 int sampleSize = 1;
91 sampleSize++;
93 o.inSampleSize = sampleSize;