Mina,

MPEG-2 compressed video stream may contain 4:2:0, 4:2:2 or 4:4:4 sampling. The only chroma format permitted in Main Profile is 4:2:0. 4:2:2 is permitted in 4:2:2 Profile and High Profile. 4:4:4 is not permitted by any of standard profiles. This means that MPEG-2 video contained on DVD may be only 4:2:0 if it is standard compliant. The same applies to DVB and ATSC broadcasts. Since the stream data is 4:2:0, it must be upsampled somewhere. Upsamling is considered a postprocessing step, and thus it is out of scope of libmpeg2 - applications should take care of postprocessing, including color conversion as well.
Upsampling is not complicated at all, and you could probably implement it in your application with ease.

Peter

Mina Safwat wrote:
Thanks for your reply peter
 
i would prefer that the decoder out 4:2:2 instead of using an interpolator to upsample the YUV 4:2:0 to 4:2:2 ( UYVY ) , because i am working on an embedded system and i am trying to achieve real time Mpe2 player on it , so may you tell me where to find and modify the source code of the decoder to make it output 4:2:2 ?
 
any help , plz ?
 
thanks in advance

Peter Gubanov <[EMAIL PROTECTED]> wrote:
Hi Mina,

Yes, decoder can output 4:2:2. You can either feed it with 4:2:2 MPEG-2 elementary video stream, or create a custom color space converter (similar to YUV to RGB) which will convert planar YUV 4:2:0 to whatever format you like, for instance, to YUY2 or UYVY.

Peter

Mina Safwat wrote:
hiii all ,
 
sample1 in the doc out YUV 4:2:0 , and this is clear in the pgm file too.
 
Can the Decoder out YUV 4:2:2 instead of YUV 4:2:0 ? how can this be achieved ?
 
thanks in advance


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Libmpeg2-devel mailing list
Libmpeg2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmpeg2-devel

Reply via email to