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);
|
2006-07-29 05:46:15 +00:00
|
|
|
extern uint8 *XBuf;
|
|
|
|
extern uint8 *XBackBuf;
|
2008-11-16 04:38:19 +00:00
|
|
|
extern int ClipSidesOffset;
|
2008-05-27 04:40:03 +00:00
|
|
|
extern struct GUIMESSAGE
|
|
|
|
{
|
|
|
|
//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;
|
|
|
|
|
2008-05-27 04:40:03 +00:00
|
|
|
} guiMessage;
|
|
|
|
|
2008-11-23 23:49:15 +00:00
|
|
|
extern GUIMESSAGE subtitleMessage;
|
2008-05-27 04:40:03 +00:00
|
|
|
|
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();
|
2012-08-14 17:06:43 +00:00
|
|
|
void ShowFPS();
|
2012-08-10 15:50:57 +00:00
|
|
|
void snapAVI();
|
|
|
|
#endif
|