HI list!
I've searched a lot about this, and I've found different ways to do the
conversion, some of them old and deprecated (img_convert). As far as I can
understand, now the right way is using sws_scale, so I've tried to use it, but
something seems to be wrong in my code :/
Basically my code do:
SwsContext *fooContext = sws_getContext(w,h,PIX_FMT_BGR32,
w,h,PIX_FMT_YUV420P,
SWS_FAST_BILINEAR,NULL,NULL,NULL);
sws_scale(fooContext,sourceFrame->data,sourceFrame->linesize,0,h,destFrame-
>data,destFrame->linesize);
Then, I use some code almost "copied" from output-example, to write the video.
What I'm missing? I read something about use sws_setColorspaceDetails() to set
the right brightness etc, but nothing clear :/
Thanks! and congrats for the project! libav really rocks!
--
Alex Fiestas
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user