コード例 #1
0
        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);
        }
コード例 #2
0
        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();
            }
        }