[Libav-user] Loading an image with AVFrame

Corey Taylor corey.taylor.fl at gmail.com
Tue Feb 20 13:31:58 EET 2018

On Mon, Feb 19, 2018 at 8:58 AM, Pedro Pereira <1995pedropereira at gmail.com>

> However I am only interested in loading an image (or a frame of a video)
> and apply the scaling operation.
> I searched for a way to load an image to an AVFrame, apply the sws_scale
> and then write the resulting AVFrame to a file so I can verify the result.

If you want to create a single frame and pass it to sws_scale, take a look
at the scaling_video.c example.

You can ignore the code that opens the file and writes out frames.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20180220/ef0b4fb5/attachment.html>

More information about the Libav-user mailing list