Override to perform the decoding process. :param buffer: A bytes object with the data to be decoded. :returns: A tuple of ``(bytes consumed, errcode)``. If finished with decoding return -1 for the bytes consumed. Err codes are from :data:`.ImageFile.
(self, buffer: Image.DecoderInput)
| 837 | return self._pulls_fd |
| 838 | |
| 839 | def decode(self, buffer: Image.DecoderInput) -> tuple[int, int]: |
| 840 | """ |
| 841 | Override to perform the decoding process. |
| 842 | |
| 843 | :param buffer: A bytes object with the data to be decoded. |
| 844 | :returns: A tuple of ``(bytes consumed, errcode)``. |
| 845 | If finished with decoding return -1 for the bytes consumed. |
| 846 | Err codes are from :data:`.ImageFile.ERRORS`. |
| 847 | """ |
| 848 | msg = "unavailable in base decoder" |
| 849 | raise NotImplementedError(msg) |
| 850 | |
| 851 | def set_as_raw( |
| 852 | self, |
no outgoing calls