Files
Main_MiSTer/scaler.h
Alan Steremberg 6992c3e135 screenshot - changed png library to imlib2, and added scaling by default (#481)
windows - PrintScrn will output the image scaled to the output resolution of the scaler. Windows - LSHIFT - PrintScrn will save the original size from the core.
2021-11-16 06:09:33 +08:00

32 lines
736 B
C

/*
Copyright 2019 alanswx
with help from the MiSTer contributors including Grabulosaure
*/
#ifndef SCALER_H
#define SCALER_H
typedef struct {
int header;
int width;
int height;
int line;
int output_width;
int output_height;
char *map;
int num_bytes;
int map_off;
} mister_scaler;
#define MISTER_SCALER_BASEADDR 0x20000000
#define MISTER_SCALER_BUFFERSIZE 2048*3*1024
mister_scaler *mister_scaler_init();
int mister_scaler_read(mister_scaler *,unsigned char *buffer);
int mister_scaler_read_32(mister_scaler *ms, unsigned char *buffer);
int mister_scaler_read_yuv(mister_scaler *ms,int,unsigned char *y,int, unsigned char *U,int, unsigned char *V);
void mister_scaler_free(mister_scaler *);
#endif