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

1 2 3

  /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...]
  /packages/apps/ContactsCommon/src/com/android/contacts/common/util/
BitmapUtil.java 44 * Finds the optimal sampleSize for loading the picture
61 int sampleSize = 1;
63 sampleSize <<= 1;
67 return sampleSize;
73 public static Bitmap decodeBitmapFromBytes(byte[] bytes, int sampleSize) {
75 if (sampleSize <= 1) {
79 options.inSampleSize = sampleSize;
  /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...]
  /packages/apps/UnifiedEmail/src/com/android/bitmap/
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);
  /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/chromium_org/third_party/skia/include/images/
SkImageRef_GlobalPool.h 18 SkImageRef_GlobalPool(SkStream*, SkBitmap::Config, int sampleSize = 1);
SkImageRef.h 35 @param sampleSize Requested sampleSize for decoding. Defaults to 1.
37 SkImageRef(SkStream*, SkBitmap::Config config, int sampleSize = 1, SkBaseMutex* mutex = NULL);
  /external/skia/include/images/
SkImageRef_GlobalPool.h 18 SkImageRef_GlobalPool(SkStream*, SkBitmap::Config, int sampleSize = 1);
SkImageRef.h 35 @param sampleSize Requested sampleSize for decoding. Defaults to 1.
37 SkImageRef(SkStream*, SkBitmap::Config config, int sampleSize = 1, SkBaseMutex* mutex = NULL);
  /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...]
  /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;
  /external/chromium_org/third_party/skia/src/images/
SkImageRef_ashmem.h 22 SkImageRef_ashmem(SkStream*, SkBitmap::Config, int sampleSize = 1);
SkImageRef_GlobalPool.cpp 29 int sampleSize)
30 : SkImageRef(stream, config, sampleSize, &gGlobalPoolMutex) {
  /external/skia/src/images/
SkImageRef_ashmem.h 22 SkImageRef_ashmem(SkStream*, SkBitmap::Config, int sampleSize = 1);
SkImageRef_GlobalPool.cpp 29 int sampleSize)
30 : SkImageRef(stream, config, sampleSize, &gGlobalPoolMutex) {
  /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/crop/
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 >= (int) (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...]
  /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 82 int sampleSize = 1;
85 sampleSize++;
87 o.inSampleSize = sampleSize;
  /external/chromium_org/media/base/android/java/src/org/chromium/media/
WebAudioMediaCodecBridge.java 119 int sampleSize = extractor.readSampleData(dstBuf, 0);
122 if (sampleSize < 0) {
124 sampleSize = 0;
131 sampleSize,
  /frameworks/base/core/jni/android/graphics/
BitmapRegionDecoder.cpp 64 SkBitmap::Config pref, int sampleSize) {
65 fDecoder->setSampleSize(sampleSize);
177 int sampleSize = 1;
184 sampleSize = env->GetIntField(options, gOptions_sampleSizeFieldID);
229 if (!brd->decodeRegion(bitmap, region, prefConfig, sampleSize)) {
  /cts/tests/tests/media/src/android/media/cts/
DecoderTest.java 223 int sampleSize =
228 if (sampleSize < 0) {
231 sampleSize = 0;
239 sampleSize,
575 int sampleSize =
580 if (sampleSize < 0) {
583 sampleSize = 0;
599 sampleSize,
761 int sampleSize =
764 // + " @ " + extractor.getSampleTime() + " size " + sampleSize);
    [all...]

Completed in 1420 milliseconds

1 2 3