comparison libmpcodecs/vf_expand.c @ 30662:0aa7c9d45f92

Mark a bunch of video filter structures as const.
author diego
date Mon, 22 Feb 2010 14:03:46 +0000
parents 3d23e24c5c60
children 92f88bb315c5
comparison
equal deleted inserted replaced
30661:957fe9c46d9c 30662:0aa7c9d45f92
468 vf->priv->round); 468 vf->priv->round);
469 return 1; 469 return 1;
470 } 470 }
471 471
472 #define ST_OFF(f) M_ST_OFF(struct vf_priv_s,f) 472 #define ST_OFF(f) M_ST_OFF(struct vf_priv_s,f)
473 static m_option_t vf_opts_fields[] = { 473 static const m_option_t vf_opts_fields[] = {
474 {"w", ST_OFF(cfg_exp_w), CONF_TYPE_INT, 0, 0 ,0, NULL}, 474 {"w", ST_OFF(cfg_exp_w), CONF_TYPE_INT, 0, 0 ,0, NULL},
475 {"h", ST_OFF(cfg_exp_h), CONF_TYPE_INT, 0, 0 ,0, NULL}, 475 {"h", ST_OFF(cfg_exp_h), CONF_TYPE_INT, 0, 0 ,0, NULL},
476 {"x", ST_OFF(cfg_exp_x), CONF_TYPE_INT, M_OPT_MIN, -1, 0, NULL}, 476 {"x", ST_OFF(cfg_exp_x), CONF_TYPE_INT, M_OPT_MIN, -1, 0, NULL},
477 {"y", ST_OFF(cfg_exp_y), CONF_TYPE_INT, M_OPT_MIN, -1, 0, NULL}, 477 {"y", ST_OFF(cfg_exp_y), CONF_TYPE_INT, M_OPT_MIN, -1, 0, NULL},
478 {"osd", ST_OFF(osd), CONF_TYPE_FLAG, 0 , 0, 1, NULL}, 478 {"osd", ST_OFF(osd), CONF_TYPE_FLAG, 0 , 0, 1, NULL},
479 {"aspect", ST_OFF(aspect), CONF_TYPE_DOUBLE, M_OPT_MIN, 0, 0, NULL}, 479 {"aspect", ST_OFF(aspect), CONF_TYPE_DOUBLE, M_OPT_MIN, 0, 0, NULL},
480 {"round", ST_OFF(round), CONF_TYPE_INT, M_OPT_MIN, 1, 0, NULL}, 480 {"round", ST_OFF(round), CONF_TYPE_INT, M_OPT_MIN, 1, 0, NULL},
481 { NULL, NULL, 0, 0, 0, 0, NULL } 481 { NULL, NULL, 0, 0, 0, 0, NULL }
482 }; 482 };
483 483
484 static m_struct_t vf_opts = { 484 static const m_struct_t vf_opts = {
485 "expand", 485 "expand",
486 sizeof(struct vf_priv_s), 486 sizeof(struct vf_priv_s),
487 &vf_priv_dflt, 487 &vf_priv_dflt,
488 vf_opts_fields 488 vf_opts_fields
489 }; 489 };