{ "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": "# etcpack (for python)\nA cython wrapper for [etcpack](https://github.com/Ericsson/ETCPACK.git) that integrates etcpack into Pillow as codec.\n\nInstall via\n``python setup.py install``\n- Cython is required\n\n## usage example\n```python\nfrom PIL import Image\nimport etcpack \n#needs to be imported once in the active code, so that the codec can register itself\n\n\nraw_etc_image_data : bytes\nmode = 'RGB'/'RGBA' # depending on the ETC mode\nargs = (x, ) # x depending on the ETC mode\nimg = Image.frombytes(mode, size, raw_etc_image_data, 'etc2', args)\n```\n\n## codec table\n|ETC mode | arg | mode |\n|---|---|---|\n| ETC1_RGB_NO_MIPMAPS | 0 | RGB |\n| ETC2PACKAGE_RGB_NO_MIPMAPS | 1 | RGB |\n| ETC2PACKAGE_RGBA_NO_MIPMAPS_OLD | 2 | RGBA | \n| ETC2PACKAGE_RGBA_NO_MIPMAPS | 3 | RGBA |\n| ETC2PACKAGE_RGBA1_NO_MIPMAPS | 4 | RGBA |\n| ETC2PACKAGE_R_NO_MIPMAPS | 5 | R or A |\n| ETC2PACKAGE_RG_NO_MIPMAPS | 6 | RGA | \n| ETC2PACKAGE_R_SIGNED_NO_MIPMAPS | 7 | R or A |\n| ETC2PACKAGE_RG_SIGNED_NO_MIPMAPS | 8 | RGA |\n| ETC2PACKAGE_sRGB_NO_MIPMAPS | 9 | RGB |\n| ETC2PACKAGE_sRGBA_NO_MIPMAPS | 10 | RGBA | \n| ETC2PACKAGE_sRGBA1_NO_MIPMAPS | 11 | RGBA |\n\n## notes\n* compression isn't implemented\n* RG is untested", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/K0lb3/etcpack/tarball/master", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/K0lb3/etcpack/", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "etcpack", "package_url": "https://pypi.org/project/etcpack/", "platform": "", "project_url": "https://pypi.org/project/etcpack/", "project_urls": { "Download": "https://github.com/K0lb3/etcpack/tarball/master", "Homepage": "https://github.com/K0lb3/etcpack/" }, "release_url": "https://pypi.org/project/etcpack/1.0.1/", "requires_dist": null, "requires_python": "", "summary": "", "version": "1.0.1" }, "last_serial": 5935504, "releases": { "0.0.0": [ { "comment_text": "", "digests": { "md5": "8100bda16098ee2f9ef66a063656aa3b", "sha256": "e75a63652778b87cb8850915e7bb7790fe4ceaf689be63c76ba0a1fdfcd4f1fd" }, "downloads": -1, "filename": "etcpack-0.0.0-py3.7-win32.egg", "has_sig": false, "md5_digest": "8100bda16098ee2f9ef66a063656aa3b", "packagetype": "bdist_egg", "python_version": "3.7", "requires_python": null, "size": 48227, "upload_time": "2019-09-18T00:11:39", "url": "https://files.pythonhosted.org/packages/02/af/b71940d5d418cb59079f8b186972a66cb9c9f9b1c763773e1a8d0d2aa37d/etcpack-0.0.0-py3.7-win32.egg" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "568f9b755c19b5caf69f27923e23902d", "sha256": "99d610a2ad57783d5b425092f44c2b7f9a7b10e359559b1d8aa3bf72c28032e0" }, "downloads": -1, "filename": "etcpack-0.1.0.tar.gz", "has_sig": false, "md5_digest": "568f9b755c19b5caf69f27923e23902d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 141955, "upload_time": "2019-09-18T00:16:51", "url": "https://files.pythonhosted.org/packages/d6/a6/23e63b6da4f2b74d95507754d0e9afea607c6b065210c6dfa9ff6dd86732/etcpack-0.1.0.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "926ae4ba92c3a8c5775ffe3aeaa0f868", "sha256": "9b27e7cce008f1ede154ee4df3bd8a5b39d47aac849e98c45a3a8171f702b67a" }, "downloads": -1, "filename": "etcpack-1.0.0.tar.gz", "has_sig": false, "md5_digest": "926ae4ba92c3a8c5775ffe3aeaa0f868", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 142871, "upload_time": "2019-09-27T20:21:52", "url": "https://files.pythonhosted.org/packages/fd/66/8c4c63871361104de459e99bdf9415f8f838420ea4d626102a4def5303f1/etcpack-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "d4dc994f62039bca33a4b1439f2970db", "sha256": "ffd2f047a498cf59537c9b62586eb03fbf0fa613bb1f6f719607b28a19d2d6fa" }, "downloads": -1, "filename": "etcpack-1.0.1.tar.gz", "has_sig": false, "md5_digest": "d4dc994f62039bca33a4b1439f2970db", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 142889, "upload_time": "2019-10-06T18:05:20", "url": "https://files.pythonhosted.org/packages/30/cf/4ec8995b200190de2332e5fe7deb1a3d8b59ec577d740d757fb2f849941e/etcpack-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d4dc994f62039bca33a4b1439f2970db", "sha256": "ffd2f047a498cf59537c9b62586eb03fbf0fa613bb1f6f719607b28a19d2d6fa" }, "downloads": -1, "filename": "etcpack-1.0.1.tar.gz", "has_sig": false, "md5_digest": "d4dc994f62039bca33a4b1439f2970db", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 142889, "upload_time": "2019-10-06T18:05:20", "url": "https://files.pythonhosted.org/packages/30/cf/4ec8995b200190de2332e5fe7deb1a3d8b59ec577d740d757fb2f849941e/etcpack-1.0.1.tar.gz" } ] }