Ejemplo n.º 1
0
        /// <summary>
        /// Method to create TS_RFX_FRAME_BEGIN.
        /// </summary>
        /// <param name="frameIdx">The frame index.</param>
        public TS_RFX_FRAME_BEGIN CreateTsRfxFrameBegin(uint frameIdx)
        {
            TS_RFX_FRAME_BEGIN rfxBegin = new TS_RFX_FRAME_BEGIN();

            rfxBegin.CodecChannelT           = new TS_RFX_CODEC_CHANNELT();
            rfxBegin.CodecChannelT.blockType = blockType_Value.WBT_FRAME_BEGIN;
            rfxBegin.CodecChannelT.blockLen  = 14;
            rfxBegin.CodecChannelT.codecId   = 0x01;
            rfxBegin.CodecChannelT.channelId = 0x00;
            rfxBegin.frameIdx   = frameIdx;
            rfxBegin.numRegions = 1;

            return(rfxBegin);
        }
        /// <summary>
        /// Method to create TS_RFX_FRAME_BEGIN.
        /// </summary>
        /// <param name="frameIdx">The frame index.</param>
        public TS_RFX_FRAME_BEGIN CreateTsRfxFrameBegin(uint frameIdx)
        {
            TS_RFX_FRAME_BEGIN rfxBegin = new TS_RFX_FRAME_BEGIN();
            rfxBegin.CodecChannelT = new TS_RFX_CODEC_CHANNELT();
            rfxBegin.CodecChannelT.blockType = blockType_Value.WBT_FRAME_BEGIN;
            rfxBegin.CodecChannelT.blockLen = 14;
            rfxBegin.CodecChannelT.codecId = 0x01;
            rfxBegin.CodecChannelT.channelId = 0x00;
            rfxBegin.frameIdx = frameIdx;
            rfxBegin.numRegions = 1;

            return rfxBegin;
        }