gcv_read — Read from GCV feedback data
void gcv_read(uint8 offset, <anytype> *variable);
Update the variable pointed by *variable with the value of type and size defined by <anytype>, located in the position offset from the GCV feedback data array.
uint8 gcv_read(uint8 offset);
Read an uint8 value from position offset of the GCV feedback data array.
<anytype> can be: int8 , uint8 , int16 , uint16 , int32 , uint32 , fix32 or any of its aliases. |
Byte Size of Variable Types | ||
---|---|---|
int8 , uint8 | 1 byte | |
int16 , uint16 | 2 bytes | big-endian |
int32 , uint32 , fix32 | 4 bytes | big-endian |
The GCV feedback data is an array of a maximum of 255 bytes utilized by the Gtuner's Computer Vision script to provide information garnered from video frames (e.g. game streaming) by means of computer vision algorithms. The feedback data is utilized by Titan Two scripts for automatic configurations and/or to trigger automated actions.
uint8 weapon_model; int32 horz_delta; uint16 shots_fired; main { // GCV feedback data was updated if(gcv_ready()) { // Read the GCV feedback data into variables. weapon_model = gcv_read(0); gcv_read(1, &horz_delta); gcv_read(5, &shots_fired); } }