Patent ID: 8599918

Claim:
A video compression encoding device comprising: a prediction unit to calculate a prediction pixel value for predicting a current input pixel value on the basis of image data; a prediction error calculation unit to calculate a prediction error value between the current input pixel value and the prediction pixel value; a quantization unit to quantize the prediction error value and to calculate a prediction error quantization value; a prediction error encoding unit to encode the prediction error quantization value and to output the value as compressed data; a decompression unit to decompress a decompression pixel value on a decompression side from the prediction error quantization value and the prediction pixel value and to give the value to the prediction unit, for compressing/encoding the image data by prediction encoding and outputting the compressed data; a previous decompression pixel value storage unit to store decompression pixel values outputted from the decompression device, for a predetermined number of pixels of pixels immediately before a focus pixel; a periodic pattern area detection unit to detect a periodic pattern which is included in the image data and in which a pixel value is regularly repeated in a scanning direction; a periodic pattern encoding unit to encode information about the periodic pattern, to output the information including a period detection signal indicating how many cycles exist and a pixel code, as part of the compressed data and to stop an output of the prediction error encoding unit when the periodic pattern area is detected; and a selection unit to read a decompression pixel value one cycle before corresponding to the periodic pattern from the previous decompression pixel value storage unit, to give the value to the prediction unit instead of a decompression pixel value outputted from the decompression unit and also to re-store the value in the previous decompression pixel value storage unit when the periodic pattern area is detected.