2
nice try of an X11 output plugin
3
Copyright (C) 1999 Martin Vogt
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU Library General Public License as published by
7
the Free Software Foundation.
9
For more information look at the file COPYRIGHT in this package
15
#ifndef __VIDEOOUTPUTX11_H
16
#define __VIDEOOUTPUTX11_H
19
#include "yuvPicture.h"
22
#define _PICTURE_ARRAY_SIZE 5
26
class YUVPicture* pictureArray[_PICTURE_ARRAY_SIZE];
28
class YUVPicture* past; /* Past predictive frame. */
29
class YUVPicture* future; /* Future predictive frame. */
30
class YUVPicture* current; /* Current frame. */
39
PictureArray(int width, int height);
42
inline YUVPicture* getPast() {return past;}
43
inline YUVPicture* getFuture() {return future;}
44
inline YUVPicture* getCurrent() {return current;}
47
inline void setPast(YUVPicture* pic) {past=pic;}
48
inline void setFuture(YUVPicture* pic) {future=pic;}
49
inline void setCurrent(YUVPicture* pic) {current=pic;}
50
inline int getWidth() { return width; }
51
inline int getWidth_Half() { return width/2; }
53
// attention with these!
54
// these are shares pointer
55
// only call after mpegVidRsrc and then set them back to NULL
56
YUVPicture* getYUVPictureCallback();
57
void setYUVPictureCallback(YUVPicture* pic);
62
void setPicturePerSecond(double val);
63
double getPicturePerSecond();
65
// use these to swap the yuv Mode
66
inline int getImageType() { return imageType; }
67
void setImageType(int mode);
71
YUVPicture* pictureCallback;