Currently, preallocated memory is considered "system" memory, since the
pointer that you provide is defined as a local pointer.
It will not be accelerated since it is no "video" memory.
Either, you need to extend the preallocated memory implementation with a
"video" memory pointer, or (and that is in general my approach) you make
a new memory pool that hands out video/system-compatible allocations.
Both require some directfb-internal-implementation.
Note that your approach depends on where you got the pointer from. If
you got it from some proprietary library, like flash or something, you
have to assume it is RAM memory (I mean system memory) based and do a
"manual" copy.
hth
Niels
haithem rahmani wrote:
Hi,
I created a surface from preallocated buffer on system memory, but
blitting it on other surfaces
won't be accelerated. So my question is is there any way to make a
copy of this surface in the video
memory?
regards.
Haithem.
------------------------------------------------------------------------
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users
--
.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/ |
"------------------------------------------"
_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users