papermario/tools/splat/stubs/png.pyi
Ethan Roseman 3315d6010f
Splat refactor (#257)
* all non-world rodata migrated

* data disasm

* kinda working

* updated yaml

* bloop

* linker header

* configure 2.0

* bin

* mass rename to remove code_

* pause rename

* battle partner stuff

* whew

* more renames

* more renames

* more renaming

* it builds!

* updates

* remove main prefix

* one more thing

* crc, yay0

* .data, .rodata, .bss

* img

* dead_atan2

* it buildsgit add -A

* split battle/partner/6FAD10

* rm &s on sleepy_sheep syms

* sha1sum ninja rule description

* OK but commented out PaperMarioMapFS and PaperMarioNpcSprites

* uncomment

* fix mapfs

* match func_8003CFB4

* .

* clean up and name npc_iter_no_op

* npc.c

* enable cc warnings

* name npc_find_near

* use singular options.asset_path

* smores

* cc_dsl only when needed

* kinda fix configure for splat refactor2

* ok!

* new msg format

* remove old msg format docs

* slight bug fixes, splat adjustment

* git subrepo pull (merge) --force tools/splat

subrepo:
  subdir:   "tools/splat"
  merged:   "cfc140bb76"
upstream:
  origin:   "https://github.com/ethteck/splat.git"
  branch:   "master"
  commit:   "cfc140bb76"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

* git subrepo pull (merge) --force tools/splat

subrepo:
  subdir:   "tools/splat"
  merged:   "85349befcd"
upstream:
  origin:   "https://github.com/ethteck/splat.git"
  branch:   "master"
  commit:   "85349befcd"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

* Update symbol addrs

* git subrepo pull tools/splat

subrepo:
  subdir:   "tools/splat"
  merged:   "a44631e194"
upstream:
  origin:   "https://github.com/ethteck/splat.git"
  branch:   "master"
  commit:   "a44631e194"
git-subrepo:
  version:  "0.4.3"
  origin:   "https://github.com/ingydotnet/git-subrepo"
  commit:   "2f68596"

Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 16:47:52 +09:00

73 lines
2.9 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): ...