摘要 |
The present invention provides a method for avoiding rounding errors during rounding of values after performing an inverse discrete cosine transformation. In a first step a) coefficient values of a plurality of coefficients are summed up, wherein the coefficients belong to a block of coefficients. In a second step b), it is evaluated if the sum of the coefficient values is even numbered or odd numbered. In a third step c), then the coefficient block is transformed by means of the inverse discrete cosine transformation into a block of image pixels, wherein each image pixel comprises an image pixel value. In a fourth step d), a block of manipulation values is added or subtracted to the block of image pixel values of the block of image pixels, if the evaluation of the sum of the coefficient values has provided that the sum is even numbered, for generating a manipulated image pixel block, wherein the manipulation value block is formed such that rounding errors during a subsequent rounding operation can be avoided.
|