aja-ui-props.hpp 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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",
  46. "IOSelect", ""};
  47. static const UIProperty kUIPropSDITransport = {
  48. "ui_prop_sdi_transport",
  49. "SDITransport",
  50. "",
  51. };
  52. static const UIProperty kUIPropSDITransport4K = {
  53. "ui_prop_sdi_transport_4k",
  54. "SDITransport4K",
  55. "",
  56. };
  57. static const UIProperty kUIPropVideoFormatSelect = {
  58. "ui_prop_vid_fmt",
  59. "VideoFormat",
  60. "",
  61. };
  62. static const UIProperty kUIPropPixelFormatSelect = {
  63. "ui_prop_pix_fmt",
  64. "PixelFormat",
  65. "",
  66. };
  67. static const UIProperty kUIPropAutoStartOutput = {
  68. "ui_prop_auto_start_output",
  69. "AutoStart",
  70. "",
  71. };
  72. static const UIProperty kUIPropDeactivateWhenNotShowing = {
  73. "ui_prop_deactivate_when_not_showing",
  74. "DeactivateWhenNotShowing",
  75. "",
  76. };
  77. static const UIProperty kUIPropBuffering = {
  78. "ui_prop_buffering",
  79. "Buffering",
  80. "",
  81. };
  82. static const UIProperty kUIPropMultiViewEnable = {
  83. "ui_prop_multi_view_enable",
  84. "Enable Multi View",
  85. "",
  86. };
  87. static const UIProperty kUIPropMultiViewAudioSource = {
  88. "ui_prop_multi_view_audio_source",
  89. "Multi View Audio Source",
  90. "",
  91. };