XilinxProcessorIPLib/drivers/vprocss/src/xvprocss.c
void XVprocSs_SetZoomMode(XVprocSs *InstancePtr, u8 OnOff)
{
  /* Verify arguments */
  Xil_AssertVoid(InstancePtr != NULL);

  if(XVprocSs_IsConfigModeMax(InstancePtr)) {
    InstancePtr->CtxtData.ZoomEn = OnOff;
    InstancePtr->CtxtData.PipEn  = FALSE;

    XVprocSs_LogWrite(InstancePtr, XVPROCSS_EVT_SET_ZOOMMODE, InstancePtr->CtxtData.ZoomEn);
  }
  else {  // streaming Config - no ZOOM window
    XVprocSs_LogWrite(InstancePtr, XVPROCSS_EVT_SET_ZOOMMODE, XVPROCSS_EDAT_FAILURE);
  }
}
/*****************************************************************************/
/**
* This function configures the video subsystem to enable/disable ZOOM feature
* If ZOOM mode is set to ON but user has not set window coordinates then
* quarter of input stream resolution at coordinates 0,0 is set as the default
* zoom window
*
* @param  InstancePtr is a pointer to the Subsystem instance to be worked on.
* @param  OnOff is the action required
*
* @return None
*
* @note User must call XVprocSs_ConfigureSubsystem() for change to take effect
*       This call has not been added here such that it provides an opportunity
*       to make the change during vertical blanking at system level. This
*       behavior will change once shadow register support is available in
*       sub-core IP's
*       This function is not applicable in Subsystem Stream Mode Configuration
*
******************************************************************************/
This function configures the video subsystem to enable/disable ZOOM feature
If ZOOM mode is set to ON but user has not set window coordinates then
quarter of input stream resolution at coordinates 0,0 is set as the default
zoom window
This function configures the video subsystem to enable / disable ZOOM feature If ZOOM mode is set to ON but user has not set window coordinates then quarter of input stream resolution at coordinates 0 0 is set as the default zoom window
void XVprocSs_SetZoomMode(XVprocSs *InstancePtr, u8 OnOff)
{
  Xil_AssertVoid(InstancePtr != NULL);
  if(XVprocSs_IsConfigModeMax(InstancePtr)) {
    InstancePtr->CtxtData.ZoomEn = OnOff;
    InstancePtr->CtxtData.PipEn  = FALSE;
    XVprocSs_LogWrite(InstancePtr, XVPROCSS_EVT_SET_ZOOMMODE, InstancePtr->CtxtData.ZoomEn);
  }
  else {  
    XVprocSs_LogWrite(InstancePtr, XVPROCSS_EVT_SET_ZOOMMODE, XVPROCSS_EDAT_FAILURE);
  }
}
void XVprocSs_SetZoomMode ( XVprocSs * InstancePtr , u8 OnOff ) { Xil_AssertVoid ( InstancePtr != NULL ) ; if ( XVprocSs_IsConfigModeMax ( InstancePtr ) ) { InstancePtr -> CtxtData . ZoomEn = OnOff ; InstancePtr -> CtxtData . PipEn = FALSE ; XVprocSs_LogWrite ( InstancePtr , XVPROCSS_EVT_SET_ZOOMMODE , InstancePtr -> CtxtData . ZoomEn ) ; } else { XVprocSs_LogWrite ( InstancePtr , XVPROCSS_EVT_SET_ZOOMMODE , XVPROCSS_EDAT_FAILURE ) ; } }
This function configures the video subsystem to enable/disable ZOOM feature
If ZOOM mode is set to ON but user has not set window coordinates then
quarter of input stream resolution at coordinates 0,0 is set as the default
zoom window
This function configures the video subsystem to enable / disable ZOOM feature If ZOOM mode is set to ON but user has not set window coordinates then quarter of input stream resolution at coordinates 0 0 is set as the default zoom window
/* Verify arguments */ // streaming Config - no ZOOM window