FFmpeg
Functions
lavfutils.h File Reference

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...
 

Detailed Description

Miscellaneous utilities which make use of the libavformat library

Definition in file lavfutils.h.

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().