コード例 #1
0
        public VideoEncoderLevelSetting
        (
            uint?dataSize = null,
            VideoEncoderLevelSettingUnion?anonymous   = null,
            VideoEncoderLevelsH264 *pH264LevelSetting = null,
            VideoEncoderLevelTierConstraintsHevc *pHEVCLevelSetting = null
        ) : this()
        {
            if (dataSize is not null)
            {
                DataSize = dataSize.Value;
            }

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

            if (pH264LevelSetting is not null)
            {
                PH264LevelSetting = pH264LevelSetting;
            }

            if (pHEVCLevelSetting is not null)
            {
                PHEVCLevelSetting = pHEVCLevelSetting;
            }
        }
コード例 #2
0
        public VideoEncoderLevelSettingUnion
        (
            VideoEncoderLevelsH264 *pH264LevelSetting = null,
            VideoEncoderLevelTierConstraintsHevc *pHEVCLevelSetting = null
        ) : this()
        {
            if (pH264LevelSetting is not null)
            {
                PH264LevelSetting = pH264LevelSetting;
            }

            if (pHEVCLevelSetting is not null)
            {
                PHEVCLevelSetting = pHEVCLevelSetting;
            }
        }