This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
notes:discrete:fall2022:projects:rle2 [2022/10/30 16:07] – [REFERENCES] hcordell | notes:discrete:fall2022:projects:rle2 [2022/11/03 02:53] (current) – [PROGRAM] dkienenb | ||
---|---|---|---|
Line 17: | Line 17: | ||
**sample0.txt: | **sample0.txt: | ||
**sample1.txt: | **sample1.txt: | ||
- | **sample2.bmp: | + | **sample2.bmp: |
+ | **sample3.wav: | ||
+ | **sample5.txt: | ||
Please reference the image below to find the hexadecimal value of the ASCII symbols: | Please reference the image below to find the hexadecimal value of the ASCII symbols: | ||
Line 46: | Line 48: | ||
</ | </ | ||
+ | **NOTE** Control value is input as a decimal 0-255. When running encode for this project, the control value should be input as ' | ||
+ | |||
+ | **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=== | ||
Input-file-> | Input-file-> | ||
- | Outpath-> | + | |
+ | Outpath-> | ||
Stride-> | Stride-> | ||
+ | |||
Control-> | Control-> | ||
=====DATA HEADER SPECIFICATIONS===== | =====DATA HEADER SPECIFICATIONS===== |