Skip to content

Commit 7ee00e4

Browse files
committed
IOProxy support for IFF files
1 parent f099e19 commit 7ee00e4

File tree

6 files changed

+519
-606
lines changed

6 files changed

+519
-606
lines changed

src/doc/builtinplugins.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -862,6 +862,24 @@ IFF files are used by Autodesk Maya and use the file extension :file:`.iff`.
862862
- int
863863
- the true bits per sample of the IFF file.
864864

865+
**Configuration settings for RLA input**
866+
867+
When opening a IFF ImageInput with a *configuration* (see
868+
Section :ref:`sec-input-with-config`), the following special configuration
869+
options are supported:
870+
871+
.. list-table::
872+
:widths: 30 10 65
873+
:header-rows: 1
874+
875+
* - Input Configuration Attribute
876+
- Type
877+
- Meaning
878+
* - ``oiio:ioproxy``
879+
- ptr
880+
- Pointer to a ``Filesystem::IOProxy`` that will handle the I/O, for
881+
example by reading from memory rather than the file system.
882+
865883
**Configuration settings for IFF output**
866884

867885
When opening an IFF ImageOutput, the following special metadata tokens
@@ -879,6 +897,17 @@ control aspects of the writing itself:
879897
- If nonzero and outputting UINT8 values in the file from a source of
880898
higher bit depth, will add a small amount of random dither to combat
881899
the appearance of banding.
900+
* - ``oiio:ioproxy``
901+
- ptr
902+
- Pointer to a ``Filesystem::IOProxy`` that will handle the I/O, for
903+
example by reading from memory rather than the file system.
904+
905+
**Custom I/O Overrides**
906+
907+
RLA input and output support the "custom I/O" feature via the
908+
special ``"oiio:ioproxy"`` attributes (see Sections
909+
:ref:`sec-imageoutput-ioproxy` and :ref:`sec-imageinput-ioproxy`) as well as
910+
the `set_ioproxy()` methods.
882911

883912

884913

src/iff.imageio/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# SPDX-License-Identifier: BSD-3-Clause
33
# https://github.com/OpenImageIO/oiio
44

5-
add_oiio_plugin (iffinput.cpp iffoutput.cpp iff_pvt.cpp)
5+
add_oiio_plugin (iffinput.cpp iffoutput.cpp)

src/iff.imageio/iff_pvt.cpp

Lines changed: 0 additions & 332 deletions
This file was deleted.

0 commit comments

Comments
 (0)