summaryrefslogtreecommitdiff
path: root/include/kitchensink/internal/subtitle/kitsubtitlepacket.h
blob: 989cde7f342b4ede484ddc7d1b465d38a64c8719 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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