massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / Pillow / PIL / PngImagePlugin.pyi
1 from typing import Any
2
3 from ._binary import o8 as o8
4 from .ImageFile import ImageFile
5
6 logger: Any
7 is_cid: Any
8 MAX_TEXT_CHUNK: Any
9 MAX_TEXT_MEMORY: Any
10 APNG_DISPOSE_OP_NONE: int
11 APNG_DISPOSE_OP_BACKGROUND: int
12 APNG_DISPOSE_OP_PREVIOUS: int
13 APNG_BLEND_OP_SOURCE: int
14 APNG_BLEND_OP_OVER: int
15
16 class ChunkStream:
17     fp: Any
18     queue: Any
19     def __init__(self, fp) -> None: ...
20     def read(self): ...
21     def __enter__(self): ...
22     def __exit__(self, *args) -> None: ...
23     def close(self) -> None: ...
24     def push(self, cid, pos, length) -> None: ...
25     def call(self, cid, pos, length): ...
26     def crc(self, cid, data) -> None: ...
27     def crc_skip(self, cid, data) -> None: ...
28     def verify(self, endchunk: bytes = ...): ...
29
30 class iTXt(str):
31     lang: Any
32     tkey: Any
33     @staticmethod
34     def __new__(cls, text, lang: Any | None = ..., tkey: Any | None = ...): ...
35
36 class PngInfo:
37     chunks: Any
38     def __init__(self) -> None: ...
39     def add(self, cid, data, after_idat: bool = ...) -> None: ...
40     def add_itxt(self, key, value, lang: str = ..., tkey: str = ..., zip: bool = ...) -> None: ...
41     def add_text(self, key, value, zip: bool = ...): ...
42
43 class PngStream(ChunkStream):
44     im_info: Any
45     im_text: Any
46     im_size: Any
47     im_mode: Any
48     im_tile: Any
49     im_palette: Any
50     im_custom_mimetype: Any
51     im_n_frames: Any
52     rewind_state: Any
53     text_memory: int
54     def __init__(self, fp) -> None: ...
55     def check_text_memory(self, chunklen) -> None: ...
56     def save_rewind(self) -> None: ...
57     def rewind(self) -> None: ...
58     def chunk_iCCP(self, pos, length): ...
59     def chunk_IHDR(self, pos, length): ...
60     im_idat: Any
61     def chunk_IDAT(self, pos, length) -> None: ...
62     def chunk_IEND(self, pos, length) -> None: ...
63     def chunk_PLTE(self, pos, length): ...
64     def chunk_tRNS(self, pos, length): ...
65     def chunk_gAMA(self, pos, length): ...
66     def chunk_cHRM(self, pos, length): ...
67     def chunk_sRGB(self, pos, length): ...
68     def chunk_pHYs(self, pos, length): ...
69     def chunk_tEXt(self, pos, length): ...
70     def chunk_zTXt(self, pos, length): ...
71     def chunk_iTXt(self, pos, length): ...
72     def chunk_eXIf(self, pos, length): ...
73     def chunk_acTL(self, pos, length): ...
74     def chunk_fcTL(self, pos, length): ...
75     def chunk_fdAT(self, pos, length): ...
76
77 class PngImageFile(ImageFile):
78     format: str
79     format_description: str
80     @property
81     def text(self): ...
82     fp: Any
83     def verify(self) -> None: ...
84     def seek(self, frame) -> None: ...
85     def tell(self): ...
86     decoderconfig: Any
87     def load_prepare(self) -> None: ...
88     def load_read(self, read_bytes): ...
89     png: Any
90     im: Any
91     pyaccess: Any
92     def load_end(self) -> None: ...
93     def getexif(self): ...
94
95 def putchunk(fp, cid, *data) -> None: ...
96
97 class _idat:
98     fp: Any
99     chunk: Any
100     def __init__(self, fp, chunk) -> None: ...
101     def write(self, data) -> None: ...
102
103 class _fdat:
104     fp: Any
105     chunk: Any
106     seq_num: Any
107     def __init__(self, fp, chunk, seq_num) -> None: ...
108     def write(self, data) -> None: ...
109
110 def getchunks(im, **params): ...