Kodi Development 22.0
for Binary and Script based Add-Ons
 
All Classes Functions Variables Typedefs Enumerations Enumerator Modules Pages
Loading...
Searching...
No Matches

Detailed Description

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.


Class Documentation

◆ game_stream_video_packet

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.

◆ game_stream_video_properties

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.

Enumeration Type Documentation

◆ GAME_PIXEL_FORMAT

Pixel format

Video RGB color model format requested by Kodi.

Enumerator
GAME_PIXEL_FORMAT_0RGB8888 

0RGB8888 Format

GAME_PIXEL_FORMAT_RGB565 

RGB565 Format.

GAME_PIXEL_FORMAT_0RGB1555 

0RGB1555 Format

◆ GAME_VIDEO_ROTATION

Video rotation orientation

Defines how the video is rotated.

Enumerator
GAME_VIDEO_ROTATION_0 

0° without rotation

GAME_VIDEO_ROTATION_90_CCW 

Rotate 90° counterclockwise.

GAME_VIDEO_ROTATION_180_CCW 

Rotate 180° counterclockwise.

GAME_VIDEO_ROTATION_270_CCW 

Rotate 270° counterclockwise.