Lines Matching defs:info
74 SkCodec::Result SkSampledCodec::onGetAndroidPixels(const SkImageInfo& info, void* pixels,
78 if (this->codec()->dimensionsSupported(info.dimensions())) {
79 return this->codec()->getPixels(info, pixels, rowBytes, &options);
83 return this->sampledDecode(info, pixels, rowBytes, options);
91 return this->sampledDecode(info, pixels, rowBytes, options);
97 int scaledSubsetWidth = info.width();
98 int scaledSubsetHeight = info.height();
100 const SkImageInfo scaledInfo = info.makeDimensions(scaledSize);
150 this->codec()->fillIncompleteImage(info, pixels, rowBytes, options.fZeroInitialized,
163 SkCodec::Result SkSampledCodec::sampledDecode(const SkImageInfo& info, void* pixels,
200 const int sampleX = subsetWidth / info.width();
201 const int sampleY = subsetHeight / info.height();
205 const int dstHeight = info.height();
207 const SkImageInfo nativeInfo = info.makeDimensions(nativeSize);
230 if (sampler->setSampleX(sampleX) != info.width()) {
233 if (get_scaled_dimension(subsetHeight, sampleY) != info.height()) {
246 SkASSERT(rowsDecoded <= info.height());
247 this->codec()->fillIncompleteImage(info, pixels, rowBytes, options.fZeroInitialized,
248 info.height(), rowsDecoded);
276 if (sampler->setSampleX(sampleX) != info.width()) {
279 if (get_scaled_dimension(subsetHeight, sampleY) != info.height()) {
286 this->codec()->fillIncompleteImage(info, pixels, rowBytes, options.fZeroInitialized,
293 this->codec()->fillIncompleteImage(info, pixels, rowBytes,
299 this->codec()->fillIncompleteImage(info, pixels, rowBytes,
333 const SkImageInfo fillInfo = info.makeWH(info.width(), 1);