diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/replay/replayvideo.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/client/replay/replayvideo.h')
| -rw-r--r-- | game/client/replay/replayvideo.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/game/client/replay/replayvideo.h b/game/client/replay/replayvideo.h new file mode 100644 index 0000000..b6ac266 --- /dev/null +++ b/game/client/replay/replayvideo.h @@ -0,0 +1,59 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +//=======================================================================================// + +#ifndef REPLAYVIDEO_H +#define REPLAYVIDEO_H +#ifdef _WIN32 +#pragma once +#endif + +//----------------------------------------------------------------------------- + +#include "video/ivideoservices.h" + +//----------------------------------------------------------------------------- + +struct ReplayVideoMode_t +{ + int m_nWidth; + int m_nHeight; + int m_nBaseFPS; + bool m_bNTSCRate; + const char *m_pName; // Can be a localization token, e.g. "#Replay_Blah" +}; + +struct ReplayQualityPreset_t +{ + const char *m_pName; + VideoEncodeCodec::EVideoEncodeCodec_t m_nCodecId; + int m_iQuality; + bool m_bMotionBlurEnabled; + int m_iMotionBlurQuality; +}; + +struct ReplayCodec_t +{ + VideoEncodeCodec::EVideoEncodeCodec_t m_nCodecId; + const char *m_pName; +}; + +//----------------------------------------------------------------------------- + +int ReplayVideo_GetVideoModeCount(); +const ReplayVideoMode_t &ReplayVideo_GetVideoMode( int i ); + +int ReplayVideo_GetDefaultQualityPreset(); +int ReplayVideo_GetQualityInterval(); // TODO: Wtf is this? +int ReplayVideo_GetQualityRange(); +int ReplayVideo_GetQualityPresetCount(); +const ReplayQualityPreset_t &ReplayVideo_GetQualityPreset( int i ); + +int ReplayVideo_GetCodecCount(); +const ReplayCodec_t &ReplayVideo_GetCodec( int i ); + +int ReplayVideo_FindCodecPresetFromCodec( VideoEncodeCodec_t nCodec ); + +//----------------------------------------------------------------------------- + +#endif // REPLAYVIDEO_H |