/external/skia/src/images/ |
SkImageDecoder_libwebp.cpp | 317 const int sampleSize = this->getSampleSize(); 318 SkScaledBitmapSampler sampler(width, height, sampleSize); 352 const int sampleSize = this->getSampleSize(); 353 SkScaledBitmapSampler sampler(origWidth, origHeight, sampleSize);
|
SkImageDecoder_libjpeg.cpp | 143 not sufficient. If so, we can recompute a modified sampleSize value to 146 To skip this additional scaling, just set sampleSize = 1; below. 148 static int recompute_sampleSize(int sampleSize, 150 return sampleSize * cinfo.output_width / cinfo.image_width; 233 /* Try to fulfill the requested sampleSize. Since jpeg can do it (when it 237 int sampleSize = this->getSampleSize(); 246 cinfo.scale_denom = sampleSize; 279 if (sampleSize == 1 && mode == SkImageDecoder::kDecodeBounds_Mode) { 291 to the caller if they just wanted (subsampled bounds). If sampleSize 302 recompute_sampleSize(sampleSize, cinfo)) [all...] |
SkImageDecoder_libpng.cpp | 291 const int sampleSize = this->getSampleSize(); 292 SkScaledBitmapSampler sampler(origWidth, origHeight, sampleSize); 355 if (SkBitmap::kIndex8_Config == config && 1 == sampleSize) { 653 const int sampleSize = this->getSampleSize(); 654 SkScaledBitmapSampler sampler(origWidth, requestedHeight, sampleSize); 708 if (SkBitmap::kIndex8_Config == config && 1 == sampleSize) { 788 cropBitmap(bm, decodedBitmap, sampleSize, rect.fLeft, rect.fTop, [all...] |
/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/base/core/jni/android/graphics/ |
BitmapRegionDecoder.cpp | 185 int sampleSize = 1; 191 sampleSize = env->GetIntField(options, gOptions_sampleSizeFieldID); 223 if (!brd->decodeRegion(bitmap, region, prefConfig, sampleSize)) {
|
BitmapFactory.cpp | 97 int sampleSize, bool ditherImage) { 101 pr = new SkImageRef_ashmem(stream, bitmap->config(), sampleSize); 103 pr = new SkImageRef_GlobalPool(stream, bitmap->config(), sampleSize); 117 int sampleSize = 1; 128 sampleSize = env->GetIntField(options, gOptions_sampleSizeFieldID); 151 decoder->setSampleSize(sampleSize); 161 if (sampleSize != 1) { 162 return nullObjectReturn("SkImageDecoder: Cannot reuse bitmap with sampleSize != 1"); 244 pr = installPixelRef(bitmap, stream, sampleSize, doDither);
|
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/ |
BitmapUtils.java | 155 int sampleSize = Math.max(bounds.width() / width, bounds.height() / height); 156 sampleSize = Math.min(sampleSize, 160 options.inSampleSize = Math.max(sampleSize, 1);
|
/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);
|
/frameworks/base/media/libstagefright/ |
SampleTable.cpp | 740 size_t sampleSize; 741 status_t err = getSampleSize_l(x, &sampleSize); 746 if (i == 0 || sampleSize > maxSampleSize) { 748 maxSampleSize = sampleSize; 758 uint32_t sampleIndex, size_t *sampleSize) { 760 sampleIndex, sampleSize);
|
AVIExtractor.cpp | 615 uint32_t sampleSize = U32LE_AT(&data[44]); 656 track->mBytesPerSample = sampleSize; [all...] |
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
BitmapUtils.java | 79 int sampleSize = Math.min(w / minSideLength, h / minSideLength); 80 return Math.max(sampleSize, lowerBound);
|
/packages/apps/Mms/src/com/android/mms/ui/ |
UriImage.java | 243 int sampleSize = 1; 253 options.inSampleSize = sampleSize; 258 "may try with larger sampleSize. Curr sampleSize=" + sampleSize); 259 sampleSize *= 2; // works best as a power of two
|
/frameworks/media/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...] |
/external/svox/pico/lib/ |
picoos.c | [all...] |
/packages/apps/Music/src/com/android/music/ |
MusicUtils.java | [all...] |