|
Roadmap |
Site sponsored by
IGEL
|
||
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [directfb-dev] Re: Surfaces from memory images?
Quoting Tobias Hunger (tobias@berlin-consortium.org): > I need to load images out of memory sometimes. I have a void pointer to it > (plus the other information I need, such as width, height, bpp, color > encoding). How can I render that image to a surface? The current method is to create a normal surface, lock it and copy your data into it, line by line taking care of the pitch. Then unlock it. > It would be great if that could be added either as an option to create > surfaces (aka CreateSurfaceFromMemory), ... This thing is really needed, especially for the avifile provider, because avifile creates a buffer itself and the current avifile provider wraps a pseudo core surface around it, that is a bit tricky and not easy to maintain if we change the internal structure of surfaces. But it should not be called CreateSurfaceFromMemory but a data entry should be added to the surface description and you enable it with a flag. -- Denis Oliver Kropp ( convergence ) ( integrated media gmbh ) -- Info: To unsubscribe send a mail to listar@directfb.org with "unsubscribe directfb-dev" as subject.
|
|
| directfb.org |
|
Development |
|
Old Archives |