RingRacers/src/m_avrecorder.h
James R 304e57cbf0 Add user feedback for AVRecorder
- real time monitoring of duration and esimated file size
- estimated frame rate of final video (encoder speed)
- print brief details of audio and video tracks upon
  starting recording
- print exact file size and duration once recording is
  finished
2023-02-24 19:21:01 -08:00

53 lines
1.2 KiB
C

// RING RACERS
//-----------------------------------------------------------------------------
// Copyright (C) 2023 by James Robert Roman
//
// This program is free software distributed under the
// terms of the GNU General Public License, version 2.
// See the 'LICENSE' file for more details.
//-----------------------------------------------------------------------------
#ifndef M_AVRECORDER_H
#define M_AVRECORDER_H
#include "typedef.h" // consvar_t
#ifdef __cplusplus
extern "C" {
#endif
void M_AVRecorder_AddCommands(void);
const char *M_AVRecorder_GetFileExtension(void);
// True if successully opened.
boolean M_AVRecorder_Open(const char *filename);
void M_AVRecorder_Close(void);
// Check whether AVRecorder is still valid. Call M_AVRecorder_Close if expired.
boolean M_AVRecorder_IsExpired(void);
const char *M_AVRecorder_GetCurrentFormat(void);
void M_AVRecorder_PrintCurrentConfiguration(void);
void M_AVRecorder_DrawFrameRate(void);
// TODO: remove once hwr2 twodee is finished
void M_AVRecorder_CopySoftwareScreen(void);
extern consvar_t
cv_movie_custom_resolution,
cv_movie_duration,
cv_movie_fps,
cv_movie_resolution,
cv_movie_showfps,
cv_movie_size,
cv_movie_sound;
#ifdef __cplusplus
}; // extern "C"
#endif
#endif/*M_AVRECORDER_H*/