/* This function gets the video mode currently used by the generator in the VTC core. If the video mode is unknown or not recognized, then 0 will be returned. */
u16 XVtc_GetGeneratorVideoMode(XVtc *InstancePtr)
/* This function gets the video mode currently used by the generator in the VTC core. If the video mode is unknown or not recognized, then 0 will be returned. */
u16 XVtc_GetGeneratorVideoMode(XVtc *InstancePtr)
{
	u16 mode;
	XVtc_Timing Timing;
	Xil_AssertNonvoid(InstancePtr != NULL);
	Xil_AssertNonvoid(InstancePtr->IsReady == XIL_COMPONENT_IS_READY);
	XVtc_GetGeneratorTiming(InstancePtr, &Timing);
	mode = XVtc_ConvTiming2VideoMode(InstancePtr, &Timing);
	return mode;
}