Lines Matching refs:subset
157 SkIRect subset = SkIRect::MakeLTRB(0, y, info.width(),
160 options.fSubset = ⊂
164 subset.top(), subset.bottom());
305 // support subset decodes - png and jpeg (once SkJpegCodec is
357 SkIRect subset = SkIRect::MakeXYWH(2 * (width / 3), 0, width / 3, height);
358 options.fSubset = ⊂
383 // meaningful subset.
389 SkIRect subset;
391 opts.fSubset = ⊂
393 subset = generate_random_subset(&rand, size.width(), size.height());
394 SkASSERT(!subset.isEmpty());
395 const bool supported = codec->getValidSubset(&subset);
398 SkImageInfo subsetInfo = info.makeDimensions(subset.size());
407 // Webp is the only codec that supports subsets, and it will have modified the subset
409 REPORTER_ASSERT(r, SkIsAlign2(subset.fLeft) && SkIsAlign2(subset.fTop));
1045 // Now perform a subset decode.
1048 SkIRect subset = SkIRect::MakeWH(100, 100);
1049 opts.fSubset = ⊂
1052 // Though we only have half the data, it is enough to decode this subset.
1056 // Perform another full image decode. ASAN will detect if we look at the subset when it is
1059 // used to look at the old subset.
1072 SkIRect subset = SkIRect::MakeWH(subsetWidth, subsetHeight);
1073 opts.fSubset = ⊂
1644 sk_sp<SkData> subset = SkData::MakeSubset(data.get(), 0, truncatedSize);
1645 std::unique_ptr<SkCodec> codec = SkCodec::MakeFromData(std::move(subset));