bg_image_writer_plugin_s Struct Reference
[Image support]

Image writer plugin. More...

#include <plugin.h>


Data Fields

bg_plugin_common_t common
 Infos and functions common to all plugin types.
const char *(* get_extension )(void *priv)
 Return the file extension.
int(* write_header )(void *priv, const char *filename, gavl_video_format_t *format)
 Write the file header.
int(* write_image )(void *priv, gavl_video_frame_t *frame)
 Write the image.


Detailed Description

Image writer plugin.


Field Documentation

Infos and functions common to all plugin types.

const char*(* bg_image_writer_plugin_s::get_extension)(void *priv)

Return the file extension.

Parameters:
priv The handle returned by the create() method
Returns:
The extension
This function is mandatory for all plugins. Most plugins will always return the same extension. Others might have multiple supported formats, which are selected through parameters.

int(* bg_image_writer_plugin_s::write_header)(void *priv, const char *filename, gavl_video_format_t *format)

Write the file header.

Parameters:
priv The handle returned by the create() method
format Video format
Returns:
1 on success, 0 on error.
The format will be changed to the nearest format, which is supported by the plugin. To convert the source format to the output format, use a gavl_video_converter_t

Write the image.

Parameters:
priv The handle returned by the create() method
frame The frame containing the image
Returns:
1 on success, 0 on error.
After writing the image the plugin is cleaned up, so write_header() can be called again after that. If frame is NULL, no image is read, and the plugin is reset.


The documentation for this struct was generated from the following file:

Generated on Thu Dec 18 08:10:53 2008 for gmerlin by  doxygen 1.5.7.1