Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.6 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. //=======================================================================================//
  4. #ifndef REPLAYVIDEO_H
  5. #define REPLAYVIDEO_H
  6. #ifdef _WIN32
  7. #pragma once
  8. #endif
  9. //-----------------------------------------------------------------------------
  10. #include "video/ivideoservices.h"
  11. //-----------------------------------------------------------------------------
  12. struct ReplayVideoMode_t
  13. {
  14. int m_nWidth;
  15. int m_nHeight;
  16. int m_nBaseFPS;
  17. bool m_bNTSCRate;
  18. const char *m_pName; // Can be a localization token, e.g. "#Replay_Blah"
  19. };
  20. struct ReplayQualityPreset_t
  21. {
  22. const char *m_pName;
  23. VideoEncodeCodec::EVideoEncodeCodec_t m_nCodecId;
  24. int m_iQuality;
  25. bool m_bMotionBlurEnabled;
  26. int m_iMotionBlurQuality;
  27. };
  28. struct ReplayCodec_t
  29. {
  30. VideoEncodeCodec::EVideoEncodeCodec_t m_nCodecId;
  31. const char *m_pName;
  32. };
  33. //-----------------------------------------------------------------------------
  34. int ReplayVideo_GetVideoModeCount();
  35. const ReplayVideoMode_t &ReplayVideo_GetVideoMode( int i );
  36. int ReplayVideo_GetDefaultQualityPreset();
  37. int ReplayVideo_GetQualityInterval(); // TODO: Wtf is this?
  38. int ReplayVideo_GetQualityRange();
  39. int ReplayVideo_GetQualityPresetCount();
  40. const ReplayQualityPreset_t &ReplayVideo_GetQualityPreset( int i );
  41. int ReplayVideo_GetCodecCount();
  42. const ReplayCodec_t &ReplayVideo_GetCodec( int i );
  43. int ReplayVideo_FindCodecPresetFromCodec( VideoEncodeCodec_t nCodec );
  44. //-----------------------------------------------------------------------------
  45. #endif // REPLAYVIDEO_H