gmerlin
|
A/V Filters. More...
Data Structures | |
struct | bg_fa_plugin_s |
Audio filter plugin. More... | |
struct | bg_fv_plugin_s |
Video filter plugin. More... | |
Typedefs | |
typedef struct bg_fa_plugin_s | bg_fa_plugin_t |
Typedef for audio filter plugin. More... | |
typedef struct bg_fv_plugin_s | bg_fv_plugin_t |
Typedef for video filter plugin. More... | |
A/V Filters.
These can apply additional effects to uncomporessed A/V data. The API follows an asynchronous pull approach: You pass a callback for reading input frames. Then you call the read method to read one output frame. The plugin will read input data via the callback.
This mechanism allows filters, where the numbers of input frames/samples differs from the numbers of output frames/samples (e.g. when the filter does framerate conversion).
In principle, the API also supports filters with multiple input ports, but currently, only plugins with one input are available.
Not all filters support all formats. Applications should build filter chains with format converters between them. There are, however, some standard formats, which are supported by almost all filters, so the overall conversion overhead is usually zero in real-life situations.
typedef struct bg_fa_plugin_s bg_fa_plugin_t |
Typedef for audio filter plugin.
typedef struct bg_fv_plugin_s bg_fv_plugin_t |
Typedef for video filter plugin.