XilinxProcessorIPLib/drivers/v_hdmirxss/src/xv_hdmirxss.c
static void XV_HdmiRxSs_ReportDRMInfo(XV_HdmiRxSs *InstancePtr)
{
	XHdmiC_DRMInfoFrame *DrmInfoFramePtr;
	DrmInfoFramePtr = XV_HdmiRxSs_GetDrmInfoframe(InstancePtr);

	if (DrmInfoFramePtr->EOTF != 0xff)
		xil_printf("eotf: %d\r\n", DrmInfoFramePtr->EOTF);

	if (DrmInfoFramePtr->Static_Metadata_Descriptor_ID == 0xFF) {
		xil_printf("No DRM info\r\n");
		return;
	}

	xil_printf("DRM IF info:\n");
	xil_printf("desc id: %d\r\n", DrmInfoFramePtr->Static_Metadata_Descriptor_ID);
	xil_printf("display primaries x0, y0, x1, y1, x2, y2: %d %d %d %d %d %d\r\n",
			DrmInfoFramePtr->disp_primaries[0].x, DrmInfoFramePtr->disp_primaries[0].y,
			DrmInfoFramePtr->disp_primaries[1].x, DrmInfoFramePtr->disp_primaries[1].y,
			DrmInfoFramePtr->disp_primaries[2].x, DrmInfoFramePtr->disp_primaries[2].y
		  );
	xil_printf("white point x, y: %d %d\r\n",
			DrmInfoFramePtr->white_point.x, DrmInfoFramePtr->white_point.y);
	xil_printf("min/max display mastering luminance: %d %d\r\n",
			DrmInfoFramePtr->Min_Disp_Mastering_Luminance,
			DrmInfoFramePtr->Max_Disp_Mastering_Luminance);
	xil_printf("Max_CLL: %d\r\n", DrmInfoFramePtr->Max_Content_Light_Level);
	xil_printf("max_fall: %d\r\n", DrmInfoFramePtr->Max_Frame_Average_Light_Level);
}
/*****************************************************************************/
/**
*
* This function prints the HDMI RX SS DRM If information
*
* @param  None.
*
* @return None.
*
* @note   None.
*
******************************************************************************/
This function prints the HDMI RX SS DRM If information
This function prints the HDMI RX SS DRM If information
static void XV_HdmiRxSs_ReportDRMInfo(XV_HdmiRxSs *InstancePtr)
{
	XHdmiC_DRMInfoFrame *DrmInfoFramePtr;
	DrmInfoFramePtr = XV_HdmiRxSs_GetDrmInfoframe(InstancePtr);
	if (DrmInfoFramePtr->EOTF != 0xff)
		xil_printf("eotf: %d\r\n", DrmInfoFramePtr->EOTF);
	if (DrmInfoFramePtr->Static_Metadata_Descriptor_ID == 0xFF) {
		xil_printf("No DRM info\r\n");
		return;
	}
	xil_printf("DRM IF info:\n");
	xil_printf("desc id: %d\r\n", DrmInfoFramePtr->Static_Metadata_Descriptor_ID);
	xil_printf("display primaries x0, y0, x1, y1, x2, y2: %d %d %d %d %d %d\r\n",
			DrmInfoFramePtr->disp_primaries[0].x, DrmInfoFramePtr->disp_primaries[0].y,
			DrmInfoFramePtr->disp_primaries[1].x, DrmInfoFramePtr->disp_primaries[1].y,
			DrmInfoFramePtr->disp_primaries[2].x, DrmInfoFramePtr->disp_primaries[2].y
		  );
	xil_printf("white point x, y: %d %d\r\n",
			DrmInfoFramePtr->white_point.x, DrmInfoFramePtr->white_point.y);
	xil_printf("min/max display mastering luminance: %d %d\r\n",
			DrmInfoFramePtr->Min_Disp_Mastering_Luminance,
			DrmInfoFramePtr->Max_Disp_Mastering_Luminance);
	xil_printf("Max_CLL: %d\r\n", DrmInfoFramePtr->Max_Content_Light_Level);
	xil_printf("max_fall: %d\r\n", DrmInfoFramePtr->Max_Frame_Average_Light_Level);
}
static void XV_HdmiRxSs_ReportDRMInfo ( XV_HdmiRxSs * InstancePtr ) { XHdmiC_DRMInfoFrame * DrmInfoFramePtr ; DrmInfoFramePtr = XV_HdmiRxSs_GetDrmInfoframe ( InstancePtr ) ; if ( DrmInfoFramePtr -> EOTF != 0xff ) xil_printf ( " \r \n " , DrmInfoFramePtr -> EOTF ) ; if ( DrmInfoFramePtr -> Static_Metadata_Descriptor_ID == 0xFF ) { xil_printf ( " \r \n " ) ; return ; } xil_printf ( " \n " ) ; xil_printf ( " \r \n " , DrmInfoFramePtr -> Static_Metadata_Descriptor_ID ) ; xil_printf ( " \r \n " , DrmInfoFramePtr -> disp_primaries [ 0 ] . x , DrmInfoFramePtr -> disp_primaries [ 0 ] . y , DrmInfoFramePtr -> disp_primaries [ 1 ] . x , DrmInfoFramePtr -> disp_primaries [ 1 ] . y , DrmInfoFramePtr -> disp_primaries [ 2 ] . x , DrmInfoFramePtr -> disp_primaries [ 2 ] . y ) ; xil_printf ( " \r \n " , DrmInfoFramePtr -> white_point . x , DrmInfoFramePtr -> white_point . y ) ; xil_printf ( " \r \n " , DrmInfoFramePtr -> Min_Disp_Mastering_Luminance , DrmInfoFramePtr -> Max_Disp_Mastering_Luminance ) ; xil_printf ( " \r \n " , DrmInfoFramePtr -> Max_Content_Light_Level ) ; xil_printf ( " \r \n " , DrmInfoFramePtr -> Max_Frame_Average_Light_Level ) ; }
This function prints the HDMI RX SS DRM If information
This function prints the HDMI RX SS DRM If information