<div dir="ltr">2017-03-05 20:46 GMT-05:00 Carl Eugen Hoyos <span dir="ltr"><<a href="mailto:ceffmpeg@gmail.com" target="_blank">ceffmpeg@gmail.com</a>></span>:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">2017-03-06 1:44 GMT+01:00 Gustav González <<a href="mailto:xtingray@gmail.com">xtingray@gmail.com</a>>:<br>
<br>
> So, my next challenge is to low the size of the frames to finish my<br>
> implementation. Any hint?<br>
<br>
</span>Yes, please see my last two emails in this thread.<br>
<div class="gmail-HOEnZb"><div class="gmail-h5"><br>
Carl Eugen<br>
______________________________<wbr>_________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/<wbr>listinfo/libav-user</a><br>
</div></div></blockquote></div><br><br></div><div class="gmail_extra">Getting back to the libswscale approach, I was trying to transform the QImage sequence into AVFrame variables:<br><br></div><div class="gmail_extra">        QImage image(path_to_image);<br></div><div class="gmail_extra">        AVPicture picture;<br>        avpicture_alloc(&picture, PIX_FMT_RGB32, w, h);<br>        memcpy(picture.data[0], image.bits(), w*h*4);<br><br>        QVector<int> strides(image.height(), image.bytesPerLine());<br>        struct SwsContext *sws_context = sws_getContext(w, h, PIX_FMT_RGB32, w, h, AV_PIX_FMT_RGB8, SWS_BICUBIC, NULL, NULL, NULL);<br>        sws_scale(sws_context, picture.data, picture.linesize, 0, h, frame->data, frame->linesize);<br><br></div><div class="gmail_extra">Is this code something similar or related to your suggestion? Thanks.<br><br>-- <br><div class="gmail_signature">============================<br>  Gustav Gonzalez<br>  <a href="mailto:xtingray@gmail.com" target="_blank">xtingray@gmail.com</a><br>============================</div>
</div></div>