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

12

/external/skia/src/pdf/
H A DSkBitmapKey.h15 SkIRect fSubset; member in struct:SkBitmapKey
18 return fID == rhs.fID && fSubset == rhs.fSubset;
31 fSubset = {0, 0, 0, 0};
37 fSubset = fImage->bounds();
39 SkASSERT(!fSubset.isEmpty());
41 fSubset = subset;
42 if (!fSubset.intersect(fImage->bounds())) {
44 fSubset = {0, 0, 0, 0};
56 SkISize dimensions() const { return fSubset
72 SkIRect fSubset; member in class:SkImageSubset
[all...]
/external/skia/src/codec/
H A DSkWebpAdapterCodec.cpp31 if (!options.fSubset) {
34 supportedSize = this->getSampledSubsetDimensions(options.fSampleSize, *options.fSubset);
42 codecOptions.fSubset = options.fSubset;
H A DSkRawAdapterCodec.cpp26 codecOptions.fSubset = options.fSubset;
H A DSkCodec.cpp202 } else if (options->fSubset) {
203 SkIRect subset(*options->fSubset);
204 if (!this->onGetValidSubset(&subset) || subset != *options->fSubset) {
241 fOptions.fSubset = nullptr;
280 } else if (options->fSubset) {
282 if (!size.contains(*options->fSubset)) {
286 const int top = options->fSubset->top();
287 const int bottom = options->fSubset->bottom();
333 } else if (options->fSubset) {
335 if (!size.contains(*options->fSubset)) {
[all...]
H A DSkSampledCodec.cpp80 SkIRect* subset = options.fSubset;
113 codecOptions.fSubset = &incrementalSubset;
133 // codecOptions.fSubset will be reset below, so it will not continue to
140 codecOptions.fSubset = &scanlineSubset;
187 if (options.fSubset) {
191 const SkIRect* subsetPtr = options.fSubset;
204 sampledOptions.fSubset = ⊂
225 if (sampledOptions.fSubset) {
228 incrementalSubset.fLeft = sampledOptions.fSubset->fLeft;
229 incrementalSubset.fRight = sampledOptions.fSubset
[all...]
H A DSkJpegCodec.cpp504 int dstWidth = opts.fSubset ? opts.fSubset->width() : dstInfo.width();
571 if (options.fSubset) {
652 if (options.fSubset) {
656 SkASSERT(!fSwizzlerSubset.isEmpty() && fSwizzlerSubset.x() <= options.fSubset->x() &&
657 fSwizzlerSubset.width() == options.fSubset->width());
658 swizzlerOptions.fSubset = &fSwizzlerSubset;
709 if (options.fSubset) {
710 uint32_t startX = options.fSubset->x();
711 uint32_t width = options.fSubset
[all...]
H A DSkAndroidCodec.cpp267 } else if (options->fSubset) {
268 if (!is_valid_subset(*options->fSubset, fInfo.dimensions())) {
272 if (SkIRect::MakeSize(fInfo.dimensions()) == *options->fSubset) {
277 defaultOptions.fSubset = nullptr;
H A DSkWebpCodec.cpp231 if (options.fSubset) {
232 SkIRect subset = *options.fSubset;
235 SkASSERT(this->getValidSubset(&subset) && subset == *options.fSubset);
268 SkISize srcSize = options.fSubset ? options.fSubset->size() : this->getInfo().dimensions();
H A DSkBmpMaskCodec.cpp33 if (opts.fSubset) {
H A DSkWbmpCodec.cpp127 if (options.fSubset) {
193 if (options.fSubset) {
H A DSkPngCodec.cpp1021 if (skipFormatConversion && !options.fSubset) {
1124 if (options.fSubset) {
1145 if (options.fSubset) {
1146 firstRow = options.fSubset->top();
1147 lastRow = options.fSubset->bottom() - 1;
H A DSkBmpRLECodec.cpp40 if (opts.fSubset) {
246 if (options.fSubset) {
/external/skia/src/core/
H A DSkSpecialSurface.h36 int width() const { return fSubset.width(); }
37 int height() const { return fSubset.height(); }
89 const SkIRect& subset() const { return fSubset; }
93 const SkIRect fSubset; member in class:SkSpecialSurface
H A DSkBitmapCache.h25 SkIRect fSubset; // always set to a valid rect (entire or subset) member in struct:SkBitmapCacheDesc
32 SkASSERT(fSubset.fLeft >= 0 && fSubset.fTop >= 0);
33 SkASSERT(fSubset.width() > 0 && fSubset.height() > 0);
H A DSkSpecialImage.h53 int width() const { return fSubset.width(); }
54 int height() const { return fSubset.height(); }
55 const SkIRect& subset() const { return fSubset; }
155 const SkIRect fSubset; member in class:SkSpecialImage
H A DSkBitmapCache.cpp107 fDesc.fSubset.x(), fDesc.fSubset.y(), fDesc.fSubset.width(), fDesc.fSubset.height());
175 , fSubset(subset)
180 sizeof(fImageID) + sizeof(fColorMode) + sizeof(fSubset));
185 SkIRect fSubset; member in struct:__anon16931::MipMapKey
233 MipMapKey key(desc.fImageID, desc.fSubset, colorMode);
H A DSkSpecialSurface.cpp46 , fSubset(subset) {
47 SkASSERT(fSubset.width() > 0);
48 SkASSERT(fSubset.height() > 0);
/external/skia/bench/
H A DBitmapRegionDecoderBench.cpp19 , fSubset(subset)
45 SkAssertResult(fBRD->decodeRegion(&bm, nullptr, fSubset, fSampleSize, fColorType, false));
H A DBitmapRegionDecoderBench.h42 const SkIRect fSubset; member in class:BitmapRegionDecoderBench
/external/skia/tests/
H A DSubsetPath.h47 int fSubset; member in class:SubsetPath
H A DSubsetPath.cpp13 , fSubset(1) {
17 int leadingZero = SkCLZ(fSubset);
19 int partIndex = fSubset - parts;
37 ++fSubset;
39 // SkDebugf("%d s=%d e=%d t=%d\n", fSubset, start, end, fTries);
H A DCodecTest.cpp136 options.fSubset = &subset;
352 options.fSubset = &subset;
380 opts.fSubset = &subset;
1040 opts.fSubset = &subset;
1051 opts.fSubset = nullptr;
1064 opts.fSubset = &subset;
/external/skia/include/codec/
H A DSkAndroidCodec.h156 , fSubset(nullptr)
179 SkIRect* fSubset; member in struct:SkAndroidCodec::AndroidOptions
236 * using options->fSampleSize and options->fSubset. If NULL, the defaults (as specified above
H A DSkCodec.h249 , fSubset(nullptr)
263 * exact rectangular subset specified by fSubset.
273 const SkIRect* fSubset; member in struct:SkCodec::Options
/external/skia/src/android/
H A DSkBitmapRegionCodec.cpp114 options.fSubset = &subset;

Completed in 297 milliseconds

12