mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 17:02:46 +01:00
179998098c
* some btl_state work * msg_draw_speech_bubble * cleaners * btl_state_stuff * btl_state_update_next_enemy wip * btl_state stuff * disable_x fx + cleanup * wip * fxstuff * path funcs & cleanup * clean * model_api funcs * two action commands * action_cmd progress * UnkFunc001 * air raid func * cleanup, data migration, goodies * remove data file * git subrepo pull --force tools/splat subrepo: subdir: "tools/splat" merged: "a847090eac" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a847090eac" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * fix build * more cleanup * clean * PR comments
101 lines
3.1 KiB
Python
101 lines
3.1 KiB
Python
from collections import namedtuple
|
|
from typing import Any, Optional
|
|
|
|
Resolution = namedtuple("Resolution", "x y unit_is_meter")
|
|
|
|
class Error(Exception): ...
|
|
class FormatError(Error): ...
|
|
class ProtocolError(Error): ...
|
|
class ChunkError(FormatError): ...
|
|
class Default: ...
|
|
|
|
class Writer:
|
|
width: Any = ...
|
|
height: Any = ...
|
|
transparent: Any = ...
|
|
background: Any = ...
|
|
gamma: Any = ...
|
|
greyscale: Any = ...
|
|
alpha: Any = ...
|
|
colormap: Any = ...
|
|
bitdepth: Any = ...
|
|
compression: Any = ...
|
|
chunk_limit: Any = ...
|
|
interlace: Any = ...
|
|
palette: Any = ...
|
|
x_pixels_per_unit: Any = ...
|
|
y_pixels_per_unit: Any = ...
|
|
unit_is_meter: Any = ...
|
|
color_type: Any = ...
|
|
color_planes: Any = ...
|
|
planes: Any = ...
|
|
psize: Any = ...
|
|
def __init__(
|
|
self,
|
|
width: Optional[Any] = ...,
|
|
height: Optional[Any] = ...,
|
|
size: Optional[Any] = ...,
|
|
greyscale: Any = ...,
|
|
alpha: bool = ...,
|
|
bitdepth: int = ...,
|
|
palette: Optional[Any] = ...,
|
|
transparent: Optional[Any] = ...,
|
|
background: Optional[Any] = ...,
|
|
gamma: Optional[Any] = ...,
|
|
compression: Optional[Any] = ...,
|
|
interlace: bool = ...,
|
|
planes: Optional[Any] = ...,
|
|
colormap: Optional[Any] = ...,
|
|
maxval: Optional[Any] = ...,
|
|
chunk_limit: Any = ...,
|
|
x_pixels_per_unit: Optional[Any] = ...,
|
|
y_pixels_per_unit: Optional[Any] = ...,
|
|
unit_is_meter: bool = ...,
|
|
) -> None: ...
|
|
def write(self, outfile: Any, rows: Any): ...
|
|
def write_passes(self, outfile: Any, rows: Any): ...
|
|
def write_packed(self, outfile: Any, rows: Any): ...
|
|
def write_preamble(self, outfile: Any) -> None: ...
|
|
def write_array(self, outfile: Any, pixels: Any) -> None: ...
|
|
def array_scanlines(self, pixels: Any) -> None: ...
|
|
def array_scanlines_interlace(self, pixels: Any) -> None: ...
|
|
|
|
def write_chunks(out: Any, chunks: Any) -> None: ...
|
|
def from_array(a: Any, mode: Optional[Any] = ..., info: Any = ...): ...
|
|
|
|
fromarray = from_array
|
|
|
|
class Image:
|
|
rows: Any = ...
|
|
info: Any = ...
|
|
def __init__(self, rows: Any, info: Any) -> None: ...
|
|
def save(self, file: Any) -> None: ...
|
|
def write(self, file: Any) -> None: ...
|
|
|
|
class Reader:
|
|
signature: Any = ...
|
|
transparent: Any = ...
|
|
atchunk: Any = ...
|
|
file: Any = ...
|
|
def __init__(
|
|
self,
|
|
_guess: Optional[Any] = ...,
|
|
filename: Optional[Any] = ...,
|
|
file: Optional[Any] = ...,
|
|
bytes: Optional[Any] = ...,
|
|
) -> None: ...
|
|
def chunk(self, lenient: bool = ...): ...
|
|
def chunks(self) -> None: ...
|
|
def undo_filter(self, filter_type: Any, scanline: Any, previous: Any): ...
|
|
def validate_signature(self) -> None: ...
|
|
def preamble(self, lenient: bool = ...) -> None: ...
|
|
def process_chunk(self, lenient: bool = ...) -> None: ...
|
|
def read(self, lenient: bool = ...): ...
|
|
def read_flat(self): ...
|
|
def palette(self, alpha: str = ...): ...
|
|
def asDirect(self): ...
|
|
def asRGB8(self): ...
|
|
def asRGBA8(self): ...
|
|
def asRGB(self): ...
|
|
def asRGBA(self): ...
|