summaryrefslogtreecommitdiff
path: root/include/kitchensink/kitplayer.h
diff options
context:
space:
mode:
authorTuomas Virtanen <katajakasa@gmail.com>2018-06-23 17:53:11 +0300
committerTuomas Virtanen <katajakasa@gmail.com>2018-06-23 17:53:11 +0300
commit60dd75397f1ce9c4a56e74ee0bb94cebd4ab831c (patch)
tree03b39dc8f6f1b2167971dd6b3a7fa89a3ee29bda /include/kitchensink/kitplayer.h
parent329de67ea44552c1d08e23203daee7e878ffd759 (diff)
Implement new API for subtitle screen size and stream indexes
Diffstat (limited to 'include/kitchensink/kitplayer.h')
-rw-r--r--include/kitchensink/kitplayer.h22
1 files changed, 18 insertions, 4 deletions
diff --git a/include/kitchensink/kitplayer.h b/include/kitchensink/kitplayer.h
index b38385a..04e1a0b 100644
--- a/include/kitchensink/kitplayer.h
+++ b/include/kitchensink/kitplayer.h
@@ -52,13 +52,27 @@ typedef struct Kit_PlayerInfo {
Kit_SubtitleFormat subtitle; ///< Subtitle format information
} Kit_PlayerInfo;
-KIT_API Kit_Player* Kit_CreatePlayer(const Kit_Source *src);
+KIT_API Kit_Player* Kit_CreatePlayer(const Kit_Source *src,
+ int video_stream_index,
+ int audio_stream_index,
+ int subtitle_stream_index,
+ int screen_w,
+ int screen_h);
KIT_API void Kit_ClosePlayer(Kit_Player *player);
+KIT_API void Kit_SetPlayerScreenSize(Kit_Player *player, int w, int h);
+KIT_API int Kit_SetPlayerVideoStream(Kit_Player *player, int index);
+KIT_API int Kit_SetPlayerAudioStream(Kit_Player *player, int index);
+KIT_API int Kit_SetPlayerSubtitleStream(Kit_Player *player, int index);
+
KIT_API int Kit_UpdatePlayer(Kit_Player *player);
-KIT_API int Kit_GetVideoData(Kit_Player *player, SDL_Texture *texture);
-KIT_API int Kit_GetSubtitleData(Kit_Player *player, SDL_Texture *texture, SDL_Rect *sources, SDL_Rect *targets, int limit);
-KIT_API int Kit_GetAudioData(Kit_Player *player, unsigned char *buffer, int length);
+KIT_API int Kit_GetPlayerVideoData(Kit_Player *player, SDL_Texture *texture);
+KIT_API int Kit_GetPlayerSubtitleData(Kit_Player *player,
+ SDL_Texture *texture,
+ SDL_Rect *sources,
+ SDL_Rect *targets,
+ int limit);
+KIT_API int Kit_GetPlayerAudioData(Kit_Player *player, unsigned char *buffer, int length);
KIT_API void Kit_GetPlayerInfo(const Kit_Player *player, Kit_PlayerInfo *info);
KIT_API Kit_PlayerState Kit_GetPlayerState(const Kit_Player *player);