This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
wiki:v2:video-packets [2018/10/03 20:49] jfrench |
wiki:v2:video-packets [2018/10/03 20:59] jfrench [Video - Packet Reference] |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== Video - Packet Reference ===== | ===== Video - Packet Reference ===== | ||
+ | Check out the [[wiki:v2:video_api|Video API]] for more details. | ||
==== getRGB(x,y,r,g,b,saturate) ==== | ==== getRGB(x,y,r,g,b,saturate) ==== | ||
=== Request: === | === Request: === | ||
- | ^Bit ^Description ^Value ^ | + | ^Bit ^Description ^Value ^ |
- | |0 - 1 |Sync | 174 193 | | + | |0 - 1 |Sync | 174 193 | |
- | |2 |Type of packet |112 | | + | |2 |Type of packet |112 | |
- | |3 |Length of payload |5 | | + | |3 |Length of payload |5 | |
- | |4 |?? |x | | + | |4 |center x to sample from |0 - 315 | |
- | |5 |?? |x | | + | |5 |center y to sample from |0 - 207 | |
- | |6 |?? |x | | + | |6 |pointer to R value to fill | | |
- | |7 |?? |x | | + | |7 |pointer to R value to fill | | |
- | |8 |?? |x | | + | |8 |pointer to R value to fill | | |
=== Response: === | === Response: === | ||
- | ^Bit ^Description ^Value ^ | + | ^Byte ^Description ^Value ^ |
- | | | | | | + | |0 - 1 |Sync | 175 193 | |
- | | | | | | + | |2 |Type of packet |113 | |
+ | |3 |Length of payload | | | ||
+ | |4 - 5 |Checksum | | |