36 typedef struct ColorContext {
50 #define OFFSET(x) offsetof(ELBGContext, x)
51 #define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
56 {
"nb_steps",
"set max number of steps used to compute the mapping",
OFFSET(max_steps_nb),
AV_OPT_TYPE_INT, { .i64 = 1 }, 1, INT_MAX,
FLAGS },
57 {
"n",
"set max number of steps used to compute the mapping",
OFFSET(max_steps_nb),
AV_OPT_TYPE_INT, { .i64 = 1 }, 1, INT_MAX,
FLAGS },
89 #define NB_COMPONENTS 3
136 for (i = 0; i < inlink->
h; i++) {
138 for (j = 0; j < inlink->
w; j++) {
159 for (i = 0; i < inlink->
h; i++) {
161 for (j = 0; j < inlink->
w; j++) {
164 p[g_idx] = elbg->
codebook[cb_idx+1];
165 p[b_idx] = elbg->
codebook[cb_idx+2];
206 .priv_class = &elbg_class,