X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=cl_video.h;h=4277124e65eef76f01558973cf7cd5c2d36d5f59;hb=7f0610023f8f88d40c522b5c19706081fe733606;hp=589a11b875d79d3d1da1b47e8fd4742ac1b1eb7c;hpb=4db5707aa526a6e56f64c2e84ae07c2805c9e7ca;p=xonotic%2Fdarkplaces.git diff --git a/cl_video.h b/cl_video.h index 589a11b8..4277124e 100644 --- a/cl_video.h +++ b/cl_video.h @@ -54,8 +54,14 @@ typedef struct clvideo_s float subtitle_start[CLVIDEO_MAX_SUBTITLES]; float subtitle_end[CLVIDEO_MAX_SUBTITLES]; - // if a video is suspended, it is automatically paused (else we'd still have to process the frames) + // this functions gets filled by video format module + void (*close) (void *stream); + unsigned int (*getwidth) (void *stream); + unsigned int (*getheight) (void *stream); + double (*getframerate) (void *stream); + int (*decodeframe) (void *stream, void *imagedata, unsigned int Rmask, unsigned int Gmask, unsigned int Bmask, unsigned int bytesperpixel, int imagebytesperrow); + // if a video is suspended, it is automatically paused (else we'd still have to process the frames) // used to determine whether the video's resources should be freed or not double lasttime; // when lasttime - realtime > THRESHOLD, all but the stream is freed