Lines Matching defs:self
52 def __str__(self): argument
74 def __init__(self, ncolors=256, dither=True, exec_path="") -> None: argument
79 def convert(self, filename) -> bytes: argument
126 def bpp(self) -> int: argument
151 def ncolors(self) -> int: argument
166 def is_indexed(self) -> bool: argument
173 def is_alpha_only(self) -> bool: argument
177 def has_alpha(self) -> bool: argument
185 def is_colormap(self) -> bool: argument
191 def is_luma_only(self) -> bool: argument
390 def __init__(self, argument
409 def stride_align(self, align: int) -> int: argument
423 def stride_default(self) -> int: argument
427 def binary(self) -> bytearray: argument
440 def from_binary(self, data: bytes): argument
456 def __init__(self, argument
466 def _compress(self, raw_data: bytes) -> bytearray: argument
493 def __init__(self, argument
503 def __repr__(self) -> str: argument
509 def adjust_stride(self, stride: int = 0, align: int = 1): argument
576 def premultiply(self): argument
668 def data_len(self) -> int: argument
682 def header(self) -> bytearray: argument
686 def is_indexed(self): argument
689 def set_data(self, argument
718 def from_data(self, data: bytes): argument
723 def from_bin(self, filename: str): argument
735 def _check_ext(self, filename: str, ext): argument
739 def _check_dir(self, filename: str): argument
745 def to_bin(self, argument
773 def to_c_array(self, argument
787 def to_png(self, filename: str): argument
839 def from_png(self, argument
875 def _png_to_indexed(self, cf: ColorFormat, filename: str): argument
928 def _png_to_alpha_only(self, cf: ColorFormat, filename: str): argument
949 def sRGB_to_linear(self, x): argument
954 def linear_to_sRGB(self, y): argument
959 def _png_to_luma_only(self, cf: ColorFormat, filename: str): argument
978 def _png_to_colormap(self, cf, filename: str): argument
1087 def __init__(self, blksize: int, len: int): argument
1092 def binary(self): argument
1106 def __init__(self, argument
1113 def to_rle(self, filename: str): argument
1129 def rle_compress(self, data: bytearray, blksize: int, threshold=16): argument
1155 def get_repeat_count(self, data: bytearray, blksize: int): argument
1177 def get_nonrepeat_count(self, data: bytearray, blksize: int, threshold): argument
1222 def __init__(self, argument
1228 def to_c_array(self, argument
1235 def from_file(self, argument
1255 def __init__(self, argument
1278 def _replace_ext(self, input, ext): argument
1287 def convert(self): argument