{ "info": { "author": "andyguo", "author_email": "andyguo@phenom-films.com", "bugtrack_url": null, "classifiers": [ "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: Implementation" ], "description": "dayu_oiio\n=========\n\n\u662fOpenImageIO \u4e2doiiotool \u7684python \u5c01\u88c5\u3002\u5c06\u64cd\u4f5c\u8f6c\u6362\u4e3astream\n\u7684\u6982\u5ff5\uff0c\u53ef\u4ee5\u5e2e\u52a9\u7528\u6237\u4e0d\u7528\u8bb0\u5fc6\u7e41\u6742\u7684\u7ec8\u7aef\u547d\u4ee4\u884c\uff0c\u76f4\u89c2\u7684\u751f\u6210\u5904\u7406\u4ee3\u7801\u3002\nOpenImageIO \u662f\u975e\u5e38\u5f3a\u529b\u7684\u5e8f\u5217\u5e27\u8f6c\u7801\u5de5\u5177\uff0c\u5305\u62ec\u751f\u6210tx\n\u7684\u5de5\u5177\u90fd\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7OpenImageIO \u5b9e\u73b0\uff01\n\n\u51c6\u5907\u5de5\u4f5c\n========\n\n\u9996\u5148\u901a\u8fc7pip \u8fdb\u884c\u5b89\u88c5\n\n.. code:: python\n\n pip install -U dayu_oiio\n\n\u7136\u540e\uff0c\u9700\u8981\u7528\u6237\u81ea\u884c\u5b89\u88c5\u6216\u8005\u7f16\u8bd1OpenImageIO \u4e2d\u7684oiiotool\n\u5de5\u5177\u3002\u5177\u4f53\u7684\u64cd\u4f5c\u53ef\u4ee5\u53c2\u7167\uff1a https://github.com/OpenImageIO/oiio\n\n\u5bf9\u4e8emac \u7528\u6237\uff0c\u53ef\u4ee5\u6bd4\u8f83\u7b80\u5355\uff0c\u76f4\u63a5\u4f7f\u7528brew \u8fdb\u884c\u5b89\u88c5\u5373\u53ef\uff1a\n\n.. code:: shell\n\n /usr/bin/ruby -e \"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)\"\n brew install openimageio\n\nlinux \u7528\u6237\u4e5f\u53ef\u4ee5\u81ea\u884c\u8fdb\u884c\u7f16\u8bd1\u3002windows\n\u7528\u6237\u76f8\u5bf9\u6765\u8bf4\u9ebb\u70e6\u4e00\u4e9b\uff0c\u9700\u8981\u81ea\u5df1\u6309\u7167OpenImageIO \u5b98\u65b9\u624b\u518c\u81ea\u884c\u7f16\u8bd1\u3002\n\n\u4f7f\u7528\u65b9\u6cd5\n========\n\n\u5047\u8bbe\uff0c\u7528\u6237\u5e0c\u671b\u5bf9\u4e00\u5957\u5e8f\u5217\u5e27\u8fdb\u884c\u5982\u4e0b\u7684\u64cd\u4f5c\uff1a\n\n1. \u7f29\u653e\n2. \u4f7f\u7528ocio \u8f6c\u6362\u8272\u5f69\u7a7a\u95f4\n3. \u8f93\u51fa\n\n\u90a3\u4e48\u5bf9\u5e94\u7684\u4ee3\u7801\u5c31\u975e\u5e38\u7b80\u5355\uff1a\n\n.. code:: python\n\n from dayu_oiio.stream import *\n\n cmd = OIIO() >> \\\n Input('/some/input/files.%04d.exr', start=1001, end=1008) >> \\\n Resize(1920, 1080) >> \\\n ColorConvert('Input - ARRI - V3 LogC (EI800) - Wide Gamut',\n 'ACES - ACEScg',\n ocio='/some/ocio/config/file.config') >> \\\n Output('/some/output/file.%04d', start=1101, end=1108)\n\n for _ in cmd.run():\n print cmd.progress\n\n\u9ad8\u7ea7\u6269\u5c55\n========\n\n\u6bd5\u7adf\u8fd9\u91cc\u53ea\u5c01\u88c5\u4e86\u5e38\u7528\u7684 oiiotool\n\u6307\u4ee4\uff0c\u5982\u679c\u7528\u6237\u9700\u8981\u4f7f\u7528\u7684\u6307\u4ee4\u6ca1\u6709\u88ab\u5c01\u88c5\uff0c\u90a3\u4e48\u53ef\u4ee5\u81ea\u5df1\u8fdb\u884c\u6269\u5c55\uff1a\n\n.. code:: python\n\n from dayu_oiio.base import UnaryFilterStream\n\n class Multiply(UnaryFilterStream):\n _name = 'mul' # \u8fd9\u91cc\u5bf9\u5e94oiio \u4e2d\u7684\u6307\u4ee4\n\n def __init__(self, multiply_value): # \u8fd9\u91cc\u7684\u53c2\u6570\u662f\u5bf9\u5e94\u6307\u4ee4\u7684\u53c2\u6570\n super(Multiply, self).__init__()\n self.mul = multiply_value\n\n def combine(self)\n # \u8fd9\u91cc\u52a1\u5fc5\u5c06oiio \u62fc\u63a5\u7684\u6307\u4ee4\u52a0\u5230 self._value \u8fd9\u4e2a\u53d8\u91cf\u4e2d\n self._value += '--{param} {mul}'.format(param=self._name,\n mul=self.mul)\n\n\u8fd9\u6837\uff0c\u5c31\u5b8c\u6210\u4e86\u4e00\u4e2amultiply \u64cd\u4f5c\u7684\u81ea\u5b9a\u4e49\u5c01\u88c5\u3002\u4e4b\u540e\u5c31\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u4e86\uff1a\n\n.. code:: python\n\n cmd = OIIO() >> \\\n Input('/some/input/files.%04d.exr', start=1001, end=1008) >> \\\n Multiply(1.4) >> \\\n Output('/some/output/file.%04d', start=1101, end=1108)\n\n for _ in cmd.run():\n print cmd.progress\n\n\u4e00\u4e9b\u5df2\u77e5\u7684\u95ee\u9898\n==============\n\n- \u7531\u4e8eoiiotool \u7684\u547d\u4ee4\u884c\u5de5\u5177\uff0c\u518d\u8f93\u51fa\u8fd0\u884c\u6307\u4ee4\u7684\u65f6\u5019\u4e0d\u662f\u6bcf\u884c\u90fdflush\n \u5230stdout\uff0c\u56e0\u6b64python \u7684subprocess\n \u5728\u8fd0\u884c\u7ed3\u675f\u4e4b\u524d\u65e0\u6cd5\u65e0\u963b\u585e\u7684\u83b7\u5f97\u8fd0\u884c\u72b6\u6001\u3002 \u56e0\u6b64\uff0c\u53ea\u80fd\u591f\u6bcf\u96941s\n \u8fdb\u884c\u626b\u63cf\u786c\u76d8\uff0c\u6765\u83b7\u5f97\u8f93\u51fa\u7d20\u6750\u7684\u8fdb\u5ea6\n\n- \u5982\u679c\u60f3\u8981\u540c\u65f6\u4f7f\u7528ocio \u7684\u8272\u5f69\u7ba1\u7406\uff0c\u90a3\u4e48\u9700\u8981\u5728\u7f16\u8bd1\u7684\u65f6\u5019\u52a0\u5165opencolorIO\n \u7684\u652f\u6301\u3002\uff08Mac \u901a\u8fc7brew \u5b89\u88c5\u7684\u5df2\u7ecf\u652f\u6301\u4e86\uff09\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/phenom-films/dayu_oiio", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "dayu-oiio", "package_url": "https://pypi.org/project/dayu-oiio/", "platform": "", "project_url": "https://pypi.org/project/dayu-oiio/", "project_urls": { "Homepage": "https://github.com/phenom-films/dayu_oiio" }, "release_url": "https://pypi.org/project/dayu-oiio/0.2/", "requires_dist": null, "requires_python": "", "summary": "a python wrapper for OpenImageIO oiiotool.", "version": "0.2" }, "last_serial": 4380443, "releases": { "0.2": [ { "comment_text": "", "digests": { "md5": "40975de11c3ecd10b9f8f63f9638f493", "sha256": "70baadbf04cf458326c7a298095d25d48678e24fde913e9869f0ed4f4902681c" }, "downloads": -1, "filename": "dayu_oiio-0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "40975de11c3ecd10b9f8f63f9638f493", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6643, "upload_time": "2018-10-16T07:40:15", "url": "https://files.pythonhosted.org/packages/3a/e1/ebfa4d55dd1365b4f3a2eb289311ca044d6a8827419ef0ba552fb69feae5/dayu_oiio-0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7cfd56549e37128cc7552e35b6a42bc8", "sha256": "15daed8fe3de4e53b453093d0dc6493d9a9cca4a9b365c61f752399ebe971b01" }, "downloads": -1, "filename": "dayu_oiio-0.2.tar.gz", "has_sig": false, "md5_digest": "7cfd56549e37128cc7552e35b6a42bc8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5897, "upload_time": "2018-10-16T07:40:17", "url": "https://files.pythonhosted.org/packages/fa/ec/cae401766588699125fca5ba8b958356f35ec2c778fd3d251e9770f39b6d/dayu_oiio-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "40975de11c3ecd10b9f8f63f9638f493", "sha256": "70baadbf04cf458326c7a298095d25d48678e24fde913e9869f0ed4f4902681c" }, "downloads": -1, "filename": "dayu_oiio-0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "40975de11c3ecd10b9f8f63f9638f493", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 6643, "upload_time": "2018-10-16T07:40:15", "url": "https://files.pythonhosted.org/packages/3a/e1/ebfa4d55dd1365b4f3a2eb289311ca044d6a8827419ef0ba552fb69feae5/dayu_oiio-0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7cfd56549e37128cc7552e35b6a42bc8", "sha256": "15daed8fe3de4e53b453093d0dc6493d9a9cca4a9b365c61f752399ebe971b01" }, "downloads": -1, "filename": "dayu_oiio-0.2.tar.gz", "has_sig": false, "md5_digest": "7cfd56549e37128cc7552e35b6a42bc8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5897, "upload_time": "2018-10-16T07:40:17", "url": "https://files.pythonhosted.org/packages/fa/ec/cae401766588699125fca5ba8b958356f35ec2c778fd3d251e9770f39b6d/dayu_oiio-0.2.tar.gz" } ] }