XilinxProcessorIPLib/drivers/v_sditx/src/xv_sditx.c
u8 XV_SdiTx_GetPayloadAspectRatio(XVidC_AspectRatio AspectRatio)
{
	u32 Data = 0;

	/* Verify argument. */
	switch (AspectRatio) {
	case (XVIDC_AR_4_3):
		Data = 0x0;
		break;

	case (XVIDC_AR_16_9):
		Data = 0x1;
		break;
	}

	return Data & 0x1;
}
/*****************************************************************************/
/**
 *
 * This function calculates the equivalent payload bit for given AspectRatio.
 *
 * @param	AspectRatio is a variable of type XVidC_AspectRatio.
 *
 * @return
 *		- returns 0 for 4x3 aspect ratio
 *		- returns 1 for 16x9 aspect ratio
 *
 * @note		None.
 *
 ******************************************************************************/
This function calculates the equivalent payload bit for given AspectRatio.
@param       AspectRatio is a variable of type XVidC_AspectRatio.

@return
- returns 0 for 4x3 aspect ratio
- returns 1 for 16x9 aspect ratio

@note                None.
This function calculates the equivalent payload bit for given AspectRatio . @param AspectRatio is a variable of type XVidC_AspectRatio . @return - returns 0 for 4x3 aspect ratio - returns 1 for 16x9 aspect ratio @note None .
u8 XV_SdiTx_GetPayloadAspectRatio(XVidC_AspectRatio AspectRatio)
{
	u32 Data = 0;
	switch (AspectRatio) {
	case (XVIDC_AR_4_3):
		Data = 0x0;
		break;
	case (XVIDC_AR_16_9):
		Data = 0x1;
		break;
	}
	return Data & 0x1;
}
u8 XV_SdiTx_GetPayloadAspectRatio ( XVidC_AspectRatio AspectRatio ) { u32 Data = 0 ; switch ( AspectRatio ) { case ( XVIDC_AR_4_3 ) : Data = 0x0 ; break ; case ( XVIDC_AR_16_9 ) : Data = 0x1 ; break ; } return Data & 0x1 ; }
This function calculates the equivalent payload bit for given AspectRatio.
This function calculates the equivalent payload bit for given AspectRatio .
/* Verify argument. */