Image processing device and operating method of the image processing device
An image processing device and an operating method of the image processing device are disclosed. The image processing device includes a multimedia intellectual property (IP) configured to generate second image data by performing image processing on first image data and an encoder configured to compress the second image data, the encoder is further configured to generate first compressed data by performing quantization and at least one compression processing on a first block of the second image data based on a target compression ratio in a first compression condition, and generate second compressed data by performing the quantization on a second block of the second image data based on a first quantization step in a second compression condition, without performing the at least one compression processing.
1 . An image processing device comprising:
a multimedia intellectual property (IP) configured to generate second image data by performing image processing on first image data; and
an encoder configured to,
generate first compressed data by performing quantization on a block of the second image data using a quantization step;
generate second compressed data by performing at least one of prediction processing or entropy encoding on the first compressed data;
based on a compression ratio of the second compressed data being equal to or greater than a target compression ratio, transmit the second compressed data and a first header corresponding to the second compressed data, wherein the second compressed data and the first header are stored in a memory;
based on the compression ratio of the second compressed data being less than the target compression ratio, determine whether a quantization step size is greater than a first quantization step, or lower than or equal to the first quantization step;
in response to the quantization step size being lower than or equal to the first quantization step, increase the quantization step to obtain an increased quantization step and generate the second compressed data by performing the quantization using the increased quantization step, and the at least one of the prediction processing or the entropy encoding on the block of the second image data;
in response to the quantization step being greater than the first quantization step, generate third compressed data by performing the quantization on the block of the second image data based on the first quantization step; and
transmit the third compressed data and a second header corresponding to the third compressed data, the third compressed data and the second header corresponding to the third compressed data being stored in the memory, wherein
the encoder is configured to operate in a quality priority mode and a power priority mode, and
the first quantization step is set to a first value in the quality priority mode, the first quantization step is set to a second value in the power priority mode, and the first value is smaller than the second value.
2 . The image processing device of claim 1 , wherein
the first quantization step is smaller than a maximum quantization step, and
the maximum quantization step is determined based on the target compression ratio and a bit-depth of a pixel included in the second image data.
3 . The image processing device of claim 1 , wherein the first header has a first value indicating the compression ratio of the second compressed data, and the second header has a second value indicating a compression ratio of the third compressed data, and
the first value and the second value are positive integers, and the second value is greater than the first value.
4 . The image processing device of claim 3 , wherein the first value and the second value represent a data amount of the second compressed data and the third compressed data, respectively, as a value corresponding to a multiple of an access unit of the memory.
5 . The image processing device of claim 3 , wherein the memory includes
a first region in which the second compressed data and the third compressed data are stored and a second region in which the first header and the second header are stored, and
a unit region of the first region in which the second compressed data and the third compressed data are stored is set based on a data amount of the second compressed data.
6 . The image processing device of claim 3 , further comprising:
a decoder configured to receive the second compressed data or the third compressed data and the first header and the second header from the memory and decompress the second compressed data or the third compressed data.
7 . The image processing device of claim 6 , wherein the decoder is further configured to perform inverse quantization on the third compressed data based on the first quantization step when the second header indicates that the third compressed data is generated using the first quantization step.