public VideoEncoderCodecConfiguration
        (
            uint?dataSize = null,
            VideoEncoderCodecConfigurationUnion?anonymous   = null,
            VideoEncoderCodecConfigurationH264 *pH264Config = null,
            VideoEncoderCodecConfigurationHevc *pHEVCConfig = null
        ) : this()
        {
            if (dataSize is not null)
            {
                DataSize = dataSize.Value;
            }

            if (anonymous is not null)
            {
                Anonymous = anonymous.Value;
            }

            if (pH264Config is not null)
            {
                PH264Config = pH264Config;
            }

            if (pHEVCConfig is not null)
            {
                PHEVCConfig = pHEVCConfig;
            }
        }
Exemplo n.º 2
0
        public VideoEncoderCodecConfigurationUnion
        (
            VideoEncoderCodecConfigurationH264 *pH264Config = null,
            VideoEncoderCodecConfigurationHevc *pHEVCConfig = null
        ) : this()
        {
            if (pH264Config is not null)
            {
                PH264Config = pH264Config;
            }

            if (pHEVCConfig is not null)
            {
                PHEVCConfig = pHEVCConfig;
            }
        }