2012-12-14 17:18:20 +00:00
|
|
|
#ifndef _VIDEO_H_
|
|
|
|
#define _VIDEO_H_
|
2009-07-17 17:27:04 +00:00
|
|
|
int FCEU_InitVirtualVideo(void);
|
|
|
|
void FCEU_KillVirtualVideo(void);
|
|
|
|
int SaveSnapshot(void);
|
2010-08-29 21:15:42 +00:00
|
|
|
int SaveSnapshot(char[]);
|
2012-12-14 17:18:20 +00:00
|
|
|
void ResetScreenshotsCounter();
|
2010-08-29 21:15:42 +00:00
|
|
|
uint32 GetScreenPixel(int x, int y, bool usebackup);
|
|
|
|
int GetScreenPixelPalette(int x, int y, bool usebackup);
|
2009-07-17 17:27:04 +00:00
|
|
|
extern uint8 *XBuf;
|
|
|
|
extern uint8 *XBackBuf;
|
2018-08-13 09:04:20 -06:00
|
|
|
extern uint8 *XDBuf;
|
|
|
|
extern uint8 *XDBackBuf;
|
2009-07-17 17:27:04 +00:00
|
|
|
extern int ClipSidesOffset;
|
2022-06-15 19:58:04 -06:00
|
|
|
|
|
|
|
struct GUIMESSAGE
|
2009-07-17 17:27:04 +00:00
|
|
|
{
|
|
|
|
//countdown for gui messages
|
|
|
|
int howlong;
|
|
|
|
|
|
|
|
//the current gui message
|
|
|
|
char errmsg[110];
|
|
|
|
|
|
|
|
//indicates that the movie should be drawn even on top of movies
|
|
|
|
bool isMovieMessage;
|
|
|
|
|
2010-08-29 21:15:42 +00:00
|
|
|
//in case of multiple lines, allow one to move the message
|
|
|
|
int linesFromBottom;
|
|
|
|
|
2022-06-15 19:58:04 -06:00
|
|
|
// constructor
|
|
|
|
GUIMESSAGE(void)
|
|
|
|
{
|
|
|
|
howlong = 0;
|
|
|
|
linesFromBottom = 0;
|
|
|
|
isMovieMessage = false;
|
|
|
|
errmsg[0] = 0;
|
|
|
|
}
|
|
|
|
};
|
2009-07-17 17:27:04 +00:00
|
|
|
|
2022-06-15 19:58:04 -06:00
|
|
|
extern GUIMESSAGE guiMessage;
|
2009-07-17 17:27:04 +00:00
|
|
|
extern GUIMESSAGE subtitleMessage;
|
|
|
|
|
2022-06-15 19:58:04 -06:00
|
|
|
extern bool vidGuiMsgEna;
|
|
|
|
|
2009-07-17 17:27:04 +00:00
|
|
|
void FCEU_DrawNumberRow(uint8 *XBuf, int *nstatus, int cur);
|
2010-08-29 21:15:42 +00:00
|
|
|
|
|
|
|
std::string FCEUI_GetSnapshotAsName();
|
2012-01-09 01:59:06 +00:00
|
|
|
void FCEUI_SetSnapshotAsName(std::string name);
|
2012-12-14 17:18:20 +00:00
|
|
|
bool FCEUI_ShowFPS();
|
|
|
|
void FCEUI_SetShowFPS(bool showFPS);
|
|
|
|
void FCEUI_ToggleShowFPS();
|
2022-06-15 19:58:04 -06:00
|
|
|
void ShowFPS(void);
|
|
|
|
void ResetFPS(void);
|
|
|
|
void snapAVI(void);
|
2012-12-14 17:18:20 +00:00
|
|
|
#endif
|