COMP40 Assignment: Image-Compression Challenge

*

COMP 40 Assignment: Image-Compression Challenge

Due Thursday, October 20 at 11:59 PM.

For the image-compression challenge, you are to meet two criteria:

  1. Edit your compile script to produce an executable binary named 40image-6 instead of 40image.
  2. Edit your existing code to use the following codeword format for coefficients a, b, c, d, P_B, and P_R:
    ValueTypeWidthLSB
    aUnsigned scaled integer6 bits26
    bSigned scaled integer6 bits20
    cSigned scaled integer6 bits14
    dSigned scaled integer6 bits8
    index(P_B)Unsigned index4 bits4
    index(P_R)Unsigned index4 bits0
    Surprisingly, this format produces slightly better images than the 9/5/5/5 format used in the original assignment.
Please If your compressor does not work correctly, that's OK: your job is simply to get the behavior you already have (whatever it is) using the new format.

Submit your work using submit40-arith-challenge.