XilinxProcessorIPLib/drivers/vprocss/src/xvprocss.c
int XVprocSs_SetStreamResolution(XVidC_VideoStream *StreamPtr,
                                 const XVidC_VideoMode VmId,
                                 XVidC_VideoTiming const *Timing)
{
  /* Verify arguments */
  Xil_AssertNonvoid(StreamPtr != NULL);
  Xil_AssertNonvoid(Timing != NULL);
  Xil_AssertNonvoid((Timing->HActive > 0) &&
                    (Timing->VActive > 0));

  /* Video Mode could be from the list of supported modes or custom */
  if(VmId != XVIDC_VM_NOT_SUPPORTED) {
      /* update stream timing properties */
      StreamPtr->VmId   = VmId;
      StreamPtr->Timing = *Timing;
      return(XST_SUCCESS);
  } else {
      return(XST_FAILURE);
  }
}
/*****************************************************************************/
/**
* This function sets the required subsystem video stream to the user provided
* stream and timing parameters
*
* @param  StreamPtr is a pointer to the subsystem video stream to be configured
* @param  VmId is the Video Mode ID of the new resolution to be set
* @param  Timing is the timing parameters of the new resolution to be set

* @return XST_SUCCESS if successful else XST_FAILURE
******************************************************************************/
This function sets the required subsystem video stream to the user provided
stream and timing parameters
This function sets the required subsystem video stream to the user provided stream and timing parameters
int XVprocSs_SetStreamResolution(XVidC_VideoStream *StreamPtr,
                                 const XVidC_VideoMode VmId,
                                 XVidC_VideoTiming const *Timing)
{
  Xil_AssertNonvoid(StreamPtr != NULL);
  Xil_AssertNonvoid(Timing != NULL);
  Xil_AssertNonvoid((Timing->HActive > 0) &&
                    (Timing->VActive > 0));
  if(VmId != XVIDC_VM_NOT_SUPPORTED) {
      StreamPtr->VmId   = VmId;
      StreamPtr->Timing = *Timing;
      return(XST_SUCCESS);
  } else {
      return(XST_FAILURE);
  }
}
int XVprocSs_SetStreamResolution ( XVidC_VideoStream * StreamPtr , const XVidC_VideoMode VmId , XVidC_VideoTiming const * Timing ) { Xil_AssertNonvoid ( StreamPtr != NULL ) ; Xil_AssertNonvoid ( Timing != NULL ) ; Xil_AssertNonvoid ( ( Timing -> HActive > 0 ) && ( Timing -> VActive > 0 ) ) ; if ( VmId != XVIDC_VM_NOT_SUPPORTED ) { StreamPtr -> VmId = VmId ; StreamPtr -> Timing = * Timing ; return ( XST_SUCCESS ) ; } else { return ( XST_FAILURE ) ; } }
This function sets the required subsystem video stream to the user provided
stream and timing parameters
This function sets the required subsystem video stream to the user provided stream and timing parameters
/* Verify arguments */ /* Video Mode could be from the list of supported modes or custom */ /* update stream timing properties */