comparison libmpcodecs/ve_libdv.c @ 11261:835822ce4bb1

-vop ---> -vf
author diego
date Sat, 25 Oct 2003 18:44:41 +0000
parents c671e9adbe22
children 30507afa1cf6
comparison
equal deleted inserted replaced
11260:1c269ab5f3f6 11261:835822ce4bb1
41 static int config(struct vf_instance_s* vf, 41 static int config(struct vf_instance_s* vf,
42 int width, int height, int d_width, int d_height, 42 int width, int height, int d_width, int d_height,
43 unsigned int flags, unsigned int outfmt){ 43 unsigned int flags, unsigned int outfmt){
44 44
45 if(width!=DV_WIDTH || (height!=DV_PAL_HEIGHT && height!=DV_NTSC_HEIGHT)){ 45 if(width!=DV_WIDTH || (height!=DV_PAL_HEIGHT && height!=DV_NTSC_HEIGHT)){
46 mp_msg(MSGT_VFILTER,MSGL_ERR,"DV: only 720x480 (NTSC) and 720x576 (PAL) resolutions allowed! try with -vop scale=720:480\n"); 46 mp_msg(MSGT_VFILTER,MSGL_ERR,"DV: only 720x480 (NTSC) and 720x576 (PAL) resolutions allowed! Try with -vf scale=720:480\n");
47 } 47 }
48 48
49 vf->priv->enc->isPAL=(height==DV_PAL_HEIGHT); 49 vf->priv->enc->isPAL=(height==DV_PAL_HEIGHT);
50 vf->priv->enc->is16x9=(d_width/(float)d_height > 1.7); // 16:9=1.777777 50 vf->priv->enc->is16x9=(d_width/(float)d_height > 1.7); // 16:9=1.777777
51 vf->priv->enc->vlc_encode_passes=3; 51 vf->priv->enc->vlc_encode_passes=3;