Do you use a default image provider, such as the jpeg image provider?
If you look in idirectfbimageprovider_jpeg.c you will find WaitForDataWithTimeout used in buffer_fill_input_buffer.

Hope that can serve as an example.

Greetings
Niels

Deepa Mariam Jacob wrote:
Dear all,

I am beginner in DirectFB. I am using DirectFB 1.0.0.
I tried to use streamed data buffer for image provider. My reader thread feeds the databuffer using PutData(). At the mean time my main function calls RenderTo(). My intention was to make the reading and decoding as two parrallel activities. But my RenderTo() function returns with a surface with already read data decoded. Is there a way to make the decoding thread wait for more data before returning? Can we use WaitForDataWithTimeout? If yes please share a sample code for the usage.

Regards,
Deepa


_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev



--

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"
_______________________________________________
directfb-dev mailing list
directfb-dev@directfb.org
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev

Reply via email to