HomeSort by relevance Sort by last modified time
    Searched full:samplesize (Results 1 - 25 of 35) sorted by null

1 2

  /external/skia/src/images/
SkBitmapRegionDecoder.cpp 4 SkBitmap::Config pref, int sampleSize) {
5 fDecoder->setSampleSize(sampleSize);
SkImageRef_GlobalPool.cpp 11 int sampleSize)
12 : SkImageRef(stream, config, 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);
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...]
SkScaledBitmapSampler.cpp 304 int sampleSize) {
309 if (sampleSize <= 1) {
317 int dx = SkMin32(sampleSize, width);
318 int dy = SkMin32(sampleSize, height);
SkImageRef.cpp 17 int sampleSize)
23 fSampleSize = sampleSize;
  /external/skia/include/images/
SkBitmapRegionDecoder.h 24 SkBitmap::Config pref, int sampleSize);
SkImageRef.h 42 @param sampleSize Requested sampleSize for decoding. Defaults to 1.
44 SkImageRef(SkStream*, SkBitmap::Config config, int sampleSize = 1);
SkImageRef_GlobalPool.h 25 SkImageRef_GlobalPool(SkStream*, SkBitmap::Config, int sampleSize = 1);
SkImageDecoder.h 166 /** Reset the sampleSize to its default of 1
337 * both sampled by sampleSize from an original Bitmap.
340 * @param src the source Bitmap that is sampled by sampleSize from the original
342 * @param sampleSize the sample size that src is sampled from the original Bitmap.
349 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 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;
  /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...]
BitmapAllocatorAndroid.cpp 46 int sampleSize)
49 fSampleSize = sampleSize;
BitmapAllocatorAndroid.h 43 BitmapAllocatorAndroid(SharedBuffer* data, int sampleSize);
  /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
  /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);
  /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);
  /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/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. */
  /external/qemu/distrib/sdl-1.2.12/src/audio/
SDL_wave.c 403 int samplesize; local
550 /* Don't return a buffer that isn't a multiple of samplesize */
551 samplesize = ((spec->format & 0xFF)/8)*spec->channels;
552 *audio_len &= ~(samplesize-1);

Completed in 835 milliseconds

1 2