User Tools

Site Tools


notes:discrete:fall2022:projects:rle2

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
notes:discrete:fall2022:projects:rle2 [2022/11/01 18:44] – [PROGRAM] bolsen1notes:discrete:fall2022:projects:rle2 [2022/11/03 02:53] (current) – [PROGRAM] dkienenb
Line 48: Line 48:
 </cli> </cli>
  
-**NOTE** Control value is input as a decimal 0-255. When running encode for this project, the control value should be input as '61' for a, '62' for b, etc.. So, in order to do this, you will need to do some conversion within rle2 in order to convert the 61 decimal into hexadecimal. One way to do this is possibly sscanf.+**NOTE** Control value is input as a decimal 0-255. When running encode for this project, the control value should be input as '61' for a, '62' for b, etc.. So, in order to do this, you will need to do some conversion within rle2 in order to convert the 61 decimal into hexadecimal. One way to do this is possibly sscanf. The same is true of the stride.
  
-**NOTE** To convert a string argument into a usable decimal, use //atoi()// and put the string argument you wish to convert into the function. This works with unsigned chars as well as ints. +**NOTE** To convert a string argument into a usable decimal, set your desired variable equal to //atoi()// and put the string argument you wish to convert in the function. This works with unsigned chars as well as ints. If you atoi to an unsigned char, it is easy to put it into the header array with a simple assignment.
  
 ===Explanation=== ===Explanation===
Line 56: Line 56:
  
 Outpath->The path to the output file NOT including the filename (ie '~/rle2/x.rle' -> '~/rle/')\\ Outpath->The path to the output file NOT including the filename (ie '~/rle2/x.rle' -> '~/rle/')\\
 +
 Stride->How long the chain of bundled characters is (ie. 1ab is 2, 1abc is 3, etc)\\ Stride->How long the chain of bundled characters is (ie. 1ab is 2, 1abc is 3, etc)\\
 +
 Control->A value chosen to signal that the following bits are compressed, and thus will need to be decoded. Preferably the least common bit, as false positives are a possibility Control->A value chosen to signal that the following bits are compressed, and thus will need to be decoded. Preferably the least common bit, as false positives are a possibility
 =====DATA HEADER SPECIFICATIONS===== =====DATA HEADER SPECIFICATIONS=====
notes/discrete/fall2022/projects/rle2.1667328294.txt.gz · Last modified: 2022/11/01 18:44 by bolsen1