1
0
Fork 0

Scaler rewrite for detecting changes

New scalers for tv3x, rgb2x, rgb3x, scan2x, scan3x
Only updaterect the changed parts in sdl
Add support for 15/16/32bpp modes
Add support for highres 4bpp modes
Rewrite of vga page handlers for most other modes
AVI capturing using zmbv codec


Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2442
This commit is contained in:
Sjoerd van der Berg 2006-01-30 09:54:34 +00:00
parent 8cceb3b0e9
commit a9f5e6619b
4 changed files with 112 additions and 30 deletions

View file

@ -19,13 +19,66 @@
#ifndef DOSBOX_RENDER_H
#define DOSBOX_RENDER_H
typedef void (* RENDER_Line_Handler)(const Bit8u * src);
#include "../src/gui/render_scalers.h"
void RENDER_SetSize(Bitu width,Bitu height,Bitu bpp,double ratio,bool dblw,bool dblh);
typedef struct {
struct {
Bit8u red;
Bit8u green;
Bit8u blue;
Bit8u unused;
} rgb[256];
union {
Bit16u b16[256];
Bit32u b32[256];
} lut;
bool modified[256];
Bitu first;
Bitu last;
bool changed;
} RenderPal_t;
typedef struct {
struct {
Bitu width;
Bitu height;
Bitu bpp;
bool dblw,dblh;
double ratio;
float fps;
} src;
struct {
Bitu count;
Bitu max;
} frameskip;
struct {
Bitu size;
scalerMode_t inMode;
scalerMode_t outMode;
scalerOperation_t op;
ScalerLineHandler_t currentHandler;
Bitu lineFlags;
bool clearCache;
ScalerLineHandler_t lineHandler;
ScalerCacheHandler_t cacheHandler;
Bitu blocks, lastBlock;
Bitu outPitch;
Bit8u *outWrite;
Bitu inHeight, inLine, outLine;
} scale;
RenderPal_t pal;
bool updating;
bool active;
bool aspect;
} Render_t;
extern Render_t render;
void RENDER_DrawLine( const void *src );
void RENDER_SetSize(Bitu width,Bitu height,Bitu bpp,float fps,double ratio,bool dblw,bool dblh);
bool RENDER_StartUpdate(void);
void RENDER_EndUpdate(void);
void RENDER_SetPal(Bit8u entry,Bit8u red,Bit8u green,Bit8u blue);
extern RENDER_Line_Handler RENDER_DrawLine;
#endif