Home
last modified time | relevance | path

Searched refs:fSubset (Results 1 – 25 of 33) sorted by relevance

12

/external/skia/src/pdf/
DSkBitmapKey.h15 SkIRect fSubset; member
18 return fID == rhs.fID && fSubset == rhs.fSubset;
31 fSubset = {0, 0, 0, 0}; in fImage()
37 fSubset = fImage->bounds(); in fImage()
39 SkASSERT(!fSubset.isEmpty()); in fImage()
41 fSubset = subset; in fImage()
42 if (!fSubset.intersect(fImage->bounds())) { in fImage()
44 fSubset = {0, 0, 0, 0}; in fImage()
56 SkISize dimensions() const { return fSubset.size(); } in dimensions()
59 return fSubset == fImage->bounds() ? fImage : fImage->makeSubset(fSubset); in makeImage()
[all …]
/external/skia/src/codec/
DSkCodec.cpp202 } else if (options->fSubset) { in getPixels()
203 SkIRect subset(*options->fSubset); in getPixels()
204 if (!this->onGetValidSubset(&subset) || subset != *options->fSubset) { in getPixels()
241 fOptions.fSubset = nullptr; in getPixels()
280 } else if (options->fSubset) { in startIncrementalDecode()
282 if (!size.contains(*options->fSubset)) { in startIncrementalDecode()
286 const int top = options->fSubset->top(); in startIncrementalDecode()
287 const int bottom = options->fSubset->bottom(); in startIncrementalDecode()
333 } else if (options->fSubset) { in startScanlineDecode()
335 if (!size.contains(*options->fSubset)) { in startScanlineDecode()
[all …]
DSkWebpAdapterCodec.cpp31 if (!options.fSubset) { in onGetAndroidPixels()
34 supportedSize = this->getSampledSubsetDimensions(options.fSampleSize, *options.fSubset); in onGetAndroidPixels()
42 codecOptions.fSubset = options.fSubset; in onGetAndroidPixels()
DSkSampledCodec.cpp80 SkIRect* subset = options.fSubset; in onGetAndroidPixels()
113 codecOptions.fSubset = &incrementalSubset; in onGetAndroidPixels()
140 codecOptions.fSubset = &scanlineSubset; in onGetAndroidPixels()
187 if (options.fSubset) { in sampledDecode()
191 const SkIRect* subsetPtr = options.fSubset; in sampledDecode()
204 sampledOptions.fSubset = ⊂ in sampledDecode()
225 if (sampledOptions.fSubset) { in sampledDecode()
228 incrementalSubset.fLeft = sampledOptions.fSubset->fLeft; in sampledDecode()
229 incrementalSubset.fRight = sampledOptions.fSubset->fRight; in sampledDecode()
230 incrementalOptions.fSubset = &incrementalSubset; in sampledDecode()
DSkJpegCodec.cpp504 int dstWidth = opts.fSubset ? opts.fSubset->width() : dstInfo.width(); in readRows()
571 if (options.fSubset) { in onGetPixels()
652 if (options.fSubset) { in initializeSwizzler()
656 SkASSERT(!fSwizzlerSubset.isEmpty() && fSwizzlerSubset.x() <= options.fSubset->x() && in initializeSwizzler()
657 fSwizzlerSubset.width() == options.fSubset->width()); in initializeSwizzler()
658 swizzlerOptions.fSubset = &fSwizzlerSubset; in initializeSwizzler()
709 if (options.fSubset) { in onStartScanlineDecode()
710 uint32_t startX = options.fSubset->x(); in onStartScanlineDecode()
711 uint32_t width = options.fSubset->width(); in onStartScanlineDecode()
720 SkASSERT(startX <= (uint32_t) options.fSubset->x()); in onStartScanlineDecode()
[all …]
DSkRawAdapterCodec.cpp26 codecOptions.fSubset = options.fSubset; in onGetAndroidPixels()
DSkAndroidCodec.cpp267 } else if (options->fSubset) { in getAndroidPixels()
268 if (!is_valid_subset(*options->fSubset, fInfo.dimensions())) { in getAndroidPixels()
272 if (SkIRect::MakeSize(fInfo.dimensions()) == *options->fSubset) { in getAndroidPixels()
277 defaultOptions.fSubset = nullptr; in getAndroidPixels()
DSkWebpCodec.cpp231 if (options.fSubset) { in onGetPixels()
232 SkIRect subset = *options.fSubset; in onGetPixels()
235 SkASSERT(this->getValidSubset(&subset) && subset == *options.fSubset); in onGetPixels()
268 SkISize srcSize = options.fSubset ? options.fSubset->size() : this->getInfo().dimensions(); in onGetPixels()
DSkWbmpCodec.cpp127 if (options.fSubset) { in onGetPixels()
193 if (options.fSubset) { in onStartScanlineDecode()
DSkPngCodec.cpp1021 if (skipFormatConversion && !options.fSubset) { in initializeXforms()
1124 if (options.fSubset) { in onGetPixels()
1145 if (options.fSubset) { in onStartIncrementalDecode()
1146 firstRow = options.fSubset->top(); in onStartIncrementalDecode()
1147 lastRow = options.fSubset->bottom() - 1; in onStartIncrementalDecode()
DSkBmpMaskCodec.cpp33 if (opts.fSubset) { in onGetPixels()
DSkBmpRLECodec.cpp40 if (opts.fSubset) { in onGetPixels()
246 if (options.fSubset) { in onPrepareToDecode()
DSkMaskSwizzler.cpp524 if (options.fSubset) { in CreateMaskSwizzler()
525 srcOffset = options.fSubset->left(); in CreateMaskSwizzler()
526 srcWidth = options.fSubset->width(); in CreateMaskSwizzler()
/external/skia/src/core/
DSkBitmapCache.h25 SkIRect fSubset; // always set to a valid rect (entire or subset) member
32 SkASSERT(fSubset.fLeft >= 0 && fSubset.fTop >= 0); in validate()
33 SkASSERT(fSubset.width() > 0 && fSubset.height() > 0); in validate()
DSkSpecialSurface.h36 int width() const { return fSubset.width(); } in width()
37 int height() const { return fSubset.height(); } in height()
89 const SkIRect& subset() const { return fSubset; } in subset()
93 const SkIRect fSubset; variable
DSkBitmapCache.cpp107 fDesc.fSubset.x(), fDesc.fSubset.y(), fDesc.fSubset.width(), fDesc.fSubset.height()); in dump()
175 , fSubset(subset) in MipMapKey()
180 sizeof(fImageID) + sizeof(fColorMode) + sizeof(fSubset)); in MipMapKey()
185 SkIRect fSubset; member
233 MipMapKey key(desc.fImageID, desc.fSubset, colorMode); in FindAndRef()
DSkSpecialImage.h53 int width() const { return fSubset.width(); } in width()
54 int height() const { return fSubset.height(); } in height()
55 const SkIRect& subset() const { return fSubset; } in subset()
155 const SkIRect fSubset; variable
DSkSpecialSurface.cpp46 , fSubset(subset) { in SkSpecialSurface()
47 SkASSERT(fSubset.width() > 0); in SkSpecialSurface()
48 SkASSERT(fSubset.height() > 0); in SkSpecialSurface()
/external/skia/tests/
DSubsetPath.cpp13 , fSubset(1) { in SubsetPath()
17 int leadingZero = SkCLZ(fSubset); in range()
19 int partIndex = fSubset - parts; in range()
37 ++fSubset; in subset()
DSubsetPath.h47 int fSubset; variable
/external/skia/bench/
DBitmapRegionDecoderBench.cpp19 , fSubset(subset) in BitmapRegionDecoderBench()
45 SkAssertResult(fBRD->decodeRegion(&bm, nullptr, fSubset, fSampleSize, fColorType, false)); in onDraw()
DBitmapRegionDecoderBench.h42 const SkIRect fSubset; variable
/external/skia/include/codec/
DSkAndroidCodec.h156 , fSubset(nullptr) in AndroidOptions()
179 SkIRect* fSubset; member
DSkCodec.h249 , fSubset(nullptr) in Options()
273 const SkIRect* fSubset; member
/external/skia/src/android/
DSkBitmapRegionCodec.cpp114 options.fSubset = &subset; in decodeRegion()

12