{ "info": { "author": "K0lb3", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: zlib/libpng License", "Programming Language :: Cython", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Topic :: Multimedia :: Graphics", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# ASTC_Decomp\nAn ASTC decoder for PIL.\n\nThe decoder uses [richgel999/astc_dec](https://github.com/richgel999/astc_dec) to decompress the ASTC blocks.\n\n\n## Installation\n- Cython required\n### PIP\n```\npip install astc_decomp\n```\n### Manual\n```cmd\npython setup.py install\n```\n\n\n## Usage\n### Arguments\n* block_width: - Block width, in pixels.\n* block_height: - Block height, in pixels.\n* 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).\n(optional arg, default : False)\n\n### PIL.Image decoder\n```python\nfrom PIL import Image\nimport astc_decomp \n#needs to be imported once in the active code, so that the codec can register itself\n\nastc_data : bytes\nblock_width : int\nblock_height : int\nis_srgb : bool = False\nimg = Image.frombytes('RGBA', size, astc_data, 'astc', (block_width, block_height, is_srgb))\n```\n\n### raw decoder\n```python\nfrom astc_decomp import decompress_astc\n\n# ASTC to RGBA\nrgba_data = decompress_astc(astc_data : bytes, width : int, height : int, block_width : int, block_height : int, is_srgb : bool = False)\n```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/K0lb3/astc_decomp/tarball/master", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/K0lb3/astc_decomp/", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "astc-decomp", "package_url": "https://pypi.org/project/astc-decomp/", "platform": "", "project_url": "https://pypi.org/project/astc-decomp/", "project_urls": { "Download": "https://github.com/K0lb3/astc_decomp/tarball/master", "Homepage": "https://github.com/K0lb3/astc_decomp/" }, "release_url": "https://pypi.org/project/astc-decomp/1.0.2/", "requires_dist": null, "requires_python": "", "summary": "ASTC decoder for PIL", "version": "1.0.2" }, "last_serial": 5929143, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "4d3edb921530356fe5e0be065463d48d", "sha256": "ffd35148588c167a06fe71b24e0efc4cce76be1ea6d73f8163150a480c1754fc" }, "downloads": -1, "filename": "astc_decomp-1.0.tar.gz", "has_sig": false, "md5_digest": "4d3edb921530356fe5e0be065463d48d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 58128, "upload_time": "2019-10-04T15:56:36", "url": "https://files.pythonhosted.org/packages/cf/2e/d4bb0d124f5d1563aa94ce64f9d9afc99a838497b6749272fa225f4a209d/astc_decomp-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "6ac3008d8fcfd378da79078ea4d605d1", "sha256": "3218be97dea4c34072bccd8d0695c82e4507fd06a937aa4c2233b74c26316bc0" }, "downloads": -1, "filename": "astc_decomp-1.0.1.tar.gz", "has_sig": false, "md5_digest": "6ac3008d8fcfd378da79078ea4d605d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 58144, "upload_time": "2019-10-04T16:02:33", "url": "https://files.pythonhosted.org/packages/8f/27/553a58de54efc7ddda909c4a1b899e5b3a504fc8a1463dfebb1523b712a4/astc_decomp-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "22e008b9ce658210d8fdd1b431baecdd", "sha256": "874466eac884e5ffb1eacf3b86a50fbacff9a3652d1defea6e48fbe27dfc4118" }, "downloads": -1, "filename": "astc_decomp-1.0.2.tar.gz", "has_sig": false, "md5_digest": "22e008b9ce658210d8fdd1b431baecdd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 58134, "upload_time": "2019-10-04T16:06:42", "url": "https://files.pythonhosted.org/packages/5c/ce/eff546453dc6c8b9915d519cffa580b849bfb11d2588d7e0d1b1f27afb10/astc_decomp-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "22e008b9ce658210d8fdd1b431baecdd", "sha256": "874466eac884e5ffb1eacf3b86a50fbacff9a3652d1defea6e48fbe27dfc4118" }, "downloads": -1, "filename": "astc_decomp-1.0.2.tar.gz", "has_sig": false, "md5_digest": "22e008b9ce658210d8fdd1b431baecdd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 58134, "upload_time": "2019-10-04T16:06:42", "url": "https://files.pythonhosted.org/packages/5c/ce/eff546453dc6c8b9915d519cffa580b849bfb11d2588d7e0d1b1f27afb10/astc_decomp-1.0.2.tar.gz" } ] }