public void SetConfigration(CameraParameters cameraparam) { NativeEncodeConfig config = new NativeEncodeConfig(cameraparam); m_BlendMode = cameraparam.blendMode; if (m_BlendCamera == null) { m_BlendCamera = new BlendCamera(m_Encoder, CaptureCamera, m_BlendMode, config.width, config.height); } m_Encoder.SetConfig(config); }
private void Init() { if (m_IsInit) { return; } m_Encoder = new ImageEncoder(); m_RGBTexture = new NRRGBCamTexture(); m_RGBTexture.OnUpdate += OnFrame; m_CameraInput = new BlendCamera(m_Encoder, CaptureCamera, BlendMode.Blend, m_RGBTexture.Width, m_RGBTexture.Height); m_IsInit = true; if (OnReady != null) { OnReady(); } }