Video stream data system
Used to provide the add-on with the current video stream configuration from Kodi and arrays to pass related data back to Kodi during callbacks.
struct game_stream_video_packet |
Video stream packet
This packet contains video stream data passed to Kodi.
Class Members | ||
---|---|---|
unsigned int | width | Video width, in pixels. |
unsigned int | height | Video height, in pixels. |
float | display_aspect_ratio |
Display aspect ratio (DAR) to use when showing the video frame. An aspect ratio of 0.0 indicates square pixels, i.e. a DAR of W/H. |
GAME_VIDEO_ROTATION | rotation | Video rotation angle defined by GAME_VIDEO_ROTATION. |
const uint8_t * | data | Pointer to the video stream data given to Kodi. |
size_t | size | Size of the data array. |
struct game_stream_video_properties |
Game video stream properties
Used by Kodi to pass the currently required video stream settings to the add-on.
Class Members | ||
---|---|---|
GAME_PIXEL_FORMAT | format | The stream's pixel format. |
unsigned int | nominal_width | The nominal width, in pixels. |
unsigned int | nominal_height | The nominal height, in pixels. |
float | nominal_display_aspect_ratio |
The nominal display aspect ratio (DAR) used to show the video frame. An aspect ratio of 0.0 indicates square pixels, i.e. a DAR of W/H. |
unsigned int | max_width | The maximum width, in pixels. |
unsigned int | max_height | The maximum height, in pixels. |
enum GAME_PIXEL_FORMAT |
enum GAME_VIDEO_ROTATION |