ZCamLiveStream.h 4.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. //
  2. // Notice Regarding Standards. AMD does not provide a license or sublicense to
  3. // any Intellectual Property Rights relating to any standards, including but not
  4. // limited to any audio and/or video codec technologies such as MPEG-2, MPEG-4;
  5. // AVC/H.264; HEVC/H.265; AAC decode/FFMPEG; AAC encode/FFMPEG; VC-1; and MP3
  6. // (collectively, the "Media Technologies"). For clarity, you will pay any
  7. // royalties due for such third party technologies, which may include the Media
  8. // Technologies that are owed as a result of AMD providing the Software to you.
  9. //
  10. // MIT license
  11. //
  12. // Copyright (c) 2018 Advanced Micro Devices, Inc. All rights reserved.
  13. //
  14. // Permission is hereby granted, free of charge, to any person obtaining a copy
  15. // of this software and associated documentation files (the "Software"), to deal
  16. // in the Software without restriction, including without limitation the rights
  17. // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  18. // copies of the Software, and to permit persons to whom the Software is
  19. // furnished to do so, subject to the following conditions:
  20. //
  21. // The above copyright notice and this permission notice shall be included in
  22. // all copies or substantial portions of the Software.
  23. //
  24. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  25. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  26. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  27. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  28. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  29. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  30. // THE SOFTWARE.
  31. //
  32. //-------------------------------------------------------------------------------------------------
  33. // ZCamLive interface declaration
  34. //-------------------------------------------------------------------------------------------------
  35. #ifndef AMF_ZCamLiveStream_h
  36. #define AMF_ZCamLiveStream_h
  37. #pragma once
  38. #define ZCAMLIVE_STREAMCOUNT L"StreamCount" // amf_int64 (default = 4), number of streams
  39. #define ZCAMLIVE_VIDEO_FRAMESIZE L"FrameSize" // AMFSize (default = AMFConstructSize(2704, 1520)), frame size
  40. #define ZCAMLIVE_VIDEO_FRAMERATE L"FrameRate" // AMFRate (default = 30.0), video frame rate
  41. #define ZCAMLIVE_VIDEO_BIT_RATE L"BitRate" // amf_int64 (default = 3000000), video bitrate
  42. #define ZCAMLIVE_STREAM_ACTIVE_CAMERA L"ActiveCamera" // amf_int64 (default = -1, all the cameras), the index of the camera to capture
  43. #define ZCAMLIVE_STREAM_FRAMECOUNT L"FrameCount" // amf_int64 (default = 0), number of frames captured
  44. #define ZCAMLIVE_CODEC_ID L"CodecID" // WString (default = "AMFVideoDecoderUVD_H264_AVC"), UVD codec ID
  45. #define ZCAMLIVE_VIDEO_MODE L"VideoMode" // Enum (default = 0, 2K7P30), ZCam mode
  46. #define ZCAMLIVE_AUDIO_MODE L"AudioMode" // Enum (default = 0, Silent) - Audio mode
  47. #define ZCAMLIVE_LOWLATENCY L"LowLatency" // amf_int64 (default = 1, LowLatency), low latency flag
  48. #define ZCAMLIVE_IP_0 L"ZCamIP_00" // WString, IP address of the #1 stream, default "10.98.32.1"
  49. #define ZCAMLIVE_IP_1 L"ZCamIP_01" // WString, IP address of the #2 stream, default "10.98.32.2"
  50. #define ZCAMLIVE_IP_2 L"ZCamIP_02" // WString, IP address of the #3 stream, default "10.98.32.3"
  51. #define ZCAMLIVE_IP_3 L"ZCamIP_03" // WString, IP address of the #4 stream, default "10.98.32.4"
  52. //Camera live capture Mode
  53. enum CAMLIVE_MODE_ENUM
  54. {
  55. CAMLIVE_MODE_ZCAM_1080P24 = 0, //1920x1080, 24FPS
  56. CAMLIVE_MODE_ZCAM_1080P30, //1920x1080, 30FPS
  57. CAMLIVE_MODE_ZCAM_1080P60, //1920x1080, 60FPS
  58. CAMLIVE_MODE_ZCAM_2K7P24, //2704x1520, 24FPS
  59. CAMLIVE_MODE_ZCAM_2K7P30, //2704x1520, 24FPS
  60. CAMLIVE_MODE_ZCAM_2K7P60, //2704x1520, 24FPS
  61. CAMLIVE_MODE_ZCAM_2544P24, //3392x2544, 24FPS
  62. CAMLIVE_MODE_ZCAM_2544P30, //3392x2544, 24FPS
  63. CAMLIVE_MODE_ZCAM_2544P60, //3392x2544, 24FPS
  64. CAMLIVE_MODE_THETAS, //Ricoh TheataS
  65. CAMLIVE_MODE_THETAV, //Ricoh TheataV
  66. CAMLIVE_MODE_INVALID = -1,
  67. };
  68. enum CAM_AUDIO_MODE_ENUM
  69. {
  70. CAM_AUDIO_MODE_NONE = 0, //None
  71. CAM_AUDIO_MODE_SILENT, //Silent audio
  72. CAM_AUDIO_MODE_CAMERA //Capture from camera, not supported yet
  73. };
  74. extern "C"
  75. {
  76. AMF_RESULT AMF_CDECL_CALL AMFCreateComponentZCamLiveStream(amf::AMFContext* pContext, amf::AMFComponentEx** ppComponent);
  77. }
  78. #endif // AMF_ZCamLiveStream_h