A method of processing a set of transform coefficients, each of the transform coefficients having parity, to provide an error-immune set of transform coefficients for processing by an inverse orthogonal transform, the error-immune set of transform coefficients being immune to rounding errors when subject to the inverse orthogonal transform, the method comprising the steps of:
- summing the transform coefficients in the set to provide a sum, the sum having parity;
- judging the parity of the sum;
- when the parity of the sum is even, inverting the parity of one of the transform coefficients in the set to provide a parity-inverted transform coefficient, the parity-inverted transform coefficient making the parity of the sum odd;
- and
- providing the transform coefficients including the parity-inverted transform coefficient as the error-immune set.