/external/skia/src/images/ |
SkBitmapRegionDecoder.cpp | 4 SkBitmap::Config pref, int sampleSize) { 5 fDecoder->setSampleSize(sampleSize);
|
SkImageDecoder.cpp | 207 int sampleSize, int destX, int destY, 209 int w = width / sampleSize; 210 int h = height / sampleSize; 212 (srcX - destX) / sampleSize == 0 && (srcY - destY) / sampleSize == 0) { 222 canvas.drawBitmap(*src, (srcX - destX) / sampleSize, 223 (srcY - destY) / sampleSize);
|
SkImageRef_GlobalPool.cpp | 11 int sampleSize) 12 : SkImageRef(stream, config, sampleSize) {
|
SkImageRef.cpp | 17 int sampleSize) 23 fSampleSize = 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_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);
|
SkScaledBitmapSampler.cpp | 304 int sampleSize) { 309 if (sampleSize <= 1) { 317 int dx = SkMin32(sampleSize, width); 318 int dy = SkMin32(sampleSize, height);
|
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/ |
BitmapAllocatorAndroid.cpp | 46 int sampleSize) 49 fSampleSize = sampleSize;
|
BitmapAllocatorAndroid.h | 43 BitmapAllocatorAndroid(SharedBuffer* data, int sampleSize);
|
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...] |
/external/skia/include/images/ |
SkBitmapRegionDecoder.h | 24 SkBitmap::Config pref, int sampleSize);
|
SkImageRef_GlobalPool.h | 25 SkImageRef_GlobalPool(SkStream*, SkBitmap::Config, int sampleSize = 1);
|
SkImageRef.h | 42 @param sampleSize Requested sampleSize for decoding. Defaults to 1. 44 SkImageRef(SkStream*, SkBitmap::Config config, int sampleSize = 1);
|
/external/skia/src/ports/ |
SkImageRef_ashmem.h | 15 SkImageRef_ashmem(SkStream*, SkBitmap::Config, int sampleSize = 1);
|
SkImageRef_ashmem.cpp | 28 int sampleSize) 29 : SkImageRef(stream, config, sampleSize) {
|
/frameworks/base/core/java/android/os/ |
LatencyTimer.java | 46 * @param sampleSize number of samples to collect before printing out the average 48 * (sampleSize * average sample value)/scaleFactor > Long.MAX_VALUE 50 public LatencyTimer(int sampleSize, int scaleFactor) { 55 mSampleSize = sampleSize;
|
/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/core/jni/android/graphics/ |
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);
|
BitmapRegionDecoder.cpp | 185 int sampleSize = 1; 191 sampleSize = env->GetIntField(options, gOptions_sampleSizeFieldID); 223 if (!brd->decodeRegion(bitmap, region, prefConfig, sampleSize)) {
|
/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/base/media/libstagefright/ |
SampleIterator.cpp | 107 size_t sampleSize; 109 firstChunkSampleIndex + i, &sampleSize)) != OK) { 114 mCurrentChunkSampleSizes.push(sampleSize);
|
SampleTable.cpp | 745 size_t sampleSize; 746 status_t err = getSampleSize_l(x, &sampleSize); 751 if (i == 0 || sampleSize > maxSampleSize) { 753 maxSampleSize = sampleSize; 763 uint32_t sampleIndex, size_t *sampleSize) { 765 sampleIndex, sampleSize);
|
/frameworks/base/core/java/android/gesture/ |
GestureUtils.java | 209 private static void plot(float x, float y, float[] sample, int sampleSize) { 219 int index = yCeiling * sampleSize + xCeiling; 235 int index = yFloor * sampleSize + xFloor; 241 index = yFloor * sampleSize + xCeiling; 247 index = yCeiling * sampleSize + xFloor; 253 index = yCeiling * sampleSize + xCeiling;
|