Skip to content

Add the possibility to load an image into a pre-allocated memory buffer / surface #557

Open
@Raffaello

Description

@Raffaello

with a pre-allocated pixels (buffer) might be more versatile as a surface can be created from it. on the other hand from a surface it can be easily accessed to the pixel buffer...

The reason for this function would be to reuse the same surface/buffer so for e.g. in openGL can be persistently mapped and used with PBO for streaming texture from disk more efficiently. Basically it comes down to do a streamed animation.

What is missing it might be to have also a sibling function to read metadata of the image so the width,height,channels can be read and creating accordingly the surface/buffer.

this kind of feature is available in OpenImage:

a function to load an image from a user input buffer add some possiblity to various use cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions