FFmpeg
Functions
lavfutils.c File Reference
#include <stdint.h>
#include "libavutil/frame.h"
#include "libavutil/log.h"
#include "libavformat/avformat.h"
#include "libavcodec/avcodec.h"
#include "lavfutils.h"

Go to the source code of this file.

Functions

int ff_load_image (struct AVFrame **outframe, const char *filename, void *log_ctx)
 Load image from filename and put the resulting image in an AVFrame. More...
 

Function Documentation

◆ ff_load_image()

int ff_load_image ( struct AVFrame **  outframe,
const char *  filename,
void *  log_ctx 
)

Load image from filename and put the resulting image in an AVFrame.

Parameters
outframepointer to a pointer to an AVFrame; *outframe will point to a new allocated AVFrame on success
filenamethe name of the image file to load
log_ctxlog context
Returns
>= 0 in case of success, a negative error code otherwise.

Definition at line 32 of file lavfutils.c.

Referenced by init(), init_axis_from_file(), and load_mask().