Progressive JPEG image decoding method
An image decoding and progressive technology, applied in the field of image decoding, which can solve problems such as inability to render images, decoding errors, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0038] figure 2 It is a flowchart of a progressive JPEG image decoding method according to the first embodiment of the present invention. Please refer to figure 2 , this embodiment is suitable for decoding a piece of bit stream data into image data, wherein the bit stream data includes data of multiple scanning layers, the detailed steps of the decoding method of this embodiment are introduced as follows:
[0039] First, sequentially receive the data of one scan layer of the bit stream data (step S201). There is a certain order among the scanning layers, and in this embodiment, the scanning layer data received at the beginning is the scanning layer data sorted first in the bit stream data.
[0040] Next, in step S202, this embodiment decodes the received scan layer data according to a non-zero history table to obtain the decoding coefficients of each pixel in the scan layer. Wherein, in this step, the coefficient value of each decoded coefficient may be obtained by perfor...
no. 2 example
[0052] This embodiment takes the decoding of actual decoding coefficients as an example to describe the encoding and decoding process of the decoding coefficients in detail. Taking the decoding coefficient -9 as an example, the binary representation of -9 is 11110111, and as the introduction of the previous technology, when the coefficient is Huffman encoded, its absolute value is used for encoding, and the absolute value of -9 can be expressed as |-9|=00001001, where, assuming that this implementation is divided into 4 scanning layers for encoding, and the first encoding is the first 5 bits (00001), which is -1, and the encoding method is run-length encoding .
[0053] The format of the run length encoding is Table(RRRRSSSS)AA(K), where K is the first non-zero value after several zero values, RRRR refers to the number of zero values before the K value, and SSSS refers to the number of K values. The ones digit, and AA(K) is the appropriate digit capable of representing K. ...
no. 3 example
[0060] Figure 4 It is a flowchart of a progressive JPEG image decoding method according to the third embodiment of the present invention. Please refer to Figure 4 , this embodiment is suitable for decoding a piece of bit stream data into image data, wherein the bit stream data includes data of multiple scanning layers, the detailed steps of the decoding method of this embodiment are introduced as follows:
[0061] First, divide the scan layer into multiple decoding areas (step S401). Among them, the size of the divided decoding area is determined according to the capacity of the memory, that is, the number of image blocks that can be processed in the decoding process is determined according to the memory size, and then the scanning layer is divided into multiple decoding areas according to this number.
[0062]Next, one of the divided decoding areas is sequentially selected as a local decoding area (step S402). Wherein, since each scanning layer has a certain order, in th...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 