XilinxProcessorIPLib/drivers/v_hdmitxss/examples/xhdmi_example/TxOnly/xhdmi_example.c
void UpdateColorFormat(XVphy             *VphyPtr,
		       XV_HdmiTxSs       *HdmiTxSsPtr,
		       XVidC_ColorFormat ColorFormat) {

	XVidC_VideoStream *HdmiTxSsVidStreamPtr;
	HdmiTxSsVidStreamPtr = XV_HdmiTxSs_GetVideoStream(HdmiTxSsPtr);

	/* Check if the TX isn't busy already */
	if (!CheckTxBusy()) {
		/* Check passthrough */
		if (IsPassThrough) {
			xil_printf("Error: Color space conversion in "
				    "pass-through mode is not supported!\r\n");
			return;
		}
		/* Inform user that pixel repetition is not supported */
		if (((HdmiTxSsVidStreamPtr->VmId == XVIDC_VM_1440x480_60_I) ||
			(HdmiTxSsVidStreamPtr->VmId ==
					XVIDC_VM_1440x576_50_I)) &&
			(ColorFormat == XVIDC_CSF_YCRCB_422)) {

			xil_printf("The video bridge is unable to support "
				"pixel repetition in YUV 422 Color space\r\n");

		}

		EnableColorBar(VphyPtr,
			HdmiTxSsPtr,
			HdmiTxSsVidStreamPtr->VmId,
			ColorFormat,
			HdmiTxSsVidStreamPtr->ColorDepth);
	}
}
/*****************************************************************************/
/**
*
* This function updates the ColorFormat 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 ColorFormat
*
* @return None.
*
* @note   None.
*
******************************************************************************/
This function updates the ColorFormat for the current video stream
This function updates the ColorFormat for the current video stream
void UpdateColorFormat(XVphy             *VphyPtr,
		       XV_HdmiTxSs       *HdmiTxSsPtr,
		       XVidC_ColorFormat ColorFormat) {
	XVidC_VideoStream *HdmiTxSsVidStreamPtr;
	HdmiTxSsVidStreamPtr = XV_HdmiTxSs_GetVideoStream(HdmiTxSsPtr);
	if (!CheckTxBusy()) {
		if (IsPassThrough) {
			xil_printf("Error: Color space conversion in "
				    "pass-through mode is not supported!\r\n");
			return;
		}
		if (((HdmiTxSsVidStreamPtr->VmId == XVIDC_VM_1440x480_60_I) ||
			(HdmiTxSsVidStreamPtr->VmId ==
					XVIDC_VM_1440x576_50_I)) &&
			(ColorFormat == XVIDC_CSF_YCRCB_422)) {
			xil_printf("The video bridge is unable to support "
				"pixel repetition in YUV 422 Color space\r\n");
		}
		EnableColorBar(VphyPtr,
			HdmiTxSsPtr,
			HdmiTxSsVidStreamPtr->VmId,
			ColorFormat,
			HdmiTxSsVidStreamPtr->ColorDepth);
	}
}
void UpdateColorFormat ( XVphy * VphyPtr , XV_HdmiTxSs * HdmiTxSsPtr , XVidC_ColorFormat ColorFormat ) { XVidC_VideoStream * HdmiTxSsVidStreamPtr ; HdmiTxSsVidStreamPtr = XV_HdmiTxSs_GetVideoStream ( HdmiTxSsPtr ) ; if ( ! CheckTxBusy ( ) ) { if ( IsPassThrough ) { xil_printf ( " " " \r \n " ) ; return ; } if ( ( ( HdmiTxSsVidStreamPtr -> VmId == XVIDC_VM_1440x480_60_I ) || ( HdmiTxSsVidStreamPtr -> VmId == XVIDC_VM_1440x576_50_I ) ) && ( ColorFormat == XVIDC_CSF_YCRCB_422 ) ) { xil_printf ( " " " \r \n " ) ; } EnableColorBar ( VphyPtr , HdmiTxSsPtr , HdmiTxSsVidStreamPtr -> VmId , ColorFormat , HdmiTxSsVidStreamPtr -> ColorDepth ) ; } }
This function updates the ColorFormat for the current video stream
This function updates the ColorFormat for the current video stream
/* Check if the TX isn't busy already */ /* Check passthrough */ /* Inform user that pixel repetition is not supported */