comparison libmpcodecs/vf_crop.c @ 9602:74e8cd83708f

10L again with the options mins
author albeu
date Sat, 15 Mar 2003 20:55:33 +0000
parents 77bddc6d9266
children b2d257e35577
comparison
equal deleted inserted replaced
9601:0e265e2f3ac9 9602:74e8cd83708f
118 return 1; 118 return 1;
119 } 119 }
120 120
121 #define ST_OFF(f) M_ST_OFF(struct vf_priv_s,f) 121 #define ST_OFF(f) M_ST_OFF(struct vf_priv_s,f)
122 static m_option_t vf_opts_fields[] = { 122 static m_option_t vf_opts_fields[] = {
123 {"w", ST_OFF(crop_w), CONF_TYPE_INT, M_OPT_MIN,1 ,0, NULL}, 123 {"w", ST_OFF(crop_w), CONF_TYPE_INT, M_OPT_MIN,0 ,0, NULL},
124 {"h", ST_OFF(crop_h), CONF_TYPE_INT, M_OPT_MIN,1 ,0, NULL}, 124 {"h", ST_OFF(crop_h), CONF_TYPE_INT, M_OPT_MIN,0 ,0, NULL},
125 {"x", ST_OFF(crop_x), CONF_TYPE_INT, M_OPT_MIN,0 ,0, NULL}, 125 {"x", ST_OFF(crop_x), CONF_TYPE_INT, M_OPT_MIN,-1 ,0, NULL},
126 {"y", ST_OFF(crop_y), CONF_TYPE_INT, M_OPT_MIN,0 ,0, NULL}, 126 {"y", ST_OFF(crop_y), CONF_TYPE_INT, M_OPT_MIN,-1 ,0, NULL},
127 { NULL, NULL, 0, 0, 0, 0, NULL } 127 { NULL, NULL, 0, 0, 0, 0, NULL }
128 }; 128 };
129 129
130 static m_struct_t vf_opts = { 130 static m_struct_t vf_opts = {
131 "crop", 131 "crop",