XilinxProcessorIPLib/drivers/v_hdmitxss/examples/xhdmi_example/TxOnly/xhdmi_example.c
void UpdateFrameRate(XVphy           *VphyPtr,
		     XV_HdmiTxSs     *HdmiTxSsPtr,
		     XVidC_FrameRate FrameRate) {

	XVidC_VideoStream *HdmiTxSsVidStreamPtr;
	HdmiTxSsVidStreamPtr = XV_HdmiTxSs_GetVideoStream(HdmiTxSsPtr);

	/* Check if the TX isn't busy already */
	if (!CheckTxBusy()) {
		/* Check pass through */
		if (IsPassThrough) {
			xil_printf("Frame rate conversion in pass-through"
					   " mode not supported!\r\n");
			return;
		}


		/* Check if requested video mode is available */
		XVidC_VideoMode VmId =
			XVidC_GetVideoModeIdExtensive(
					&HdmiTxSsVidStreamPtr->Timing,
					FrameRate,
					HdmiTxSsVidStreamPtr->IsInterlaced,
					(FALSE));

		if (VmId != XVIDC_VM_NUM_SUPPORTED) {

			HdmiTxSsVidStreamPtr->VmId = VmId;

			EnableColorBar(VphyPtr,
				HdmiTxSsPtr,
				HdmiTxSsVidStreamPtr->VmId,
				HdmiTxSsVidStreamPtr->ColorFormatId,
				HdmiTxSsVidStreamPtr->ColorDepth);
		} else {
			xil_printf("%s : %d Hz is not supported!\r\n",
			    XVidC_GetVideoModeStr(HdmiTxSsVidStreamPtr->VmId),
			    FrameRate);
		}
	}
}
/*****************************************************************************/
/**
*
* This function updates the FrameRate for the current video stream
*
* @param VphyPtr is a pointer to the VPHY core instance.
* @param HdmiTxSsPtr is a pointer to the XV_HdmiTxSs instance.
* @param Requested FrameRate
*
* @return None.
*
* @note   None.
*
******************************************************************************/
This function updates the FrameRate for the current video stream
This function updates the FrameRate for the current video stream
void UpdateFrameRate(XVphy           *VphyPtr,
		     XV_HdmiTxSs     *HdmiTxSsPtr,
		     XVidC_FrameRate FrameRate) {
	XVidC_VideoStream *HdmiTxSsVidStreamPtr;
	HdmiTxSsVidStreamPtr = XV_HdmiTxSs_GetVideoStream(HdmiTxSsPtr);
	if (!CheckTxBusy()) {
		if (IsPassThrough) {
			xil_printf("Frame rate conversion in pass-through"
					   " mode not supported!\r\n");
			return;
		}
		XVidC_VideoMode VmId =
			XVidC_GetVideoModeIdExtensive(
					&HdmiTxSsVidStreamPtr->Timing,
					FrameRate,
					HdmiTxSsVidStreamPtr->IsInterlaced,
					(FALSE));
		if (VmId != XVIDC_VM_NUM_SUPPORTED) {
			HdmiTxSsVidStreamPtr->VmId = VmId;
			EnableColorBar(VphyPtr,
				HdmiTxSsPtr,
				HdmiTxSsVidStreamPtr->VmId,
				HdmiTxSsVidStreamPtr->ColorFormatId,
				HdmiTxSsVidStreamPtr->ColorDepth);
		} else {
			xil_printf("%s : %d Hz is not supported!\r\n",
			    XVidC_GetVideoModeStr(HdmiTxSsVidStreamPtr->VmId),
			    FrameRate);
		}
	}
}
void UpdateFrameRate ( XVphy * VphyPtr , XV_HdmiTxSs * HdmiTxSsPtr , XVidC_FrameRate FrameRate ) { XVidC_VideoStream * HdmiTxSsVidStreamPtr ; HdmiTxSsVidStreamPtr = XV_HdmiTxSs_GetVideoStream ( HdmiTxSsPtr ) ; if ( ! CheckTxBusy ( ) ) { if ( IsPassThrough ) { xil_printf ( " " " \r \n " ) ; return ; } XVidC_VideoMode VmId = XVidC_GetVideoModeIdExtensive ( & HdmiTxSsVidStreamPtr -> Timing , FrameRate , HdmiTxSsVidStreamPtr -> IsInterlaced , ( FALSE ) ) ; if ( VmId != XVIDC_VM_NUM_SUPPORTED ) { HdmiTxSsVidStreamPtr -> VmId = VmId ; EnableColorBar ( VphyPtr , HdmiTxSsPtr , HdmiTxSsVidStreamPtr -> VmId , HdmiTxSsVidStreamPtr -> ColorFormatId , HdmiTxSsVidStreamPtr -> ColorDepth ) ; } else { xil_printf ( " \r \n " , XVidC_GetVideoModeStr ( HdmiTxSsVidStreamPtr -> VmId ) , FrameRate ) ; } } }
This function updates the FrameRate for the current video stream
This function updates the FrameRate for the current video stream
/* Check if the TX isn't busy already */ /* Check pass through */ /* Check if requested video mode is available */