/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/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 | 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;
|
/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)
|
/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 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);
|
/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/ |
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;
|
/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...] |
/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,
|
/art/runtime/base/ |
histogram.h | 52 // Accumulative summation of percentiles; which is the frequency / SampleSize 53 // cumulative_perc[i] = sum(frequency[j] / SampleSize : 0 < j < i ) 66 uint64_t SampleSize() const {
|
/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;
|
/cts/tests/tests/media/src/android/media/cts/ |
CodecState.java | 192 int sampleSize = 199 if (sampleSize <= 0) { 200 Log.d(TAG, "sampleSize: " + sampleSize + " trackIndex:" + trackIndex + 214 index, 0 /* offset */, sampleSize, sampleTime, 0 /* flags */); 227 index, 0 /* offset */, 0 /* sampleSize */,
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/plat-mac/Carbon/ |
MediaDescr.py | 71 'version', 'revlevel', 'vendor', 'numChannels', 'sampleSize', 80 'version', 'revlevel', 'vendor', 'numChannels', 'sampleSize',
|
/external/chromium_org/media/base/android/java/src/org/chromium/media/ |
WebAudioMediaCodecBridge.java | 124 int sampleSize = extractor.readSampleData(dstBuf, 0); 127 if (sampleSize < 0) { 129 sampleSize = 0; 136 sampleSize,
|
/cts/tests/tests/media/libmediandkjni/ |
native-media-jni.cpp | 274 int sampleSize = AMediaExtractor_readSampleData(ex, buf, bufsize); 275 ALOGV("read %d", sampleSize); 276 if (sampleSize < 0) { 277 sampleSize = 0; 284 AMediaCodec_queueInputBuffer(codec[t], bufidx, 0, sampleSize, presentationTimeUs, 417 int sampleSize = AMediaExtractor_readSampleData(ex, buf, bufsize); 418 ALOGV("read %d", sampleSize); 419 if (sampleSize < 0) { 420 sampleSize = 0; 426 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)) {
|
/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;
|
/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;
|