Mikael Lubtchansky
Well-known member
- Joined
- Jul 31, 2007
- Messages
- 2,426
- Reaction score
- 42
- Points
- 48
- Location
- France
- Website
- www.foolcolor.net
REDLINK SDK - continued.
rcp_api_hw_cap.c
+) _rcp_hw_cap_handle_older_firmware()
Currently:
/* If we have multi monitor feed 1 and 3D LUT support set
* the meta capability HW_CAP_MULTI_MONITOR_FEED_1_AND_3D_LUT */
if (_rcp_get_hw_cap(con, HW_CAP_MULTI_MONITOR_FEED_1) &&
_rcp_get_hw_cap(con, HW_CAP_MULTI_MONITOR_FEED_1))
Comment: I believe there is code error here - suggest replacing this with:
/* If we have multi monitor feed 1 and 3D LUT support set
* the meta capability HW_CAP_MULTI_MONITOR_FEED_1_AND_3D_LUT */
if (_rcp_get_hw_cap(con, HW_CAP_MULTI_MONITOR_FEED_0) &&
_rcp_get_hw_cap(con, HW_CAP_MULTI_MONITOR_FEED_1))
AJ
It does look like there is a code error in this 'older hardware' support routine... as it is indeed checking twice for same capacity,
but to make sense, the correct code should check for HW_CAP_3D_LUT and not HW_CAP_MULTI_MONITOR_FEED_0 :
Code:
if (_rcp_get_hw_cap(con, HW_CAP_MULTI_MONITOR_FEED_1) && _rcp_get_hw_cap(con, [B][COLOR="#FF0000"]HW_CAP_3D_LUT[/COLOR][/B]))
{
_rcp_set_hw_cap(con, HW_CAP_MULTI_MONITOR_FEED_1_AND_3D_LUT, 1);
}
else
{
_rcp_set_hw_cap(con, HW_CAP_MULTI_MONITOR_FEED_1_AND_3D_LUT, 0);
}
Mikael