2
xfree 4.0 dga fullscreen mode
3
Copyright (C) 2000 Martin Vogt, Christian Gerlach
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
14
#ifndef __IMAGEDGAFULL_H
15
#define __IMAGEDGAFULL_H
18
#include "../imageBase.h"
27
#include <sys/types.h>
32
#define DGA_MINMAJOR 2
33
#define DGA_MINMINOR 0
40
Displays and renders X11 images in software with the help
41
of the ditherWrapper class. It switches to xfree 4.0 dga 2.0
42
and needs root priviliges for that
47
class ImageDGAFull : public ImageBase {
65
XDGAMode *m_pDGAModes;
66
XDGADevice *m_pDevice;
72
char *m_pAddr; // Base address of the screen
79
int m_iBytesPerRow; // Size of one image line
83
char *m_pStartAddr; // Start address for a centered image
93
DitherWrapper* ditherWrapper;
100
void init(XWindow *xWindow, YUVPicture* pic = NULL);
104
int openImage(int mode);
107
void ditherImage(YUVPicture* pic);
110
int active() { return m_bIsActive; }
114
// Tries to find a fullscreen-mode which matches the resolution best
115
int findMode(int width, int height, int bpp);
117
// Returns TRUE if an event is waiting
120
// Returns the start address of the upper left corner of the video frame
121
unsigned char *address();
123
// Number of bytes from the end of a row to the beginning of next one
126
// Disables DGA-View (performs a mode-switch if neccesary)