{ "info": { "author": "K0lb3", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "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" ], "description": "# PVRTC Decoder\nA PVRTC decoder for PIL.\n\nThe decoder uses PVRTDecompress from [PVRCore](https://github.com/powervr-graphics/Native_SDK/tree/master/framework/PVRCore) to decompress the data.\n\n\n## Installation\n- Cython required\n### PIP\n```\npip install pvrtc_decoder\n```\n### Manual\n```cmd\npython setup.py install\n```\n\n\n## Usage\ndo2bit_mode:\n- 0 - PVRTC2 (8 bit)\n- 1 - PVRTC4 (16 bit)\n\n### PIL.Image decoder\n```python\nfrom PIL import Image\nimport pvrtc_decoder \n#needs to be imported once in the active code, so that the codec can register itself\n\nraw_pvrtc_image_data : bytes\ndo2bit_mode = 0 # see above\nimg = Image.frombytes('RGBA', size, raw_pvrtc_image_data, 'pvrtc', (do2bit_mode))\n```\n\n### raw decoder\n```python\nfrom pvrtc_decoder import decompress_pvrtc, decompress_etc\n\n# compressed PVRTC image bytes to RGBA bytes\nrgba_data = decompress_pvrtc(compressed_data : bytes, do2bit_mode : int, width : int, height : int)\n\n# compressed ETC image bytes to RGBA bytes\n# mode seems to be unused, so use any value you want\nrgba_data = decompress_etc(src_data : bytes, width : int, height : int, mode : int)\n```\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/K0lb3/pvrtc_decoder/tarball/master", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/K0lb3/pvrtc_decoder/", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pvrtc-decoder", "package_url": "https://pypi.org/project/pvrtc-decoder/", "platform": "", "project_url": "https://pypi.org/project/pvrtc-decoder/", "project_urls": { "Download": "https://github.com/K0lb3/pvrtc_decoder/tarball/master", "Homepage": "https://github.com/K0lb3/pvrtc_decoder/" }, "release_url": "https://pypi.org/project/pvrtc-decoder/1.0.2/", "requires_dist": null, "requires_python": "", "summary": "A PVRTC decoder for PIL", "version": "1.0.2" }, "last_serial": 5897802, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "1734c3f881d6324ad89e703e6eb966ba", "sha256": "a889e34593c7935a02c432d36f58591ea86b037bc2fac8774e0022e0292e0f1a" }, "downloads": -1, "filename": "pvrtc_decoder-1.0.1.tar.gz", "has_sig": false, "md5_digest": "1734c3f881d6324ad89e703e6eb966ba", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 45405, "upload_time": "2019-09-27T19:45:31", "url": "https://files.pythonhosted.org/packages/eb/59/2c817936d4de454af7b8b4ca42336e2fdb83a2a2cb5601fa070e1e715b10/pvrtc_decoder-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "cc9329c0c277d26a9f4f1a0290cc2a59", "sha256": "675e7dce5e179793583abc7349bae8f3c6563c2bdd225ace4bfd2ad47ef84a01" }, "downloads": -1, "filename": "pvrtc_decoder-1.0.2-cp37-cp37m-win32.whl", "has_sig": false, "md5_digest": "cc9329c0c277d26a9f4f1a0290cc2a59", "packagetype": "bdist_wheel", "python_version": "cp37", "requires_python": null, "size": 32805, "upload_time": "2019-09-27T19:54:58", "url": "https://files.pythonhosted.org/packages/85/3c/29e5fec3c0641739122658c7b82a195c4da694feead1659607e3dacb138e/pvrtc_decoder-1.0.2-cp37-cp37m-win32.whl" }, { "comment_text": "", "digests": { "md5": "9d6d8d6f17623e952112df19f9d2eed4", "sha256": "8088e71c8bd248732444ce269470d6f8348a0ef622a9fb8b975b7d710aeb382e" }, "downloads": -1, "filename": "pvrtc_decoder-1.0.2.tar.gz", "has_sig": false, "md5_digest": "9d6d8d6f17623e952112df19f9d2eed4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 45989, "upload_time": "2019-09-27T19:55:01", "url": "https://files.pythonhosted.org/packages/a4/32/30cef540f7bb35137925f8fb0463a36e5f748ac9c26855af5c9392e86174/pvrtc_decoder-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cc9329c0c277d26a9f4f1a0290cc2a59", "sha256": "675e7dce5e179793583abc7349bae8f3c6563c2bdd225ace4bfd2ad47ef84a01" }, "downloads": -1, "filename": "pvrtc_decoder-1.0.2-cp37-cp37m-win32.whl", "has_sig": false, "md5_digest": "cc9329c0c277d26a9f4f1a0290cc2a59", "packagetype": "bdist_wheel", "python_version": "cp37", "requires_python": null, "size": 32805, "upload_time": "2019-09-27T19:54:58", "url": "https://files.pythonhosted.org/packages/85/3c/29e5fec3c0641739122658c7b82a195c4da694feead1659607e3dacb138e/pvrtc_decoder-1.0.2-cp37-cp37m-win32.whl" }, { "comment_text": "", "digests": { "md5": "9d6d8d6f17623e952112df19f9d2eed4", "sha256": "8088e71c8bd248732444ce269470d6f8348a0ef622a9fb8b975b7d710aeb382e" }, "downloads": -1, "filename": "pvrtc_decoder-1.0.2.tar.gz", "has_sig": false, "md5_digest": "9d6d8d6f17623e952112df19f9d2eed4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 45989, "upload_time": "2019-09-27T19:55:01", "url": "https://files.pythonhosted.org/packages/a4/32/30cef540f7bb35137925f8fb0463a36e5f748ac9c26855af5c9392e86174/pvrtc_decoder-1.0.2.tar.gz" } ] }