]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_video.h
Travis/Xonotic: use Ubuntu's mingw-w64 and fix linux32 dependency hell.
[xonotic/darkplaces.git] / cl_video.h
index de36e7e667eb47876c182074bd891efcbcfafb11..97960b89bff97adc966530381ca661366260fe4f 100644 (file)
@@ -30,6 +30,7 @@ extern cvar_t cl_video_scale;
 extern cvar_t cl_video_scale_vpos;
 extern cvar_t cl_video_stipple;
 extern cvar_t cl_video_brightness;
+extern cvar_t cl_video_keepaspectratio;
 
 typedef struct clvideo_s
 {
@@ -53,8 +54,15 @@ 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);
+       double (*getaspectratio) (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