Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
#include "libavutil/pixdesc.h"
#include "internal.h"
#include "libavutil/pixdesc.h"
#include "internal.h"
enum InterpolationMethods {
INTERP_NEAREST,
INTERP_BILINEAR,
enum InterpolationMethods {
INTERP_NEAREST,
INTERP_BILINEAR,
typedef struct GEQContext {
const AVClass *class;
typedef struct GEQContext {
const AVClass *class;
- AVExpr *e[4]; ///< expressions for each plane
+ AVExpr *e[NB_PLANES]; ///< expressions for each plane
char *expr_str[4+3]; ///< expression strings for each plane
AVFrame *picref; ///< current input buffer
uint8_t *dst; ///< reference pointer to the 8bits output
char *expr_str[4+3]; ///< expression strings for each plane
AVFrame *picref; ///< current input buffer
uint8_t *dst; ///< reference pointer to the 8bits output
- for (plane = 0; plane < 4; plane++) {
+ for (plane = 0; plane < NB_PLANES; plane++) {
static double (*p[])(void *, double, double) = { lum, cb, cr, alpha };
static const char *const func2_yuv_names[] = { "lum", "cb", "cr", "alpha", "p", NULL };
static const char *const func2_rgb_names[] = { "g", "b", "r", "alpha", "p", NULL };
static double (*p[])(void *, double, double) = { lum, cb, cr, alpha };
static const char *const func2_yuv_names[] = { "lum", "cb", "cr", "alpha", "p", NULL };
static const char *const func2_rgb_names[] = { "g", "b", "r", "alpha", "p", NULL };