HomeSort by relevance Sort by last modified time
    Searched refs:sampleSize (Results 1 - 25 of 78) 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)
  /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);
  /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;
  /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 191 bool SkImageDecoder::cropBitmap(SkBitmap *dst, SkBitmap *src, int sampleSize,
194 int w = width / sampleSize;
195 int h = height / sampleSize;
205 int x = (dstX - srcX) / sampleSize;
206 int y = (dstY - srcY) / sampleSize;
232 canvas.drawSprite(*src, (srcX - dstX) / sampleSize,
233 (srcY - dstY) / sampleSize,
  /external/skia/src/images/
SkImageDecoder.cpp 216 bool SkImageDecoder::cropBitmap(SkBitmap *dst, SkBitmap *src, int sampleSize,
219 int w = width / sampleSize;
220 int h = height / sampleSize;
230 int x = (dstX - srcX) / sampleSize;
231 int y = (dstY - srcY) / sampleSize;
257 canvas.drawSprite(*src, (srcX - dstX) / sampleSize,
258 (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;
  /external/chromium_org/media/base/android/java/src/org/chromium/media/
WebAudioMediaCodecBridge.java 125 int sampleSize = extractor.readSampleData(dstBuf, 0);
128 if (sampleSize < 0) {
130 sampleSize = 0;
137 sampleSize,
  /external/glide/library/src/main/java/com/bumptech/glide/load/resource/bitmap/
Downsampler.java 157 final int sampleSize;
161 sampleSize = getSampleSize(inHeight, inWidth, outWidth, outHeight);
163 sampleSize = getSampleSize(inWidth, inHeight, outWidth, outHeight);
166 final Bitmap downsampled = downsampleWithSize(bis, options, pool, inWidth, inHeight, sampleSize, decodeFormat);
184 BitmapPool pool, int inWidth, int inHeight, int sampleSize, DecodeFormat decodeFormat) {
187 options.inSampleSize = sampleSize;
  /cts/tests/tests/media/src/android/media/cts/
CodecState.java 210 int sampleSize =
217 if (sampleSize <= 0) {
218 Log.d(TAG, "sampleSize: " + sampleSize + " trackIndex:" + trackIndex +
247 index, 0 /* offset */, sampleSize, sampleTime, 0 /* flags */);
260 index, 0 /* offset */, 0 /* sampleSize */,
  /cts/tests/tests/media/libmediandkjni/
native-media-jni.cpp 270 int sampleSize = AMediaExtractor_readSampleData(ex, buf, bufsize);
271 ALOGV("read %d", sampleSize);
272 if (sampleSize < 0) {
273 sampleSize = 0;
280 AMediaCodec_queueInputBuffer(codec[t], bufidx, 0, sampleSize, presentationTimeUs,
413 int sampleSize = AMediaExtractor_readSampleData(ex, buf, bufsize);
414 ALOGV("read %d", sampleSize);
415 if (sampleSize < 0) {
416 sampleSize = 0;
422 AMediaCodec_queueInputBuffer(codec, bufidx, 0, sampleSize, presentationTimeUs
    [all...]
  /frameworks/base/core/jni/android/graphics/
BitmapRegionDecoder.cpp 63 SkColorType pref, int sampleSize) {
64 fDecoder->setSampleSize(sampleSize);
177 int sampleSize = 1;
184 sampleSize = env->GetIntField(options, gOptions_sampleSizeFieldID);
229 if (!brd->decodeRegion(bitmap, region, prefColorType, sampleSize)) {
  /frameworks/base/media/jni/
android_media_MediaExtractor.h 58 status_t readSampleData(jobject byteBuf, size_t offset, size_t *sampleSize);

Completed in 2221 milliseconds

1 2 3 4