diff options
author | Tuomas Virtanen <katajakasa@gmail.com> | 2017-09-12 00:06:31 +0300 |
---|---|---|
committer | Tuomas Virtanen <katajakasa@gmail.com> | 2017-09-22 15:15:57 +0300 |
commit | fd7bbceb6321250ed5d80103d13e9d7584b552ac (patch) | |
tree | b8202cd4c110d3e93c1c7a4032252e66c3e11073 /include/kitchensink/kitplayer.h | |
parent | bf1d1e30ac4062a2f764193a865761161ec7fc6b (diff) |
Split kitplayer.c to multiple files
Diffstat (limited to 'include/kitchensink/kitplayer.h')
-rw-r--r-- | include/kitchensink/kitplayer.h | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/include/kitchensink/kitplayer.h b/include/kitchensink/kitplayer.h index b9ea1c7..9505208 100644 --- a/include/kitchensink/kitplayer.h +++ b/include/kitchensink/kitplayer.h @@ -3,6 +3,7 @@ #include "kitchensink/kitsource.h" #include "kitchensink/kitconfig.h" +#include "kitchensink/kitformats.h" #include <SDL2/SDL_render.h> #include <SDL2/SDL_thread.h> @@ -24,29 +25,6 @@ typedef enum Kit_PlayerState { KIT_CLOSED ///< Playback is stopped and player is closing. } Kit_PlayerState; -typedef struct Kit_AudioFormat { - int stream_idx; ///< Stream index - bool is_enabled; ///< Is stream enabled - unsigned int format; ///< SDL Audio Format - bool is_signed; ///< Signedness - int bytes; ///< Bytes per sample per channel - int samplerate; ///< Sampling rate - int channels; ///< Channels -} Kit_AudioFormat; - -typedef struct Kit_VideoFormat { - int stream_idx; ///< Stream index - bool is_enabled; ///< Is stream enabled - unsigned int format; ///< SDL Pixel Format - int width; ///< Width in pixels - int height; ///< Height in pixels -} Kit_VideoFormat; - -typedef struct Kit_SubtitleFormat { - int stream_idx; ///< Stream index - bool is_enabled; ///< Is stream enabled -} Kit_SubtitleFormat; - typedef struct Kit_Player { // Local state Kit_PlayerState state; ///< Playback state |