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

1 2

  /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/
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...]
  /frameworks/av/media/libstagefright/mp4/
TrackFragment.cpp 54 off64_t dataOffset, size_t sampleSize,
62 sampleInfo->mSize = sampleSize;
253 uint32_t sampleSize = parser->readU32(offset + 4);
256 if (sampleSize == 0 && offset + 12 + sampleCount * 4 != size) {
  /packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
MtpBitmapFetch.java 82 int sampleSize = 1;
85 sampleSize++;
87 o.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;
  /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,
  /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/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/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...]
  /frameworks/av/media/libstagefright/
NuMediaExtractor.cpp 454 size_t sampleSize = info->mSample->range_length();
459 sampleSize += sizeof(int32_t);
462 if (buffer->capacity() < sampleSize) {
484 buffer->setRange(0, sampleSize);
SampleTable.cpp 753 size_t sampleSize;
754 status_t err = getSampleSize_l(x, &sampleSize);
759 if (i == 0 || sampleSize > maxSampleSize) {
761 maxSampleSize = sampleSize;
771 uint32_t sampleIndex, size_t *sampleSize) {
773 sampleIndex, 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)) {
BitmapFactory.cpp 125 int sampleSize, bool ditherImage) {
130 pr = new SkImageRef_ashmem(stream, bitmap->config(), sampleSize);
132 pr = new SkImageRef_GlobalPool(stream, bitmap->config(), sampleSize);
215 int sampleSize = 1;
230 sampleSize = env->GetIntField(options, gOptions_sampleSizeFieldID);
267 decoder->setSampleSize(sampleSize);
438 pr = installPixelRef(outputBitmap, stream, sampleSize, doDither);
  /frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/
BitmapUtils.java 80 int sampleSize = Math.min(w / minSideLength, h / minSideLength);
81 return Math.max(sampleSize, lowerBound);
  /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,
  /frameworks/support/v4/kitkat/android/support/v4/print/
PrintHelperKitkat.java 476 int sampleSize = 1;
479 sampleSize <<= 1;
483 if (sampleSize <= 0 || 0 >= (int) (Math.min(w, h) / sampleSize)) {
490 mDecodeOptions.inSampleSize = sampleSize;
  /packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
BitmapUtils.java 80 int sampleSize = Math.min(w / minSideLength, h / minSideLength);
81 return Math.max(sampleSize, lowerBound);
  /packages/apps/Launcher3/src/com/android/gallery3d/common/
BitmapUtils.java 80 int sampleSize = Math.min(w / minSideLength, h / minSideLength);
81 return Math.max(sampleSize, lowerBound);
  /external/chromium_org/third_party/skia/src/images/
SkImageDecoder_libwebp.cpp 335 const int sampleSize = this->getSampleSize();
336 SkScaledBitmapSampler sampler(rect.width(), rect.height(), sampleSize);
390 cropBitmap(decodedBitmap, bitmap, sampleSize, region.x(), region.y(),
408 const int sampleSize = this->getSampleSize();
409 SkScaledBitmapSampler sampler(origWidth, origHeight, 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/skia/src/images/
SkImageDecoder_libwebp.cpp 349 const int sampleSize = this->getSampleSize();
350 SkScaledBitmapSampler sampler(rect.width(), rect.height(), sampleSize);
404 cropBitmap(decodedBitmap, bitmap, sampleSize, region.x(), region.y(),
422 const int sampleSize = this->getSampleSize();
423 SkScaledBitmapSampler sampler(origWidth, origHeight, 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/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);
  /frameworks/av/libvideoeditor/vss/3gpwriter/inc/
M4MP4W_Types.h 178 M4OSA_UInt32 sampleSize; /* S (video=0)*/
213 /* at first audio au, sampleSize is set. It is later reset to 0 if non constant size.*/
214 /* So sampleSize should be tested to know weither or not there is a TABLE_STSZ. */
  /frameworks/base/media/jni/
android_media_MediaExtractor.cpp 196 jobject byteBuf, size_t offset, size_t *sampleSize) {
247 *sampleSize = buffer->size();
457 size_t sampleSize;
458 status_t err = extractor->readSampleData(byteBuf, offset, &sampleSize);
467 return sampleSize;

Completed in 595 milliseconds

1 2