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

  if(XVprocSs_IsConfigModeMax(InstancePtr))
  {
    /* send Vdma update window to IP */
    if(XVprocSs_IsPipModeOn(InstancePtr)) {
      XVprocSs_VdmaSetWinToDnScaleMode(InstancePtr, XVPROCSS_VDMA_UPDATE_WR_CH);
    }
    else {
      XVprocSs_VdmaSetWinToUpScaleMode(InstancePtr, XVPROCSS_VDMA_UPDATE_RD_CH);
    }

    XVprocSs_VdmaStartTransfer(InstancePtr);

    /*
     * Final output of Video Processing subsystem goes via LBox IP
     * Program the output resolution window
     */
    if(XVprocSs_IsPipModeOn(InstancePtr)) {
      XV_LBoxSetActiveWin(InstancePtr->LboxPtr,
                          &InstancePtr->CtxtData.WrWindow,
                          InstancePtr->VidOut.Timing.HActive,
                          InstancePtr->VidOut.Timing.VActive);
    }
    XVprocSs_LogWrite(InstancePtr, XVPROCSS_EVT_UPDATE_ZPWIN, XVPROCSS_EDAT_SUCCESS);
  }
  else {
	// streaming Config - no PIP or ZOOM window
    XVprocSs_LogWrite(InstancePtr, XVPROCSS_EVT_UPDATE_ZPWIN, XVPROCSS_EDAT_FAILURE);
  }
}
/*****************************************************************************/
/**
* This function updates the Pip/Zoom window currently on screen in-place.
* This implies the video is not blanked and the new coordinates will update
* instantly as the function executes
*
* @param  InstancePtr is a pointer to the Subsystem instance to be worked on.
*
* @return None
*
* @note This function must be called only after the respective mode (PIP/Zoom)
*       has been enabled and user wants to move window to a new location
*       This function is not applicable in Subsystem Stream Mode Configuration
*
******************************************************************************/
This function updates the Pip/Zoom window currently on screen in-place.
This implies the video is not blanked and the new coordinates will update
instantly as the function executes
This function updates the Pip / Zoom window currently on screen in - place . This implies the video is not blanked and the new coordinates will update instantly as the function executes
void XVprocSs_UpdateZoomPipWindow(XVprocSs *InstancePtr)
{
  Xil_AssertVoid(InstancePtr != NULL);
  if(XVprocSs_IsConfigModeMax(InstancePtr))
  {
    if(XVprocSs_IsPipModeOn(InstancePtr)) {
      XVprocSs_VdmaSetWinToDnScaleMode(InstancePtr, XVPROCSS_VDMA_UPDATE_WR_CH);
    }
    else {
      XVprocSs_VdmaSetWinToUpScaleMode(InstancePtr, XVPROCSS_VDMA_UPDATE_RD_CH);
    }
    XVprocSs_VdmaStartTransfer(InstancePtr);
    if(XVprocSs_IsPipModeOn(InstancePtr)) {
      XV_LBoxSetActiveWin(InstancePtr->LboxPtr,
                          &InstancePtr->CtxtData.WrWindow,
                          InstancePtr->VidOut.Timing.HActive,
                          InstancePtr->VidOut.Timing.VActive);
    }
    XVprocSs_LogWrite(InstancePtr, XVPROCSS_EVT_UPDATE_ZPWIN, XVPROCSS_EDAT_SUCCESS);
  }
  else {
    XVprocSs_LogWrite(InstancePtr, XVPROCSS_EVT_UPDATE_ZPWIN, XVPROCSS_EDAT_FAILURE);
  }
}
void XVprocSs_UpdateZoomPipWindow ( XVprocSs * InstancePtr ) { Xil_AssertVoid ( InstancePtr != NULL ) ; if ( XVprocSs_IsConfigModeMax ( InstancePtr ) ) { if ( XVprocSs_IsPipModeOn ( InstancePtr ) ) { XVprocSs_VdmaSetWinToDnScaleMode ( InstancePtr , XVPROCSS_VDMA_UPDATE_WR_CH ) ; } else { XVprocSs_VdmaSetWinToUpScaleMode ( InstancePtr , XVPROCSS_VDMA_UPDATE_RD_CH ) ; } XVprocSs_VdmaStartTransfer ( InstancePtr ) ; if ( XVprocSs_IsPipModeOn ( InstancePtr ) ) { XV_LBoxSetActiveWin ( InstancePtr -> LboxPtr , & InstancePtr -> CtxtData . WrWindow , InstancePtr -> VidOut . Timing . HActive , InstancePtr -> VidOut . Timing . VActive ) ; } XVprocSs_LogWrite ( InstancePtr , XVPROCSS_EVT_UPDATE_ZPWIN , XVPROCSS_EDAT_SUCCESS ) ; } else { XVprocSs_LogWrite ( InstancePtr , XVPROCSS_EVT_UPDATE_ZPWIN , XVPROCSS_EDAT_FAILURE ) ; } }
This function updates the Pip/Zoom window currently on screen in-place.
This function updates the Pip / Zoom window currently on screen in - place .
/* Verify arguments */ /* send Vdma update window to IP */ /*
     * Final output of Video Processing subsystem goes via LBox IP
     * Program the output resolution window
     */ // streaming Config - no PIP or ZOOM window