Image processing apparatus and operating method thereof

By compressing the most significant bits of image data in the image processing device and storing the least significant bits to skip compression, combined with entropy decoding, the problem of reduced data processing speed in high-resolution video image processing is solved and achieved Efficient image data compression and decompression.

CN118694958APending Publication Date: 2024-09-24SAMSUNG ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410316612.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-05-11
Filing Date
2024-03-20
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

When processing high-resolution video images in the existing technology, the method of compressing the data size when the multimedia IP module accesses the memory is difficult to increase the data processing speed. Especially in the case of lossless compression, it may lead to the limit of processing capabilities and the reduction of data processing speed.

Method used

By using an encoder in the image processing device to compress the most significant bits of the image data, and storing the least significant bits in the buffer to skip the compression, the compressed data is generated, and combined with entropy decoding to achieve lossless compression and improve data processing efficiency.

Benefits of technology

It achieves efficient image data compression and decompression, avoids the problem of reduced processing speed, and improves the processing capability and data processing speed of image processing equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694958A_ABST
    Figure CN118694958A_ABST
Patent Text Reader

Abstract

An image processing apparatus and an operation method of the image processing apparatus are provided. An image processing apparatus includes: a multimedia intellectual property (IP) module configured to process image data of pixels constituting one frame of image; and an encoder configured to generate compressed data by performing compression on image data, in which the encoder includes a compression module and a first buffer. The compression module is configured to generate first compressed data by performing compression on first image data including most significant bits (MSBs) of the image data, and the first buffer is configured to store second image data including least significant bits (LSBs) of the image data so as to skip compression of the second image data.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is based on and claims the benefit of priority of Korean Patent Application No. 10-2023-0039159 filed on March 24, 2023, and Korean Patent Application No. 10-2023-0061345 filed on May 11, 2023, in the Korean Intellectual Property Office, the disclosures of which are incorporated herein by reference in their entirety. Technical Field

[0003] The present inventive concept relates to an image processing device, and more particularly, to an image processing device for efficiently processing image compression and an operating method thereof. Background Art

[0004] The demand for high-resolution video images and high frame rate images is emerging, and with the increase in the application field of image processing devices, the application field is extended not only to mobile devices, but also to various devices (e.g., automotive display devices). In particular, in recent years, the amount (i.e., bandwidth) of access to memory by several multimedia intellectual property (intellectual property, IP) modules (such as multimedia circuits) of image processing devices has greatly increased. With the increase in bandwidth, the processing power of image processing devices reaches its limit, resulting in the problem of slowing down during video image recording and playback operations, and image processing devices with stronger processing power may be required to improve the processing power limit. Accordingly, consider a method of compressing the data size when the multimedia IP module accesses the memory. For example, data can be compressed before writing the data to the memory, and the compressed data can be decompressed after reading the data from the memory. Lossless compression methods (e.g., entropy coding) can be used to compress high-resolution images without data loss. In the case of lossless compression (e.g., entropy coding), the compression ratio varies from data to data depending on variable length decoding, so parallel data processing may be difficult, which may reduce the data processing speed. Summary of the invention

[0005] One or more embodiments of the present disclosure provide an image processing apparatus and an operating method of the image processing apparatus, which perform optimized image data compression based on a lossless compression method for high-resolution images.

[0006] Features and advantages of the embodiments are not limited to those mentioned above, and other features and advantages not mentioned can be clearly understood by those of ordinary skill in the art from the following description.

[0007] According to one aspect of the present disclosure, there is provided an image processing device, comprising: a multimedia intellectual property (IP) module configured to process image data of pixels constituting a frame of an image; and an encoder configured to generate compressed data by performing compression on the image data, wherein the encoder comprises a compression module and a first buffer, wherein the compression module can be configured to generate first compressed data by performing compression on first image data including the most significant bit (MSB) of the image data, and the first buffer can be configured to store second image data including the least significant bit (LSB) of the image data so as to skip compression of the second image data.

[0008] According to another aspect of the present disclosure, there is provided an operating method of an image processing device for processing image data of pixels constituting a frame of an image, the operating method comprising the following operations: generating first compressed data by performing compression of first image data including the most significant bit (MSB) of the image data, storing second image data including the least significant bit (LSB) of the image data in a buffer to skip compression of the second image data, and generating compressed data by merging the first compressed data with the second image data.

[0009] According to another aspect of the present disclosure, there is provided an image processing device including a memory and a multimedia module, the multimedia module being configured to process image data of pixels constituting a frame of image, wherein the multimedia module can be configured to: perform compression on first image data including the most significant bits (MSBs) of the image data, skip compression on second image data including the least significant bits (LSBs) of the image data, and write compressed data generated by merging the compressed first image data with the second image data into the memory. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] Embodiments of the present disclosure will be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings, in which:

[0011] Figure 1 is a block diagram illustrating an image processing apparatus according to some embodiments;

[0012] Figure 2 is a block diagram illustrating a multimedia intellectual property (IP) module according to some embodiments;

[0013] Figure 3 is a block diagram schematically illustrating an encoder according to some embodiments;

[0014] Figure 4 is a diagram illustrating the operation of an image processing apparatus according to some embodiments;

[0015] Figure 5A and Figure 5Bis a diagram illustrating the operation of an image processing apparatus according to some embodiments;

[0016] Figure 6 is a diagram illustrating the operation of an image processing apparatus according to some embodiments;

[0017] Figure 7 is a diagram showing a layout of image processed data according to some embodiments;

[0018] Figure 8 is a diagram showing a transmission structure of compressed data generated in an image processing device according to some embodiments;

[0019] Fig. 9 is a block diagram schematically illustrating a decoder according to some embodiments;

[0020] Fig.10 is a flow chart illustrating a compression method of an image processing device according to some embodiments;

[0021] Fig.11 is a flowchart illustrating a decompression method of an image processing device according to some embodiments;

[0022] Fig.12 is a diagram illustrating the operation of an image processing apparatus and its effects according to some embodiments;

[0023] Fig.13A shows a table comparing compression ratios of LSBs according to some embodiments, and Fig. 13B shows a table comparing performance according to the configuration of the encoder according to some embodiments; and

[0024] Fig.14 is a block diagram schematically illustrating an electronic system including a multimedia module according to some embodiments. DETAILED DESCRIPTION

[0025] Hereinafter, the embodiments of the present disclosure have been described with reference to the accompanying drawings, but it will be understood by those skilled in the art that the present disclosure can be implemented in other specific forms without changing its technical ideas or basic features. Therefore, it should be understood that the embodiments described below are examples in all aspects and are not restrictive.

[0026] Figure 1 is a block diagram illustrating an image processing apparatus according to some embodiments.

[0027] The image processing apparatus 1000 includes a multimedia module 100 and a memory 200 , and the multimedia module 100 may include a multimedia IP module 110 , an internal memory 120 , and a compressor 130 .

[0028] The multimedia IP module 110 may perform image processing on received input data (e.g., video or still image as image data, raw image data, etc.) to change image quality, format, etc., or perform image processing on received input data to display the input data on a display. The multimedia IP module 110 may receive image data from an external device (e.g., the memory 200 or a camera). Figure 2 As shown, the multimedia IP module 110 includes a plurality of IP modules, and each of the plurality of IP modules may receive image data from an external device or another IP module.

[0029] Figure 2 is a block diagram illustrating a multimedia intellectual property (IP) module according to some embodiments.

[0030] refer to Figure 2 The multimedia IP module 110 includes at least one of an image processing unit (IPU) 111, a video processing unit (VPU) 112, a display processing unit (DPU) 113, a graphics processing unit (GPU) 114, and a neural network processing unit (NPU) 115. The IPU 111, the VPU 112, the DPU 113, the GPU 114, and the NPU 115 may be implemented by hardware (such as a logic circuit, a field-programmable gate array (FPGA), a microprocessor, etc.) or a combination of hardware and software (firmware).

[0031] The image processing unit 111 may change the format of received image data or correct the image quality of the image data.

[0032] For example, the IPU 111 may receive red-green-blue (RGB) image data as input data and convert it into brightness-chrominance (e.g., brightness-blue or brightness-red) (YUV) image data. In this case, RGB type data means a data format for expressing colors based on the three primary colors of light. That is, the RGB type color expression method is a method for expressing images using three types of colors (red, green, and blue). In contrast, the YUV type color expression method refers to a data format for expressing colors divided into a brightness signal (i.e., a brightness signal) and a chrominance signal. That is, Y represents a brightness signal, and U (Cb) and V (Cr) represent color difference signals, i.e., chrominance signals, respectively. U represents the difference between the brightness signal and the blue signal component, and V represents the difference between the brightness signal and the red signal component. Here, the items of Y, U (Cb), and V (Cr) may be defined as planes. Since the human eye is sensitive to brightness signals but not to color signals, YUV type data may be easier to compress than RGB type data.

[0033] For example, the IPU 111 may correct the image quality of the received image data by performing image processing such as adjusting a gamma value of the received image data, adjusting brightness, widening a dynamic range (DR), or removing noise.

[0034] The VPU may correct the quality of received video images, or record and play back images, such as video recording (or recording), playback, etc. of video images.

[0035] The DPU 113 may perform image processing for displaying the received image data on the display. The received image may be displayed on the display. For example, the DPU 113 may change the format of the received image data to a format suitable for display on the display, or correct the image data based on a gamma value corresponding to the display.

[0036] The GPU 114 may calculate and generate two-dimensional or three-dimensional graphics. The GPU 114 may be dedicated to processing graphic data to process the graphic data in parallel.

[0037] The NPU 115 may perform image processing on the received image data based on the trained neural network, derive multiple features from the image data, and recognize objects, backgrounds, etc. included in the image data based on the multiple features. The NPU 115 may be dedicated to the operation of the neural network processing image data in parallel.

[0038] The multimedia IP module 110 may further include IP modules such as an image signal processor (ISP), a glitching correction module (G2D), and a multi-format codec (MFC).

[0039] Then, refer to Figure 1 The internal memory 120 may temporarily store output data (e.g., output image data) output from the multimedia IP module 110 or input data (e.g., input image data) input to the multimedia IP module 110. The internal memory 120 may be implemented as a static dynamic random access memory (SRAM), a cache, a frame buffer, etc.

[0040] The compressor 130 includes an encoder 10 and a decoder 20. The encoder 10 may include a compression module 11 and a first buffer 12, and the decoder 20 may include a decompression module 21 and a second buffer 22. The compressor 130 may compress the output image data output from the multimedia IP module 110, and write (or store) the compressed data to the memory 200, read the compressed data from the memory 200, decompress the read compressed data, and provide the decompressed data as input data to the multimedia IP module 110. The image data may be divided into a plurality of blocks, each block having the same size, and the compressor 130 may perform compression and decompression in units of blocks. In the following, "compression on image data" means compressing the image data in units of blocks. In addition, "compressed data" corresponds to one image data block.

[0041] Although not shown, the compressor 130 may write or read compressed data to or from the memory 200 through a direct memory access (DMA) circuit.

[0042] The encoder 10 may separate the received image data into first image data including the most significant bit (MSB) of the image data and second image data including the least significant bit (LSB) of the image data.

[0043] The encoder 10 may perform compression on first image data including the most significant bit (MSB) of the image data to generate first compressed data through the compression module 11, and store second image data including the LSB of the image data through the first buffer 12. For example, the encoder 10 may perform compression on the first compressed data corresponding to the most significant bit (MSB) of the image data, and store the second image data corresponding to the least significant bit (LSB) of the image data in the first buffer 12 without performing compression, thereby bypassing the second image data in the encoder 10. The most significant bit (MSB) of the image data may be determined as a difference value obtained by subtracting the least significant bit (LSB) of the image data from the total number of bits of the image data. Alternatively, the least significant bit (LSB) of the image data may be determined as a difference value obtained by subtracting the most significant bit (MSB) of the image data from the total number of bits of the image data.

[0044] The encoder 10 can perform lossy compression or lossless compression on the received image data (e.g., the output data of the multimedia IP module 110). Here, lossless compression means compressing data without data loss, and the compression ratio varies according to the data. In contrast, lossy compression means compression of partial data loss, and can have a higher compression ratio than lossless compression, and can have a preset compression ratio (e.g., a fixed compression ratio). Lossy compression can include a quantization step based on a quantization step size (or quantization step value) and at least one other compression process. The larger the quantization step size, the greater the data loss, and a quantization error may occur.

[0045] Meanwhile, the compression module 11 of the encoder 10 according to some embodiments may perform lossless compression on image data based on entropy coding.

[0046] The compression module 11 may select an optimized compression parameter (eg, K parameter) for a block of the first image data, and repeatedly perform a compression process on each block of the first image data based on the selected compression parameter.

[0047] When compression with respect to the first image data is completed, the encoder 10 may store, in the memory 200 , a payload PL generated by merging the first compressed data, which has been compressed with respect to the first image data, with the second image data.

[0048] The encoder 10 may generate a payload PL including first compressed data and second image data, and a header HD including an index indicating a compression ratio of the first compressed data. The encoder 10 may write the compressed data (in other words, the payload PL and the header HD) to the memory (200) by sending the payload PL, the header HD, and an address where the payload PL and the header HD are stored to the memory (200). In the case of lossless compression, the compression ratio of the compressed data may vary.

[0049] When writing compressed data to the memory 200, the encoder 10 may provide the decoder 20 with information that may be used to decompress the compressed data in the future by writing a header HD including an index (eg, a header index) including a compression ratio (or the size of the compressed data) to the memory 200.

[0050] The decoder 20 may read the compressed data stored in the memory 200 and perform decompression on the compressed data. The decoder 20 may read the payload PL and the header HD of the compressed data and determine the compression ratio of the compressed data (or the size of the compressed data) based on the header index included in the header HD. In addition, the decoder 20 may determine the decompression method according to the compression ratio of the compressed data (or the size of the compressed data).

[0051] The decoder 20 may separate the payload of the read compressed data into first compressed data corresponding to the most significant bits (MSBs) of the image data and second compressed data corresponding to (or including) the least significant bits (LSBs) of the image data.

[0052] The decoder 20 may perform decompression on the first compressed data corresponding to the most significant bit (MSB) of the image data to restore the first image data through the decompression module 21, and store the second image data corresponding to (or including) the least significant bit (LSB) of the image data through the second buffer 22. For example, the decoder 20 may perform decompression on the first compressed data corresponding to the most significant bit (MSB) of the image data and store the second image data in the second buffer 22 without decompressing the second image data corresponding to the least significant bit (LSB) of the image data, thereby bypassing the second image data in the decoder 20.

[0053] The decoder 20 may output output data generated by merging the restored first image data with the second image data to the multimedia IP module 110 .

[0054] The memory 200 can store compressed data. The memory 200 can be implemented as a volatile memory (such as a dynamic random access memory (DRAM)) or a resistive memory (such as a ferroelectric RAM (FeRAM), a resistive RAM (ReRAM), a phase change RAM (PRAM) or a magnetic RAM (MRAM). The memory 200 can be implemented as a last level cache. In the following, it will be assumed that the memory 200 is a DRAM to describe it.

[0055] exist Figure 1 , the first buffer 12 is shown as being arranged outside the compression module 11, but this is for ease of explanation and is not limited thereto. The first buffer 12 according to some embodiments may be arranged inside the compression module 11. In addition, the second buffer 22 is shown as being arranged outside the decompression module 21, but this is for ease of explanation and is not limited thereto, and the second buffer 22 according to some embodiments may be arranged inside the decompression module 21.

[0056] Based on the operation of the encoder 10 and the decoder 20 according to some embodiments, compression and / or decompression is performed only on the first image data including the most significant bit (MSB) having a high correlation between the peripheral image data, and the second image data including the least significant bit (LSB) having a low correlation between the peripheral image data is bypassed to generate compressed data and / or decompressed data, so that compression and / or decompression of the image data can be efficiently performed without reducing the speed of image processing with respect to the high-resolution image.

[0057] Figure 3 is a block diagram schematically illustrating an encoder according to some embodiments.

[0058] Specifically, Figure 3 is used to describe the Figure 1 FIG. 1 is a block diagram of a compression module 11 of an encoder 10 and a first buffer 12 for compressing image data.

[0059] exist Figure 3, assuming that the input image data includes N bits, the MSB data in the image data includes 16 bits, and the LSB data of the image data includes (N-16) bits. The most significant bit (MSB) of the image data may be determined as a difference value obtained by subtracting the least significant bit (LSB) of the image data from the total number of bits of the image data. Alternatively, the least significant bit (LSB) of the image data may be determined as a difference value obtained by subtracting the most significant bit (MSB) of the image data from the total number of bits of the image data.

[0060] refer to Figure 3 In order to compress image data, the encoder 10 includes a compression module 11, a first buffer 12, an HD generator 13, and a first merging module 14. Each of the compression module 11, the first buffer 12, the HD generator 13, and the first merging module 14 may be implemented in hardware, or may be implemented in a combination of hardware and software (or firmware).

[0061] The compression module 11 includes a pre-compression module 11 - 1 , a memory 11 - 2 and a post-compression module 11 - 3 .

[0062] The pre-compression module 11-1 may divide the image data in units of blocks, and output a compression parameter (e.g., a K value (hereinafter referred to as KV)) corresponding to each of the plurality of blocks to the post-compression module 11-3. For example, the pre-compression module 11-1 may select (or determine) an optimized compression parameter (e.g., a K value KV) for each of the plurality of blocks using a KV lookup table of Golomb decoding or Golomblais decoding.

[0063] The pre-compression module 11-1 may divide received data such as image data (or data obtained by dividing image data into block units) into prediction data and residual data. For example, when a pixel has 0 to 2 16 -1 value may require 16 bits per pixel to represent a value between 0 and 2 16-1. Accordingly, when adjacent pixels have similar values, even if only the difference between adjacent pixels (i.e., residual) is represented, there is no data loss, and the number of data bits used to express the pixel can be reduced. For example, when three pixels with values ​​of (253, 254, 255) are continuous, if the prediction data is 253, the residual data representation (253 (prediction), 1 (residual), 2 (residual)) can be fully expressed, and the number of bits per pixel represented by the residual data can be very small, as small as 2 bits. In particular, since the pre-compression module 11-1 according to some embodiments divides the most significant bit (MSB) data of the image data into prediction data and residual data, the number of data bits used to express the pixel can be significantly reduced. In the compression of image data, the higher the correlation between the pieces of peripheral data, the higher the compression ratio, thereby achieving efficient compression, and the lower the correlation between the pieces of peripheral data, the lower the compression ratio. Therefore, the pre-compression module 11 - 1 according to some embodiments may select a compression parameter based on MSB data having a high correlation between pieces of peripheral data in the image data.

[0064] The pre-compression module 11-1 may select and output a block-specific compression parameter KV based on prediction data and residual data specific to each block of MSB data of the image data. Figures 4 to 6 To describe its detailed description.

[0065] Accordingly, the compression module 11 according to some embodiments may compress the overall size of the data by dividing the MSB data of the image data into prediction data and residual data. In this case, there may be various methods for determining what value the prediction data is.

[0066] The post-compression module 11-3 may receive the compression parameters of each block of the MSB data of the image data from the pre-compression module 11-1, and receive the 16-bit MSB data in the N-bit input image data output from the memory 11-2 (e.g., SRAM). The post-compression module 11-3 may perform lossless compression on the MSB data of the N-bit input image data based on the compression parameter KV of each block. For example, the post-compression module 11-3 may compress the MSB data of the N-bit input image data by entropy decoding. In this case, the entropy decoding may utilize a method of allocating the number of bits according to the frequency.

[0067] The post-compression module 11-3 may compress the MSB data using Huffman decoding. Alternatively, the post-compression module 11-3 may compress the MSB data of the input image data using Golomb decoding or Golombre decoding. In this case, the post-compression module 11-3 may simply compress the MSB data of the image data using a KV generation table. Figures 4 to 6 To describe its detailed description.

[0068] The post-compression module 11 - 3 may transmit first compressed data “first CD”, which is data in which MSB data of image data is compressed, to the HD generator 13 and the first merging module 14 .

[0069] The HD generator 13 may generate a header HD indicating a compression ratio of the first compressed data "first CD" (or a size of the first compressed data "first CD"). Here, the header HD may include a header index HDI, and the header index HDI may indicate a compression ratio of the compressed data CD (or a size of the compressed data CD).

[0070] The memory 11-2 (eg, SRAM) may store LSB data ((N-16) bits) of the image data in the first buffer 12. The LSB data of the image data may be stored in the first buffer 12 to bypass the encoder 10 without performing compression due to low correlation between pieces of peripheral data.

[0071] The first merging module may generate a payload PL by merging the first compressed data received from the post-compression module 11 - 3 with the (N−16)-bit LSB data received from the first buffer 12 .

[0072] The encoder 10 may generate compressed data including a header HD and a payload PL, and may transmit the compressed data to the memory 200 to be stored therein.

[0073] The compression controller may control the operation of the pre-compression module 11-1, the memory 11-2, and the post-compression module 11-3, and may control the compression process. The compression controller may receive a control signal, and control the operation of the pre-compression module 11-1, the memory 11-2, and the post-compression module 11-3 based on the control signal. In this case, the control signal may be provided from the multimedia IP module 110 according to the setting of the application executing the multimedia IP module 110 (e.g., whether the application requires high image quality, high compression ratio, etc.). For example, the compression controller may receive a value set in a firmware register of the multimedia IP module 110 as a control signal.

[0074] The compression controller may also determine the footprint of the area in the memory 200 where the compressed data CD is to be stored, and determine the address (e.g., logical address) of the memory 200 where the compressed data CD is to be stored. The compression controller may determine the footprint as an integer multiple of the access unit of the memory 200.

[0075] Figure 4 is a diagram illustrating the operation of an image processing apparatus according to some embodiments.

[0076] In detail, Figure 4 It shows the input to Figure 3 FIG. 1 is a diagram of image data of encoder 10.

[0077] refer to Figure 4 , the image data includes data of one frame image F. The image data includes a plurality of pieces of block image data 11B, and the plurality of pieces of block image data 11B may mean image data of each block B constituting the frame image F.

[0078] For example, in various embodiments, the size of each block B may have 64×4, 16×4, or 4×4 pixels. The block image data 11B according to some embodiments may include image data of 64×4 pixels. Each block image data 11B may include image data of reference pixels Base and Base' and image data of adjacent pixels P1, P2, P1', and P2'. Each pixel may constitute a frame image. The data bits per pixel may vary according to some embodiments.

[0079] The encoder 10 may perform a compression operation by encoding in units of blocks B, and the decoder 20 may also perform a decompression operation by decoding in units of a plurality of pieces of block image data 11B. For example, a frame of image F may be divided into a first block BLK0 to a sixteenth block BLK15 (not shown). For example, the encoder 10 may perform compression sequentially from the first block BLK0 to the sixteenth block BLK15 or in parallel with respect to several blocks, and the decoder 20 may perform decompression sequentially from the first block BLK0 to the sixteenth block BLK15 or in parallel with respect to several blocks.

[0080] Figure 5A and Figure 5B is a diagram illustrating the operation of an image processing apparatus according to some embodiments.

[0081] In detail, Figure 5A and Figure 5B It is shown by Figure 3 FIG. 1 is a diagram of a KV table used by the pre-compression module 11 - 1 of the encoder 10 .

[0082] Figure 3 The post-compression module 11-3 of the encoder 10 can perform efficient compression by a lossless compression method (e.g., entropy coding) that allocates the number of bits according to the frequency of occurrence of the residual data. In this case, the pre-compression module 11-1 can select (or determine) the KV to be used for entropy coding based on the prediction data and residual data of the MSB data of each block of the image data.

[0083] Figure 5A and Figure 5BThe vertical columns of the shown table represent KVs, and the horizontal rows represent residual data (eg, symbols) generated in advance for the MSB data of each block according to each KV.

[0084] refer to Figure 5A Based on the Golomb decoding algorithm which is one of the algorithms for lossless compression, the pre-compression module 11-1 may generate a pre-generated table (eg, Figure 5A ) selects (or determines) an optimized KV for the MSB data of each block. For example, assume that "7" exists in the residual data of the first block of image data with the highest frequency. When KV is "0", the data corresponding to the residual data "7" is "0001000" (7 bits). When KV is "1", the data corresponding to the residual data "7" is "001001" (6 bits). When KV is "2", the data corresponding to the residual data "7" is "01011" (5 bits). When KV is "3", the data corresponding to the residual data "7" is "1111" (4 bits). When KV is "4", the data corresponding to the residual data "7" is "10111" (5 bits). Therefore, the pre-compression module 11-1 can select a KV with a minimum data size corresponding to the residual data "7", that is, a KV optimized for the first block when KV is "3".

[0085] refer to Figure 5B Based on the Golombras decoding algorithm which is one of the algorithms for lossless compression, the pre-compression module 11-1 may generate a lossless compression signal based on a pre-generated table (eg, Figure 5B ) selects (or determines) an optimized KV for the MSB data of each block. For example, assume that "0" exists in the residual data of the second block of image data with the highest frequency. When KV is "0", the data corresponding to the residual data "0" is "0" (1 bit). When KV is "1", the data corresponding to the residual data "0" is "00" (2 bits). When KV is "2", the data corresponding to the residual data "0" is "000" (3 bits). When KV is "3", the data corresponding to the residual data "0" is "0000" (4 bits). When KV is "4", the data corresponding to the residual data "0" is "00000" (5 bits). Therefore, the pre-compression module 11-1 can select a KV with a minimum data size corresponding to the residual data "0", that is, a KV optimized for the second block when KV is "0".

[0086] Figure 6 is a diagram illustrating the operation of an image processing apparatus according to some embodiments.

[0087] In detail, Figure 6 It is shown Figure 1 FIG. 1 is a diagram of the operation of the compression module 11 of the encoder 10.

[0088] refer to Figure 6 The block image data 11B includes reference block image data 11B0 of the reference pixel Base and first block image data 11B1 to fourth block image data 11B4 of the first pixel P1 to the fourth pixel P4. Figure 6 , block image data may mean MSB data of image data of a corresponding block.

[0089] The reference pixel Base, the first pixel P1, and the second pixel P2 may extend in the first direction X, the reference pixel Base and the third pixel P3 may extend in the second direction Y, and the first pixel P1 and the fourth pixel P4 may extend in the second direction Y.

[0090] The compression module 11 may perform a prediction operation on the block image data 11B to form the prediction data 11P, and may form the residual data 11R based on the block image data 11B and the prediction data 11P. For example, the first prediction data 11P1 of the first pixel P1 may be generated based on the reference pixel Base, and the first prediction data 11P1 may be the same as the reference block image data 11B0. The second prediction data 11P2 of the second pixel P2 may be generated based on the first pixel P1, and the second prediction data 11P2 may be the same as the first block image data 11B1. The third prediction data 11P3 of the third pixel P3 may be generated based on the reference pixel Base, and the third prediction data 11P3 may be the same as the reference block image data 11B0. The fourth prediction data 11P4 of the fourth pixel P4 may be generated based on the third pixel P3, and the fourth prediction data 11P4 may be the same as the third block image data 11B3 of the third pixel P3. For example, the compression module 11 may perform a prediction operation on the MSB of the block image data 11B to form prediction data 11P, and may form residual data 11R of the MSB of the block image data 11B based on the MSB of the block image data 11B and the prediction data 11P of the MSB.

[0091] For pixels other than the reference pixel Base, the compression module 11 may form residual data 11R by subtracting the block image data 11B from the prediction data 11P generated by the prediction operation. For example, the first residual data 11R1 of the first pixel P1 may include 1 (residual), the second residual data 11R2 of the second pixel P2 may include 1 (residual), the third residual data 11R3 of the third pixel P3 may include 1 (residual), the fourth residual data 11R4 of the fourth pixel P4 may include 1 (residual), and the residual data 11R of another pixel in the same block may include 3 (residual).

[0092] According to some embodiments, the prediction operation of the residual data 11R formed by the compression module 11 can be implemented in various ways by changing the number and arrangement of the reference pixels Base, and the reference pixels Base can be used to generate the residual data 11R. Figure 6 The prediction operations described are only examples. Some embodiments are not limited to reference Figure 6 Describes the prediction operation.

[0093] The compression module 11 can generate compressed data 27 by performing a compression operation, the compression operation being used to generate compressed data 27 based on Figure 5A and Figure 5B The KV selected for each block in encodes the residual data 11R of the pixels in the block except the reference pixel Base through entropy decoding.

[0094] Figure 7 is a diagram illustrating a layout of image processed data according to some embodiments.

[0095] In detail, Figure 7 Is to show about Figure 6 FIG. 1 is a diagram showing a layout of the first residual data 11R1 of the first pixel P1 in the block.

[0096] refer to Figure 7 , the first residual data 11R1 includes the (1_1)th residual data 11R1_1 and the (1_2)th residual data 11R1_2.

[0097] The (1_1)th residual data 11R1_1 includes the MSB of the first residual data 11R1. The (1_1)th residual data 11R1_1 may correspond to the (1_1)th image data including the MSBs consecutive to the first block image data 11B1.

[0098] The (1_2)th residual data 11R1_2 includes the LSB of the first residual data 11R1. The (1_2)th residual data 11R1_2 may correspond to the (1_1)th image data including the LSBs consecutive to the first block image data 11B1.

[0099] The compression module 11 may perform a compression operation by performing entropy decoding (eg, Golomb decoding, Golombrite decoding, or Huffman decoding) on ​​the MSB data of the (1_1)th residual data 11R1_1, where entropy decoding is a variable bit rate encoding method.

[0100] The compression module 11 may store the least significant bit LSB data of the (1_2)th residual data 11R1_2 in the first buffer 12 without performing a compression operation. That is, the compression module 11 may bypass the (1_2)th residual data 11R1_2. The compression module 11 may generate compressed data (e.g., a payload PL of compressed data) by merging the compressed data of the (1_1)th residual data 11R1_1 with the (1_2)th residual data 11R1_2.

[0101] The encoding of the first residual data 11R1 may also correspond to Figure 6 The above-described operation of encoding the first residual data 11R1 of the first pixel P1 can also be applied to encoding the residual data 11R of the remaining pixels.

[0102] Figure 8 is a diagram illustrating a transmission structure of compressed data generated in an image processing apparatus according to some embodiments.

[0103] Figure 1 The compressor 130 may generate transmission data TD including a payload PL and a header HD, and transmit the transmission data TD to the memory 200. The payload PL includes compressed data CD. In addition to the compressed data CD, the payload PL may also include parameters related to at least one other compression process, for example, KV used when encoding in the encoder 10 of the compressor 130.

[0104] The header HD includes a header index HDI, and the header index HDI may indicate a compression ratio of the compressed data CD (or the size of the compressed data CD). In this case, the header index HDI may be a positive integer, and the header index HDI may be a value representing the data amount of the compressed data CD as a multiple of the access unit of the memory 200.

[0105] Fig. 9 is a block diagram schematically illustrating a decoder according to some embodiments.

[0106] Specifically, Fig. 9 is used to describe the Figure 1 20 and the second buffer 22 of the decoder 20 for decompressing image data.

[0107] exist Fig. 9, assuming that the output image data includes N bits, the MSB data in the image data includes 16 bits, and the LSB data of the image data includes (N-16) bits. The most significant bit (MSB) of the image data may be determined as a difference value obtained by subtracting the least significant bit (LSB) of the image data from the total number of bits of the image data. Alternatively, the least significant bit (LSB) of the image data may be determined as a difference value obtained by subtracting the most significant bit (MSB) of the image data from the total number of bits of the image data.

[0108] refer to Fig. 9 For decompression of image data, the decoder 20 includes a decompression module 21, a second buffer 22, a separation module 23, and a second merging module 24. Each of the decompression module 21, the second buffer 22, the separation module 23, and the second merging module 24 may be implemented in hardware, or in a combination of hardware and software (or firmware).

[0109] The decoder 20 may read the compressed data including the header HD and the payload PL from the memory 200 .

[0110] The separation module 23 may separate first compressed data and second compressed data from the payload PL of the compressed data, the first compressed data being compressed data of the MSB data of the image data, and the second compressed data being decompressed data of the LSB data of the image data. The separation module 23 may send the first compressed data to the decompression module 21. In addition, the separation module 23 may send the second image data to the second buffer 22 to bypass the second image data in the decoder 20.

[0111] The decompression module 21 may perform a decompression operation on the MSB data of the image data based on the header HD of the compressed data and the first compressed data. Figure 3 The post-compression module 11-3 decompresses the compressed data. The decompression module 21 may perform decompression by Huffman decoding, exponential Golomb decoding, or Golombras decoding. Since the payload PL of the compressed data includes KV, the decompression module 21 may perform decoding using KV.

[0112] The decompression module 21 can recover Figure 3 The pre-compression module 11-1 outputs the first restored data by expressing the data of the prediction data and the residual data. The decompression module 21 can convert, for example, the residual data expression (253 (prediction), 1 (residual), 2 (residual)) into the residual data expression (253, 254, 255). The decompression module 21 can restore the prediction performed by the pre-compression module 11-1 in units of pixels or regions (blocks).

[0113] The second merging module 24 may combine the first restored data received from the decompression module 21 with the second image data received from the second buffer 22 to generate output image data, and send the output image data to the Figure 1 The multimedia IP module 110. Here, the first restored data may include MSB data of the image data, and the second restored data may include LSB data of the image data.

[0114] The decompression controller of the decoder 20 may receive the header HD received together with the payload PL, and determine a compression ratio (or the size of compressed data) based on a header index of the header HD.

[0115] The decompression controller may further include an entropy table containing the KV determined by the compression controller to perform the Figure 3 related compression, and can perform operations that can be correctly reflected when the table's values ​​are decompressed.

[0116] According to some embodiments, the decoder 20 can decompress compressed data corresponding to the MSB data of the image data (e.g., first compressed data) and bypass data corresponding to the LSB data of the image data (e.g., second image data), thereby reducing the data throughput and power consumption generated when performing the decompression operation, thereby preventing the performance of the entire image processing device from degrading.

[0117] Fig.10 is a flowchart illustrating a compression method of an image processing apparatus according to some embodiments.

[0118] Specifically, Fig.10 is used to show that Figure 3 Flow chart of the encoder 10 for compressing image data. Figure 3 The compression module 11, the first buffer 12, the HD generator 13 and the first merging module 14 and their operations are described Fig.10 , and therefore their redundant description will be omitted.

[0119] refer to Fig.10 and Figure 3 , a block BLK of image data may be received in the encoder 10. The encoder 10 may separate the block image data into first image data including MSB data and second image data including LSB data (S120). The most significant bit (MSB) of the image data may be determined as a difference value obtained by subtracting the least significant bit (LSB) of the image data from the total number of bits of the image data. Alternatively, the least significant bit (LSB) of the image data may be determined as a difference value obtained by subtracting the most significant bit (MSB) of the image data from the total number of bits of the image data.

[0120] The pre-compression module 11-1 of the compression module 11 may perform a prediction process on the first image data including the MSB data (S130). As described above, the pre-compression module 11-1 may express the pixel by dividing the pixel into prediction data and residual data in units of pixels or regions (blocks). For example, the pre-compression module 11-1 may express the first image data by dividing the first image data in units of pixels or regions (blocks) into prediction data and residual data.

[0121] The post-compression module 11 - 3 of the compression module 11 may generate first compressed data by performing entropy encoding on the output of the pre-compression module 11 - 1 (eg, the first image data (or residual data of the first image data)) ( S140 ).

[0122] The encoder 10 may store the second image data in the first buffer 12 to bypass the second image data in the encoder 10 (S150).

[0123] The first merging module 14 of the encoder 10 may generate a payload by merging the first compressed data received from the compression module 11 with the second image data received from the first buffer 12 ( S160 ).

[0124] The encoder 10 may write a payload including the first compressed data and the second image data and a header including a header index of the first compressed data into the Figure 1 The memory 200. The header index may indicate a compression ratio of the first compressed data (or a size of the first compressed data).

[0125] Fig.11 is a flowchart illustrating a decompression method of an image processing apparatus according to some embodiments.

[0126] In detail, Fig.11 is used to explain Figure 3 FIG. 2 is a diagram of a decompression method in which the decoder 20 decompresses compressed data. Fig.11 The flowchart can be referred to Fig. 9 The decompression module 21, the second buffer 22, the separation module 23, and the second merging module 24 described in the foregoing description and their operations are described, and therefore their redundant description will be omitted. The most significant bit (MSB) of the image data may be determined as a difference value obtained by subtracting the least significant bit (LSB) of the image data from the total number of bits of the image data. Alternatively, the least significant bit (LSB) of the image data may be determined as a difference value obtained by subtracting the most significant bit (MSB) of the image data from the total number of bits of the image data.

[0127] refer to Fig.11 and Fig. 9 , decoder 20 (or Figure 1 The compressor 130) can be Figure 1 The memory 200 (S210) reads the payload and header including the compressed data.

[0128] The decoder 20 may separate the first compressed data and the second image data from the payload of the compressed data (S220). Here, the first compressed data may refer to data in which entropy encoding is performed on the first image data including the MSB data of the block BLK, and the second image data may refer to data without entropy encoding in the LSB of the block BLK.

[0129] The decompression module 21 of the decoder 20 may perform entropy decoding on the first compressed data of the payload (S230). The decompression module 21 may perform prediction compensation on the entropy decoded data (S240). For example, the decompression module 21 may output the first compressed data on which entropy decoding has been performed, for example, the MSB data of the reconstructed block BLK (for example, the reconstructed first image data).

[0130] The decoder 20 may store the second image data in the second buffer 22 to bypass the second image data in the decoder 20 (S250).

[0131] The second merging module 24 of the decoder 20 may generate a reconstructed block BLK (or image data of the reconstructed block BLK) by merging the reconstructed first image data received from the decompression module 21 with the second image data received from the second buffer 22 (S260).

[0132] The decoder 20 may output the reconstructed block BLK (or the image data of the reconstructed block BLK) to Figure 1 The multimedia IP module 110 (S270).

[0133] Fig.12 is a diagram illustrating the operation of an image processing apparatus according to some embodiments and its effects.

[0134] In detail, Fig.12 is a diagram illustrating a data compression operation through entropy coding and its compression effect according to some embodiments.

[0135] refer to Fig.12 , assuming that the occurrence frequency (i.e., probability of occurrence) of "A" is 1 / 3, the occurrence frequency of "B" is 1 / 2, the occurrence frequency of "C" is 1 / 12, and the occurrence frequency of "D" is 1 / 12. In addition, Fig.12 Assume that the encoder 10 according to some embodiments performs entropy encoding on the symbol "010011011101".

[0136] First, the encoder 10 according to some embodiments can encode data with a higher frequency of occurrence into fewer bits by entropy coding. For example, the entropy coding value of "A" can be "11" (2 bits), the entropy coding value of "B" can be "0" (1 bit), the entropy coding value of "C" can be "100" (3 bits), and the entropy coding value of "D" can be "101" (3 bits). For example, when the encoder 10 performs entropy coding on a symbol, the expected data length can be (2)*(1 / 3)+(1)*(1 / 2)+(3)*(1 / 12)*(2)=1.667 bits.

[0137] At the same time, the encoder according to the comparative example can encode the symbol "010011011101" with the same size of bits for each data through fixed bit rate encoding (or fixed length encoding). For example, the fixed bit rate encoding value of "A" can be "00" (2 bits), the fixed bit rate encoding value of "B" can be "01" (2 bits), the fixed bit rate encoding value of "C" can be "10" (2 bits), and the fixed bit rate encoding value of "D" can be "11" (2 bits). For example, when the encoder 10 performs entropy encoding on the symbol according to the comparative example, the expected data length can be (2)*(1 / 3)+(2)*(1 / 2)+(2)*(1 / 12)*(2)=2 bits.

[0138] Assuming that the entire image data includes 1000 symbols, the expected data length in the comparative example is 2000 bits. In comparison, in some embodiments, the expected data length is 1667 bits, wherein the data length is significantly reduced compared to the comparative example, thereby resulting in efficient data compression by reducing power consumption and data throughput compared to the comparative example.

[0139] Fig.13A shows a table comparing compression ratios of LSBs according to some embodiments, and Fig. 13B A table comparing performance according to the configuration of the encoder according to some embodiments is shown.

[0140] refer to Fig.13A , a table for comparing the compression ratio for each size with respect to the LSB of the image data is shown. Fig.13A In the example, it is assumed that the image data size is 24 bits.

[0141] In some implementations, the compression ratio of the image data may be calculated based on Equation 1 below.

[0142] [Equation 1]

[0143] Compression ratio (%) = (1-(compressed size / decompressed size))*100

[0144] For example, when the size of the LSB is 10 bits, the compression ratio is calculated to be 0.71. When the size of the LSB is 12 bits, the compression ratio is calculated to be 2.19. When the size of the LSB is 14 bits, the compression ratio can be calculated to be 6.12. Therefore, the LSB of the image data has a low correlation between adjacent pixels, so the compression ratio is very low in the compression result, that is, it can be confirmed that almost no compression is performed on the LSB.

[0145] Therefore, according to some embodiments Figure 3 Encoder 10 (or Figure 3 The compression module 11) can perform efficient compression by performing compression around the MSB of the image data having high correlation between peripheral pixels. Figure 3 Encoder 10 (or Figure 3 The compression module 11) can reduce the hardware installation area and reduce the power consumption and data throughput caused thereby by skipping the compression of the MSB of the image data having a low correlation between peripheral pixels.

[0146] refer to Fig. 13B , shows a table comparing compression ratios according to changes in the hardware configuration of the encoder or the configuration of the LSB compared to the MSB according to some embodiments. Fig. 13B , the size of the image data is assumed to be 24 bits, and for convenience of description, the most significant bit of the image data may be referred to as "MSB", and the least significant bit of the image data may be referred to as "LSB". Here, the MSB may be determined as a difference value obtained by subtracting the LSB of the image data from the total number of bits of the image data. Alternatively, the LSB of the image data may be determined as a difference value obtained by subtracting the MSB of the image data from the total number of bits of the image data.

[0147] In some embodiments, based on the above Fig.13A Equation 1 is used to calculate the compression ratio of image data.

[0148] In some embodiments, in the first case, compression may be performed using an encoder consisting of a core and an 8-bit bypass buffer. In the first case, 16-bit MSBs may be compressed by the core, and 8-bit LSBs may be stored while skipping compression of the bypass buffer (8 bits). In this case, the compression ratio in the first case may be calculated as 25.19 based on Equation 1. In the first case, there is almost no difference in compression ratio compared to the second and third cases, and the size of the hardware configuration is minimal, so the compression efficiency may be relatively high.

[0149] In some embodiments, in the second case, compression may be performed using an encoder consisting of a core and a 12-bit bypass buffer. In the second case, the 12-bit MSBs may be compressed by the core and the 12-bit LSBs may be stored while skipping compression of the bypass buffer (12 bits). In this case, the compression ratio in the second case may be calculated as 25.21 based on Equation 1. The second case may have a lower compression efficiency than the first case because there is no noticeable difference in the compression ratio of the second case compared to the first case.

[0150] In some embodiments, in the third case, compression may be performed using an encoder including a first kernel and a second kernel (two kernels in total). In the third case, the 12-bit MSB may be compressed by the first kernel, and the 12-bit LSB may be stored while skipping compression of the second kernel. In this case, the compression ratio in the third case may be calculated as 26.31 based on Equation 1. The third case has the highest compression ratio, but there is no significant difference compared to the first case and the second case, and the compression efficiency of the third case may be lower than that of the first case and the second case because two kernels should be used.

[0151] Therefore, considering the size of the hardware configuration and the compression efficiency, the encoder according to some embodiments may include the hardware configuration in the first case (including one core and one bypass buffer (8 bits)). However, some embodiments are not limited thereto, and the encoder according to some embodiments may be implemented with various hardware configurations.

[0152] Fig.14 is a block diagram schematically illustrating an electronic system including a multimedia module according to some embodiments.

[0153] The electronic system 2000 can be applied to cameras, smart phones, smart TVs, wearable devices, the Internet of Things (IoT), tablet personal computers (PCs), personal digital assistants (PDAs), portable multimedia players (PMPs), navigation devices, and measuring devices, and can be applied to robot devices such as drones and advanced drivers assistance systems (ADAS). In addition, the electronic system 2000 can be applied to devices that perform image processing.

[0154] refer to Fig.14, the electronic system 2000 may include a processor 2100, a RAM 2200, a multimedia module 2300, a memory 2400, a sensor module 2500, a display 2600, and a bus 2700. In addition, the electronic system 2000 may also include other general components such as a communication module and a read only memory (ROM). The processor 2100, the RAM 2200, the multimedia module 2300, the memory 2400, the sensor module 2500, and the display 2600 may send and receive data to each other through the bus 2700. In some embodiments, some components such as the processor 2100, the RAM 2200, and the multimedia module 2300 may be implemented as a system-on-chip (SoC), for example, the system-on-chip (SoC) may be an application processor.

[0155] The processor 2100 may control the overall operation of the electronic system 2000. The processor 2100 may include a single core or multiple cores. The processor 2100 may process or execute programs and / or data stored in the memory 2400.

[0156] The RAM 2200 may temporarily store programs, data, and / or instructions. According to some embodiments, the RAM 2200 may be implemented as a DRAM or an SRAM. The RAM 2200 may temporarily store data generated by the processor 2100 or the multimedia module 2300 or data to be transmitted to the processor 2100 or the multimedia module 2300. In some embodiments, the RAM 2200 may be used as a memory of the multimedia module 2300, for example Figure 1 The internal memory 120.

[0157] The multimedia module 2300 may perform image processing on the received image data, compress the image-processed image data and store the compressed image data in the memory 2400 , or transmit the image-processed image data to the display 2600 .

[0158] Figure 1 The multimedia module 100 of the embodiment may be applied as the multimedia module 2300. The description of the above-mentioned multimedia module 100 and components provided in the multimedia module 100 may be applied to the present embodiment.

[0159] The multimedia module 2300 may include at least one multimedia IP module that performs image processing and a compressor that compresses or decompresses image data. According to some of the above embodiments, the compressor performs compression and / or decompression operations on the MSB of the image data, and may skip and bypass compression and / or decompression operations on the LSB of the image data. The compressor may send a payload including compressed data and a header including a header index indicating a compression ratio of the compressed data (or a size of the compressed data) to the memory 2400.

[0160] The memory 2400 may be implemented as a volatile memory (such as DRAM or SRAM) or a non-volatile memory (such as ReRAM, PRAM or NAND flash memory). The memory 2400 may be implemented as a memory card such as a multimedia card (MMC), an embedded MMC (eMMC), a secure digital (SD) card, a micro SD, etc.

[0161] The memory 2400 may store programs and / or data. In some embodiments, the memory 2400 may store image data and / or compressed image data. The memory 2400 may store compressed data and headers received from the multimedia module 2300 according to a write request from the multimedia module 2300, and may send the compressed data and headers to the multimedia module 2300 according to a read request from the multimedia module 2300. In some embodiments, the compressed data and headers may be transferred between the memory 2400 and the multimedia module 2300 through a DMA circuit.

[0162] The sensor module 2500 may include at least one sensor, such as an image sensor, a voice sensor, an acceleration / gyroscope sensor, an infrared sensor, a touch sensor, a fingerprint sensor, a proximity sensor, etc. In some embodiments, the sensor module 2500 may include an image sensor, and image data generated from the image sensor may be stored in the memory 2400 or transmitted to the multimedia module 2300.

[0163] The display 2600 may include a display such as a liquid crystal display (LCD) and an active matrix organic light emitting diode (AMOLED) display, and may output an image corresponding to the image data via the display by driving the display based on image data received from the sensor module 2500 or the multimedia module 2300.

[0164] Although this disclosure contains many specific implementation details, these should not be construed as limitations on the scope of what is claimed. Certain features described in this disclosure in the context of separate embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented separately in multiple embodiments or in any suitable subcombination. In addition, although features may be described above as working in certain combinations, and even initially claimed as such, one or more features from a combination may in some cases be deleted from that combination, and the combination may be directed to subcombinations or variations of subcombinations.

[0165] While the inventive concept has been particularly shown and described with reference to certain embodiments thereof, it will be understood that various changes in form and details may be made therein without departing from the spirit and scope of the appended claims.

Claims

1. An image processing device, include: a multimedia circuit configured to process image data of pixels constituting a frame of an image; as well as an encoder configured to generate compressed data by performing compression on the image data, wherein the encoder includes a compression circuit 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 the most significant bit MSB of the image data, and The first buffer is configured to store the second image data without compression operation, and the second image data includes the least significant bit LSB of the image data.

2. The image processing device according to claim 1, in, The compression circuit is further configured to: performing a prediction operation on the first image data to form residual data; and First compressed data is generated by performing compression on residual data corresponding to the first image data.

3. The image processing device according to claim 1, in, The compression circuit includes 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 The post-compression circuit is configured to generate 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 according to claim 1, in, The encoder further includes a first merging circuit, wherein the first merging circuit is configured to: receiving first compressed data from the compression circuit; receiving second image data from the first buffer; and A payload is generated by combining the first compressed data with the second image data.

5. The image processing device according to claim 1, further comprising a memory, in, The encoder is configured to transmit a payload including first compressed data and second image data, and a header including a header index indicating a compression ratio of the first compressed data included in the payload to the memory, and Wherein, the payload and the header are stored in the memory.

6. The image processing apparatus according to claim 5, wherein the header index has a positive integer value indicating the data amount 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 the difference between the LSB of the image data and the total number of bits of the image data, or The LSB of the image data is determined by the difference between the MSB of the image data and the total number of bits of the image data.

7. The image processing device according to claim 5, further comprising a decoder, the decoder comprising a decompression circuit and a second buffer, in, The decompression circuit is configured to read the payload and the header from the memory and decompress the payload.

8. The image processing device according to claim 7, in, The decompression circuit is further configured to: separating first compressed data and second image data from the payload, and performing decompression of the first compressed data based on the header index to restore the first image data, and The second buffer is configured to store the second image data without decompression operation.

9. The image processing device according to claim 8, in, The decoder further includes a second merging circuit, which is configured to: receiving first image data from the decompression circuit; receiving second image data from the second buffer; and Decompressed data generated by combining the first image data with the second image data is transmitted to the multimedia circuit.

10. A method for processing image data of pixels constituting a frame of an image, the method include: generating first compressed data by performing compression on first image data including the most significant bit MSB of the image data; storing in a buffer second image data including the least significant bit (LSB) of the image data without compression operation; as well as Compressed data is generated by combining the first compressed data with the second image data.

11. The method according to claim 10, in, Generating the first compressed data includes: performing a prediction operation on the first image data to form residual data; and First compressed data is generated by performing compression on residual data corresponding to the first image data.

12. The method according to claim 10, in, Generating the first compressed data includes: determining a compression parameter corresponding to each of a plurality of blocks included in the first image data; and First compressed data is generated by performing compression on each of the plurality of blocks included in the first image data based on the compression parameter.

13. The method according to claim 10, in, The compressed data includes: A payload including first compressed data and second image data; and a header including a header index indicating a compression ratio of first compressed data included in the payload, Wherein, the payload and the header are stored in a memory of the image processing device.

14. The method according to claim 13, wherein the header index has a positive integer value indicating the data amount 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 the difference between the LSB of the image data and the total number of bits of the image data, or The LSB of the image data is determined by the difference between the MSB of the image data and the total number of bits of the image data.

15. The method of claim 13, further comprising decompressing the payload by reading the payload and the header from the memory.

16. The method according to claim 15, in, Decompressing the payload includes: separating first compressed data and second image data from the payload; performing decompression of the first compressed data based on the header index to restore the first compressed data into first image data; and The second image data without compression operation is stored in another buffer.

17. The method of claim 16, further comprising generating decompressed data by merging the restored first image data with the stored second image data.

18. An image processing device, include: Memory; as well as A multimedia circuit configured to process image data of pixels constituting a frame of an image, wherein the multimedia circuit is configured to: performing compression on first image data including the most significant bits (MSB) of the image data, skipping compression on second image data including the least significant bits (LSB) of the image data, and Compressed data generated by combining the compressed first image data with the second image data is written in the memory.

19. The image processing device according to claim 18, in, The compressed data includes: a payload comprising the compressed first image data and second image data; and A header includes a header index indicating a compression ratio of first image data included in the payload.

20. The image processing device according to claim 19, in, The multimedia circuit is configured to: Reading the compressed data from the memory; separating the compressed first image data and second image data from the compressed data; performing recovery on the compressed first image data based on the header index; skipping decompression of the second image data; as well as Decompressed data is generated by merging the restored first image data with the second image data.