/// <summary> /// Create frame_begin block /// </summary> /// <param name="regionNum">This is used to indicate the number of region block followed.</param> public virtual void CreateFrameBeginBlock(ushort regionNum) { uint blkFrameIdx = GetFrameIndex(); RFX_Progressive_FRAME_BEGIN frame_begin_block = new RFX_Progressive_FRAME_BEGIN(blkFrameIdx, regionNum); blkList.Add(frame_begin_block); }
/// <summary> /// Create frame_begin block. /// </summary> /// <param name="regionNum">This is used to indicate the number of region block followed.</param> public override void CreateFrameBeginBlock(ushort regionNum) { uint blkFrameIdx = GetFrameIndex(); RFX_Progressive_FRAME_BEGIN frame_begin_block = new RFX_Progressive_FRAME_BEGIN(blkFrameIdx, regionNum); if (bmTestType == RdpegfxNegativeTypes.RfxProgCodec_FrameBeginBlock_IncorrectLen) { frame_begin_block.blockLen += 1; // Set frame begin block length to other than 12. } if ((bmTestType == RdpegfxNegativeTypes.RfxProgCodec_FrameBeginBlock_IncorrectRegionBlockNumber) || (bmTestType == RdpegfxNegativeTypes.RfxProgCodec_RegionBlockNumberMismatch)) { frame_begin_block.regionCount += 1; // Set regionCount larger than input parameter. } blkList.Add(frame_begin_block); if (bmTestType == RdpegfxNegativeTypes.RfxProgCodec_SyncBlock_IsNotFirst) { base.CreateSyncBlock(true); } }