public StdVideoH265SequenceParameterSet
        (
            StdVideoH265ProfileIdc?profileIdc = null,
            StdVideoH265Level?levelIdc        = null,
            uint?picWidthInLumaSamples        = null,
            uint?picHeightInLumaSamples       = null,
            byte?spsVideoParameterSetId       = null,
            byte?spsMaxSubLayersMinus1        = null,
            byte?spsSeqParameterSetId         = null,
            byte?chromaFormatIdc                      = null,
            byte?bitDepthLumaMinus8                   = null,
            byte?bitDepthChromaMinus8                 = null,
            byte?log2MaxPicOrderCntLsbMinus4          = null,
            byte?spsMaxDecPicBufferingMinus1          = null,
            byte?log2MinLumaCodingBlockSizeMinus3     = null,
            byte?log2DiffMaxMinLumaCodingBlockSize    = null,
            byte?log2MinLumaTransformBlockSizeMinus2  = null,
            byte?log2DiffMaxMinLumaTransformBlockSize = null,
            byte?maxTransformHierarchyDepthInter      = null,
            byte?maxTransformHierarchyDepthIntra      = null,
            byte?numShortTermRefPicSets               = null,
            byte?numLongTermRefPicsSps                = null,
            byte?pcmSampleBitDepthLumaMinus1          = null,
            byte?pcmSampleBitDepthChromaMinus1        = null,
            byte?log2MinPcmLumaCodingBlockSizeMinus3  = null,
            byte?log2DiffMaxMinPcmLumaCodingBlockSize = null,
            uint?confWinLeftOffset                    = null,
            uint?confWinRightOffset                   = null,
            uint?confWinTopOffset                     = null,
            uint?confWinBottomOffset                  = null,
            StdVideoH265DecPicBufMgr *pDecPicBufMgr   = null,
            StdVideoH265SpsFlags?flags                = null,
            StdVideoH265ScalingLists *pScalingLists   = null,
            StdVideoH265SequenceParameterSetVui *pSequenceParameterSetVui = null,
            byte?paletteMaxSize = null,
            byte?deltaPaletteMaxPredictorSize            = null,
            byte?motionVectorResolutionControlIdc        = null,
            byte?spsNumPalettePredictorInitializerMinus1 = null,
            StdVideoH265PredictorPaletteEntries *pPredictorPaletteEntries = null
        ) : this()
        {
            if (profileIdc is not null)
            {
                ProfileIdc = profileIdc.Value;
            }

            if (levelIdc is not null)
            {
                LevelIdc = levelIdc.Value;
            }

            if (picWidthInLumaSamples is not null)
            {
                PicWidthInLumaSamples = picWidthInLumaSamples.Value;
            }

            if (picHeightInLumaSamples is not null)
            {
                PicHeightInLumaSamples = picHeightInLumaSamples.Value;
            }

            if (spsVideoParameterSetId is not null)
            {
                SpsVideoParameterSetId = spsVideoParameterSetId.Value;
            }

            if (spsMaxSubLayersMinus1 is not null)
            {
                SpsMaxSubLayersMinus1 = spsMaxSubLayersMinus1.Value;
            }

            if (spsSeqParameterSetId is not null)
            {
                SpsSeqParameterSetId = spsSeqParameterSetId.Value;
            }

            if (chromaFormatIdc is not null)
            {
                ChromaFormatIdc = chromaFormatIdc.Value;
            }

            if (bitDepthLumaMinus8 is not null)
            {
                BitDepthLumaMinus8 = bitDepthLumaMinus8.Value;
            }

            if (bitDepthChromaMinus8 is not null)
            {
                BitDepthChromaMinus8 = bitDepthChromaMinus8.Value;
            }

            if (log2MaxPicOrderCntLsbMinus4 is not null)
            {
                Log2MaxPicOrderCntLsbMinus4 = log2MaxPicOrderCntLsbMinus4.Value;
            }

            if (spsMaxDecPicBufferingMinus1 is not null)
            {
                SpsMaxDecPicBufferingMinus1 = spsMaxDecPicBufferingMinus1.Value;
            }

            if (log2MinLumaCodingBlockSizeMinus3 is not null)
            {
                Log2MinLumaCodingBlockSizeMinus3 = log2MinLumaCodingBlockSizeMinus3.Value;
            }

            if (log2DiffMaxMinLumaCodingBlockSize is not null)
            {
                Log2DiffMaxMinLumaCodingBlockSize = log2DiffMaxMinLumaCodingBlockSize.Value;
            }

            if (log2MinLumaTransformBlockSizeMinus2 is not null)
            {
                Log2MinLumaTransformBlockSizeMinus2 = log2MinLumaTransformBlockSizeMinus2.Value;
            }

            if (log2DiffMaxMinLumaTransformBlockSize is not null)
            {
                Log2DiffMaxMinLumaTransformBlockSize = log2DiffMaxMinLumaTransformBlockSize.Value;
            }

            if (maxTransformHierarchyDepthInter is not null)
            {
                MaxTransformHierarchyDepthInter = maxTransformHierarchyDepthInter.Value;
            }

            if (maxTransformHierarchyDepthIntra is not null)
            {
                MaxTransformHierarchyDepthIntra = maxTransformHierarchyDepthIntra.Value;
            }

            if (numShortTermRefPicSets is not null)
            {
                NumShortTermRefPicSets = numShortTermRefPicSets.Value;
            }

            if (numLongTermRefPicsSps is not null)
            {
                NumLongTermRefPicsSps = numLongTermRefPicsSps.Value;
            }

            if (pcmSampleBitDepthLumaMinus1 is not null)
            {
                PcmSampleBitDepthLumaMinus1 = pcmSampleBitDepthLumaMinus1.Value;
            }

            if (pcmSampleBitDepthChromaMinus1 is not null)
            {
                PcmSampleBitDepthChromaMinus1 = pcmSampleBitDepthChromaMinus1.Value;
            }

            if (log2MinPcmLumaCodingBlockSizeMinus3 is not null)
            {
                Log2MinPcmLumaCodingBlockSizeMinus3 = log2MinPcmLumaCodingBlockSizeMinus3.Value;
            }

            if (log2DiffMaxMinPcmLumaCodingBlockSize is not null)
            {
                Log2DiffMaxMinPcmLumaCodingBlockSize = log2DiffMaxMinPcmLumaCodingBlockSize.Value;
            }

            if (confWinLeftOffset is not null)
            {
                ConfWinLeftOffset = confWinLeftOffset.Value;
            }

            if (confWinRightOffset is not null)
            {
                ConfWinRightOffset = confWinRightOffset.Value;
            }

            if (confWinTopOffset is not null)
            {
                ConfWinTopOffset = confWinTopOffset.Value;
            }

            if (confWinBottomOffset is not null)
            {
                ConfWinBottomOffset = confWinBottomOffset.Value;
            }

            if (pDecPicBufMgr is not null)
            {
                PDecPicBufMgr = pDecPicBufMgr;
            }

            if (flags is not null)
            {
                Flags = flags.Value;
            }

            if (pScalingLists is not null)
            {
                PScalingLists = pScalingLists;
            }

            if (pSequenceParameterSetVui is not null)
            {
                PSequenceParameterSetVui = pSequenceParameterSetVui;
            }

            if (paletteMaxSize is not null)
            {
                PaletteMaxSize = paletteMaxSize.Value;
            }

            if (deltaPaletteMaxPredictorSize is not null)
            {
                DeltaPaletteMaxPredictorSize = deltaPaletteMaxPredictorSize.Value;
            }

            if (motionVectorResolutionControlIdc is not null)
            {
                MotionVectorResolutionControlIdc = motionVectorResolutionControlIdc.Value;
            }

            if (spsNumPalettePredictorInitializerMinus1 is not null)
            {
                SpsNumPalettePredictorInitializerMinus1 = spsNumPalettePredictorInitializerMinus1.Value;
            }

            if (pPredictorPaletteEntries is not null)
            {
                PPredictorPaletteEntries = pPredictorPaletteEntries;
            }
        }
Ejemplo n.º 2
0
        public StdVideoH265PictureParameterSet
        (
            byte?ppsPicParameterSetId           = null,
            byte?ppsSeqParameterSetId           = null,
            byte?numExtraSliceHeaderBits        = null,
            byte?numRefIdxL0DefaultActiveMinus1 = null,
            byte?numRefIdxL1DefaultActiveMinus1 = null,
            byte?initQpMinus26                       = null,
            byte?diffCuQpDeltaDepth                  = null,
            byte?ppsCbQpOffset                       = null,
            byte?ppsCrQpOffset                       = null,
            byte?numTileColumnsMinus1                = null,
            byte?numTileRowsMinus1                   = null,
            byte?ppsBetaOffsetDiv2                   = null,
            byte?ppsTcOffsetDiv2                     = null,
            byte?log2ParallelMergeLevelMinus2        = null,
            StdVideoH265PpsFlags?flags               = null,
            StdVideoH265ScalingLists *pScalingLists  = null,
            byte?log2MaxTransformSkipBlockSizeMinus2 = null,
            byte?diffCuChromaQpOffsetDepth           = null,
            byte?chromaQpOffsetListLenMinus1         = null,
            byte?log2SaoOffsetScaleLuma              = null,
            byte?log2SaoOffsetScaleChroma            = null,
            byte?ppsActYQpOffsetPlus5                = null,
            byte?ppsActCbQpOffsetPlus5               = null,
            byte?ppsActCrQpOffsetPlus5               = null,
            byte?ppsNumPalettePredictorInitializer   = null,
            byte?lumaBitDepthEntryMinus8             = null,
            byte?chromaBitDepthEntryMinus8           = null,
            StdVideoH265PredictorPaletteEntries *pPredictorPaletteEntries = null
        ) : this()
        {
            if (ppsPicParameterSetId is not null)
            {
                PpsPicParameterSetId = ppsPicParameterSetId.Value;
            }

            if (ppsSeqParameterSetId is not null)
            {
                PpsSeqParameterSetId = ppsSeqParameterSetId.Value;
            }

            if (numExtraSliceHeaderBits is not null)
            {
                NumExtraSliceHeaderBits = numExtraSliceHeaderBits.Value;
            }

            if (numRefIdxL0DefaultActiveMinus1 is not null)
            {
                NumRefIdxL0DefaultActiveMinus1 = numRefIdxL0DefaultActiveMinus1.Value;
            }

            if (numRefIdxL1DefaultActiveMinus1 is not null)
            {
                NumRefIdxL1DefaultActiveMinus1 = numRefIdxL1DefaultActiveMinus1.Value;
            }

            if (initQpMinus26 is not null)
            {
                InitQpMinus26 = initQpMinus26.Value;
            }

            if (diffCuQpDeltaDepth is not null)
            {
                DiffCuQpDeltaDepth = diffCuQpDeltaDepth.Value;
            }

            if (ppsCbQpOffset is not null)
            {
                PpsCbQpOffset = ppsCbQpOffset.Value;
            }

            if (ppsCrQpOffset is not null)
            {
                PpsCrQpOffset = ppsCrQpOffset.Value;
            }

            if (numTileColumnsMinus1 is not null)
            {
                NumTileColumnsMinus1 = numTileColumnsMinus1.Value;
            }

            if (numTileRowsMinus1 is not null)
            {
                NumTileRowsMinus1 = numTileRowsMinus1.Value;
            }

            if (ppsBetaOffsetDiv2 is not null)
            {
                PpsBetaOffsetDiv2 = ppsBetaOffsetDiv2.Value;
            }

            if (ppsTcOffsetDiv2 is not null)
            {
                PpsTcOffsetDiv2 = ppsTcOffsetDiv2.Value;
            }

            if (log2ParallelMergeLevelMinus2 is not null)
            {
                Log2ParallelMergeLevelMinus2 = log2ParallelMergeLevelMinus2.Value;
            }

            if (flags is not null)
            {
                Flags = flags.Value;
            }

            if (pScalingLists is not null)
            {
                PScalingLists = pScalingLists;
            }

            if (log2MaxTransformSkipBlockSizeMinus2 is not null)
            {
                Log2MaxTransformSkipBlockSizeMinus2 = log2MaxTransformSkipBlockSizeMinus2.Value;
            }

            if (diffCuChromaQpOffsetDepth is not null)
            {
                DiffCuChromaQpOffsetDepth = diffCuChromaQpOffsetDepth.Value;
            }

            if (chromaQpOffsetListLenMinus1 is not null)
            {
                ChromaQpOffsetListLenMinus1 = chromaQpOffsetListLenMinus1.Value;
            }

            if (log2SaoOffsetScaleLuma is not null)
            {
                Log2SaoOffsetScaleLuma = log2SaoOffsetScaleLuma.Value;
            }

            if (log2SaoOffsetScaleChroma is not null)
            {
                Log2SaoOffsetScaleChroma = log2SaoOffsetScaleChroma.Value;
            }

            if (ppsActYQpOffsetPlus5 is not null)
            {
                PpsActYQpOffsetPlus5 = ppsActYQpOffsetPlus5.Value;
            }

            if (ppsActCbQpOffsetPlus5 is not null)
            {
                PpsActCbQpOffsetPlus5 = ppsActCbQpOffsetPlus5.Value;
            }

            if (ppsActCrQpOffsetPlus5 is not null)
            {
                PpsActCrQpOffsetPlus5 = ppsActCrQpOffsetPlus5.Value;
            }

            if (ppsNumPalettePredictorInitializer is not null)
            {
                PpsNumPalettePredictorInitializer = ppsNumPalettePredictorInitializer.Value;
            }

            if (lumaBitDepthEntryMinus8 is not null)
            {
                LumaBitDepthEntryMinus8 = lumaBitDepthEntryMinus8.Value;
            }

            if (chromaBitDepthEntryMinus8 is not null)
            {
                ChromaBitDepthEntryMinus8 = chromaBitDepthEntryMinus8.Value;
            }

            if (pPredictorPaletteEntries is not null)
            {
                PPredictorPaletteEntries = pPredictorPaletteEntries;
            }
        }