This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
wiki:v2:video-packets [2018/10/03 20:59] jfrench [Video - Packet Reference] |
wiki:v2:video-packets [2018/10/10 19:15] pixycam [getRGB(x,y,r,g,b,saturate)] |
||
---|---|---|---|
Line 6: | Line 6: | ||
=== Request: === | === Request: === | ||
- | ^Bit ^Description ^Value ^ | + | ^Bit ^Description ^Value(s) ^ |
- | |0 - 1 |Sync | 174 193 | | + | |0 - 1 |16-bit sync | 174, 193 (0xc1ae) | |
|2 |Type of packet |112 | | |2 |Type of packet |112 | | ||
|3 |Length of payload |5 | | |3 |Length of payload |5 | | ||
- | |4 |center x to sample from |0 - 315 | | + | |4-5 |16-bit x value |0 - 315 | |
- | |5 |center y to sample from |0 - 207 | | + | |6-7 |16-bit y value |0 - 207 | |
- | |6 |pointer to R value to fill | | | + | |8 |Saturate flag | 0=don't saturate, 1=saturate| |
- | |7 |pointer to R value to fill | | | + | |
- | |8 |pointer to R value to fill | | | + | |
=== Response: === | === Response: === | ||
- | ^Byte ^Description ^Value ^ | + | ^Byte ^Description ^Value(s) ^ |
- | |0 - 1 |Sync | 175 193 | | + | |0 - 1 |16-bit sync | 175, 193 (0xc1af) | |
- | |2 |Type of packet |113 | | + | |2 |Type of packet |1| |
- | |3 |Length of payload | | | + | |3 |Length of payload | 4 | |
- | |4 - 5 |Checksum | | | + | |4 - 5 |16-bit checksum | sum of payload bytes | |
+ | | 6 |blue value | (varies) | | ||
+ | | 7 |green value | (varies | | ||
+ | | 8 |red value | (varies) | |