Home
last modified time | relevance | path

Searched refs:sampleSize (Results 1 – 18 of 18) sorted by relevance

/external/webkit/WebCore/platform/graphics/android/
DImageSourceAndroid.cpp122 int origHeight, int sampleSize) in PrivateAndroidImageSourceRec() argument
123 : SkBitmapRef(bm), fSampleSize(sampleSize), fAllDataReceived(false) { in PrivateAndroidImageSourceRec()
158 int sampleSize = 1; in computeSampleSize() local
161 sampleSize <<= 1; in computeSampleSize()
166 if (sampleSize > 1) { in computeSampleSize()
169 bitmap.getSize(), size, sampleSize); in computeSampleSize()
172 return sampleSize; in computeSampleSize()
299 int sampleSize = computeSampleSize(tmp); in setData() local
300 if (sampleSize > 1) { in setData()
301 codec->setSampleSize(sampleSize); in setData()
[all …]
DBitmapAllocatorAndroid.cpp46 int sampleSize) in BitmapAllocatorAndroid() argument
49 fSampleSize = sampleSize; in BitmapAllocatorAndroid()
DBitmapAllocatorAndroid.h43 BitmapAllocatorAndroid(SharedBuffer* data, int sampleSize);
/external/skia/src/images/
DSkImageDecoder.cpp200 int sampleSize, int destX, int destY, in cropBitmap() argument
202 int w = width / sampleSize; in cropBitmap()
203 int h = height / sampleSize; in cropBitmap()
205 (srcX - destX) / sampleSize == 0 && (srcY - destY) / sampleSize == 0) { in cropBitmap()
215 canvas.drawBitmap(*src, (srcX - destX) / sampleSize, in cropBitmap()
216 (srcY - destY) / sampleSize); in cropBitmap()
DSkBitmapRegionDecoder.cpp4 SkBitmap::Config pref, int sampleSize) { in decodeRegion() argument
5 fDecoder->setSampleSize(sampleSize); in decodeRegion()
DSkImageDecoder_libjpeg.cpp148 static int recompute_sampleSize(int sampleSize, in recompute_sampleSize() argument
150 return sampleSize * cinfo.output_width / cinfo.image_width; in recompute_sampleSize()
237 int sampleSize = this->getSampleSize(); in onDecode() local
246 cinfo.scale_denom = sampleSize; in onDecode()
279 if (sampleSize == 1 && mode == SkImageDecoder::kDecodeBounds_Mode) { in onDecode()
302 recompute_sampleSize(sampleSize, cinfo)); in onDecode()
310 sampleSize = recompute_sampleSize(sampleSize, cinfo); in onDecode()
322 if (sampleSize == 1 && in onDecode()
375 sampleSize); in onDecode()
DSkImageRef_GlobalPool.cpp11 int sampleSize) in SkImageRef_GlobalPool() argument
12 : SkImageRef(stream, config, sampleSize) { in SkImageRef_GlobalPool()
DSkScaledBitmapSampler.cpp304 int sampleSize) { in SkScaledBitmapSampler() argument
309 if (sampleSize <= 1) { in SkScaledBitmapSampler()
317 int dx = SkMin32(sampleSize, width); in SkScaledBitmapSampler()
318 int dy = SkMin32(sampleSize, height); in SkScaledBitmapSampler()
DSkImageRef.cpp17 int sampleSize) in SkImageRef() argument
23 fSampleSize = sampleSize; in SkImageRef()
DSkImageDecoder_libpng.cpp291 const int sampleSize = this->getSampleSize(); in onDecode() local
292 SkScaledBitmapSampler sampler(origWidth, origHeight, sampleSize); in onDecode()
341 if (SkBitmap::kIndex8_Config == config && 1 == sampleSize) { in onDecode()
636 const int sampleSize = this->getSampleSize(); in onDecodeRegion() local
637 SkScaledBitmapSampler sampler(origWidth, requestedHeight, sampleSize); in onDecodeRegion()
691 if (SkBitmap::kIndex8_Config == config && 1 == sampleSize) { in onDecodeRegion()
771 cropBitmap(bm, decodedBitmap, sampleSize, rect.fLeft, rect.fTop, in onDecodeRegion()
/external/skia/src/ports/
DSkImageRef_ashmem.cpp27 int sampleSize) in SkImageRef_ashmem() argument
28 : SkImageRef(stream, config, sampleSize) { in SkImageRef_ashmem()
DSkImageRef_ashmem.h15 SkImageRef_ashmem(SkStream*, SkBitmap::Config, int sampleSize = 1);
/external/skia/include/images/
DSkBitmapRegionDecoder.h20 SkBitmap::Config pref, int sampleSize);
DSkImageRef_GlobalPool.h25 SkImageRef_GlobalPool(SkStream*, SkBitmap::Config, int sampleSize = 1);
DSkImageRef.h44 SkImageRef(SkStream*, SkBitmap::Config config, int sampleSize = 1);
DSkImageDecoder.h348 virtual void cropBitmap(SkBitmap *dest, SkBitmap *src, int sampleSize,
/external/svox/pico/lib/
Dpicoos.c1444 picoos_uint16 sampleSize; in picoos_readWavHeader() local
1465 done = done && (PICO_OK == picoos_read_le_uint16(f, &sampleSize)); in picoos_readWavHeader()
1475 done = ((blockAlign == 2) && (sampleSize == 16)); in picoos_readWavHeader()
1481 done = ((blockAlign == 1) && (sampleSize == 8)); in picoos_readWavHeader()
1487 done = ((blockAlign == 1) && (sampleSize == 8)); in picoos_readWavHeader()
1671 picoos_uint16 sampleSize = 16; in picoos_writeWavHeader() local
1681 sampleSize = 16; in picoos_writeWavHeader()
1686 sampleSize = 8; in picoos_writeWavHeader()
1691 sampleSize = 8; in picoos_writeWavHeader()
1712 done = done && picoos_write_le_uint16(f,sampleSize); in picoos_writeWavHeader()
/external/qemu/distrib/sdl-1.2.12/src/audio/macrom/
DSDL_romaudio.c244 header.sampleSize = sample_bits; in Mac_OpenAudio()