On Wed, May 20, 2009 at 1:10 PM, Vijay Mukilan <[email protected]>wrote:

> Okay ... i am not 100 % succesful with the code before explaining wht  i
> tryied i had BGR24-yuv 420 so  i did with below line ...
>
>
>
> img_convert_ctx = sws_getContext(c->width, c->height,
>   PIX_FMT_RGB24,
>   c->width, c->height,
>   PIX_FMT_YUV420P,
>   SWS_SPLINE, NULL, NULL, NULL);
>
>
> sws_scale(img_convert_ctx, tmp_picture->data, tmp_picture->linesize,
>  0, c->height, picture->data, picture->linesize);
>
>
ok, i had also found this way in ffmpeg sample, so i think that now this is
the good solution to perform colorspace convertion.
Thanks to your help.
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to