Log in

View Full Version : HELP in YUV format in ISO mpeg4 AVC decoder


minasafwat
16th May 2006, 01:38
hiii i am a newbie in video programming , i am trying to create mpeg4 video player on an embedded system ( blackfin processor ) it is my graduation project ( IPTV ) and i really need help

i developped a video driver for the system that accepts YUV frame and display it on tv

i used MPEG-4 (ISO 14496) decoder JM 10.2 this decoder decode .264 file to .yuv file , i have critical questions about the output yuv format

i want to know what are the final function that write the stream to the file

how does it write it ? frame by frame ? or pixel by pixel ?

also how frames are separated ?

i guess the file contains the stream YUVYUVYUV ... and there is no header and there is not seperation between frames , correct me if i am wrong. but i still want to know the answer of the first question.

thanks in advance

Mina

sysKin
16th May 2006, 05:48
I don't know how JM does that, but I suspect it just uses a planar YUV 4:2:0 format: first (width*height) bytes of Y data, followed by ((width/2)*(height/2)) bytes of U data, then same amount of V data. Then, this is followed by next frame's Y immidietly.

Hopefully I'm not talking BS here :)