摘要 |
According to one embodiment, an image encoder includes a sorter, a PCM (pulse code modulation) pixel inserter, an encoding unit and an output stream generator. The sorter accepts an input stream comprising a plurality of original pixels included in original image data in a raster scan order and changes arrangement of the original pixels to generate sorted data. The PCM pixel inserter outputs a PCM pixel in accordance with a predetermined PCM pixel insertion interval. The encoding unit conducts difference encoding processing by using the PCM pixel and the sorted data to generate encoded data. The output stream generator inserts the PCM pixel at a PCM insertion position in the encoded data corresponding to a coordinate of the original pixel to generate an output stream. |