Image processing device and operating method thereof
Provided are an image processing device and an operating method of the image processing device. An image processing device includes a multimedia intellectual property (IP) configured to process image data for pixels constituting one frame image, and an encoder configured to generate compressed data by performing compression on the image data, wherein the encoder includes a compression module and a first buffer. The compression module is configured to generate first compressed data by performing compression on the first image data including a most significant bit (MSB) of the image data, and the first buffer is configured to store second image data containing a least significant bit (LSB) of the image data, in order to skip compression for the second image data.
1 . An image processing device comprising:
a memory;
a multimedia circuit configured to process image data for pixels constituting one frame image; and
an encoder configured to generate compressed data by performing compression on the image data, wherein the encoder comprises a compression circuit, a header generator, and a first buffer,
wherein the compression circuit is configured to generate first compressed data by performing compression on first image data, the first image data including a most significant bit (MSB) of the image data,
wherein the first buffer is configured to store second image data that is free of a compression operation, the second image data containing a least significant bit (LSB) of the image data,
wherein the header generator is configured to receive the first compressed data from the compression circuit and output a header comprising a header index indicating a compression ratio of the first compressed data,
wherein the encoder further comprises a first merging circuit,
wherein the first merging circuit is configured to:
receive the first compressed data from the compression circuit;
receive the second image data from the first buffer;
generate a payload by merging the first compressed data with the second image data; and
transmit, to the memory, the payload including the first compressed data and the second image data, and the header.
2 . The image processing device of claim 1 , wherein the compression circuit is further configured to:
perform a prediction operation on the first image data to form residual data; and
generate the first compressed data by performing compression on the residual data corresponding to the first image data.
3 . The image processing device of claim 1 , wherein the compression circuit comprises a pre-compression circuit and a post-compression circuit,
wherein the pre-compression circuit is configured to determine a compression parameter corresponding to each of a plurality of blocks included in the first image data, and
wherein the post-compression circuit is configured to generate the first compressed data by performing compression on each of the plurality of blocks included in the first image data based on the compression parameter.
4 . The image processing device of claim 1 , wherein
the header index has a positive integer value representing an amount of data of the first compressed data as a value corresponding to a multiple of an access unit of the memory,
the MSB of the image data is determined by a value of a difference of the LSB of the image data from a total number of bits of the image data, or
the LSB of the image data is determined by a value of a difference of the MSB of the image data from the total number of bits of the image data.
5 . The image processing device of claim 1 , further comprising a decoder including a decompression circuit and a second buffer, wherein the decompression circuit is configured to read the payload and the header from the memory and decompress the payload.
6 . The image processing device of claim 5 , wherein the decompression circuit is further configured to:
split the first compressed data and the second image data from the payload, and perform decompression of the first compressed data based on the header index to restore the first image data, and
wherein the second buffer is configured to store the second image data that is free of decompression operation.
7 . The image processing device of claim 6 , wherein the decoder further comprises a second merging circuit that is configured to:
receive the first image data from the decompression circuit;
receive the second image data from the second buffer; and
transmit, to the multimedia circuit, decompressed data generated by merging the first image data with the second image data.
8 . A method for processing image data for pixels constituting one frame image, the method comprising:
generating first compressed data by performing compression on first image data including a most significant bit (MSB) of the image data;
storing, in a first buffer, second image data including a least significant bit (LSB) of the image data that is free of compression operation;
generating a payload by merging the first compressed data with the second image data;
generating a header comprising a header index indicating a compression ratio of the first compressed data; and
storing, in a memory, the payload including the first compressed data and the second image data, and the header.
9 . The method of claim 8 , wherein generating the first compressed data comprises:
performing a prediction operation on the first image data to form residual data; and
generating the first compressed data by performing compression on the residual data corresponding to the first image data.
10 . The method of claim 8 , wherein generating the first compressed data comprises:
determining a compression parameter corresponding to each of a plurality of blocks included in the first image data; and
generating the first compressed data by performing compression on each of the plurality of blocks included in the first image data, based on the compression parameter.
11 . The method of claim 8 , wherein
the header index has a positive integer value representing an amount of data of the first compressed data as a value corresponding to a multiple of an access unit of the memory,
the MSB of the image data is determined by a value of difference of the LSB of the image data from a total number of bits of the image data, or
the LSB of the image data is determined by a value of difference of the MSB of the image data from the total number of bits of the image data.
12 . The method of claim 8 , further comprising decompressing the payload by reading the payload and the header from the memory.
13 . The method of claim 12 , wherein decompressing the payload comprises:
splitting the first compressed data and the second image data from the payload;
performing decompression of the first compressed data, based on the header index, to restore the first compressed data as the first image data; and
storing the second image data free of compression operation in a second buffer.
14 . The method of claim 13 , further comprising generating decompressed data by merging the restored first image data with the stored second image data.
15 . An image processing device comprising:
a memory; and
a multimedia circuit configured to process image data for pixels constituting one frame image, wherein the multimedia circuit is configured to:
perform compression on first image data including a most significant bit (MSB) of the image data to generate compressed first image data,
skip compression on second image data including a least significant bit (LSB) of the image data,
generate a header comprising a header index indicating a compression ratio of the compressed first image data,
generate a payload by merging the compressed first image data with the second image data, and
write, in the memory, compressed data including the payload and the header.
16 . The image processing device of claim 15 , wherein the multimedia circuit is configured to:
read the compressed data from the memory;
split the compressed first image data and the second image data from the compressed data;
perform restoration on the compressed first image data based on the header index;
skip decompression for the second image data; and
generate decompressed data by merging the restored first image data with the second image data.