massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / Pillow / PIL / BlpImagePlugin.pyi
1 from typing import Any
2
3 from .ImageFile import ImageFile, PyDecoder
4
5 BLP_FORMAT_JPEG: int
6 BLP_ENCODING_UNCOMPRESSED: int
7 BLP_ENCODING_DXT: int
8 BLP_ENCODING_UNCOMPRESSED_RAW_BGRA: int
9 BLP_ALPHA_ENCODING_DXT1: int
10 BLP_ALPHA_ENCODING_DXT3: int
11 BLP_ALPHA_ENCODING_DXT5: int
12
13 def unpack_565(i): ...
14 def decode_dxt1(data, alpha: bool = ...): ...
15 def decode_dxt3(data): ...
16 def decode_dxt5(data): ...
17
18 class BLPFormatError(NotImplementedError): ...
19
20 class BlpImageFile(ImageFile):
21     format: str
22     format_description: str
23
24 class _BLPBaseDecoder(PyDecoder):
25     magic: Any
26     def decode(self, buffer): ...
27
28 class BLP1Decoder(_BLPBaseDecoder): ...
29 class BLP2Decoder(_BLPBaseDecoder): ...