[XviD-devel] xvid decoder for help

xjb Rlancelot at sohu.com
Thu Sep 15 17:41:58 CEST 2005


xvid decoder problem


When I decode the encoded bitstream by xvidcore-1.0.3 using the xvid_decraw.exe,it always outputs files in tga or png format.

But sometimes I need to output the YUV sequeces just as the original YUV420 test sequences such as Akiyo_qcif etc,how can I achieves this?

In xvid_decraw.c function main() there is an buffer point out_buffer,does it points to decoded frame buffer?If this is the fact,then how does the data organized in frame buffer?

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.

How can I abstract the Y U V data from the out_buffer pointing frame buffer?

Please give me some help,thanks in advance!






More information about the XviD-devel mailing list