@item y
The second input value for the pixel component.
+
+@item bdx
+The first input video bit depth.
+
+@item bdy
+The second input video bit depth.
@end table
All expressions default to "x".
"h", ///< height of the input video
"x", ///< input value for the pixel from input #1
"y", ///< input value for the pixel from input #2
+ "bdx", ///< input #1 video bitdepth
+ "bdy", ///< input #2 video bitdepth
NULL
};
VAR_H,
VAR_X,
VAR_Y,
+ VAR_BITDEPTHX,
+ VAR_BITDEPTHY,
VAR_VARS_NB
};
s->var_values[VAR_W] = inlink->w;
s->var_values[VAR_H] = inlink->h;
s->depthx = desc->comp[0].depth;
+ s->var_values[VAR_BITDEPTHX] = s->depthx;
return 0;
}
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(inlink->format);
s->depthy = desc->comp[0].depth;
+ s->var_values[VAR_BITDEPTHY] = s->depthy;
return 0;
}