1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
-
- namespace NRKernal.Record
- {
-
- public struct CameraParameters
- {
-
-
-
- public CameraParameters(CamMode webCamMode, BlendMode mode)
- {
- this.camMode = webCamMode;
- this.hologramOpacity = 1f;
- this.frameRate = NativeConstants.RECORD_FPS_DEFAULT;
- this.cameraResolutionWidth = 1280;
- this.cameraResolutionHeight = 720;
- this.pixelFormat = CapturePixelFormat.BGRA32;
- this.blendMode = mode;
- this.audioState = NRVideoCapture.AudioState.ApplicationAndMicAudio;
- this.mediaProjection = null;
- }
-
-
- public float hologramOpacity { get; set; }
-
-
-
- public int frameRate { get; set; }
-
- public int cameraResolutionWidth { get; set; }
-
-
- public int cameraResolutionHeight { get; set; }
-
- public CapturePixelFormat pixelFormat { get; set; }
-
-
- public CamMode camMode { get; set; }
-
- public NRVideoCapture.AudioState audioState { get; set; }
- public bool CaptureAudioMic { get { return audioState == NRVideoCapture.AudioState.MicAudio || audioState == NRVideoCapture.AudioState.ApplicationAndMicAudio; }}
- public bool CaptureAudioApplication { get { return audioState == NRVideoCapture.AudioState.ApplicationAudio || audioState == NRVideoCapture.AudioState.ApplicationAndMicAudio; }}
-
- public UnityEngine.AndroidJavaObject mediaProjection { get; set; }
-
- public BlendMode blendMode { get; set; }
- }
- }
|