Skip to content

[TODO] Memory limit feature #198

@syoyo

Description

@syoyo

Describe the issue

Currently TinyEXR does not support capping memory consumption.
Without such feature, the app may trigger OOM for large EXR images.

To Reproduce

Run poc2 and poc2 in issue 197.

Expected behavior

Add feature to specify the maximum memory to use. This requires

  • Define new API(current API does not support providing any loader options)
  • Set the maximum memory in define macro, e.g.
    • `#define TINYEXR_MAX_MAMORY (102410241024*64)

It also require implementing tracking memory consumption in TinyEXR .

Environment

N/A

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions