Compression LABS hold about 20 EP patents but refrained from enforcing this one against the JPEG format. Now a new proprietor has changed this policy and apparently already squeezed 15 mn USD out of Sony.
utlising the first type of runlength code (R) for coding a runlength of the most frequently occurring value followed by the next most frequently occurring value;
utilising the second type of runlength code (R') for codinga runlength of the most frequently occurring value followed by any value other than the nextmost frequently occurring value; and
when the second type of runlength code is used, following the runlength code value by a code value indicative of the amplitude of said other value.