[XviD-devel] xvid decoder for help

Edouard Gomez ed.gomez at free.fr
Thu Sep 15 18:06:20 CEST 2005


xjb (Rlancelot at sohu.com) wrote:
> For YUV420 format frame,it takes only XDIM*YDIM(Y)+XDIM*YDIM/4(U)+XDIM*YDIM/4(V) bytes,but the main()
> allocates XDIM*YDIM*4 for frame buffer pointed by out_buffer.

Because xvid_decraw has support for rgb32 which eats up to X*Y*4 bytes
per frame. And for code simplicity, we just allocate worst case
scenario. Don't forget, xvid_decraw and xvid_encraw are just examples,
not full featured and well coded applications.

-- 
Edouard Gomez


More information about the XviD-devel mailing list