On Mon, 14 May 2007, hdzhne wrote:

> So, does info->diaplay_fbuf->buf in libmpeg2 store odd filed followed by 
> even field if HDTV content is sent as interlaced frame picture?  Just I 
> need reorder two fields to one full frame which can be displayed 
> directly?

buf[] is an array of three framebuffers -- Y, Cb, and Cr. Each of those 
framebuffers will contain its component of the entire frame, interlaced, 
at a dimension like 1920x1088 for Y and 960x544 for Cb and Cr.

Within each component, you can take the odd lines to be the odd field. 
E.g., this will be 544 lines of Y and 272 lines of Cb and Cr. The even 
lines will be the even field.

But you'll also have to look at the flags in the PICTURE header (like 
top_field_first and repeat_first_field) to know which field to display 
first and which one to display second.

I would recommend getting a copy of the MPEG-2 specification, or 
downloading the draft available from www.wotsit.org, if you're planning to 
do this kind of implementation. And don't be afraid to experiment!

Best of luck,
Keith

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Libmpeg2-devel mailing list
Libmpeg2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmpeg2-devel

Reply via email to