2017-03-05 20:46 GMT-05:00 Carl Eugen Hoyos <[email protected]>:
> 2017-03-06 1:44 GMT+01:00 Gustav González <[email protected]>:
>
> > So, my next challenge is to low the size of the frames to finish my
> > implementation. Any hint?
>
> Yes, please see my last two emails in this thread.
>
> Carl Eugen
> _______________________________________________
> Libav-user mailing list
> [email protected]
> http://ffmpeg.org/mailman/listinfo/libav-user
>
Getting back to the libswscale approach, I was trying to transform the
QImage sequence into AVFrame variables:
QImage image(path_to_image);
AVPicture picture;
avpicture_alloc(&picture, PIX_FMT_RGB32, w, h);
memcpy(picture.data[0], image.bits(), w*h*4);
QVector<int> strides(image.height(), image.bytesPerLine());
struct SwsContext *sws_context = sws_getContext(w, h,
PIX_FMT_RGB32, w, h, AV_PIX_FMT_RGB8, SWS_BICUBIC, NULL, NULL, NULL);
sws_scale(sws_context, picture.data, picture.linesize, 0, h,
frame->data, frame->linesize);
Is this code something similar or related to your suggestion? Thanks.
--
============================
Gustav Gonzalez
[email protected]
============================
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user