XilinxProcessorIPLib/drivers/vprocss/src/xvprocss.c
void XVprocSs_SetPIPBackgroundColor(XVprocSs *InstancePtr,
		                            XLboxColorId ColorId)
{
  /* Verify arguments */
  Xil_AssertVoid(InstancePtr != NULL);
  Xil_AssertVoid(InstancePtr->LboxPtr != NULL);
  Xil_AssertVoid((ColorId >= XLBOX_BKGND_BLACK) &&
		         (ColorId < XLBOX_BKGND_LAST));

  if(InstancePtr->LboxPtr) {
	XV_LboxSetBackgroundColor(InstancePtr->LboxPtr,
			                  ColorId,
			                  InstancePtr->CtxtData.StrmCformat,
			                  InstancePtr->VidIn.ColorDepth);
	/* update default PIP background color */
	InstancePtr->CtxtData.LboxBkgndColor = ColorId;
    XVprocSs_LogWrite(InstancePtr, XVPROCSS_EVT_SET_PIPMODE, XVPROCSS_EDAT_BGND_SET);
  } else {
    XVprocSs_LogWrite(InstancePtr, XVPROCSS_EVT_SET_PIPMODE, XVPROCSS_EDAT_LBOX_ABSENT);
  }
}
/*****************************************************************************/
/**
* This function sets PIP background color
*
* @param  InstancePtr is a pointer to the Subsystem instance to be worked on.
* @param  ColorIs is the requested background color
*           - XLBOX_BKGND_BLACK
*           - XLBOX_BKGND_WHITE
*           - XLBOX_BKGND_RED
*           - XLBOX_BKGND_GREEN
*           - XLBOX_BKGND_BLUE
*
* @return None
*
* @note   Applicable only if Letterbox core is included in the subsystem
*
******************************************************************************/
This function sets PIP background color
This function sets PIP background color
void XVprocSs_SetPIPBackgroundColor(XVprocSs *InstancePtr,
		                            XLboxColorId ColorId)
{
  Xil_AssertVoid(InstancePtr != NULL);
  Xil_AssertVoid(InstancePtr->LboxPtr != NULL);
  Xil_AssertVoid((ColorId >= XLBOX_BKGND_BLACK) &&
		         (ColorId < XLBOX_BKGND_LAST));
  if(InstancePtr->LboxPtr) {
	XV_LboxSetBackgroundColor(InstancePtr->LboxPtr,
			                  ColorId,
			                  InstancePtr->CtxtData.StrmCformat,
			                  InstancePtr->VidIn.ColorDepth);
	InstancePtr->CtxtData.LboxBkgndColor = ColorId;
    XVprocSs_LogWrite(InstancePtr, XVPROCSS_EVT_SET_PIPMODE, XVPROCSS_EDAT_BGND_SET);
  } else {
    XVprocSs_LogWrite(InstancePtr, XVPROCSS_EVT_SET_PIPMODE, XVPROCSS_EDAT_LBOX_ABSENT);
  }
}
void XVprocSs_SetPIPBackgroundColor ( XVprocSs * InstancePtr , XLboxColorId ColorId ) { Xil_AssertVoid ( InstancePtr != NULL ) ; Xil_AssertVoid ( InstancePtr -> LboxPtr != NULL ) ; Xil_AssertVoid ( ( ColorId >= XLBOX_BKGND_BLACK ) && ( ColorId < XLBOX_BKGND_LAST ) ) ; if ( InstancePtr -> LboxPtr ) { XV_LboxSetBackgroundColor ( InstancePtr -> LboxPtr , ColorId , InstancePtr -> CtxtData . StrmCformat , InstancePtr -> VidIn . ColorDepth ) ; InstancePtr -> CtxtData . LboxBkgndColor = ColorId ; XVprocSs_LogWrite ( InstancePtr , XVPROCSS_EVT_SET_PIPMODE , XVPROCSS_EDAT_BGND_SET ) ; } else { XVprocSs_LogWrite ( InstancePtr , XVPROCSS_EVT_SET_PIPMODE , XVPROCSS_EDAT_LBOX_ABSENT ) ; } }
This function sets PIP background color
This function sets PIP background color
/* Verify arguments */ /* update default PIP background color */