XilinxProcessorIPLib/drivers/vprocss/src/xvprocss.c
void XVprocSs_GetZoomPipWindow(XVprocSs *InstancePtr,
                               XVprocSs_Win   mode,
                               XVidC_VideoWindow *win)
{
  /* Verify arguments */
   Xil_AssertVoid(InstancePtr != NULL);
   Xil_AssertVoid(win != NULL);

   if(XVprocSs_IsConfigModeMax(InstancePtr)) {
     if(mode == XVPROCSS_ZOOM_WIN) {
       win->StartX = InstancePtr->CtxtData.RdWindow.StartX;
       win->StartY = InstancePtr->CtxtData.RdWindow.StartY;
       win->Width  = InstancePtr->CtxtData.RdWindow.Width;
       win->Height = InstancePtr->CtxtData.RdWindow.Height;
     }
     else { //PIP
       win->StartX = InstancePtr->CtxtData.WrWindow.StartX;
       win->StartY = InstancePtr->CtxtData.WrWindow.StartY;
       win->Width  = InstancePtr->CtxtData.WrWindow.Width;
       win->Height = InstancePtr->CtxtData.WrWindow.Height;
     }
     XVprocSs_LogWrite(InstancePtr, XVPROCSS_EVT_GET_ZPWIN, XVPROCSS_EDAT_SUCCESS);
   }
   else { // streaming Config - no PIP or ZOOM window
     XVprocSs_LogWrite(InstancePtr, XVPROCSS_EVT_GET_ZPWIN, XVPROCSS_EDAT_FAILURE);
   }
}
/*****************************************************************************/
/**
* This function reads the user defined Zoom/Pip window from scratch pad memory
*
* @param  InstancePtr is a pointer to the Subsystem instance to be worked on.
* @param  mode is feature (PIP or ZOOM) whose window coordinates are to be
*         retrieved
* @param  win is structure that will contain read window coordinates and size
*
** @note For Zoom mode RD client window is read from scratch pad memory
*        For Pip mode WR client window is read from scratch pad memory
*        This function is not applicable in Subsystem Stream Mode Configuration
*
******************************************************************************/
This function reads the user defined Zoom/Pip window from scratch pad memory
This function reads the user defined Zoom / Pip window from scratch pad memory
void XVprocSs_GetZoomPipWindow(XVprocSs *InstancePtr,
                               XVprocSs_Win   mode,
                               XVidC_VideoWindow *win)
{
   Xil_AssertVoid(InstancePtr != NULL);
   Xil_AssertVoid(win != NULL);
   if(XVprocSs_IsConfigModeMax(InstancePtr)) {
     if(mode == XVPROCSS_ZOOM_WIN) {
       win->StartX = InstancePtr->CtxtData.RdWindow.StartX;
       win->StartY = InstancePtr->CtxtData.RdWindow.StartY;
       win->Width  = InstancePtr->CtxtData.RdWindow.Width;
       win->Height = InstancePtr->CtxtData.RdWindow.Height;
     }
     else { 
       win->StartX = InstancePtr->CtxtData.WrWindow.StartX;
       win->StartY = InstancePtr->CtxtData.WrWindow.StartY;
       win->Width  = InstancePtr->CtxtData.WrWindow.Width;
       win->Height = InstancePtr->CtxtData.WrWindow.Height;
     }
     XVprocSs_LogWrite(InstancePtr, XVPROCSS_EVT_GET_ZPWIN, XVPROCSS_EDAT_SUCCESS);
   }
   else { 
     XVprocSs_LogWrite(InstancePtr, XVPROCSS_EVT_GET_ZPWIN, XVPROCSS_EDAT_FAILURE);
   }
}
void XVprocSs_GetZoomPipWindow ( XVprocSs * InstancePtr , XVprocSs_Win mode , XVidC_VideoWindow * win ) { Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( win != NULL ) ; if ( XVprocSs_IsConfigModeMax ( InstancePtr ) ) { if ( mode == XVPROCSS_ZOOM_WIN ) { win -> StartX = InstancePtr -> CtxtData . RdWindow . StartX ; win -> StartY = InstancePtr -> CtxtData . RdWindow . StartY ; win -> Width = InstancePtr -> CtxtData . RdWindow . Width ; win -> Height = InstancePtr -> CtxtData . RdWindow . Height ; } else { win -> StartX = InstancePtr -> CtxtData . WrWindow . StartX ; win -> StartY = InstancePtr -> CtxtData . WrWindow . StartY ; win -> Width = InstancePtr -> CtxtData . WrWindow . Width ; win -> Height = InstancePtr -> CtxtData . WrWindow . Height ; } XVprocSs_LogWrite ( InstancePtr , XVPROCSS_EVT_GET_ZPWIN , XVPROCSS_EDAT_SUCCESS ) ; } else { XVprocSs_LogWrite ( InstancePtr , XVPROCSS_EVT_GET_ZPWIN , XVPROCSS_EDAT_FAILURE ) ; } }
This function reads the user defined Zoom/Pip window from scratch pad memory
This function reads the user defined Zoom / Pip window from scratch pad memory
/* Verify arguments */ //PIP // streaming Config - no PIP or ZOOM window