XilinxProcessorIPLib/drivers/v_sdirx/src/xv_sdirx.c
void XV_SdiRx_ResetStream(XV_SdiRx *InstancePtr)
{
	/* Verify argument. */
	Xil_AssertVoid(InstancePtr != NULL);

	for (int i = 0; i < XV_SDIRX_MAX_DATASTREAM; i++) {
		InstancePtr->Stream[i].Video.VmId = (XSDIVID_VM_720_HD);
		InstancePtr->Stream[i].Video.ColorFormatId = (XVIDC_CSF_YCBCR_422);
		InstancePtr->Stream[i].Video.ColorDepth = (XVIDC_BPC_10);
		InstancePtr->Stream[i].Video.FrameRate = (XVIDC_FR_UNKNOWN);
		InstancePtr->Stream[i].Video.IsInterlaced = (XVIDC_VF_PROGRESSIVE);
		InstancePtr->Stream[i].Video.AspectRatio = (XVIDC_AR_16_9);
		InstancePtr->Stream[i].CAssignment = (XSDIVID_CA_CH1);
	}
	InstancePtr->Transport.IsFractional = 0;
	InstancePtr->Transport.IsLevelB3G = 0;
	InstancePtr->VideoStreamNum = 0;
}
/*****************************************************************************/
/**
*
* This function clears the SDI RX stream variables and sets them to the defaults.
*
* @param	InstancePtr is a pointer to the XV_SdiRx core instance.
*
* @return	None.
*
* @note		This is required after a reset or init.
*
******************************************************************************/
This function clears the SDI RX stream variables and sets them to the defaults.
This function clears the SDI RX stream variables and sets them to the defaults .
void XV_SdiRx_ResetStream(XV_SdiRx *InstancePtr)
{
	Xil_AssertVoid(InstancePtr != NULL);
	for (int i = 0; i < XV_SDIRX_MAX_DATASTREAM; i++) {
		InstancePtr->Stream[i].Video.VmId = (XSDIVID_VM_720_HD);
		InstancePtr->Stream[i].Video.ColorFormatId = (XVIDC_CSF_YCBCR_422);
		InstancePtr->Stream[i].Video.ColorDepth = (XVIDC_BPC_10);
		InstancePtr->Stream[i].Video.FrameRate = (XVIDC_FR_UNKNOWN);
		InstancePtr->Stream[i].Video.IsInterlaced = (XVIDC_VF_PROGRESSIVE);
		InstancePtr->Stream[i].Video.AspectRatio = (XVIDC_AR_16_9);
		InstancePtr->Stream[i].CAssignment = (XSDIVID_CA_CH1);
	}
	InstancePtr->Transport.IsFractional = 0;
	InstancePtr->Transport.IsLevelB3G = 0;
	InstancePtr->VideoStreamNum = 0;
}
void XV_SdiRx_ResetStream ( XV_SdiRx * InstancePtr ) { Xil_AssertVoid ( InstancePtr != NULL ) ; for ( int i = 0 ; i < XV_SDIRX_MAX_DATASTREAM ; i ++ ) { InstancePtr -> Stream [ i ] . Video . VmId = ( XSDIVID_VM_720_HD ) ; InstancePtr -> Stream [ i ] . Video . ColorFormatId = ( XVIDC_CSF_YCBCR_422 ) ; InstancePtr -> Stream [ i ] . Video . ColorDepth = ( XVIDC_BPC_10 ) ; InstancePtr -> Stream [ i ] . Video . FrameRate = ( XVIDC_FR_UNKNOWN ) ; InstancePtr -> Stream [ i ] . Video . IsInterlaced = ( XVIDC_VF_PROGRESSIVE ) ; InstancePtr -> Stream [ i ] . Video . AspectRatio = ( XVIDC_AR_16_9 ) ; InstancePtr -> Stream [ i ] . CAssignment = ( XSDIVID_CA_CH1 ) ; } InstancePtr -> Transport . IsFractional = 0 ; InstancePtr -> Transport . IsLevelB3G = 0 ; InstancePtr -> VideoStreamNum = 0 ; }
This function clears the SDI RX stream variables and sets them to the defaults.
This function clears the SDI RX stream variables and sets them to the defaults .
/* Verify argument. */