Debian Codegraph @

src/drivers/videolog/nesvideos-piece.h

raw symbols SCIP
1 #ifndef NESVPIECEhh
2 #define NESVPIECEhh
3
4 #define NESVIDEOS_LOGGING 1
5
6 #ifdef __cplusplus
7 extern "C" {
8 #endif
9
10 /* Is video logging enabled? 0=no, 1=yes, 2=active. Default value: 0 */
11 extern int LoggingEnabled;
12
13 /* Get and set the video recording command (shell command) */
14 extern const char* NESVideoGetVideoCmd(void);
15 extern void NESVideoSetVideoCmd(const char *cmd);
16
17 /* Save 1 frame of video. (Assumed to be 16-bit RGB) */
18 /* FPS is scaled by 24 bits (*0x1000000) */
19 /* Does not do anything if LoggingEnabled<2. */
20 extern void NESVideoLoggingVideo
21 (const void*data, unsigned width, unsigned height,
22 unsigned fps_scaled,
23 unsigned bpp);
24
25 /* Save N bytes of audio. bytes_per_second is required on the first call. */
26 /* Does not do anything if LoggingEnabled<2. */
27 /* The interval of calling this function is not important, as long as all the audio
28 * data is eventually written without too big delay (5 seconds is too big)
29 * This function may be called multiple times per video frame, or once per a few video
30 * frames, or anything in between. Just that all audio data must be written exactly once,
31 * and in order. */
32 extern void NESVideoLoggingAudio
33 (const void*data,
34 unsigned rate, unsigned bits, unsigned chans,
35 unsigned nsamples);
36 /* nsamples*chans*(bits/8) = bytes in *data. */
37
38 /* Requests current AVI to be closed and new be started */
39 /* Use when encoding parameters have changed */
40 extern void NESVideoNextAVI();
41
42 extern void NESVideoSetRerecordingMode(long FrameNumber);
43 extern void NESVideoRerecordingSave(const char* slot);
44 extern void NESVideoRerecordingLoad(const char* slot);
45
46 #ifdef __cplusplus
47 }
48 #endif
49
50 #endif