aja-ui-props.hpp 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. #pragma once
  2. #include <obs-module.h>
  3. static const char *kProgramOutputID = "aja_output";
  4. static const char *kPreviewOutputID = "aja_preview_output";
  5. struct UIProperty {
  6. const char *id;
  7. const char *text;
  8. const char *tooltip;
  9. };
  10. static const UIProperty kUIPropCaptureModule = {
  11. "aja_source",
  12. "AJACapture.Device",
  13. "",
  14. };
  15. static const UIProperty kUIPropOutputModule = {
  16. "aja_output",
  17. "AJAOutput.Device",
  18. "",
  19. };
  20. // This is used as an "invisible" property to give the program and preview
  21. // plugin instances an identifier before the output has been created/started.
  22. // This ID is then used by the CardManager class for tracking device channel
  23. // usage across the capture and output plugin instances.
  24. static const UIProperty kUIPropAJAOutputID = {
  25. "aja_output_id",
  26. "",
  27. "",
  28. };
  29. static const UIProperty kUIPropDevice = {
  30. "ui_prop_device",
  31. "Device",
  32. "",
  33. };
  34. static const UIProperty kUIPropOutput = {
  35. "ui_prop_output",
  36. "Output",
  37. "",
  38. };
  39. static const UIProperty kUIPropInput = {
  40. "ui_prop_input",
  41. "Input",
  42. "",
  43. };
  44. // Used for showing "Select..." item in Input/Output selection drop-downs
  45. static const UIProperty kUIPropIOSelectNone = {"ui_prop_select_input", "IOSelect", ""};
  46. static const UIProperty kUIPropSDITransport = {
  47. "ui_prop_sdi_transport",
  48. "SDITransport",
  49. "",
  50. };
  51. static const UIProperty kUIPropSDITransport4K = {
  52. "ui_prop_sdi_transport_4k",
  53. "SDITransport4K",
  54. "",
  55. };
  56. static const UIProperty kUIPropVideoFormatSelect = {
  57. "ui_prop_vid_fmt",
  58. "VideoFormat",
  59. "",
  60. };
  61. static const UIProperty kUIPropPixelFormatSelect = {
  62. "ui_prop_pix_fmt",
  63. "PixelFormat",
  64. "",
  65. };
  66. static const UIProperty kUIPropAutoStartOutput = {
  67. "ui_prop_auto_start_output",
  68. "AutoStart",
  69. "",
  70. };
  71. static const UIProperty kUIPropDeactivateWhenNotShowing = {
  72. "ui_prop_deactivate_when_not_showing",
  73. "DeactivateWhenNotShowing",
  74. "",
  75. };
  76. static const UIProperty kUIPropBuffering = {
  77. "ui_prop_buffering",
  78. "Buffering",
  79. "",
  80. };
  81. static const UIProperty kUIPropMultiViewEnable = {
  82. "ui_prop_multi_view_enable",
  83. "Enable Multi View",
  84. "",
  85. };
  86. static const UIProperty kUIPropMultiViewAudioSource = {
  87. "ui_prop_multi_view_audio_source",
  88. "Multi View Audio Source",
  89. "",
  90. };
  91. static const UIProperty kUIPropChannelFormat = {
  92. "ui_prop_channel_format",
  93. "ChannelFormat",
  94. "",
  95. };
  96. static const UIProperty kUIPropChannelSwap_FC_LFE = {
  97. "ui_prop_channel_swap_fc_lfe",
  98. "SwapFC-LFE",
  99. "SwapFC-LFE.Tooltip",
  100. };
  101. #define TEXT_CHANNEL_FORMAT_NONE obs_module_text("ChannelFormat.None")
  102. #define TEXT_CHANNEL_FORMAT_2_0CH obs_module_text("ChannelFormat.2_0ch")
  103. #define TEXT_CHANNEL_FORMAT_2_1CH obs_module_text("ChannelFormat.2_1ch")
  104. #define TEXT_CHANNEL_FORMAT_4_0CH obs_module_text("ChannelFormat.4_0ch")
  105. #define TEXT_CHANNEL_FORMAT_4_1CH obs_module_text("ChannelFormat.4_1ch")
  106. #define TEXT_CHANNEL_FORMAT_5_1CH obs_module_text("ChannelFormat.5_1ch")
  107. #define TEXT_CHANNEL_FORMAT_7_1CH obs_module_text("ChannelFormat.7_1ch")