| 1 | = UFO Camera Data Format = |
| 2 | |
| 3 | * Consist of Header (256 bits), Payload data (size vary on the number of lines, size per line is 1408 bits) and Tail (256 bits). |
| 4 | |
| 5 | == Header data == |
| 6 | |
| 7 | * Current header structure consist of following eight 32-bit words: |
| 8 | * Header [255:224] : 0x51111111 |
| 9 | * Header [223:192] : 0x52222222 |
| 10 | * Header [191:160] : 0x53333333 |
| 11 | * Header [159:128] : 0x54444444 |
| 12 | * Header [127:96] : 0x55555555 |
| 13 | * Header [95:92] : 0x5, Header [91:82]: starting line, Header [81:75]: number of skipped lines, Header [74:64]: number of lines in frame |
| 14 | * Header [63:60] : 0x5, Header [59:56]: version number, now is 0x4, Header [55:32]: number of frames |
| 15 | * Header [31:24] : 0x50, Header [23:0] : timestamp |
| 16 | |
| 17 | |
| 18 | == Payload data == |
| 19 | |
| 20 | * Payload data per row consist of the 32-bit Row Header, followed by the 42 32-bit words of the Row data, and final 32-bit Row Data Tail |
| 21 | |
| 22 | * Structure of the ROW data header: |
| 23 | * Row Header [3:0] : Channel number (from 0 to 15) |
| 24 | * Row Header [14:4] : Row number (from 0 to 1087) |
| 25 | * Row Header [15] : 0 |
| 26 | * Row Header [19:16] : Pixel size, now is 0xA (10) |
| 27 | * Row Header [27:20] : Number of pixels in row |
| 28 | * Row Header [29:28] : 0x0 |
| 29 | * Row Header [31:30] : 0x2 |
| 30 | |
| 31 | * Structure of the Row data 32-bit word: |
| 32 | * Row Data [29:0] : three pixels of 10-bit size |
| 33 | * Row Data [31:30] : 0x3 |
| 34 | |
| 35 | * Structure of the Row Data Tail 32-bit word: |
| 36 | * Row Tail [9:0] : 0x55 |
| 37 | * Row Tail [29:0] : two pixels of 10-bit size |
| 38 | * Row Tail [31:30] : 0x3 |
| 39 | |
| 40 | == Tail data == |
| 41 | |
| 42 | * Tail contains system status information. It consists of the following eight 32-bit words: |
| 43 | |
| 44 | * Tail [255:224] : 0x0AAAAAAA |
| 45 | * Tail [223:192] : 0x0BBBBBBB |
| 46 | * Tail [191:160] : status1 |
| 47 | * Tail [159:128] : status2 |
| 48 | * Tail [127:96] : status3 |
| 49 | * Tail [127:96] : status3 |
| 50 | * Tail [95:64] : 0x0FFFFFFF |
| 51 | * Tail [63:32] : 0x00000000 |
| 52 | * Tail [31:0] : 0x01111111 |
| 53 | |