/packages/apps/Contacts/src/com/android/contacts/util/ |
BitmapUtil.java | 44 * Finds the optimal sampleSize for loading the picture 57 int sampleSize = 1; 59 sampleSize <<= 1; 63 return sampleSize; 69 public static Bitmap decodeBitmapFromBytes(byte[] bytes, int sampleSize) { 71 if (sampleSize <= 1) { 75 options.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/webkit/Source/WebCore/platform/graphics/android/ |
ImageSourceAndroid.cpp | 122 int origHeight, int sampleSize) 123 : SkBitmapRef(bm), fSampleSize(sampleSize), fAllDataReceived(false) { 161 int sampleSize = 1; 164 sampleSize <<= 1; 169 if (sampleSize > 1) { 170 SkDebugf("------- bitmap [%d %d] config=%d origSize=%d predictSize=%d sampleSize=%d\n", 172 bitmap.getSize(), size, sampleSize); 175 return sampleSize; 287 int sampleSize = computeSampleSize(tmp); 288 if (sampleSize > 1) [all...] |
/frameworks/av/media/libstagefright/ |
NuMediaExtractor.cpp | 394 size_t sampleSize = info->mSample->range_length(); 399 sampleSize += sizeof(int32_t); 402 if (buffer->capacity() < sampleSize) { 424 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);
|
AVIExtractor.cpp | 616 uint32_t sampleSize = U32LE_AT(&data[44]); 657 track->mBytesPerSample = sampleSize; [all...] |
MPEG4Writer.cpp | [all...] |
/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); 216 if (sampleSize != 1) { 217 return nullObjectReturn("SkImageDecoder: Cannot reuse bitmap with sampleSize != 1"); 355 pr = installPixelRef(bitmap, stream, sampleSize, doDither);
|
/gdk/samples/PhotoEditor/src/com/android/photoeditor/ |
BitmapUtils.java | 116 int sampleSize = Math.max(bounds.width() / width, bounds.height() / height); 117 sampleSize = Math.min(sampleSize, 121 options.inSampleSize = Math.max(sampleSize, 1);
|
/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/Gallery2/src/com/android/gallery3d/photoeditor/ |
BitmapUtils.java | 120 int sampleSize = Math.max(bounds.width() / width, bounds.height() / height); 121 sampleSize = Math.min(sampleSize, 125 options.inSampleSize = Math.max(sampleSize, 1);
|
/cts/tests/tests/media/src/android/media/cts/ |
DecoderTest.java | 134 int sampleSize = 139 if (sampleSize < 0) { 142 sampleSize = 0; 150 sampleSize,
|
/external/skia/src/images/ |
SkImageDecoder_libwebp.cpp | 330 const int sampleSize = this->getSampleSize(); 331 SkScaledBitmapSampler sampler(rect.width(), rect.height(), sampleSize); 385 cropBitmap(decodedBitmap, bitmap, sampleSize, region.x(), region.y(), 402 const int sampleSize = this->getSampleSize(); 403 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...] |
SkImageDecoder_libpng.cpp | 283 const int sampleSize = this->getSampleSize(); 284 SkScaledBitmapSampler sampler(origWidth, origHeight, sampleSize); 347 if (SkBitmap::kIndex8_Config == config && 1 == sampleSize) { 650 const int sampleSize = this->getSampleSize(); 651 SkScaledBitmapSampler sampler(origWidth, rect.height(), sampleSize); 677 int w = rect.width() / sampleSize; 678 int h = rect.height() / sampleSize; 681 ((0 - rect.x()) / sampleSize == 0) && bm->isNull(); 716 if (SkBitmap::kIndex8_Config == config && 1 == sampleSize) { 799 cropBitmap(bm, decodedBitmap, sampleSize, region.x(), region.y() [all...] |
/frameworks/base/media/jni/ |
android_media_MediaExtractor.cpp | 113 jobject byteBuf, size_t offset, size_t *sampleSize) { 164 *sampleSize = buffer->size(); 354 size_t sampleSize; 355 status_t err = extractor->readSampleData(byteBuf, offset, &sampleSize); 364 return sampleSize;
|
/packages/apps/Mms/src/com/android/mms/ui/ |
UriImage.java | 279 int sampleSize = 1; 289 options.inSampleSize = sampleSize; 298 "may try with larger sampleSize. Curr sampleSize=" + sampleSize); 299 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/java/android/media/videoeditor/ |
MediaImageItem.java | [all...] |
/packages/apps/Contacts/src/com/android/contacts/ |
ContactPhotoManager.java | 603 final int sampleSize = 610 if (sampleSize == holder.decodedSampleSize) { 622 Bitmap bitmap = BitmapUtil.decodeBitmapFromBytes(bytes, sampleSize); 637 canvas.drawText(bitmap.getWidth() + "/" + sampleSize, 0, 15, paint); 640 holder.decodedSampleSize = sampleSize; [all...] |
/external/svox/pico/lib/ |
picoos.c | [all...] |
/packages/apps/Music/src/com/android/music/ |
MusicUtils.java | [all...] |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/ |
org.eclipse.test.performance_3.6.0.v20091014.jar | |