summaryrefslogtreecommitdiff
path: root/include/kitchensink/internal/subtitle/kitsubtitlepacket.h
blob: e3ae4e4df9a5a42997599e6834ad793e870f4b33 (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