FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
lavfutils.c File Reference
#include "libavutil/imgutils.h"
#include "lavfutils.h"

Go to the source code of this file.

Functions

int ff_load_image (uint8_t *data[4], int linesize[4], int *w, int *h, enum AVPixelFormat *pix_fmt, const char *filename, void *log_ctx)
 Load image from filename and put the resulting image in data. More...
 

Function Documentation

int ff_load_image ( uint8_t data[4],
int  linesize[4],
int *  w,
int *  h,
enum AVPixelFormat pix_fmt,
const char *  filename,
void log_ctx 
)

Load image from filename and put the resulting image in data.

Parameters
wpointer to the width of the loaded image
hpointer to the height of the loaded image
pix_fmtpointer to the pixel format of the loaded image
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 24 of file lavfutils.c.

Referenced by init(), and load_mask().