معرفی شرکت ها


astc-decomp-1.0.3


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

ASTC decoder for PIL
ویژگی مقدار
سیستم عامل -
نام فایل astc-decomp-1.0.3
نام astc-decomp
نسخه کتابخانه 1.0.3
نگهدارنده []
ایمیل نگهدارنده []
نویسنده K0lb3
ایمیل نویسنده -
آدرس صفحه اصلی https://github.com/K0lb3/astc_decomp/
آدرس اینترنتی https://pypi.org/project/astc-decomp/
مجوز MIT
# ASTC_Decomp An ASTC decoder for PIL. The decoder uses [richgel999/astc_dec](https://github.com/richgel999/astc_dec) to decompress the ASTC blocks. ## Installation - Cython required ### PIP ``` pip install astc_decomp ``` ### Manual ```cmd python setup.py install ``` ## Usage ### Arguments * block_width: - Block width, in pixels. * block_height: - Block height, in pixels. * is_srgb: - If isSRGB is true, the spec requires the decoder to scale the LDR 8-bit endpoints to 16-bit before interpolation slightly differently, which will lead to different outputs. So be sure to set it correctly (ideally it should match whatever the encoder did). (optional arg, default : False) ### PIL.Image decoder ```python from PIL import Image import astc_decomp #needs to be imported once in the active code, so that the codec can register itself astc_data : bytes block_width : int block_height : int is_srgb : bool = False img = Image.frombytes('RGBA', size, astc_data, 'astc', (block_width, block_height, is_srgb)) ``` ### raw decoder ```python from astc_decomp import decompress_astc # ASTC to RGBA rgba_data = decompress_astc(astc_data : bytes, width : int, height : int, block_width : int, block_height : int, is_srgb : bool = False) ```


نحوه نصب


نصب پکیج whl astc-decomp-1.0.3:

    pip install astc-decomp-1.0.3.whl


نصب پکیج tar.gz astc-decomp-1.0.3:

    pip install astc-decomp-1.0.3.tar.gz