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:
-
| data | The data member of this bg_ov_callbacks_s struct - Parameters:
-
| key | Key code (see System independent keycode definitions) - Parameters:
-
| mask | Modifier mask (see System independent keycode definitions) - 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:
-
Mouse button callback.
- Parameters:
-
| data | The data member of this bg_ov_callbacks_s struct - Parameters:
-
| x | Horizontal cursor position in image coordinates - Parameters:
-
| y | Vertical cursor position in image coordinates - Parameters:
-
| button | Number of the mouse button, which was pressed (starting with 1) - Parameters:
-
| 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 - Parameters:
-
| x | Horizontal cursor position in image coordinates - Parameters:
-
| y | Vertical cursor position in image coordinates - Parameters:
-
| button | Number of the mouse button, which was pressed (starting with 1) - Parameters:
-
| 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 - Parameters:
-
| x | Horizontal cursor position in image coordinates - Parameters:
-
| y | Vertical cursor position in image coordinates - Parameters:
-
| 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 - Parameters:
-
| show | 1 if the window is shown now, 0 if it is hidden. |
|
Brightness change callback.
- Parameters:
-
| data | The data member of this bg_ov_callbacks_s struct - Parameters:
-
This callback can be used to update OSD when the brightness changed. |
Saturation change callback.
- Parameters:
-
| data | The data member of this bg_ov_callbacks_s struct - Parameters:
-
This callback can be used to update OSD when the saturation changed. |
Contrast change callback.
- Parameters:
-
| data | The data member of this bg_ov_callbacks_s struct - Parameters:
-
This callback can be used to update OSD when the contrast changed. |
Hue change callback.
- Parameters:
-
| data | The data member of this bg_ov_callbacks_s struct - 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:
- /usr/src/packages/BUILD/gmerlin-1.0.0/include/gmerlin/plugin.h