diff options
author | Tuomas Virtanen <katajakasa@gmail.com> | 2018-03-26 01:24:49 +0300 |
---|---|---|
committer | Tuomas Virtanen <katajakasa@gmail.com> | 2018-03-26 01:24:49 +0300 |
commit | be594be5832e05d51cced3921dcdca05765f8460 (patch) | |
tree | 24575a9703e9756bc5290771cf855e7dd5fa4722 /include/kitchensink/internal/subtitle/kitsubtitlepacket.h | |
parent | eace70f1c1c7ba7339713666a76213acf1125202 (diff) |
Toy around more with ass/ssa subtitles
Diffstat (limited to 'include/kitchensink/internal/subtitle/kitsubtitlepacket.h')
-rw-r--r-- | include/kitchensink/internal/subtitle/kitsubtitlepacket.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/kitchensink/internal/subtitle/kitsubtitlepacket.h b/include/kitchensink/internal/subtitle/kitsubtitlepacket.h new file mode 100644 index 0000000..989cde7 --- /dev/null +++ b/include/kitchensink/internal/subtitle/kitsubtitlepacket.h @@ -0,0 +1,18 @@ +#ifndef KITSUBTITLEPACKET_H
+#define KITSUBTITLEPACKET_H
+
+#include <SDL2/SDL_Surface.h>
+
+typedef struct Kit_SubtitlePacket {
+ double pts_start;
+ double pts_end;
+ int x;
+ int y;
+ SDL_Surface *surface;
+} Kit_SubtitlePacket;
+
+Kit_SubtitlePacket* Kit_CreateSubtitlePacket(
+ double pts_start, double pts_end, int pos_x, int pos_y, SDL_Surface *surface);
+void Kit_FreeSubtitlePacket(Kit_SubtitlePacket *packet);
+
+#endif // KITSUBTITLEPACKET_H
|