typedef struct PixdescTestContext {
const AVPixFmtDescriptor *pix_desc;
- uint16_t *line;
+ uint32_t *line;
} PixdescTestContext;
static av_cold void uninit(AVFilterContext *ctx)
}
/* copy palette */
- if (priv->pix_desc->flags & AV_PIX_FMT_FLAG_PAL ||
- ((priv->pix_desc->flags & FF_PSEUDOPAL) && out->data[1] && in->data[1]))
+ if (priv->pix_desc->flags & AV_PIX_FMT_FLAG_PAL)
memcpy(out->data[1], in->data[1], AVPALETTE_SIZE);
for (c = 0; c < priv->pix_desc->nb_components; c++) {
const int h1 = c == 1 || c == 2 ? ch : h;
for (i = 0; i < h1; i++) {
- av_read_image_line(priv->line,
+ av_read_image_line2(priv->line,
(void*)in->data,
in->linesize,
priv->pix_desc,
- 0, i, c, w1, 0);
+ 0, i, c, w1, 0, 4);
- av_write_image_line(priv->line,
+ av_write_image_line2(priv->line,
out->data,
out->linesize,
priv->pix_desc,
- 0, i, c, w1);
+ 0, i, c, w1, 4);
}
}