gmerlin
|
Callbacks for the video output plugin. More...
#include <plugin.h>
Data Fields | |
const bg_accelerator_map_t * | accel_map |
Accelerator map. More... | |
int(* | accel_callback )(void *data, int id) |
Keyboard callback. More... | |
int(* | key_callback )(void *data, int key, int mask) |
Keyboard callback. More... | |
int(* | key_release_callback )(void *data, int key, int mask) |
Keyboard release callback. More... | |
int(* | button_callback )(void *data, int x, int y, int button, int mask) |
Mouse button callback. More... | |
int(* | button_release_callback )(void *data, int x, int y, int button, int mask) |
Mouse button release callback. More... | |
int(* | motion_callback )(void *data, int x, int y, int mask) |
Motion callback. More... | |
void(* | show_window )(void *data, int show) |
Show/hide callback. More... | |
void(* | brightness_callback )(void *data, float val) |
Brightness change callback. More... | |
void(* | saturation_callback )(void *data, float val) |
Saturation change callback. More... | |
void(* | contrast_callback )(void *data, float val) |
Contrast change callback. More... | |
void(* | hue_callback )(void *data, float val) |
Hue change callback. More... | |
void * | data |
Application specific data passed as the first argument to all callbacks. More... | |
Callbacks for the video output plugin.
const bg_accelerator_map_t* bg_ov_callbacks_s::accel_map |
Accelerator map.
These contain accelerator keys, which get reported through the accel_callback
int(* bg_ov_callbacks_s::accel_callback)(void *data, int id) |
Keyboard callback.
data | The data member of this bg_ov_callbacks_s struct |
id | The accelerator ID |
int(* bg_ov_callbacks_s::key_callback)(void *data, int key, int mask) |
Keyboard callback.
data | The data member of this bg_ov_callbacks_s struct |
key | Key code (see System independent keycode definitions) |
mask | Modifier mask (see System independent keycode definitions) |
Although key_callback and accel_callback can be used at the same time, accelerator_callback is preferred, because it allows registering keyboard shortcuts in advance. This makes things more reliable, if different modules (e.g. embedded visualization plugins) also want to receive keybords eventsĀ·
int(* bg_ov_callbacks_s::key_release_callback)(void *data, int key, int mask) |
Keyboard release callback.
data | The data member of this bg_ov_callbacks_s struct |
key | Key code (see System independent keycode definitions) |
mask | Modifier mask (see System independent keycode definitions) |
int(* bg_ov_callbacks_s::button_callback)(void *data, int x, int y, int button, int mask) |
Mouse button callback.
data | The data member of this bg_ov_callbacks_s struct |
x | Horizontal cursor position in image coordinates |
y | Vertical cursor position in image coordinates |
button | Number of the mouse button, which was pressed (starting with 1) |
mask | State mask |
int(* bg_ov_callbacks_s::button_release_callback)(void *data, int x, int y, int button, int mask) |
Mouse button release callback.
data | The data member of this bg_ov_callbacks_s struct |
x | Horizontal cursor position in image coordinates |
y | Vertical cursor position in image coordinates |
button | Number of the mouse button, which was pressed (starting with 1) |
mask | State mask |
int(* bg_ov_callbacks_s::motion_callback)(void *data, int x, int y, int mask) |
Motion callback.
data | The data member of this bg_ov_callbacks_s struct |
x | Horizontal cursor position in image coordinates |
y | Vertical cursor position in image coordinates |
mask | State mask |
void(* bg_ov_callbacks_s::show_window)(void *data, int show) |
Show/hide callback.
data | The data member of this bg_ov_callbacks_s struct |
show | 1 if the window is shown now, 0 if it is hidden. |
void(* bg_ov_callbacks_s::brightness_callback)(void *data, float val) |
Brightness change callback.
data | The data member of this bg_ov_callbacks_s struct |
val | New value (0.0..1.0) |
This callback can be used to update OSD when the brightness changed.
void(* bg_ov_callbacks_s::saturation_callback)(void *data, float val) |
Saturation change callback.
data | The data member of this bg_ov_callbacks_s struct |
val | New value (0.0..1.0) |
This callback can be used to update OSD when the saturation changed.
void(* bg_ov_callbacks_s::contrast_callback)(void *data, float val) |
Contrast change callback.
data | The data member of this bg_ov_callbacks_s struct |
val | New value (0.0..1.0) |
This callback can be used to update OSD when the contrast changed.
void(* bg_ov_callbacks_s::hue_callback)(void *data, float val) |
Hue change callback.
data | The data member of this bg_ov_callbacks_s struct |
val | New value (0.0..1.0) |
This callback can be used to update OSD when the hue changed.
void* bg_ov_callbacks_s::data |
Application specific data passed as the first argument to all callbacks.