Lines Matching defs:which

48 // performance by some fixed amount (independent of the image size), which can
71 // Try to re-position the io_buffer's meta.ri read-index first, which is
207 // TODO: delete this enum and all of the "which" function arguments. The
250 Result seekFrame(WhichDecoder which, int frameIndex);
251 Result resetDecoder(WhichDecoder which);
252 const char* decodeFrameConfig(WhichDecoder which);
253 const char* decodeFrame(WhichDecoder which);
254 void updateNumFullyReceivedFrames(WhichDecoder which);
284 // If calling an fDecoders[which] method returns an incomplete status, then
285 // fDecoders[which] is suspended in a coroutine (i.e. waiting on I/O or
291 // If fDecoderIsSuspended[which], and we aren't sure that we're going to
293 // before calling other fDecoders[which] methods.
682 // Currently, this is only used for GIF, which will never have an ICC profile. When it is
720 // the page, which can be much longer than when the pixels are fully
836 SkCodec::Result SkWuffsCodec::seekFrame(WhichDecoder which, int frameIndex) {
837 if (fDecoderIsSuspended[which]) {
838 SkCodec::Result res = this->resetDecoder(which);
859 fDecoders[which]->restart_frame(frameIndex, fIOBuffer.reader_io_position());
866 SkCodec::Result SkWuffsCodec::resetDecoder(WhichDecoder which) {
873 reset_and_decode_image_config(fDecoders[which].get(), nullptr, &fIOBuffer, fStream.get());
880 fDecoderIsSuspended[which] = false;
884 const char* SkWuffsCodec::decodeFrameConfig(WhichDecoder which) {
887 fDecoders[which]->decode_frame_config(&fFrameConfigs[which], &fIOBuffer);
892 fDecoderIsSuspended[which] = !status.is_complete();
893 this->updateNumFullyReceivedFrames(which);
898 const char* SkWuffsCodec::decodeFrame(WhichDecoder which) {
900 wuffs_base__status status = fDecoders[which]->decode_frame(
907 fDecoderIsSuspended[which] = !status.is_complete();
908 this->updateNumFullyReceivedFrames(which);
913 void SkWuffsCodec::updateNumFullyReceivedFrames(WhichDecoder which) {
917 uint64_t n = fDecoders[which]->num_decoded_frames();
948 // Thus, we don't use C++'s new operator (which requires knowing the sizeof