<< return to Pixycam.com

User Tools

Site Tools


wiki:v2:video-packets

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
wiki:v2:video-packets [2018/10/03 19:27]
jfrench
wiki:v2:video-packets [2018/10/10 19:15]
pixycam [getRGB(x,y,r,g,b,saturate)]
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) ====
  
-^Bit ^Description ^Value ^ +=== Request: === 
-|0 - 1 |Sync | 174 193 | +^Bit ^Description ^Value(s) 
-|2 |Type of packet |112 | +|0 - 1 |16-bit sync | 174193 (0xc1ae) ​
-|3 |Length of packet |5 | +|2 |Type of packet |112 | 
-|4 |?? |x | +|3 |Length of payload |5 | 
-|5 |?? ​    ​ |x ​+|4-5 |16-bit ​value  |0 - 315 
-|6 |?? |x | +|6-7 |16-bit y value    |0 - 207 
-|7 |??      |+|8 |Saturate flag 0=don'​t saturate, 1=saturate|
-|8 |?? ||+
  
 === Response: === === Response: ===
  
  
-^Bit ^Description ^Value ^ +^Byte ^Description ^Value(s) 
-| | | | +|0 - 1 |16-bit sync 175, 193 (0xc1af) ​
-| | | |+|2 |Type of packet |1| 
 +|3 |Length of payload | 4 | 
 +|4 - 5 |16-bit checksum | sum of payload bytes | 
 +| 6             |blue value | (varies) | 
 +| 7             ​|green value | (varies | 
 +| 8             |red value | (varies) ​|
wiki/v2/video-packets.txt · Last modified: 2018/10/10 19:39 by pixycam