/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;
|
/packages/apps/Gallery2/tests/src/com/android/gallery3d/common/ |
UtilsTest.java | 104 int sampleSize = testData[i + 4]; 106 if (result != sampleSize) { 108 + maxPixels + ", sampleSize = " + sampleSize + ", result = " 111 assertTrue(sampleSize == result);
|
/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...] |
/external/webkit/Source/WebCore/platform/graphics/android/ |
ImageSourceAndroid.cpp | 102 int origHeight, int sampleSize) 103 : SkBitmapRef(bm), fSampleSize(sampleSize), fAllDataReceived(false) { 141 int sampleSize = 1; 144 sampleSize <<= 1; 149 if (sampleSize > 1) { 150 ALOGD("------- bitmap [%d %d] config=%d origSize=%d predictSize=%d sampleSize=%d\n", 152 bitmap.getSize(), size, sampleSize); 155 return sampleSize; 242 int sampleSize = computeSampleSize(tmp); 243 if (sampleSize > 1) [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 | 187 int sampleSize = 1; 193 sampleSize = env->GetIntField(options, gOptions_sampleSizeFieldID); 236 if (!brd->decodeRegion(bitmap, region, prefConfig, sampleSize)) {
|
BitmapFactory.cpp | 140 int sampleSize, bool ditherImage) { 145 pr = new SkImageRef_ashmem(stream, bitmap->config(), sampleSize); 147 pr = new SkImageRef_GlobalPool(stream, bitmap->config(), sampleSize); 162 int sampleSize = 1; 177 sampleSize = env->GetIntField(options, gOptions_sampleSizeFieldID); 205 decoder->setSampleSize(sampleSize); 217 if (sampleSize != 1) { 218 return nullObjectReturn("SkImageDecoder: Cannot reuse bitmap with sampleSize != 1"); 377 pr = installPixelRef(bitmap, stream, sampleSize, doDither);
|
/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);
|
/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/legacy/src/images/ |
SkImageDecoder_libwebp.cpp | 324 const int sampleSize = this->getSampleSize(); 325 SkScaledBitmapSampler sampler(rect.width(), rect.height(), sampleSize); 379 cropBitmap(decodedBitmap, bitmap, sampleSize, region.x(), region.y(), 397 const int sampleSize = this->getSampleSize(); 398 SkScaledBitmapSampler sampler(origWidth, origHeight, sampleSize);
|
SkImageDecoder_libjpeg.cpp | 138 not sufficient. If so, we can recompute a modified sampleSize value to 141 To skip this additional scaling, just set sampleSize = 1; below. 143 static int recompute_sampleSize(int sampleSize, 145 return sampleSize * cinfo.output_width / cinfo.image_width; 228 /* Try to fulfill the requested sampleSize. Since jpeg can do it (when it 232 int sampleSize = this->getSampleSize(); 241 cinfo.scale_denom = sampleSize; 274 if (sampleSize == 1 && mode == SkImageDecoder::kDecodeBounds_Mode) { 286 to the caller if they just wanted (subsampled bounds). If sampleSize 297 recompute_sampleSize(sampleSize, cinfo)) [all...] |
/external/skia/src/images/ |
SkImageDecoder_libwebp.cpp | 318 const int sampleSize = this->getSampleSize(); 319 SkScaledBitmapSampler sampler(rect.width(), rect.height(), sampleSize); 373 cropBitmap(decodedBitmap, bitmap, sampleSize, region.x(), region.y(), 391 const int sampleSize = this->getSampleSize(); 392 SkScaledBitmapSampler sampler(origWidth, origHeight, sampleSize);
|
SkImageDecoder_libjpeg.cpp | 138 not sufficient. If so, we can recompute a modified sampleSize value to 141 To skip this additional scaling, just set sampleSize = 1; below. 143 static int recompute_sampleSize(int sampleSize, 145 return sampleSize * cinfo.output_width / cinfo.image_width; 251 /* Try to fulfill the requested sampleSize. Since jpeg can do it (when it 255 int sampleSize = this->getSampleSize(); 264 cinfo.scale_denom = sampleSize; 304 if (sampleSize == 1 && mode == SkImageDecoder::kDecodeBounds_Mode) { 316 to the caller if they just wanted (subsampled bounds). If sampleSize 327 recompute_sampleSize(sampleSize, cinfo)) [all...] |
SkImageDecoder_libpng.cpp | 284 const int sampleSize = this->getSampleSize(); 285 SkScaledBitmapSampler sampler(origWidth, origHeight, sampleSize); 348 if (SkBitmap::kIndex8_Config == config && 1 == sampleSize) { 656 const int sampleSize = this->getSampleSize(); 657 SkScaledBitmapSampler sampler(origWidth, rect.height(), sampleSize); 683 int w = rect.width() / sampleSize; 684 int h = rect.height() / sampleSize; 687 ((0 - rect.x()) / sampleSize == 0) && bm->isNull(); 722 if (SkBitmap::kIndex8_Config == config && 1 == sampleSize) { 805 cropBitmap(bm, decodedBitmap, sampleSize, region.x(), region.y() [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);
|
/packages/apps/Mms/src/com/android/mms/ui/ |
UriImage.java | 284 int sampleSize = 1; 294 options.inSampleSize = sampleSize; 303 "may try with larger sampleSize. Curr sampleSize=" + sampleSize); 304 sampleSize *= 2; // works best as a power of two
|
/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 | 195 jobject byteBuf, size_t offset, size_t *sampleSize) { 246 *sampleSize = buffer->size(); 456 size_t sampleSize; 457 status_t err = extractor->readSampleData(byteBuf, offset, &sampleSize); 466 return sampleSize;
|