Lines Matching refs:this
4 * Use of this source code is governed by a BSD-style license that can be
48 * An SkStream passed to NewFromStream must be able to use this many
53 * this many bytes, or by implementing rewind() to be able to rewind()
54 * after reading this many bytes.
96 * Fulfilling this request requires rewinding the input, which is not
97 * supported for this input.
105 * This method is not implemented by this codec.
106 * FIXME: Perhaps this should be kUnsupported?
135 * If this stream represents an encoded image that we know how to decode,
138 * As stated above, this call must be able to peek or read
142 * zero) are returned, this is because the stream is shorter than this,
144 * returns zero bytes, this call will instead attempt to read(). This
160 * chunk, this could result in a failure to create the codec or a
174 * If this data represents an encoded image that we know how to decode,
184 * chunk, this could result in a failure to create the codec or a
210 return this->getEncodedInfo().profile();
236 return this->dimensions();
238 return this->onGetScaledDimensions(desiredScale);
242 * Return (via desiredSubset) a subset which can decoded from this codec,
243 * or false if this codec cannot decode subsets or anything similar to
253 * @return true if this codec supports decoding desiredSubset (as
257 return this->onGetValidSubset(desiredSubset);
263 SkEncodedImageFormat getEncodedFormat() const { return this->onGetEncodedFormat(); }
271 * may take advantage of this by skipping writing zeroes.
322 * If not kNoFrame, the dst already contains the prior frame at this index.
327 * getFrameInfo[fFrameIndex].fRequiredFrame), the client can set this to
330 * is ignored in this case.
342 * Repeated calls to this function should give the same results,
354 * to scale. If the generator cannot perform this scale,
378 return this->getPixels(info, pixels, rowBytes, nullptr);
382 return this->getPixels(pm.info(), pm.writable_addr(), pm.rowBytes(), opts);
393 * If decoding to YUV is supported, this returns true. Otherwise, this
398 * YUV(A), but not as a type in supportedDataTypes, this method
425 * those of getInfo, this implies a scale.
436 return this->startIncrementalDecode(dstInfo, dst, rowBytes, nullptr);
448 * Unlike getPixels and getScanlines, this does not do any filling. This is
454 * lines initialized. Only meaningful if this method returns kIncompleteInput.
456 * Note that some implementations may have initialized this many rows, but
466 return this->onIncrementalDecode(rowsDecoded);
476 * After this call, this class will be ready to decode the first scanline.
482 * Not all SkCodecs support this.
485 * those of getInfo, this implies a scale.
496 return this->startScanlineDecode(dstInfo, nullptr);
508 * a scanline based on the SkImageInfo used to create this object.
509 * @return the number of lines successfully decoded. If this value is
510 * less than countLines, this will fill the remaining lines with a
521 * NOTE: If skipped lines are the only lines with alpha, this default
528 * Calling this function before calling startScanlineDecode().
541 * By far the most common, this indicates that the image can be decoded
552 * to take advantage of this, given that it's not too tough to keep
561 * possible to ask for larger chunks at a time, but this should be used
577 SkScanlineOrder getScanlineOrder() const { return this->onGetScanlineOrder(); }
588 int nextScanline() const { return this->outputScanline(fCurrScanline); }
606 return this->onGetFrameCount();
610 // - FrameInfo::fRequiredFrame set to this value means the frame
612 // - Options::fPriorFrame set to this value means no (relevant) prior frame
626 * The frame that this frame needs to be blended with, or
627 * kNoFrame if this frame is independent (so it can be
630 * Note that this is the *earliest* frame that can be used
637 * Number of milliseconds to show this frame.
642 * Whether the end marker for this frame is contained in the stream.
644 * Note: this does not guarantee that an attempt to decode will be complete.
666 * How this frame should be modified before decoding the next one.
671 * How this frame should blend with the prior frame.
676 * The rectangle updated by this frame.
695 return this->onGetFrameInfo(index, info);
706 * For still (non-animated) image codecs, this will return an empty vector.
713 * Return the number of times to repeat, if this image is animated. This number does not
724 * For still (non-animated) image codecs, this will return 0.
727 return this->onGetRepetitionCount();
752 return this->dimensions();
767 * @param rowsDecoded When the encoded image stream is incomplete, this function
819 * Most images types will be kTopDown and will not need to override this function.
907 return dim == this->dimensions() || this->onDimensionsSupported(dim);
920 * If androidCodec is not null, that means this SkCodec is owned by an SkAndroidCodec. In that
950 * On an incomplete decode, getPixels() and getScanlines() will call this function
956 * The height stored in this info is unused