comparison libmpcodecs/ve_divx4.c @ 12061:656a1b45b309

Use aspect from encoder for AVI vprp header
author ranma
date Wed, 24 Mar 2004 15:16:36 +0000
parents 57bdcdb061d7
children acf3241be19b
comparison
equal deleted inserted replaced
12060:b245a429c896 12061:656a1b45b309
209 #endif 209 #endif
210 210
211 mux_v->bih->biWidth=width; 211 mux_v->bih->biWidth=width;
212 mux_v->bih->biHeight=height; 212 mux_v->bih->biHeight=height;
213 mux_v->bih->biSizeImage=width*height*3; 213 mux_v->bih->biSizeImage=width*height*3;
214 mux_v->aspect = (float)d_width/d_height;
214 215
215 if(!divx4_param.bitrate) divx4_param.bitrate=800000; 216 if(!divx4_param.bitrate) divx4_param.bitrate=800000;
216 else if(divx4_param.bitrate<=16000) divx4_param.bitrate*=1000; 217 else if(divx4_param.bitrate<=16000) divx4_param.bitrate*=1000;
217 if(!divx4_param.quality) divx4_param.quality=5; // the quality of compression ( 1 - fastest, 5 - best ) 218 if(!divx4_param.quality) divx4_param.quality=5; // the quality of compression ( 1 - fastest, 5 - best )
218 219