>
> That means, for YUV420P (I420) with 12 bits per pixel to RGB32,
> src_stride[3] = {320*12/8, 320*12/8, 320*12/8};
> dst_stride[3] = {4*dstwidth, 4*dstwidth, 4*dstwidth};
>
> src[3] = {AVFrame->linesize, NULL, NULL};
>
>
no, i think you have the wrong end of the stick:
AVFrame * srcFrame, *dstFrame; // src frame was decoded earlier, dst frame
has been allocated already
SwsContext * context; // previously created scaler context
then
sws_scale(context, srcFrame->data, srcFrame->linesize, 0, height,
dstFrame->data, dstFrame->linesize);
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user