XilinxProcessorIPLib/drivers/v_letterbox/src/xv_letterbox_l2.c
void XV_LBoxSetActiveWin(XV_Lbox_l2 *InstancePtr,
                         XVidC_VideoWindow *ActiveWindow,
                         u32 FrameWidth,
                         u32 FrameHeight)
{
  Xil_AssertVoid(InstancePtr != NULL);

  XV_letterbox_Set_HwReg_col_start(&InstancePtr->Lbox, ActiveWindow->StartX);
  XV_letterbox_Set_HwReg_col_end(&InstancePtr->Lbox,
                ActiveWindow->StartX+ActiveWindow->Width);
  XV_letterbox_Set_HwReg_row_start(&InstancePtr->Lbox, ActiveWindow->StartY);
  XV_letterbox_Set_HwReg_row_end(&InstancePtr->Lbox,
                ActiveWindow->StartY+ActiveWindow->Height);

  XV_letterbox_Set_HwReg_height(&InstancePtr->Lbox, FrameHeight);
  XV_letterbox_Set_HwReg_width(&InstancePtr->Lbox,  FrameWidth);
}
/*****************************************************************************/
/**
* This function configures the letterbox active window. All pixels within the
* window are passed to the output as-is. Any pixel outside the defined window
* will be clamped to the programmed background color
*
* @param  InstancePtr is a pointer to the core instance to be worked on.
* @param  ActiveWindow is structure that contains window coordinates and size
* @param  FrameWidth is the input stream width
* @param  FrameHeight is the input stream height
*
* @return None
*
******************************************************************************/
This function configures the letterbox active window. All pixels within the
window are passed to the output as-is. Any pixel outside the defined window
will be clamped to the programmed background color
This function configures the letterbox active window . All pixels within the window are passed to the output as - is . Any pixel outside the defined window will be clamped to the programmed background color
void XV_LBoxSetActiveWin(XV_Lbox_l2 *InstancePtr,
                         XVidC_VideoWindow *ActiveWindow,
                         u32 FrameWidth,
                         u32 FrameHeight)
{
  Xil_AssertVoid(InstancePtr != NULL);
  XV_letterbox_Set_HwReg_col_start(&InstancePtr->Lbox, ActiveWindow->StartX);
  XV_letterbox_Set_HwReg_col_end(&InstancePtr->Lbox,
                ActiveWindow->StartX+ActiveWindow->Width);
  XV_letterbox_Set_HwReg_row_start(&InstancePtr->Lbox, ActiveWindow->StartY);
  XV_letterbox_Set_HwReg_row_end(&InstancePtr->Lbox,
                ActiveWindow->StartY+ActiveWindow->Height);
  XV_letterbox_Set_HwReg_height(&InstancePtr->Lbox, FrameHeight);
  XV_letterbox_Set_HwReg_width(&InstancePtr->Lbox,  FrameWidth);
}
void XV_LBoxSetActiveWin ( XV_Lbox_l2 * InstancePtr , XVidC_VideoWindow * ActiveWindow , u32 FrameWidth , u32 FrameHeight ) { Xil_AssertVoid ( InstancePtr != NULL ) ; XV_letterbox_Set_HwReg_col_start ( & InstancePtr -> Lbox , ActiveWindow -> StartX ) ; XV_letterbox_Set_HwReg_col_end ( & InstancePtr -> Lbox , ActiveWindow -> StartX + ActiveWindow -> Width ) ; XV_letterbox_Set_HwReg_row_start ( & InstancePtr -> Lbox , ActiveWindow -> StartY ) ; XV_letterbox_Set_HwReg_row_end ( & InstancePtr -> Lbox , ActiveWindow -> StartY + ActiveWindow -> Height ) ; XV_letterbox_Set_HwReg_height ( & InstancePtr -> Lbox , FrameHeight ) ; XV_letterbox_Set_HwReg_width ( & InstancePtr -> Lbox , FrameWidth ) ; }
This function configures the letterbox active window.
This function configures the letterbox active window .