ID 683273
Date 1/24/2022
Public

## 9.80. btc_dptxll_stream_calc_VCP_size

Prototype:

int btc_dptxll_stream_calc_VCP_size(
BYTE tx_idx,
BYTE strm_idx)

No

Available from ISR:

No

Include:

< btc_dptxll_syslib.h >

Return:

VCP size (0 = error)

Parameters:

• tx_idx—Source instance index (0 - 3)
• strm_idx—Stream index (0 - 3)

Description:

This function calculates the VCP size (number of time slots) needed to transmit stream strm_idx. btc_dptxll_stream_set_pixel_rate() must have been invoked before in order to define the data bandwidth required. The main link must be up when invoking btc_dptxll_stream_calc_VCP_size().

Example:

btc_dptxll_stream_calc_VCP_size(0,0);

This function calculates the following for the given stream:
• Stream VCP size
• Stream Average Time Slots per MTP
• Stream Max Target Average Time Slots per MTP

A returned VCP size exceeding 63 means that the main link current status (link bitrate and lane count) and the resulting available bandwidth are not enough to transport the stream.