2012-08-10 15:50:57 +00:00
|
|
|
#ifndef _VIDEO_H_
|
|
|
|
#define _VIDEO_H_
|
2006-07-29 05:46:15 +00:00
|
|
|
int FCEU_InitVirtualVideo(void);
|
|
|
|
void FCEU_KillVirtualVideo(void);
|
|
|
|
int SaveSnapshot(void);
|
2010-06-07 04:26:16 +00:00
|
|
|
int SaveSnapshot(char[]);
|
2012-11-12 12:21:59 +00:00
|
|
|
void ResetScreenshotsCounter();
|
2010-05-10 16:52:27 +00:00
|
|
|
uint32 GetScreenPixel(int x, int y, bool usebackup);
|
|
|
|
int GetScreenPixelPalette(int x, int y, bool usebackup);
|
2022-08-23 02:52:40 +00:00
|
|
|
|
|
|
|
//in case we need more flags in the future we can change the size here
|
|
|
|
//bit0 : monochrome bit
|
|
|
|
//bit5 : emph red
|
|
|
|
//bit6 : emph green
|
|
|
|
//bit7 : emph blue
|
|
|
|
typedef uint8 xfbuf_t;
|
|
|
|
|
2006-07-29 05:46:15 +00:00
|
|
|
extern uint8 *XBuf;
|
|
|
|
extern uint8 *XBackBuf;
|
2015-09-12 03:44:08 +00:00
|
|
|
extern uint8 *XDBuf;
|
|
|
|
extern uint8 *XDBackBuf;
|
2022-08-23 02:52:40 +00:00
|
|
|
extern xfbuf_t *XFBuf;
|
|
|
|
|
2008-11-16 04:38:19 +00:00
|
|
|
extern int ClipSidesOffset;
|
2022-01-21 23:41:09 +00:00
|
|
|
|
|
|
|
struct GUIMESSAGE
|
2008-05-27 04:40:03 +00:00
|
|
|
{
|
|
|
|
//countdown for gui messages
|
|
|
|
int howlong;
|
|
|
|
|
|
|
|
//the current gui message
|
2008-11-23 23:49:15 +00:00
|
|
|
char errmsg[110];
|
2008-05-27 04:40:03 +00:00
|
|
|
|
|
|
|
//indicates that the movie should be drawn even on top of movies
|
|
|
|
bool isMovieMessage;
|
|
|
|
|
2010-05-16 04:18:49 +00:00
|
|
|
//in case of multiple lines, allow one to move the message
|
|
|
|
int linesFromBottom;
|
|
|
|
|
2022-01-21 23:41:09 +00:00
|
|
|
// constructor
|
|
|
|
GUIMESSAGE(void)
|
|
|
|
{
|
|
|
|
howlong = 0;
|
|
|
|
linesFromBottom = 0;
|
|
|
|
isMovieMessage = false;
|
|
|
|
errmsg[0] = 0;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
extern GUIMESSAGE guiMessage;
|
2008-11-23 23:49:15 +00:00
|
|
|
extern GUIMESSAGE subtitleMessage;
|
2008-05-27 04:40:03 +00:00
|
|
|
|
2022-01-21 23:23:49 +00:00
|
|
|
extern bool vidGuiMsgEna;
|
|
|
|
|
2006-07-29 05:46:15 +00:00
|
|
|
void FCEU_DrawNumberRow(uint8 *XBuf, int *nstatus, int cur);
|
2010-06-07 16:26:41 +00:00
|
|
|
|
|
|
|
std::string FCEUI_GetSnapshotAsName();
|
2011-09-23 18:09:40 +00:00
|
|
|
void FCEUI_SetSnapshotAsName(std::string name);
|
2012-08-12 16:22:22 +00:00
|
|
|
bool FCEUI_ShowFPS();
|
|
|
|
void FCEUI_SetShowFPS(bool showFPS);
|
2012-09-26 20:19:01 +00:00
|
|
|
void FCEUI_ToggleShowFPS();
|
2021-10-09 01:53:16 +00:00
|
|
|
void ShowFPS(void);
|
|
|
|
void ResetFPS(void);
|
|
|
|
void snapAVI(void);
|
2012-08-10 15:50:57 +00:00
|
|
|
#endif
|