Skip to content

Commit 0c6daad

Browse files
committed
Update progress md file
Signed-off-by: Aleksandr Motsjonov <soswow@gmail.com> Made-with: Cursor
1 parent 80fd0ee commit 0c6daad

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/python-nanobind/MIGRATION_STATUS.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ Generated from the binding sources. The nanobind extension is `PyOpenImageIONano
44

55
## Migrated — full parity with pybind for the bound surface
66

7-
| Python / C++ surface | Source file(s) |
7+
| Source file | Python / C++ API |
88
| --- | --- |
9-
| <code>TypeDesc</code><br>Enums:<br><ul><li><code>BASETYPE</code></li><li><code>AGGREGATE</code></li><li><code>VECSEMANTICS</code></li></ul> Module <code>Type*</code> constants | `py_typedesc.cpp` |
10-
| Types:<br><ul><li><code>ParamValue</code></li><li><code>ParamValueList</code></li></ul><br>Enums:<br><ul><li><code>Interp</code></li></ul> | `py_paramvalue.cpp` |
11-
| <code>ROI</code><br>Free functions:<br><ul><li><code>union</code></li><li><code>intersection</code></li><li><code>get_roi</code></li><li><code>get_roi_full</code></li><li><code>set_roi</code></li><li><code>set_roi_full</code></li></ul> | `py_roi.cpp` |
12-
| <ul><li><code>ImageSpec</code></li></ul> | `py_imagespec.cpp` |
9+
| `py_typedesc.cpp` | <code>TypeDesc</code><br>Enums:<br><ul><li><code>BASETYPE</code></li><li><code>AGGREGATE</code></li><li><code>VECSEMANTICS</code></li></ul> Module <code>Type*</code> constants |
10+
| `py_paramvalue.cpp` | Types:<br><ul><li><code>ParamValue</code></li><li><code>ParamValueList</code></li></ul><br>Enums:<br><ul><li><code>Interp</code></li></ul> |
11+
| `py_roi.cpp` | <code>ROI</code><br>Free functions:<br><ul><li><code>union</code></li><li><code>intersection</code></li><li><code>get_roi</code></li><li><code>get_roi_full</code></li><li><code>set_roi</code></li><li><code>set_roi_full</code></li></ul> |
12+
| `py_imagespec.cpp` | <ul><li><code>ImageSpec</code></li></ul> |
1313

1414
## Migrated — partial (gaps vs pybind)
1515

16-
| File (scope) | Has been migrated | Missing / gap |
16+
| Source file | Migrated (vs pybind) | Missing (vs pybind) |
1717
| --- | --- | --- |
1818
| `py_oiio.cpp` (`_OpenImageIO` module) | <ul><li><code>attribute</code> (one-arg and typed)</li><li><code>get_int_attribute</code></li><li><code>get_float_attribute</code></li><li><code>get_string_attribute</code></li><li><code>getattribute</code></li><li><code>__version__</code></li></ul> | <ul><li><code>geterror</code></li><li><code>get_bytes_attribute</code></li><li>Module <code>set_colorspace</code> (helper taking <code>ImageSpec</code> — the instance method is on <code>ImageSpec</code> in nanobind)</li><li><code>set_colorspace_rec709_gamma</code></li><li><code>equivalent_colorspace</code></li><li><code>is_imageio_format_name</code></li><li><code>AutoStride</code></li><li><code>openimageio_version</code>, <code>VERSION</code>, <code>VERSION_STRING</code>, <code>VERSION_MAJOR</code>, <code>VERSION_MINOR</code>, <code>VERSION_PATCH</code>, <code>INTRO_STRING</code></li><li>Optional: stack traces when <code>OPENIMAGEIO_DEBUG_PYTHON</code> is set (<code>Sysutil</code>)</li></ul> |
1919
| `py_paramvalue.cpp` (`ParamValue` / `ParamValueList`) | <code>ParamValue</code> / <code>ParamValueList</code> match pybind for the rest of the surface. | <code>paramvalue_from_pyobject</code>: no pybind-style path for <code>UINT8</code> + <code>bytes</code> with <code>type.arraylen</code> (incl. inferred length from <code>bytes</code> size). |
@@ -26,7 +26,7 @@ Generated from the binding sources. The nanobind extension is `PyOpenImageIONano
2626

2727
These exist only under `src/python/` today; there are **no** corresponding `py_*.cpp` files in `src/python-nanobind/`.
2828

29-
| pybind file | Main Python types / API |
29+
| Source file | Python / C++ API |
3030
| --- | --- |
3131
| `py_imageinput.cpp` | <ul><li><code>ImageInput</code></li><li>open, read, formats, …</li></ul> |
3232
| `py_imageoutput.cpp` | <code>ImageOutput</code> |

0 commit comments

Comments
 (0)