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.

62 lines
2.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. //=======================================================================================//
  4. #ifndef RENDERMOVIEPARAMS_H
  5. #define RENDERMOVIEPARAMS_H
  6. #ifdef _WIN32
  7. #pragma once
  8. #endif
  9. //----------------------------------------------------------------------------------------
  10. #include "tier1/utlstring.h"
  11. #include "tier1/strtools.h"
  12. #include "replay/replayhandle.h"
  13. #include "replay/shared_defs.h"
  14. #include "video/ivideoservices.h"
  15. //----------------------------------------------------------------------------------------
  16. typedef unsigned int MovieHandle_t;
  17. struct RenderMovieParams_t
  18. {
  19. inline RenderMovieParams_t() : m_iPerformance( -1 ) { V_memset( this, 0, sizeof( RenderMovieParams_t ) ); m_Settings.m_FPS.SetFPS( 0, false ); }
  20. ReplayHandle_t m_hReplay;
  21. int m_iPerformance; // -1 for default view, otherwise this is an index into the replay's m_vecPerformances vector.
  22. wchar_t m_wszTitle[MAX_REPLAY_TITLE_LENGTH];
  23. char m_szVideoPreset[64];
  24. char m_szExtension[16]; // File extension
  25. bool m_bQuitWhenFinished;
  26. bool m_bExportRaw; // Export movie as raw TGA frames and a .WAV
  27. float m_flEngineFps;
  28. struct ReplayRenderSettings_t
  29. {
  30. uint16 m_nWidth;
  31. uint16 m_nHeight;
  32. int8 m_nMotionBlurQuality; // [0,MAX_MOTION_BLUR_QUALITY]
  33. VideoFrameRate_t m_FPS; // Actual framerate can be calculated with m_FPS.GetFps()
  34. VideoEncodeCodec_t m_Codec;
  35. bool m_bMotionBlurEnabled; // Motion blur enabled?
  36. bool m_bAAEnabled; // Antialiasing enabled?
  37. int8 m_nEncodingQuality; // [0,100]
  38. bool m_bRaw; // This movie was exported as raw TGA frames and a .WAV file?
  39. }
  40. m_Settings;
  41. };
  42. typedef RenderMovieParams_t::ReplayRenderSettings_t ReplayRenderSettings_t;
  43. //----------------------------------------------------------------------------------------
  44. #define MAX_DOF_QUALITY 2
  45. #define MAX_MOTION_BLUR_QUALITY 3
  46. #define SUBPIXEL_JITTER_SAMPLES 16
  47. #define CHEAP_DOF_SAMPLES 4
  48. //----------------------------------------------------------------------------------------
  49. #endif // RENDERMOVIEPARAMS_H