aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/client/replay/replayvideo.h
diff options
context:
space:
mode:
authorJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
committerJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
commit39ed87570bdb2f86969d4be821c94b722dc71179 (patch)
treeabc53757f75f40c80278e87650ea92808274aa59 /mp/src/game/client/replay/replayvideo.h
downloadsource-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz
source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip
First version of the SOurce SDK 2013
Diffstat (limited to 'mp/src/game/client/replay/replayvideo.h')
-rw-r--r--mp/src/game/client/replay/replayvideo.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/mp/src/game/client/replay/replayvideo.h b/mp/src/game/client/replay/replayvideo.h
new file mode 100644
index 00000000..1c33bfa4
--- /dev/null
+++ b/mp/src/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