Kodi Development 22.0
for Binary and Script based Add-Ons
 
Loading...
Searching...
No Matches

Detailed Description

The for Video stream used data system

Used to give Addon currently used video stream configuration on Kodi and arrays to give related data to Kodi on 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 height.
unsigned int height Video width.
GAME_VIDEO_ROTATION rotation Width GAME_VIDEO_ROTATION defined rotation angle.
const uint8_t * data Pointer for video stream data given to Kodi.
size_t size Size of 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 addon

Class Members
GAME_PIXEL_FORMAT format The stream's pixel format.
unsigned int nominal_width The nominal used width.
unsigned int nominal_height The nominal used height.
unsigned int max_width The maximal used width.
unsigned int max_height The maximal used height.
float aspect_ratio On video stream used aspect ration.
Note
If aspect_ratio is <= 0.0, an aspect ratio of nominal_width / nominal_height is assumed

Enumeration Type Documentation

◆ GAME_PIXEL_FORMAT

Pixel format

From Kodi requested specified video RGB color model format.

Enumerator
GAME_PIXEL_FORMAT_0RGB8888 

0RGB8888 Format

GAME_PIXEL_FORMAT_RGB565 

RGB565 Format.

GAME_PIXEL_FORMAT_0RGB1555 

0RGB1555 Format

◆ GAME_VIDEO_ROTATION

Video rotation position

To define position how video becomes shown.

Enumerator
GAME_VIDEO_ROTATION_0 

0° and 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