User Tools

Site Tools


haas:fall2017:discrete:projects:dcf2

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
haas:fall2017:discrete:projects:dcf2 [2017/10/15 21:48] – [Encode] wedgehaas:fall2017:discrete:projects:dcf2 [2017/10/21 12:01] (current) – [This week's algorithm: RLE+control_sequences] wedge
Line 36: Line 36:
 Encoding with our new algorithm, we would get the following (our control sequence byte will be a 2A, then followed by the count byte, then the stride byte, then the encoded data): Encoding with our new algorithm, we would get the following (our control sequence byte will be a 2A, then followed by the count byte, then the stride byte, then the encoded data):
  
-  * 2A 06 01 61 62 63 64 62 63 64 62 63 2A 07 01 64 65 66 67 68 69 6A 6B 6C 6D 2A 06 6E 6F 77 78 79 7A+  * 2A 06 01 61 62 63 64 62 63 64 62 63 2A 07 01 64 65 66 67 68 69 6A 6B 6C 6D 2A 06 01 6E 6F 77 78 79 7A
     * 34 bytes     * 34 bytes
  
Line 204: Line 204:
  
 <cli> <cli>
-lab46:~/src/discrete/dcf2$ ./decode sample5.txt.rle+lab46:~/src/discrete/dcf2$ ./decode sample5.txt.rle .
     input filename: sample5.txt.rle     input filename: sample5.txt.rle
 output name length: 11 bytes output name length: 11 bytes
-   output filename: sample5.txt+   output filename: ./sample5.txt
        header text: dcfX RLE v3        header text: dcfX RLE v3
       control byte: 0x29       control byte: 0x29
haas/fall2017/discrete/projects/dcf2.1508104104.txt.gz · Last modified: 2017/10/15 21:48 by wedge