[XviD-devel] [QUESTION] to suxen drol

suxen_drol suxen_drol at hotmail.com
Mon Mar 31 23:45:03 CEST 2003


On Sat, 29 Mar 2003 14:01:48 +0100 elcabesa <elcabesa at inwind.it> wrote:
> How work new parameter aspect ratio iin new dev-4-api?? can you explain it 
> with a simple example??

whilst the api presently has picture aspect ratio (par) field, there is
no code associated code to handle par. its on my ever growing todo list.

when its ready, you will use it like this:
frame.par = XVID_PAR_11_VGA;	/* 1:1 ratio */

or:
frame.par = XVID_PAR_169_PAL;	/* 16:9 pal (16:11 625-line) */

or, for custom aspect ratio:
frame.par = XVID_PAR_EXT;
frame.par_width = 3;		/* 3:4 ratio */
frame.par_height = 4;

note: par information is only written to the bitstream headers; it does
not affect the encoding process. when you decode mpeg-4, the decoder
application should adjust the screen/window to suit the par.

xvid's decoder report par information by the xvid_dec_stats_t struct,
when .type == XVID_TYPE_VOL.

-- pete




More information about the XviD-devel mailing list