bg_ov_callbacks_s Struct Reference
[Video output]
Callbacks for the video output plugin.
More...
#include <plugin.h>
Data Fields |
const bg_accelerator_map_t * | accel_map |
| Accelerator map.
|
int(* | accel_callback )(void *data, int id) |
| Keyboard callback.
|
int(* | key_callback )(void *data, int key, int mask) |
| Keyboard callback.
|
int(* | key_release_callback )(void *data, int key, int mask) |
| Keyboard release callback.
|
int(* | button_callback )(void *data, int x, int y, int button, int mask) |
| Mouse button callback.
|
int(* | button_release_callback )(void *data, int x, int y, int button, int mask) |
| Mouse button release callback.
|
int(* | motion_callback )(void *data, int x, int y, int mask) |
| Motion callback.
|
void(* | show_window )(void *data, int show) |
| Show/hide callback.
|
void(* | brightness_callback )(void *data, float val) |
| Brightness change callback.
|
void(* | saturation_callback )(void *data, float val) |
| Saturation change callback.
|
void(* | contrast_callback )(void *data, float val) |
| Contrast change callback.
|
void(* | hue_callback )(void *data, float val) |
| Hue change callback.
|
void * | data |
| Application specific data passed as the first argument to all callbacks.
|
Detailed Description
Callbacks for the video output plugin.
Field Documentation
Accelerator map.
These contain accelerator keys, which get reported through the accel_callback
Keyboard callback.
- Parameters:
-
Keyboard callback.
- Parameters:
-
- Returns:
- 1 if the event should further be processed, 0 else
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Ā·
Keyboard release callback.
- Parameters:
-
- Returns:
- 1 if the event should further be processed, 0 else
Mouse button callback.
- Parameters:
-
| 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 |
- Returns:
- 1 if the event should further be processed, 0 else
Mouse button release callback.
- Parameters:
-
| 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 |
- Returns:
- 1 if the event should further be processed, 0 else
Motion callback.
- Parameters:
-
| 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 |
- Returns:
- 1 if the event should further be processed, 0 else
Show/hide callback.
- Parameters:
-
| data | The data member of this bg_ov_callbacks_s struct |
| show | 1 if the window is shown now, 0 if it is hidden. |
Brightness change callback.
- Parameters:
-
This callback can be used to update OSD when the brightness changed.
Saturation change callback.
- Parameters:
-
This callback can be used to update OSD when the saturation changed.
Contrast change callback.
- Parameters:
-
This callback can be used to update OSD when the contrast changed.
Hue change callback.
- Parameters:
-
This callback can be used to update OSD when the hue changed.
Application specific data passed as the first argument to all callbacks.
The documentation for this struct was generated from the following file:
- /home/mandrake/rpm/BUILD/gmerlin-0.4.3/include/gmerlin/plugin.h