Keith,

thanks.

I am capturing Digital TV streaming mpeg2 data and decompressing to PC 
displayer. and I found it diplays sawtooth.
 
As you say libmpeg2 dose not any de-interlace. so, In sample5(),

        case STATE_INVALID_END:
            if (info->display_fbuf)
                save_pgm (sequence->width, sequence->height,
                          sequence->chroma_width, sequence->chroma_height,
                          info->display_fbuf->buf, framenum++);
            if (info->discard_fbuf)
                ((struct fbuf_s *)info->discard_fbuf->id)->used = 0;
            if (state != STATE_SLICE)
                for (i = 0; i < 3; i++)
                    for (j = 0; j < 3; j++)
                        free (fbuf[i].mbuf[j]);
            break;

Is "info->display_fbuf->buf" one field or one frame data (my mpeg2 source is 
interlaced)?
If I want to do de-interlace before display , may I process 
info->display_fbuf->buf directly? 

Best,

allison

        

======= 2007-05-08 13:09:18 :=======

>Allison,
>
>I don't understand exactly what you mean by "SD DV mpeg2 data". DV (aka, 
>MiniDV) is a different format that does not use MPEG-2.
>
>Assuming you're just referring to interlaced content, there is no perfect 
>way to display interlaced material on a progressive display like a 
>computer monitor.
>
>Some deinterlacing techniques include "bobbing" (meaning doubling each 
>line in a field) and "weaving" (meaning displaying each frame as a unit, 
>with separate fields woven together).
>
>libmpeg2 does not implement any deinterlacing techniques. It _only_ 
>performs the MPEG-2 decoding process. The display process is up to the 
>application that harnesses libmpeg2.
>
>Some of the applications that can use libmpeg2, and do implement various 
>deinterlacing methods, include mplayer, xine, and vlc. If you want 
>good-looking results, you should either implement deinterlacing or use one 
>of those applications. libmpeg2 does not do this.
>
>Best regards,
>Keith
>
>On Tue, 8 May 2007, hdzhne wrote:
>
>> hi,
>>
>>    When I use mpeg2lib to decoder SD DV data, I can see sawtooth clear 
>> when there is quick moving in picture.
>>
>> I think it because just deinterlacing is too slow or meet some wrong. PC 
>> I used is high performance PC, and can decoder SD DV mpeg2 data about 
>> more than 30fps.
>>
>>
>>
>>         hdzhne
>> [EMAIL PROTECTED]
>>           2007-05-08
>>
>>

= = = = = = = = = = = = = = = = = = = =
                        

        致
礼!
 
                                 
        hdzhne
[EMAIL PROTECTED]
          2007-05-09

-------------------------------------------------------------------------
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