summaryrefslogtreecommitdiff
path: root/include/kitchensink/internal/subtitle/kitsubtitle.h
blob: 7ea6fbd62925234ba1ce966280763f2f5c10b676 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef KITSUBTITLE_H
#define KITSUBTITLE_H

#include <SDL_render.h>

#include "kitchensink/kitconfig.h"
#include "kitchensink/kitsource.h"
#include "kitchensink/internal/kitdecoder.h"

KIT_LOCAL Kit_Decoder* Kit_CreateSubtitleDecoder(
    const Kit_Source *src, int stream_index, int video_w, int video_h, int screen_w, int screen_h);
KIT_LOCAL int Kit_GetSubtitleDecoderData(
    Kit_Decoder *dec, SDL_Texture *texture, SDL_Rect *sources, SDL_Rect *targets, int limit);
KIT_LOCAL void Kit_SetSubtitleDecoderSize(Kit_Decoder *dec, int w, int h);

#endif // KITSUBTITLE_H