The patch below adds Get/Set Buffer thresholds to VideoProviders.  It also
add HIGH, BUFFERETIMELOW, BUFFERTIMEHIGH events.
The reasoning behind Get/Set Buffer thresholds is that on embedded devices
you want to control how much data is in the buffers feeding your decoder. 
On PC memory may not be an issue but I need a way to control the thresholds.
And applications typically want to tweak these settings.
When you hit the low/high threshold then a Low/High event can now be
generated.
You also need a function that means you could poll and find out your buffer
occupancy so that is what the GetBufferOccupancy function is for.  

I have also added time low and high and this is because you might want to
know how much data in terms of playtime you have in your buffers and in fact
for ASF files (WMV) there is a preroll setting which means buffer X seconds
of data.  You could now set the low time threshold and then an event could
be raised when this threshold is reached.

Again, I hope this is useful and any comments etc would be appreciated.
http://www.nabble.com/file/p15613827/directfb_add_buffer_thresholds_videoproviders.patch
directfb_add_buffer_thresholds_videoproviders.patch 


-- 
View this message in context: 
http://www.nabble.com/Extending-Video-Providers-with-Buffer-Threshold-Setting-Getting-Occupancy-tp15613827p15613827.html
Sent from the DirectFB Dev mailing list archive at Nabble.com.


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

Reply via email to