HomeSort by relevance Sort by last modified time
    Searched refs:sampleSize (Results 1 - 25 of 25) sorted by null

  /external/skia/src/images/
SkBitmapRegionDecoder.cpp 4 SkBitmap::Config pref, int sampleSize) {
5 fDecoder->setSampleSize(sampleSize);
SkImageDecoder.cpp 200 int sampleSize, int destX, int destY,
202 int w = width / sampleSize;
203 int h = height / sampleSize;
205 (srcX - destX) / sampleSize == 0 && (srcY - destY) / sampleSize == 0) {
215 canvas.drawBitmap(*src, (srcX - destX) / sampleSize,
216 (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();
241 cinfo.scale_denom = sampleSize;
267 if (sampleSize == 1) {
278 if (sampleSize == 1 && mode == SkImageDecoder::kDecodeBounds_Mode) {
290 to the caller if they just wanted (subsampled bounds). If sampleSize
    [all...]
SkScaledBitmapSampler.cpp 292 int sampleSize) {
297 if (sampleSize <= 1) {
305 int dx = SkMin32(sampleSize, width);
306 int dy = SkMin32(sampleSize, height);
SkImageDecoder_libpng.cpp 291 const int sampleSize = this->getSampleSize();
292 SkScaledBitmapSampler sampler(origWidth, origHeight, sampleSize);
341 if (SkBitmap::kIndex8_Config == config && 1 == sampleSize) {
656 const int sampleSize = this->getSampleSize();
657 SkScaledBitmapSampler sampler(origWidth, requestedHeight, sampleSize);
711 if (SkBitmap::kIndex8_Config == config && 1 == sampleSize) {
791 cropBitmap(bm, decodedBitmap, sampleSize, rect.fLeft, rect.fTop,
    [all...]
  /external/webkit/WebCore/platform/graphics/android/
BitmapAllocatorAndroid.h 43 BitmapAllocatorAndroid(SharedBuffer* data, int sampleSize);
BitmapAllocatorAndroid.cpp 46 int sampleSize)
49 fSampleSize = sampleSize;
ImageSourceAndroid.cpp 122 int origHeight, int sampleSize)
123 : SkBitmapRef(bm), fSampleSize(sampleSize), fAllDataReceived(false) {
158 int sampleSize = 1;
161 sampleSize <<= 1;
166 if (sampleSize > 1) {
167 SkDebugf("------- bitmap [%d %d] config=%d origSize=%d predictSize=%d sampleSize=%d\n",
169 bitmap.getSize(), size, sampleSize);
172 return sampleSize;
299 int sampleSize = computeSampleSize(tmp);
300 if (sampleSize > 1)
    [all...]
  /external/skia/include/images/
SkBitmapRegionDecoder.h 20 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);
SkImageDecoder.h 151 /** Reset the sampleSize to its default of 1
322 * both sampled by sampleSize from an original Bitmap.
325 * @param src the source Bitmap that is sampled by sampleSize from the original
327 * @param sampleSize the sample size that src is sampled from the original Bitmap.
334 virtual void cropBitmap(SkBitmap *dest, SkBitmap *src, int sampleSize,
  /external/skia/src/ports/
SkImageRef_ashmem.h 15 SkImageRef_ashmem(SkStream*, SkBitmap::Config, int sampleSize = 1);
SkImageRef_ashmem.cpp 27 int sampleSize)
28 : 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;
  /frameworks/base/media/libstagefright/
SampleTable.cpp 535 size_t sampleSize;
536 status_t err = getSampleSize_l(x, &sampleSize);
541 if (i == 0 || sampleSize > maxSampleSize) {
543 maxSampleSize = sampleSize;
553 uint32_t sampleIndex, size_t *sampleSize) {
555 sampleIndex, sampleSize);
SampleIterator.cpp 107 size_t sampleSize;
109 firstChunkSampleIndex + i, &sampleSize)) != OK) {
114 mCurrentChunkSampleSizes.push(sampleSize);
MPEG4Writer.cpp     [all...]
  /frameworks/base/core/jni/android/graphics/
BitmapFactory.cpp 156 int sampleSize, bool ditherImage) {
160 pr = new SkImageRef_ashmem(stream, bitmap->config(), sampleSize);
162 pr = new SkImageRef_GlobalPool(stream, bitmap->config(), sampleSize);
176 int sampleSize = 1;
185 sampleSize = env->GetIntField(options, gOptions_sampleSizeFieldID);
204 decoder->setSampleSize(sampleSize);
286 pr = installPixelRef(bitmap, stream, sampleSize, doDither);
  /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;
  /external/svox/pico/lib/
picoos.c     [all...]
  /external/qemu/distrib/sdl-1.2.12/src/audio/macrom/
SDL_romaudio.c 244 header.sampleSize = sample_bits;
  /packages/apps/Music/src/com/android/music/
MusicUtils.java     [all...]

Completed in 898 milliseconds