Image reader plugin. More...
#include <plugin.h>
Data Fields | |
bg_plugin_common_t | common |
Infos and functions common to all plugin types. | |
const char * | extensions |
Supported file extensions (space separated). | |
int(* | read_header )(void *priv, const char *filename, gavl_video_format_t *format) |
Read the file header. | |
const bg_metadata_t *(* | get_metadata )(void *priv) |
char **(* | get_info )(void *priv) |
Get file infos. | |
int(* | read_image )(void *priv, gavl_video_frame_t *frame) |
Read the image. |
Image reader plugin.
Infos and functions common to all plugin types.
const char* bg_image_reader_plugin_s::extensions |
Supported file extensions (space separated).
int(* bg_image_reader_plugin_s::read_header)(void *priv, const char *filename, gavl_video_format_t *format) |
Read the file header.
priv | The handle returned by the create() method | |
filename | Filename | |
format | Returns the format of the image |
char**(* bg_image_reader_plugin_s::get_info)(void *priv) |
Get file infos.
priv | The handle returned by the create() method |
int(* bg_image_reader_plugin_s::read_image)(void *priv, gavl_video_frame_t *frame) |
Read the image.
priv | The handle returned by the create() method | |
frame | The frame, where the image will be copied |
After reading the image the plugin is cleaned up, so read_header() can be called again after that. If frame is NULL, no image is read, and the plugin is reset.