Its the width in bytes and not the linesize or stride.
This makes the naming more consistent with the rest of the codebase
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
typedef struct {
const AVClass *class;
int nb_planes;
typedef struct {
const AVClass *class;
int nb_planes;
int height[4];
FilterParams all;
FilterParams param[4];
int height[4];
FilterParams all;
FilterParams param[4];
n->nb_planes = av_pix_fmt_count_planes(inlink->format);
n->nb_planes = av_pix_fmt_count_planes(inlink->format);
- if ((ret = av_image_fill_linesizes(n->linesize, inlink->format, inlink->w)) < 0)
+ if ((ret = av_image_fill_linesizes(n->bytewidth, inlink->format, inlink->w)) < 0)
return ret;
n->height[1] = n->height[2] = FF_CEIL_RSHIFT(inlink->h, desc->log2_chroma_h);
return ret;
n->height[1] = n->height[2] = FF_CEIL_RSHIFT(inlink->h, desc->log2_chroma_h);
noise(td->out->data[plane] + start * td->out->linesize[plane],
td->in->data[plane] + start * td->in->linesize[plane],
td->out->linesize[plane], td->in->linesize[plane],
noise(td->out->data[plane] + start * td->out->linesize[plane],
td->in->data[plane] + start * td->in->linesize[plane],
td->out->linesize[plane], td->in->linesize[plane],
- s->linesize[plane], start, end, s, plane);
+ s->bytewidth[plane], start, end, s, plane);