Btc_dptx_set_color_space, Btc_dptx_syslib_init, Btc_dptx_set_color_space -18 – Altera DisplayPort MegaCore Function User Manual
Page 119: Btc_dptx_syslib_init -18
btc_dptx_set_color_space
Prototype:
int btc_dptx_set_color_space(
BYTE format,
BYTE bpc,
BYTE range,
BYTE colorimetry)
Thread-safe:
No
Available from ISR: Yes
Include:
<
btc_dptx_syslib.h
>
Return:
0 = success, 1 = fail
Parameters:
•
format
—0 = RGB; 1 = YCbCr 4:2:2; 2 = YCbCr 4:4:4
•
bpc
—Color depth (bpc): 0 = 6; 1 = 8; 2 = 10; 3 = 12; 4 = 16
•
range
—0 = VESA; 1 = CEA
•
colorimetry
—0 = BT601-5; 1 = BT709-5
Description:
This function sets the color space for TX transmitted video.
Example:
btc_dptx_set_color_space(0, 1, 0, 0);
btc_dptx_syslib_init
Prototype:
int btc_dptx_syslib_init(
unsigned int tx_base_addr,
unsigned int tx_irq_id,
unsigned int tx_irq_num)
Thread-safe:
No
Available from ISR:
No
Include:
<
btc_dptx_syslib.h
>
Return:
0 = success, 1 = fail
Parameters:
•
tx_base_addr
—TX base address
•
tx_irq_id
—TX IRQ ID
•
tx_irq_num—
TX IRQ number
8-18
btc_dptx_set_color_space
UG-01131
2015.05.04
Altera Corporation
DisplayPort API Reference