[Mp4-tech] [systems] video rendering

tech list mp3.aac.mp4 gmail.com
Thu Jul 21 17:04:59 EDT 2005


Hi All,
I was wondering about the schemes for rendering video (any video in general 
but MP4/3GP in particular). As far as I was aware the general scheme is to 
use a double buffering scheme with 2 buffers of screen_width*screen_height 
pixels, and some flow control mechanism to prevent overrun/underrun. 
Now I have a buffer architecture on my system that will block the caller is 
the buffer is full and will allow writes only if the buffer is empty. I was 
wondering if in this case, just one buffer would work. 
For example if you have this piece of pseudo code:
unsigned char* Input_buff, *Output_buff;
MY_BLOCKING_BUFFER* My_Blocking_Buffer;
~~~~
while ( DecodeFrame(Input_buff, Output_buff) )
{ 
Write_to_render_buffer (My_Blocking_Buffer, Output_buff)
}
Sine Write_to_render_buffer() would block if buffer is full, there would be 
no issues of overrun/underrun. But I feel there would be some performance 
issues here.
So I would like to know if anyone has any clues as to what I can expect with 
such a design??
Regards,
Dipankar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/mp4-tech/attachments/20050721/4bebf37a/attachment.html


More information about the Mp4-tech mailing list