XilinxProcessorIPLib/drivers/v_sditx/src/xv_sditx.c
u8 XV_SdiTx_GetPayloadIsInterlaced(XVidC_VideoFormat VideoFormat)
{
	u32 Data = 0;
	Xil_AssertNonvoid(VideoFormat != XVIDC_VF_UNKNOWN);

	/* Verify argument. */
	switch (VideoFormat) {
	case (XVIDC_VF_PROGRESSIVE):
		Data = 0x1;
		break;

	case (XVIDC_VF_INTERLACED):
		Data = 0x0;
		break;

	case (XVIDC_VF_UNKNOWN):
		xil_printf("Error: Invalid VideoFormat\n\r");
		break;
	}

	return Data & 0x1;
}
/*****************************************************************************/
/**
 *
 * This function calculates the equivalent payload bit for given VideoFormat.
 *
 * @param	VideoFormat is a variable of type XVidC_VideoFormat.
 *
 * @return
 *		- returns 1-bit value
 *
 * @note		None.
 *
 ******************************************************************************/
This function calculates the equivalent payload bit for given VideoFormat.
@param       VideoFormat is a variable of type XVidC_VideoFormat.

@return
- returns 1-bit value

@note                None.
This function calculates the equivalent payload bit for given VideoFormat . @param VideoFormat is a variable of type XVidC_VideoFormat . @return - returns 1 - bit value @note None .
u8 XV_SdiTx_GetPayloadIsInterlaced(XVidC_VideoFormat VideoFormat)
{
	u32 Data = 0;
	Xil_AssertNonvoid(VideoFormat != XVIDC_VF_UNKNOWN);
	switch (VideoFormat) {
	case (XVIDC_VF_PROGRESSIVE):
		Data = 0x1;
		break;
	case (XVIDC_VF_INTERLACED):
		Data = 0x0;
		break;
	case (XVIDC_VF_UNKNOWN):
		xil_printf("Error: Invalid VideoFormat\n\r");
		break;
	}
	return Data & 0x1;
}
u8 XV_SdiTx_GetPayloadIsInterlaced ( XVidC_VideoFormat VideoFormat ) { u32 Data = 0 ; Xil_AssertNonvoid ( VideoFormat != XVIDC_VF_UNKNOWN ) ; switch ( VideoFormat ) { case ( XVIDC_VF_PROGRESSIVE ) : Data = 0x1 ; break ; case ( XVIDC_VF_INTERLACED ) : Data = 0x0 ; break ; case ( XVIDC_VF_UNKNOWN ) : xil_printf ( " \n \r " ) ; break ; } return Data & 0x1 ; }
This function calculates the equivalent payload bit for given VideoFormat.
This function calculates the equivalent payload bit for given VideoFormat .
/* Verify argument. */