24 uint8_t *
const src_data[4],
int src_linesize[4],
30 dst_w, dst_h, dst_pix_fmt,
34 "Impossible to create scale context for the conversion "
35 "fmt:%s s:%dx%d -> fmt:%s s:%dx%d\n",
42 if ((ret =
av_image_alloc(dst_data, dst_linesize, dst_w, dst_h, dst_pix_fmt, 16)) < 0)
45 sws_scale(sws_ctx, (
const uint8_t *
const*)src_data, src_linesize, 0, src_h, dst_data, dst_linesize);