Skip to content

Commit c18b3ef

Browse files
committed
IOProxy support for IFF files (AcademySoftwareFoundation#3647)
1 parent 3a71e8a commit c18b3ef

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
@@ -875,6 +875,24 @@ IFF files are used by Autodesk Maya and use the file extension :file:`.iff`.
875875
- int
876876
- the true bits per sample of the IFF file.
877877

878+
**Configuration settings for RLA input**
879+
880+
When opening a IFF ImageInput with a *configuration* (see
881+
Section :ref:`sec-input-with-config`), the following special configuration
882+
options are supported:
883+
884+
.. list-table::
885+
:widths: 30 10 65
886+
:header-rows: 1
887+
888+
* - Input Configuration Attribute
889+
- Type
890+
- Meaning
891+
* - ``oiio:ioproxy``
892+
- ptr
893+
- Pointer to a ``Filesystem::IOProxy`` that will handle the I/O, for
894+
example by reading from memory rather than the file system.
895+
878896
**Configuration settings for IFF output**
879897

880898
When opening an IFF ImageOutput, the following special metadata tokens
@@ -892,6 +910,17 @@ control aspects of the writing itself:
892910
- If nonzero and outputting UINT8 values in the file from a source of
893911
higher bit depth, will add a small amount of random dither to combat
894912
the appearance of banding.
913+
* - ``oiio:ioproxy``
914+
- ptr
915+
- Pointer to a ``Filesystem::IOProxy`` that will handle the I/O, for
916+
example by reading from memory rather than the file system.
917+
918+
**Custom I/O Overrides**
919+
920+
RLA input and output support the "custom I/O" feature via the
921+
special ``"oiio:ioproxy"`` attributes (see Sections
922+
:ref:`sec-imageoutput-ioproxy` and :ref:`sec-imageinput-ioproxy`) as well as
923+
the `set_ioproxy()` methods.
895924

896925

897926

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)