Method and apparatus for encoding / decoding image

By encoding the position of a reference coefficient and skipping specific areas within transform blocks, the method addresses inefficiencies in entropy encoding and decoding, reducing data volume and improving encoding efficiency and performance.

JP2024125421AActive Publication Date: 2024-09-18IND ACAD CO OPERATION FOUNDATION OF SEJONG UNIV
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2024107527
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2018-01-19
Filing Date
2024-07-03
Publication Date
2024-09-18
Estimated Expiration
2038-01-31

AI Technical Summary

Technical Problem

The increasing demand for multimedia data, particularly moving images, has outpaced the development of channel bandwidth, leading to inefficiencies in entropy encoding and decoding processes, especially with larger input image or block sizes, which result in excessive data to be encoded.

Method used

The method involves encoding the position of a reference coefficient in a current transform block and skipping specific skip areas based on this position, utilizing probability information tailored to regions within the transform block to reduce data volume during entropy encoding and decoding.

Benefits of technology

This approach reduces the amount of encoded data and enhances the performance of arithmetic encoding and decoding by effectively selecting probability information during context-adaptive arithmetic encoding and decoding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024125421000001
    Figure 2024125421000001
Patent Text Reader

Abstract

To provide a method and an apparatus for encoding / decoding an image that improve the coding efficiency.SOLUTION: A method of encoding an image comprises: a step S601 of encoding a position of a reference coefficient within a current transform block to be encoded; and a step S602 of encoding skip region information of a skip region selected on the basis of the position of the reference coefficient, where the skip region information represents whether coefficients within the skip region have an identical coefficient value. The amount of data encoded is reduced by entropy encoding or decoding using a skip region, and arithmetic encoding and arithmetic decoding performance is improved by effectively selecting probability information to be applied to encoding or decoding of each symbol in performing context-adaptive arithmetic encoding and decoding.SELECTED DRAWING: Figure 6
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a method and apparatus for encoding / decoding an image signal, and more particularly to entropy encoding / decoding. [Background technology]

[0002] Recently, the demand for multimedia data such as video on the Internet has been increasing rapidly. However, the speed at which channel bandwidth is developing cannot keep up with the rapidly increasing amount of multimedia data. In consideration of this situation, the Video Coding Expert Group (VCEG) of the ITU-T, an international standardization organization, and the Moving Picture Expert Group (MPEG) of ISO / IEC established the video compression standard High Efficiency Video Coding (HEV) version 1 in February 2014.

[0003] HEVC has various techniques such as intra prediction, inter prediction, transform, quantization, entropy coding, and in-loop filter. Information to be input for entropy coding is generated using various methods. As the size of an input image or unit block to be coded or decoded increases, the amount of data to be entropy coded may increase dramatically. Summary of the Invention [Problem to be solved by the invention]

[0004] SUMMARY OF THE PRESENT EMBODIMENT In order to solve the above problems, the main objective of the present invention is to provide a more efficient entropy encoding and decoding technique.

[0005] Also, a main object of the present invention is to reduce the amount of data to be coded by performing entropy coding or decoding using skip regions.

[0006] In addition, the main objective of the present invention is to improve the performance of arithmetic coding and arithmetic decoding by effectively selecting probability information applied to encoding or decoding of each symbol during context-adaptive arithmetic coding and decoding. [Means for solving the problem]

[0007] An image encoding method or apparatus according to an embodiment of the present invention may encode the position of a reference coefficient in a current transform block to be encoded, and encode skip region information for a skip region selected based on the position of the reference coefficient.

[0008] The skipped region information may indicate whether the coefficients in the skipped region have the same coefficient value.

[0009] An image coding method or coding apparatus according to another embodiment of the present invention can binarize values ​​of transform coefficients, obtain binarized information, and determine probability information to be applied to the coding of the binarized information based on the position of the transform coefficients within a transform block.

[0010] The probability information applied to the coding of the binarized information can be determined according to which region the transform coefficient is located within a transform block divided into a plurality of regions.

[0011] An image encoding method or apparatus according to another embodiment of the present invention can encode the position of a reference coefficient in a current transform block to be encoded, encode skip region information for a skip region selected based on the position of the reference coefficient, binarize values ​​of transform coefficients not included in the skip region, obtain binarized information, and select a probability information table to be applied to encoding the binarized information from among a plurality of probability information tables.

[0012] The probability information table applied to the encoding of the binarized information can be selected depending on whether the skip region is used in encoding the current transform block.

[0013] An image decoding method or device according to an embodiment of the present invention may decode a position of a reference coefficient in a current transform block to be decoded, and decode skip region information for a skip region selected based on the position of the reference coefficient.

[0014] The skipped region information may indicate whether the coefficients in the skipped region have the same coefficient value.

[0015] An image decoding method or decoding device according to another embodiment of the present invention can obtain values ​​of arithmetically coded transform coefficients from a bitstream and determine probability information to be applied to the decoding of the arithmetically coded transform coefficients based on the position of the transform coefficients within a transform block.

[0016] The probability information to be applied to the decoding of the arithmetically coded transform coefficients may be determined according to which region the transform coefficient is located within a transform block that is divided into a plurality of regions.

[0017] According to another embodiment of the present invention, an image decoding method or device can decode a position of a reference coefficient in a current transform block to be decoded, decode skip region information for a skip region selected based on the position of the reference coefficient, obtain arithmetically coded values ​​of transform coefficients not included in the skip region, and select a probability information table to be applied to decoding the arithmetically coded values ​​of the transform coefficients from among a plurality of probability information tables.

[0018] The probability information table to be applied to the decoding of the arithmetically coded values ​​of the transform coefficients may be selected from among the plurality of probability information tables depending on whether the skip region is used in the decoding of the current transform block.

[0019] According to one aspect of the present invention, a method for decoding an image may include the steps of: decoding a position of a reference coefficient in a current transform block; deriving probability information of an encoding parameter based on the position of the reference coefficient; and decoding the encoding parameter using the induced probability information.

[0020] In the method for decoding an image, the reference coefficient may be a first non-zero coefficient in a reverse scan order of coefficients in the current transform block.

[0021] In the image decoding method, the current transform block is divided into a first region and a second region, and the probability information of the coding parameters can be determined based on which region the reference coefficient is in.

[0022] An image decoding method according to one aspect of the present invention may include a step of decoding partial information of DC coefficients of a current transform block, a step of deriving probability information of an encoding parameter based on the partial information of the DC coefficients, and a step of decoding the encoding parameter using the induced probability information.

[0023] In the image decoding method, the DC coefficient may be a coefficient located at the upper left side of the current transform block.

[0024] In the image decoding method, the partial information on the DC coefficient may be at least one piece of information for decoding the DC coefficient.

[0025] The image decoding method may further include a step of decoding a position of a reference coefficient within the current transform block, and the probability information of the coding parameter may be derived based on distance information between the DC coefficient and the reference coefficient and partial information of the DC coefficient.

[0026] According to one aspect of the present invention, a method for encoding an image may include the steps of: encoding a position of a reference coefficient in a current transform block; deriving probability information of an encoding parameter based on the position of the reference coefficient; and encoding the encoding parameter using the induced probability information.

[0027] In the image coding method, the reference coefficient may be the first non-zero coefficient in a reverse scan order of coefficients in the current transform block.

[0028] In the image coding method, the current transform block is divided into a first region and a second region, and the probability information of the coding parameters can be determined based on which region the reference coefficient is present in.

[0029] The image encoding method may include the steps of: encoding partial information of DC coefficients of a current transform block; deriving probability information of an encoding parameter based on the partial information of the DC coefficients; and encoding the encoding parameter using the induced probability information.

[0030] In the image coding method, the DC coefficient may be a coefficient located at the upper left side of the current transform block.

[0031] In the image coding method, the partial information on the DC coefficient may be at least one piece of information for coding the DC coefficient.

[0032] The image encoding method may further include a step of encoding a position of a reference coefficient within the current transform block, and the probability information of the encoding parameter may be derived based on distance information between the DC coefficient and the reference coefficient and partial information of the DC coefficient. Effect of the Invention

[0033] According to the present invention, the amount of coded information generated as a result of coding a moving image can be reduced, thereby improving coding efficiency.

[0034] In addition, during context-adaptive arithmetic encoding and decoding, the performance of arithmetic encoding and arithmetic decoding can be improved by effectively selecting the probability information applied to the encoding or decoding of each symbol.

[0035] The effects obtained by the present disclosure are not limited to the effects described above, and other effects not described above will be clearly understood by those having ordinary skill in the art to which the present disclosure pertains from the following description. [Brief description of the drawings]

[0036] [Figure 1] 1 is a block diagram showing an image encoding device according to an embodiment of the present invention.

[0037] [Diagram 2] 1 is a block diagram showing an image decoding device according to an embodiment of the present invention.

[0038] [Diagram 3] 2 is a flow diagram illustrating a method for encoding a transform block according to an embodiment of the present invention.

[0039] [Figure 4a] FIG. 13 is a diagram showing reverse scanning in the diagonal direction, reverse scanning in the vertical direction, and reverse scanning in the horizontal direction in units of sub-blocks. [Figure 4b] FIG. 13 is a diagram showing reverse scanning in the diagonal direction, reverse scanning in the vertical direction, and reverse scanning in the horizontal direction in units of sub-blocks. [Figure 4c] FIG. 13 is a diagram showing reverse scanning in the diagonal direction, reverse scanning in the vertical direction, and reverse scanning in the horizontal direction in units of sub-blocks. [Figure 4d] FIG. 13 is a diagram showing reverse scanning in the diagonal direction, reverse scanning in the vertical direction, and reverse scanning in the horizontal direction in units of sub-blocks.

[0040] [Diagram 5] 4 is a flow chart illustrating a method for decoding a transform block according to an embodiment of the present invention.

[0041] [Figure 6] 1 is a flow diagram illustrating a method for encoding an image using a skip region, according to an embodiment of the present invention.

[0042] [Figure 7] FIG. 13 illustrates a skip region according to an embodiment of the present invention.

[0043] [Figure 8] FIG. 13 is a diagram showing a skip region according to another embodiment of the present invention.

[0044] [Figure 9] FIG. 13 illustrates an additional skip region according to an embodiment of the present invention.

[0045] [Figure 10] 4 is a flow diagram illustrating a method for encoding a transform block including a skip region or an extra skip region according to an embodiment of the present invention.

[0046] [Figure 11] 4 is a flow diagram illustrating an image decoding method using a skip region according to an embodiment of the present invention.

[0047] [Figure 12] 4 is a flow diagram illustrating a method for decoding a transform block including a skip region or an extra skip region according to an embodiment of the present invention.

[0048] [Figure 13] 1 is a flow diagram illustrating a context-adaptive binary arithmetic coding method according to an embodiment of the present invention.

[0049] [Figure 14]2 is a flow diagram illustrating a context adaptive binary arithmetic decoding method according to an embodiment of the present invention.

[0050] [Figure 15a] FIG. 13 is a diagram showing an example in which probability information is applied differently depending on information on peripheral coefficients. [Figure 15b] FIG. 13 is a diagram showing an example in which probability information is applied differently depending on information on peripheral coefficients. [Figure 15c] FIG. 13 is a diagram showing an example in which probability information is applied differently depending on information on peripheral coefficients.

[0051] [Figure 16a] 1A-1C illustrate various embodiments for dividing a frequency domain transform block into multiple regions. [Figure 16b] 1A-1C illustrate various embodiments for dividing a frequency domain transform block into multiple regions. [Figure 16c] 1A-1C illustrate various embodiments for dividing a frequency domain transform block into multiple regions.

[0052] [Figure 17] 1 is a flow diagram illustrating an arithmetic coding method according to an embodiment of the present invention.

[0053] [Figure 18] 4 is a flow diagram illustrating an arithmetic decoding method according to an embodiment of the present invention.

[0054] [Figure 19a] 11 is a diagram for explaining arithmetic encoding and arithmetic decoding according to another embodiment of the present invention. FIG. [Figure 19b] 11 is a diagram for explaining arithmetic encoding and arithmetic decoding according to another embodiment of the present invention. FIG. [Figure 19c] 11 is a diagram for explaining arithmetic encoding and arithmetic decoding according to another embodiment of the present invention. FIG.

[0055] [Figure 20]10 is a flow chart illustrating an arithmetic encoding method or a decoding method according to another embodiment of the present invention.

[0056] [Figure 21] 1 is a flow diagram illustrating a context-adaptive binary arithmetic coding method according to an embodiment of the present invention.

[0057] [Figure 22] 2 is a flow diagram illustrating a context adaptive binary arithmetic decoding method according to an embodiment of the present invention.

[0058] [Figure 23a] FIG. 13 is a diagram showing an example in which probability information is applied differently depending on information on peripheral coefficients. [Figure 23b] FIG. 13 is a diagram showing an example in which probability information is applied differently depending on information on peripheral coefficients.

[0059] [Figure 24] 4 is a coding flow diagram illustrating a method for deriving probability information based on reference coefficients according to an embodiment of the present invention.

[0060] [Diagram 25] FIG. 13 is a diagram illustrating the location of reference coefficients according to an embodiment of the present invention.

[0061] [Figure 26a] FIG. 13 is a diagram showing an example in which probability information is applied differently depending on information on peripheral coefficients. [Figure 26b] FIG. 13 is a diagram showing an example in which probability information is applied differently depending on information on peripheral coefficients.

[0062] [Figure 27] 4 is a decoding flow diagram illustrating a method for deriving probability information based on reference coefficients according to an embodiment of the present invention.

[0063] [Figure 28] 4 is a coding flow diagram illustrating a method for deriving probability information based on partial information of a DC according to an embodiment of the present invention.

[0064] [Figure 29] 13 is a flow diagram illustrating a method for encoding transform block coefficients using partial information of DC coefficients.

[0065] [Diagram 30] 4 is a decoding flow diagram illustrating a method for deriving probability information based on partial information of a DC according to an embodiment of the present invention.

[0066] [Diagram 31] 13 is a flow diagram showing a method for decoding transform block coefficients using partial information of DC coefficients.

[0067] [Diagram 32] 1 is an encoding flow diagram showing a method for deriving probability information based on a distance between a DC coefficient and a reference coefficient and partial information of the DC coefficient.

[0068] [Diagram 33] FIG. 13 is a diagram showing an example in which probability information is applied differently depending on information on peripheral coefficients.

[0069] [Diagram 34] 11 is a decoding flow diagram showing a method of deriving probability information based on the distance between a DC coefficient and a reference coefficient and partial information of the DC coefficient. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0070] Since the present invention can be modified in various ways and can have various embodiments, specific embodiments are illustrated in the drawings and described in detail in the detailed description. However, this does not limit the present invention to the specific embodiments, and it should be understood that the present invention includes all modifications, equivalents, and alternatives within the spirit and technical scope of the present invention. In describing each drawing, similar reference numerals are used for similar components.

[0071] The terms "first," "second," etc. may be used to describe various elements, but these elements should not be limited by the terms above. These terms are used only to distinguish one element from another element. For example, a first element can be named a second element, and similarly, the second element can be named a first element, without departing from the scope of the present invention. The term "and / or" includes any combination of two or more associated listed items or two or more associated listed items.

[0072] When an element is said to be "coupled" or "connected" to another element, it should be understood that the element may be directly coupled or connected to the other element, but there may be other elements between them. In contrast, when an element is said to be "directly coupled" or "directly connected" to another element, it should be understood that there are no other elements between them.

[0073] The terms used in the present invention are merely for describing specific embodiments and are not intended to limit the present invention. A singular expression includes a plural expression unless the context clearly indicates otherwise. In the present invention, the terms "include" or "have" specify the presence of features, numbers, steps, operations, components, parts, or combinations thereof described in the specification, and should be understood not to preclude the presence or additional possibility of one or more other features, numbers, steps, operations, components, parts, or combinations thereof.

[0074] Hereinafter, an embodiment of the present invention will be described in detail with reference to the accompanying drawings. The same components in the drawings are designated by the same reference numerals, and duplicated descriptions of the same components will be omitted.

[0075] FIG. 1 is a block diagram showing an image encoding device according to an embodiment of the present invention.

[0076] Referring to FIG. 1, the image encoding device 100 may include an image division unit 101, an intra-screen prediction unit 102, an inter-screen prediction unit 103, a subtraction unit 104, a transformation unit 105, a quantization unit 106, an entropy encoding unit 107, an inverse quantization unit 108, an inverse transformation unit 109, an addition unit 110, a filter unit 111, and a memory 112.

[0077] 1 are illustrated independently to show different characteristic functions of the image encoding device, and do not mean that each component is composed of separate hardware or a single software unit. That is, each component is included as a list of components for convenience of explanation, and at least two of the components may be combined to form one component, or one component may be divided into multiple components to perform a function, and such integrated and separated embodiments of each component are also included in the scope of the present invention as long as they do not deviate from the essence of the present invention.

[0078] In addition, some components may not be essential components performing essential functions in the present invention, but may be optional components simply for improving performance. The present invention can be realized by including only components essential for realizing the essence of the present invention, excluding components used simply for improving performance, and a structure including only essential components, excluding optional components used simply for improving performance, is also included in the scope of the present invention.

[0079] The image division unit 101 may divide an input image into at least one block. In this case, the input image may have various shapes and sizes, such as a picture, a slice, a tile, a segment, etc. The block may mean a coding unit (CU), a prediction unit (PU), or a transform unit (TU). The division may be performed based on at least one of a quad tree and a binary tree. The quad tree is a method of dividing a top block into four lower blocks each having a width and height half that of the top block. The binary tree is a method of dividing a top block into two lower blocks each having a width or height half that of the top block. Due to the above-mentioned binary tree-based division, the blocks may have not only a square shape but also a non-square shape.

[0080] The prediction units 102 and 103 may include an inter prediction unit 103 that performs inter prediction and an intra prediction unit 102 that performs intra prediction. It is possible to determine whether to perform inter prediction or intra prediction for a prediction unit, and to determine specific information (e.g., intra prediction mode, motion vector, reference picture, etc.) according to each prediction method. At this time, the processing unit in which the prediction is performed and the processing unit in which the prediction method and specific contents are determined may be different from each other. For example, the prediction method and prediction mode may be determined in a prediction unit, and the prediction may be performed in a transform unit.

[0081] The residual value (residual block) between the generated prediction block and the original block can be input to the conversion unit 105. In addition, prediction mode information and motion vector information used for prediction can be coded together with the residual value by the entropy coding unit 107 and transmitted to the decoder. When a specific coding mode is used, it is also possible to code the original block as it is and transmit it to the decoding unit without generating a prediction block via the prediction units 102 and 103.

[0082] The intra prediction unit 102 may generate a prediction block based on reference pixel information surrounding a current block, which is pixel information in a current picture. When the prediction mode of a block surrounding a current block on which intra prediction is performed is inter prediction, reference pixels included in the block surrounding the current block to which inter prediction is applied may be replaced with reference pixels in another block surrounding the current block to which intra prediction is applied. That is, when a reference pixel is unavailable, the unavailable reference pixel information may be replaced with at least one of the available reference pixels.

[0083] The prediction mode in intra prediction may have a directional prediction mode that uses reference pixel information according to a prediction direction, and a non-directional mode that does not use directional information when performing prediction. A mode for predicting luminance information and a mode for predicting chrominance information may be different from each other, and intra prediction mode information used for predicting luminance information or predicted luminance signal information may be used to predict chrominance information.

[0084] The intra prediction unit 102 may include an AIS (Adaptive Intra Smoothing) filter, a reference pixel interpolation unit, and a DC filter. The AIS filter is a filter that performs filtering on reference pixels of a current block, and can adaptively determine whether to apply the filter according to a prediction mode of a current prediction unit. If the prediction mode of the current block is a mode that does not perform AIS filtering, the AIS filter may not be applied.

[0085] The reference pixel interpolation unit of the intra prediction unit 102 may generate reference pixels at fractional unit positions by interpolating reference pixels when the intra prediction mode of the prediction unit is a prediction unit that performs intra prediction based on pixel values ​​obtained by interpolating reference pixels. When the prediction mode of the current prediction unit is a prediction mode that generates a prediction block without interpolating reference pixels, the reference pixels may not be interpolated. When the prediction mode of the current block is a DC mode, the DC filter may generate a prediction block through filtering.

[0086] The inter prediction unit 103 generates a prediction block using an already restored reference image and motion information stored in the memory 112. The motion information may include, for example, a motion vector, a reference picture index, a list 1 prediction flag, a list 0 prediction flag, and the like.

[0087] A residual block including residual value information, which is a difference value between the prediction unit generated by the prediction units 102 and 103 and the original block of the prediction unit, can be generated. The generated residual block can be input to the conversion unit 105 and converted.

[0088] The inter prediction unit 103 may derive a prediction block based on information of at least one of a previous picture and a subsequent picture of a current picture. Also, the inter prediction unit 103 may derive a prediction block of a current block based on information of a part of an area in which encoding has been completed in the current picture. The inter prediction unit 103 according to an embodiment of the present invention may include a reference picture interpolation unit, a motion prediction unit, and a motion compensation unit.

[0089] The reference picture interpolation unit receives reference picture information from the memory 112 and can generate pixel information of less than integer pixels in the reference picture. In the case of luminance pixels, a DCT-based 8-tap interpolation filter with different filter coefficients can be used to generate pixel information of less than integer pixels in 1 / 4 pixel units. In the case of color difference signals, a DCT-based 4-tap interpolation filter with different filter coefficients can be used to generate pixel information of less than integer pixels in 1 / 8 pixel units.

[0090] The motion prediction unit may perform motion prediction based on the reference picture interpolated by the reference picture interpolation unit. As a method for calculating a motion vector, various methods such as a full search-based block matching algorithm (FBMA), a three step search (TSS), a new three-step search algorithm (NTS), etc. may be used. The motion vector may have a motion vector value in units of 1 / 2 or 1 / 4 pixels based on the interpolated pixels. The motion prediction unit may predict a predicted block of a current block using different motion prediction methods. As a motion prediction method, various methods such as a skip method, a merge method, an advanced motion vector prediction method (AMVP), etc. may be used.

[0091] The subtraction unit 104 subtracts the block to be currently coded from the predicted block generated by the intra prediction unit 102 or the inter prediction unit 103 to generate a residual block of the current block.

[0092] The transform unit 105 can transform the residual block including the residual data using a transform method such as DCT, DST, KLT (Karhunen Loeve Transform), etc. In this case, the transform method can be determined based on the intra prediction mode of the prediction unit used to generate the residual block. For example, DCT may be used in the horizontal direction and DST may be used in the vertical direction depending on the intra prediction mode.

[0093] The quantization unit 106 can quantize the values ​​transformed into the frequency domain by the transformation unit 105. The quantization coefficient can be changed according to the block or the importance of the image. The values ​​calculated by the quantization unit 106 can be provided to the inverse quantization unit 108 and the entropy coding unit 107.

[0094] The transform unit 105 and / or the quantization unit 106 may be selectively included in the image coding device 100. That is, the image coding device 100 may perform at least one of transform and quantization on the residual data of the residual block, or may skip both transform and quantization to code the residual block. Even if the image coding device 100 does not perform either transform or quantization, or does not perform both transform and quantization, a block input to the entropy coding unit 107 is generally called a transform block. The entropy coding unit 107 entropy codes the input data. For the entropy coding, various coding methods such as Exponential Golomb, CAVLC (Context-Adaptive Variable Length Coding), and CABAC (Context-Adaptive Binary Arithmetic Coding) may be used.

[0095] The entropy coding unit 107 can code various information such as coefficient information of a transform block, block type information, prediction mode information, division unit information, prediction unit information, transmission unit information, motion vector information, reference frame information, block interpolation information, filtering information, etc. The coefficients of the transform block can be coded in units of sub-blocks within the transform block.

[0096] To code coefficients of a transform block, various syntax elements can be coded, such as Last_sig, which is a syntax element indicating the position of the first non-zero coefficient in the reverse scan order, Coded_sub_blk_flag, which is a flag indicating whether there is at least one non-zero coefficient in a sub-block, Sig_coeff_flag, which is a flag indicating whether the coefficient is non-zero, Abs_greater1_flag, which is a flag indicating whether the absolute value of the coefficient is greater than 1, Abs_greater2_flag, which is a flag indicating whether the absolute value of the coefficient is greater than 2, and Sign_flag, which is a flag indicating the sign of the coefficient. Residual values ​​of coefficients that are not coded only by the syntax elements can be coded via the syntax element remaining_coeff.

[0097] The inverse quantization unit 108 and the inverse transform unit 109 inversely quantize the value quantized by the quantization unit 106 and inversely transform the value transformed by the transform unit 105. The residual value generated by the inverse quantization unit 108 and the inverse transform unit 109 may be combined with a prediction unit predicted by a motion estimation unit, a motion compensation unit, and an intra prediction unit 102 included in the prediction units 102 and 103 to generate a reconstructed block. The adder 110 adds the prediction block generated by the prediction units 102 and 103 and the residual block generated by the inverse transform unit 109 to generate a reconstructed block.

[0098] The filter unit 111 may include at least one of a deblocking filter, an offset correction unit, and an ALF (Adaptive Loop Filter).

[0099] The deblocking filter can remove block artifacts caused by boundaries between blocks from a reconstructed picture. In order to determine whether to perform deblocking, it can be determined whether to apply a deblocking filter to a current block based on pixels included in several columns or rows included in the block. When applying a deblocking filter to a block, a strong filter or a weak filter can be applied according to a required deblocking filtering strength. In addition, when performing vertical filtering and horizontal filtering in applying the deblocking filter, horizontal filtering and vertical filtering can be processed in parallel.

[0100] The offset correction unit can correct the offset between the deblocked image and the original image on a pixel-by-pixel basis. In order to perform offset correction on a specific picture, the offset correction unit can use a method of dividing pixels included in the image into a certain number of regions, determining the region to be offset, and applying the offset to the corresponding region, or a method of applying the offset by considering edge information of each pixel.

[0101] ALF (Adaptive Loop Filtering) can be performed based on a value obtained by comparing a filtered restored image with an original image. After dividing pixels included in an image into predetermined groups, a filter to be applied to the corresponding group is determined, and filtering can be performed differentially for each group. Information related to whether or not to apply ALF can be transmitted for each coding unit (CU) of a luminance signal, and the shape and filter coefficient of an ALF filter applied according to each block can vary. Also, an ALF filter of the same type (fixed type) can be applied regardless of the characteristics of the block to which it is applied.

[0102] The memory 112 can store the reconstructed block or picture calculated through the filter unit 111, and the stored reconstructed block or picture can be provided to the prediction units 102 and 103 when performing inter-picture prediction.

[0103] Next, an image decoding device according to an embodiment of the present invention will be described with reference to the drawings. Fig. 2 is a block diagram showing an image decoding device 200 according to an embodiment of the present invention.

[0104] Referring to FIG. 2, the image decoding device 200 may include an entropy decoding unit 201 , an inverse quantization unit 202 , an inverse transform unit 203 , an adder unit 204 , a filter unit 205 , a memory 206 , and prediction units 207 and 208 .

[0105] When the image bitstream generated by the image encoding device 100 is input to the image decoding device 200 , the input bitstream can be decoded by a process that is the reverse of that performed by the image encoding device 100 .

[0106] The entropy decoding unit 201 may perform entropy decoding in a procedure opposite to that of the entropy encoding performed by the entropy encoding unit 107 of the image encoding device 100. For example, various methods such as Exponential Golomb, Context-Adaptive Variable Length Coding (CAVLC), and Context-Adaptive Binary Arithmetic Coding (CABAC) may be applied in accordance with the method performed by the image encoder. The entropy decoding unit 201 may decode the above-mentioned syntax elements, i.e., Last_sig, Coded_sub_blk_flag, Sig_coeff_flag, Abs_greater1_flag, Abs_greater2_flag, Sign_flag, and remaining_coeff. In addition, the entropy decoding unit 201 may decode information related to intra prediction and inter prediction performed by the image encoding device 100.

[0107] The inverse quantization unit 202 performs inverse quantization on the quantized transform block to generate a transform block, and operates in substantially the same manner as the inverse quantization unit 108 in FIG.

[0108] The inverse transform unit 203 performs inverse transform on the transform block to generate a residual block. At this time, the transform method can be determined based on information regarding the prediction method (inter or intra prediction), the size and / or shape of the block, the intra prediction mode, etc. The inverse transform unit 203 operates substantially similarly to the inverse transform unit 109 of FIG. 1.

[0109] The adder 204 generates a restored block by adding a prediction block generated by the intra prediction unit 207 or the inter prediction unit 208 and a residual block generated via the inverse transform unit 203. The adder 204 operates in substantially the same manner as the adder 110 in FIG.

[0110] The filter unit 205 reduces various types of noise that occur in the reconstructed block.

[0111] The filter unit 205 may include a deblocking filter, an offset correction unit, and an ALF.

[0112] The image encoding device 100 can provide information on whether a deblocking filter is applied to the corresponding block or picture, and, if a deblocking filter is applied, information on whether a strong filter or a weak filter is applied. The deblocking filter of the image decoding device 200 can receive deblocking filter-related information provided by the image encoding device 100 and perform deblocking filtering on the corresponding block in the image decoding device 200.

[0113] The offset correction unit can perform offset correction on the restored image based on information on the type and offset value of offset correction applied to the image during encoding.

[0114] The ALF can be applied to a coding unit based on ALF application information, ALF coefficient information, and the like provided from the image encoding device 100. Such ALF information may be provided by being included in a specific parameter set. The filter unit 205 operates in substantially the same manner as the filter unit 111 of FIG.

[0115] The memory 206 stores the reconstruction blocks generated by the adder 204. The memory 206 operates in substantially the same manner as the memory 112 in FIG.

[0116] The prediction units 207 and 208 can generate a prediction block based on prediction block generation related information provided from the entropy decoding unit 201 and previously decoded block or picture information provided from the memory 206.

[0117] The prediction units 207 and 208 may include an intra prediction unit 207 and an inter prediction unit 208. Although not shown separately, the prediction units 207 and 208 may further include a prediction unit discrimination unit. The prediction unit discrimination unit receives various information such as prediction unit information input from the entropy decoding unit 201, prediction mode information of the intra prediction method, and motion prediction related information of the inter prediction method, classifies the prediction unit by the current coding unit, and can discriminate whether the prediction unit performs inter prediction or intra prediction. The inter prediction unit 208 can perform inter prediction on the current prediction unit based on information included in at least one of a previous picture or a subsequent picture of the current picture including the current prediction unit, using information required for inter prediction of the current prediction unit provided from the image encoding device 100. Alternatively, the inter prediction can be performed based on information of a part of an area already restored in the current picture including the current prediction unit.

[0118] In order to perform inter-frame prediction, it is possible to determine, based on a coding unit, whether the motion prediction method of the prediction unit included in the corresponding coding unit is skip mode, merge mode, or AMVP mode.

[0119] The intra prediction unit 207 generates a prediction block using already restored pixels located around the block to be currently coded.

[0120] The intra prediction unit 207 may include an AIS (Adaptive Intra Smoothing) filter, a reference pixel interpolation unit, and a DC filter. The AIS filter is a filter that performs filtering on reference pixels of a current block, and can adaptively determine whether or not to apply the filter depending on a prediction mode of a current prediction unit. AIS filtering can be performed on reference pixels of a current block using the prediction mode of the prediction unit and AIS filter information provided from the image encoding device 100. If the prediction mode of the current block is a mode in which AIS filtering is not performed, the AIS filter may not be applied.

[0121] The reference pixel interpolation unit of the intra prediction unit 207 may generate reference pixels at fractional unit positions by interpolating reference pixels when the prediction mode of the prediction unit is a prediction unit that performs intra prediction based on pixel values ​​obtained by interpolating reference pixels. The generated reference pixels at fractional unit positions may be used as prediction pixels for pixels in the current block. When the prediction mode of the current prediction unit is a prediction mode that generates a prediction block without interpolating reference pixels, the reference pixels may not need to be interpolated. When the prediction mode of the current block is a DC mode, the DC filter may generate a prediction block through filtering.

[0122] The intra prediction unit 207 operates in substantially the same manner as the intra prediction unit 102 in FIG.

[0123] The inter prediction unit 208 generates an inter prediction block using the reference picture and motion information stored in the memory 206. The inter prediction unit 208 operates in substantially the same manner as the inter prediction unit 103 in FIG.

[0124] Various embodiments of the invention will now be described in more detail with reference to the drawings.

[0125] (First embodiment)

[0126] 3 is a flow chart showing a method for encoding a transform block according to an embodiment of the present invention, which may be performed by the entropy encoding unit 107 of the image encoding device 100.

[0127] As shown in Fig. 4a, one transform block can be coded in sub-block units. Referring to Fig. 4a, if a current transform block 400 to be coded or decoded is an 8x8 block, it can be divided into four sub-blocks 1 (401) to 4 (404) of 4x4 size. A vertical, horizontal or diagonal inverse scan method can be used as a scan method for determining the coding order of transform coefficients in the transform block according to a prediction mode of the current block or the current transform block. Here, the prediction mode can be inter-frame prediction or intra-frame prediction.

[0128] 4b, 4c, and 4d show diagonal reverse scanning, vertical reverse scanning, and horizontal reverse scanning, respectively. Here, for convenience of explanation, diagonal reverse scanning is taken as an example, but vertical reverse scanning or horizontal reverse scanning can also be applied.

[0129] Referring to FIG. 3, first, when transform coefficients are scanned in a reverse scan order, the first non-zero coefficient is determined as a reference coefficient, and its position information Last_sig is coded (S301).

[0130] A sub-block including a reference coefficient is selected (S302), and the sub-block information is coded (S303). Sub-block information Coded_sub_blk_flag is a flag indicating whether there is at least one non-zero coefficient in the current sub-block. Then, non-zero coefficient information is coded (S304). Here, non-zero coefficient information Sig_coeff_flag indicates whether the value of each coefficient in the sub-block is zero or not.

[0131] Then, N-excess coefficient information is coded (S305). Here, the N-excess coefficient information indicates whether the absolute value of each coefficient exceeds a value from 1 to N for all coefficients present in the subblock. An arbitrary predetermined value is used for N when coding and decoding, but the value of N can be coded so that the same value is used when coding and decoding. The number of N-excess coefficient information may be an arbitrary predetermined value, or may be differently used depending on the position of the reference coefficient. For example, when N is set to 3, whether the absolute value of each coefficient is greater than 1 for all coefficients determined to be non-zero in the subblock is coded. For this purpose, Abs_greater1_flag, which is a flag indicating whether the absolute value of the coefficient is greater than 1, is used. Then, only for coefficients determined to be greater than 1, whether the absolute value is greater than 2 is coded. For this purpose, Abs_greater2_flag, which is a flag indicating whether the absolute value of the coefficient is greater than 2 is used. Finally, only for coefficients determined to be greater than 2, whether the absolute value is greater than 3 is coded. For this purpose, a flag Abs_greater3_flag can be used which indicates whether the absolute value of the coefficient is greater than 3.

[0132] Then, for each coefficient that is determined to be non-zero, sign information indicating whether it is a negative or positive number is coded (S306). The sign information can use Sign_flag. Then, for only coefficients that are determined to be greater than N, the remaining value after subtracting N is defined as residual coefficient information, and the residual value information of this coefficient, remaining_coeff, is coded (S307).

[0133] Then, after checking whether the next subblock exists (S309), if the next subblock exists, the process moves to the next subblock (S310) and encodes the subblock information (S303). The subblock information Coded_sub_blk_flag is checked (S308), and if it is confirmed that the value of Coded_sub_blk_flag is true, Sig_coeff_flag, which is coefficient information that is not zero, is encoded. If the value of the subblock information Coded_sub_blk_flag is false, it means that there is no coefficient to be encoded in the subblock, so the presence or absence of the next subblock is checked. Alternatively, after moving to the next subblock, if the subblock is the subblock located at the lowest frequency side, it is possible to set the subblock information to true during encoding and decoding under the assumption that there is a coefficient that is not zero.

[0134] Fig. 5 is a flow chart showing a method for decoding a transform block according to an embodiment of the present invention. The method for decoding a transform block in Fig. 5 corresponds to the method for encoding a transform block in Fig. 3. The method for decoding a transform block in Fig. 5 may be performed by an entropy decoding unit 201 of an image decoding device 200.

[0135] Position information Last_sig of the reference coefficient, which is the first non-zero transform coefficient that appears in the reverse scan order, is decoded (S501).

[0136] A sub-block including a reference coefficient is selected (S502), and sub-block information Coded_sub_blk_flag is decoded (S503). Then, non-zero coefficient information Sig_coeff_flag is decoded (S504). Then, N-excess coefficient information is decoded (S505). Here, the N-excess coefficient information may include Abs_greater1_flag, Abs_greater2_flag, Abs_greater3_flag, etc., as described above.

[0137] Then, for each coefficient that is determined to be non-zero, the sign information of the coefficient, Sign_flag, is decoded (S506). Then, for only the coefficients that are determined to be greater than N, the residual coefficient information, remaining_coeff, corresponding to the remaining value obtained by subtracting N is decoded (S507). Then, after checking whether or not the next sub-block exists (S509), if the next sub-block exists, the process moves to the next sub-block (S510) and the sub-block information, Coded_sub_blk_flag, is decoded (S503). The sub-block information, Coded_sub_blk_flag, is checked (S508), and if the sub-block information is true, the coefficient information, Sig_coeff_flag, that is not zero is decoded. If the sub-block information is false, it means that there is no coefficient to be decoded in the sub-block, so the existence of the next sub-block is checked.

[0138] 6 is a flow chart showing an image coding method using a skip region according to an embodiment of the present invention, which may be performed by the entropy coding unit 107 of the image coding device 100.

[0139] 6, first, the entropy coding unit 107 codes the position of a base coefficient in a current transform block to be coded (S601). As described above, the base coefficient is the first non-zero coefficient when scanning coefficients in the reverse scan order. Then, the entropy coding unit 107 codes skip region information for a skip region selected based on the position of the base coefficient (S602).

[0140] Here, the skip region is a region in the current transform block that is determined based on the position of the reference coefficient. The skip region information indicates whether all the coefficients in the skip region have the same value. Here, the same value held by the coefficients in the skip region may be 0. If the same value held by the coefficients in the skip region is not 0, information indicating which non-zero value it is may be further coded. It is also possible to use any predetermined value other than 0 as the same value held by the coefficients in the skip region. In this case, the information on the predetermined value may be coded via a higher header that is not on a transform block basis.

[0141] On the other hand, the skip area may be determined in the same manner during the encoding / decoding process according to a predetermined rule, or the coordinates indicating the range of the skip area within the transform block may be further encoded to use the same position in the encoding device 100 or the decoding device 200.

[0142] 7 is a diagram illustrating a skip region according to an embodiment of the present invention. Assume that a diagonal inverse scan is used for coefficient coding of a current transform block 700.

[0143] 7, a reference line 702 is generated in the direction of 45 degrees downward and to the left based on the position of a base coefficient 701, and then an area including coefficients located on the reference line 702 and coefficients below the reference line 702 is designated as a skip area. In Fig. 7, the skip area is displayed in shading, and all coefficients within the skip area have the same value of 0. Furthermore, all coefficients within the skip area are positioned after the base coefficients in the coding order.

[0144] As another embodiment of setting the skip area, if the reference coefficient is located in any arbitrary area in the transform block and the number of coefficients in the skip area is small, the skip area can be set using any of the non-zero coefficients that appear after the reference coefficient in the reverse scan order or a coefficient adjacent to the reference coefficient, rather than determining the skip area based on the reference coefficient. Here, the arbitrary area in the transform block in which the reference coefficient is located can be set by comparing the number of sub-blocks calculated in the reverse scan order with a predetermined threshold value. Alternatively, the distance of the reference coefficient from any arbitrary position in the transform block can be determined and set by comparing it with a predetermined threshold value. For example, the arbitrary position may be a center point that is the midpoint of the width and height of the transform block. Alternatively, it is possible to divide the width and height of the transform block into m and n equal parts, respectively, and then determine one of the divided areas as the arbitrary area. Here, the values ​​of m and n can be coded in block units or via a higher header, and predetermined values ​​can be used in the same manner when coding and decoding.

[0145] Fig. 8 is a diagram showing a skip region according to another embodiment of the present invention. A reference line 803 is generated from the position of a base coefficient 801 in a transform block 800 to the position of a coefficient 802 located in the lower left corner of the transform block 800, and then an area including coefficients located on the reference line 803 and coefficients located below the reference line 803 is designated as a skip region. Here, coefficients belonging to the skip region are located after the base coefficient in the coding order. In Fig. 8, the skip region is indicated by shading.

[0146] Meanwhile, although not shown in Fig. 6, a further skip region may be set in addition to the skip region set in steps S601 and S603. The further skip region set may be coded using additional skip region information.

[0147] FIG. 9 is a diagram showing an additional skip region according to an embodiment of the present invention. In addition to the skip region shown in FIG. 7, an additional skip region is set in FIG. 9. The region above the skip region in FIG. 7 is set as the additional skip region, and additional skip region information indicating whether all coefficients in the additional skip region have the same value can be encoded. Here, the same value held by coefficients in the skip region may be 0. If the same value held by coefficients in the skip region is not 0, information indicating which non-zero value it is can be further encoded. It is also possible to use any predetermined value other than 0 as the same value held by coefficients in the skip region. In this case, it is possible to code information of a predetermined value via a higher-level header that is not in units of transform blocks.

[0148] Meanwhile, the position of the additional skip region may be determined in the same manner during the encoding and decoding processes according to a predetermined rule, or the coordinates within the transform block may be further encoded so that the same position is used in the encoding device 100 and the decoding device 200. Here, the newly generated additional skip region may be spaced a distance p from the previous skip region.

[0149] 9 shows an example in which a skip region is set by generating a reference line 702 based on a reference coefficient 701, and further the area above the reference line 702 is set as an additional skip region. If the distance p between the additional skip region and the skip region is 0, the region including coefficients on the reference line 703 can become the additional skip region. If the distance p is 1, the additional skip region includes a region including coefficients on the reference line 703 and a region including coefficients on the reference line 704.

[0150] In this embodiment, the distance p between the additional skip area and the skip area is 0 or 1, but other values ​​may be used. Here, p may use the same predetermined value in the encoding / decoding process. Alternatively, the value of p may be coded on a block-by-block basis or coded via an upper header.

[0151] In addition, the additional skip region can be added in a predetermined manner. For example, the additional skip region can be added or encoded a predetermined number q of times until the additional skip region information is determined to be false. Here, a different p can be set for each additional skip region.

[0152] 10 is a flow diagram illustrating a method for encoding a transform block including a skip region or an additional skip region according to an embodiment of the present invention. The method illustrated in FIG. 10 may be performed after the method illustrated in FIG. 6. The encoding method of FIG. 10 may be performed by the entropy encoding unit 107 of the image encoding device 100.

[0153] If a sub-block in a transform block to be coded currently includes a base coefficient, it means that the coefficient to be coded is included, so the sub-block information Coded_sub_blk_flag is not coded. It is checked whether the skip region information or additional skip region information is true and whether the sub-block to be coded currently includes a skip region or additional skip region (S1001). If the above two conditions are true, a coefficient located in the current sub-block but outside the skip region in the coding order is selected (S1002). If not, all coefficients to be coded are selected regardless of the skip region (S1003). Then, the coefficients are coded in the order of non-zero coefficient information (S1004), N excess coefficient information (S1005), sign information (S1006), and residual coefficient information (S1007).

[0154] Then, if a next subblock exists (S1008), the process moves to the next subblock (S1009). If the skip region information or additional skip region information is true and it is checked whether the subblock to be currently encoded includes a skip region or additional skip region (S1010), the process moves to the next subblock since the information of the subblock has already been encoded using the skip region information. However, in this case, it can only be used when the value of the coefficient in the skip region is 0. If the value of the coefficient in the skip region is not 0, the subblock information must be encoded.

[0155] If the subblock does not include a skip region or an additional skip region, or if the skip region information is false, the subblock information is coded (S1011), and if the subblock information is true (S1012), the process moves to step S1001, and if the subblock information is false, the process moves to step S1008. After moving to step S1008, if it is determined that there is no next subblock, the algorithm of FIG. 10 ends.

[0156] The algorithms shown in FIGS. 6 and 10 will now be further explained with the aid of the example in FIG. For the current transform block, the scan method is assumed to be diagonal reverse scan order, and the first non-zero coefficient that appears is set as the reference coefficient. Based on the reference coefficient, the coefficient to the lower left and the coefficient below that are set as a skip region, and then all values ​​in the skip region are checked. Since all coefficients in the skip region have the same value as 0, the skip region information is truly coded. After dividing into sub-blocks, coding is performed starting from the sub-block containing the reference coefficient.

[0157] The present embodiment will be described by taking as an example a transform block of 8x8 size and a sub-block of 4x4 size. The skip region information of the subblock to be coded first is true, and the coefficient to be coded exists within the subblock. In the example shown in FIG. 7, since only the coefficients outside the skip region are coded, only the base coefficient and 1, 0, 0, and -2 existing thereon need to be coded. In this case, the coefficient information that is not 0 is set to true, false, false, and true, respectively. Assuming that N is 2, the 1 excess information is coded only for the coefficients that are determined to be not 0. The 1 excess information of the coefficient values ​​1 and -2 is set to false and true, respectively. The 2 excess information is coded only if the 1 excess information is true, and the 2 excess information of the coefficient value -2 is coded to false. Then, the signs + and - of the coefficient values ​​1 and -2 are coded, respectively. Then, since the next subblock exists, the process moves to the next subblock.

[0158] For the second sub-block to be coded, the skip region information is true and there is a coefficient to be coded in the sub-block, so the sub-block information is true. Therefore, only the coefficients 0, 0, and 1 outside the skip region are coded. The non-zero coefficient information of the coefficients 0, 0, and 1 is coded as false, false, and true, respectively, and then only the excess-of-1 information of the coefficient 1 is coded as false. The sign information of the coefficient 1 is coded as +, and the process moves to the next sub-block.

[0159] For the third sub-block to be coded, the skip region information is true and there are coefficients to be coded within the sub-block, so the sub-block information is true. The coefficients outside the skip region are sorted by reverse scanning as 0, 0, 0, 0, 0, 1, 1, 1, 1, -2, -2, 1, -3, 3, 10. These coefficients are coded using steps S1004 to S1007.

[0160] 11 is a flow chart showing an image decoding method using a skip region according to an embodiment of the present invention, which may be performed by the entropy decoding unit 201 of the image decoding device 200.

[0161] 11, the entropy decoding unit 201 first decodes the position of a base coefficient in a current transform block to be decoded (S1101). Then, based on the position of the base coefficient, the entropy decoding unit 201 decodes skip region information for a skip region selected (S1103). As described above, the position of the base coefficient can be derived by decoding Last_sig. The skip area and the skip area information are the same as those described above, and therefore a detailed description thereof will be omitted. In addition, although not shown in FIG 11, if there is an additional skip area set in addition to the skip area, the additional skip area can be decoded using the additional skip area information.

[0162] 12 is a flow chart illustrating a method for decoding a transform block including a skip region or an additional skip region according to an embodiment of the present invention. The method illustrated in FIG 12 can be performed after the method illustrated in FIG 11. The decoding method of FIG 12 can be performed by the entropy decoding unit 201 of the image decoding device 200.

[0163] The method shown in Fig. 12 is substantially similar to the method shown in Fig. 10, and therefore detailed description thereof will be omitted. However, there is a difference in that skip region information, additional skip region information, sub-block information Coded_sub_blk_flag, non-zero coefficient information, N-excess coefficient information, sign information, residual coefficient information, etc. are coded in Fig. 10, whereas in Fig. 12, these pieces of information are decoded.

[0164] The algorithms shown in Figures 11 and 12 will be further explained with reference to the example of Figure 7. After decoding the position information Last_sig of the reference coefficient in the current transform block, the reference coefficient is set. A skip region is set based on the position of the reference coefficient, and the skip region information is decoded. In this example, the skip region information is true. After dividing the transform block into sub-block units, the sub-block containing the reference coefficient is decoded.

[0165] An example will be described in which the current transform block is 8x8 and the subblock is 4x4 in size. For the first subblock to be decoded, the skip region information is true, and the coefficient to be decoded exists in the subblock. Since only the coefficients outside the skip region are decoded, in the example shown in FIG. 7, only the base coefficient and 1, 0, 0, and -2 existing thereon need to be decoded. In this case, the decoded values ​​of the coefficient information that is not 0 are true, false, false, and true, respectively. Assuming that N is 2, the 1 excess information is decoded only for the coefficients that are determined to be not 0. The 1 excess information of the coefficient values ​​1 and -2 is decoded as false and true, respectively. The 2 excess information is decoded only if the 1 excess information is true, and the 2 excess information of the coefficient value -2 is decoded as false. Then, the signs + and - of the coefficient values ​​1 and -2 are decoded, respectively. Then, since the next subblock exists, the process moves to the next subblock.

[0166] For the second sub-block to be decoded, the skip region information is true and there is a coefficient to be decoded in the sub-block, so the sub-block information is true. Therefore, only the coefficients 0, 0, and 1 outside the skip region are decoded. The non-zero coefficient information of the coefficients 0, 0, and 1 is decoded as false, false, and true, respectively, and then only the excess-of-1 information of the coefficient 1 is decoded as false. The sign information of the coefficient 1 is decoded as +, and the process moves to the next sub-block.

[0167] For the third sub-block to be decoded, the skip region information is true and there is a coefficient to be decoded in the sub-block, so the sub-block information is true. The coefficients outside the skip region are sorted by reverse scan as 0, 0, 0, 0, 0, 1, 1, 1, 1, -2, -2, 1, -3, 3, 10. This coefficient is decoded using steps S1204 to S1207.

[0168] Second embodiment

[0169] A second embodiment of the present invention will now be described with reference to the drawings.

[0170] The coded information is subjected to a context-adaptive binary arithmetic process through a binarization process. The context-adaptive binary arithmetic process refers to a process of symbolizing coded information in a block, and encoding the information by varying the probability of occurrence of the symbol using probability information according to the situation. In this embodiment, for convenience of explanation, only symbols 0 and 1 are used, but the number of symbols may be N (N is a natural number equal to or greater than 2).

[0171] Probability information refers to the occurrence probability of 0 and 1 in the binarized information. The occurrence probability of both pieces of information may be the same or different depending on the previously restored information. It is also possible to have N pieces of probability information depending on the information.

[0172] 13 is a flow chart showing a context adaptive binary arithmetic coding method according to an embodiment of the present invention. First, probability initialization is performed (S1301). Probability initialization is a process of dividing binarized information into probability intervals according to probabilities set in the probability information. However, which probability information is to be used may be determined by using the same condition according to a predetermined rule in an encoding device or a decoding device, or the probability information may be coded separately. The initial probability interval may be determined to be the same in the encoding / decoding process according to a predetermined rule. Alternatively, the initial probability interval may be newly coded and used.

[0173] When the binary information of the current coding parameter to be coded is determined (S1302), the binary information of the current coding parameter is coded using the probability interval state up to the previous step of step S1302 and previous probability information of the same coding parameter (S1303). After that, the probability information and the probability interval for the binary information to be coded are updated (S1304), and if there is next coding parameter information to be coded (S1305), the process moves to the next coding parameter information (S1306) and repeats the above process. If there is no next coding parameter information to be coded, the flow chart ends.

[0174] Figure 14 is a flow chart showing a context adaptive binary arithmetic decoding method according to an embodiment of the present invention. Unlike the encoding device, the decoding device decodes binary information of the encoding parameter using probability information and probability interval (S1402), and then determines binary information of the current encoding parameter (S1403). The rest of the decoding method of Figure 14 corresponds to the encoding method of Figure 13, so detailed description will be omitted.

[0175] 13 and 14, encoding or decoding may be performed by selectively using optimal probability information among predetermined N pieces of probability information using information already restored around each coding parameter. For example, probability information of information belonging to a quantized transform block may use probability information with a high probability of information occurring according to the size of the transform block.

[0176] Alternatively, the probability information can be applied differently depending on the information of the neighboring coefficients of the coefficient currently being encoded or decoded, and the probability information of the information currently being encoded or decoded can be selected using the probability information of previously encoded or decoded information.

[0177] 15a to 15c are diagrams illustrating an example in which probability information is applied differently according to information of neighboring coefficients. FIG. 15b is an example of a probability information table in which the Sig_coeff_flag information value of a current coefficient is used for encoding or decoding. Referring to FIG. 15b, when the number of coefficients having the same information value as the Sig_coeff_flag information value 1 of the current coefficient 1501 among the coefficients adjacent to the coefficient 1501 to be currently encoded or decoded is one, the current coefficient 1501 is assigned an index 8. In this case, the probability of symbol 1 being the Sig_coeff_flag2 value information of the current coefficient 1501 is 61%, and the probability of symbol 0 is 39%. If the number of neighboring coefficients having the same information value as the Sig_coeff_flag information value of the current coefficient 1501 is two, the current coefficient 1501 is assigned an index 5, and the probability of symbol 1 being the Sig_coeff_flag2 value information of the current coefficient 1501 is 71%, and the probability of symbol 0 is 29%. If the number of neighboring coefficients having the same information value as the Sig_coeff_flag information value of the current coefficient 1501 is 3, the current coefficient 1501 is assigned index 2, and the probability of symbol 1, which is the Sig_coeff_flag2 value information of the current coefficient 1501, is 87% and the probability of symbol 0 is 13%. After the current coefficient 1501 is encoded or decoded using the probability information table shown in Figure 15b, the probability information can be updated as shown in Figure 15c.

[0178] Meanwhile, in the case of non-zero coefficient information Sig_coeff_flag, the closer to the low frequency region, the higher the probability of occurrence of non-zero coefficient information can be used. The probability information of N-excess coefficient information can be set by using the probability information of N-excess coefficient information previously encoded / decoded, or the probability information of N-excess coefficient information that is encoded / decoded for the first time in sub-block units can be used as is. The sub-block information can be the probability information of M neighboring encoded / decoded sub-blocks, or the probability information of the sub-block previously encoded / decoded.

[0179] Figures 16a to 16c are diagrams showing various embodiments of dividing a transform block in the frequency domain into a plurality of regions. Referring to Figures 16a to 16c, the transform block can be divided into three regions: frequency A region 1601, 1604, 1607, frequency B region 1602, 1605, 1608, and frequency C region 1603, 1606, 1609. Each region can be adaptively determined along the scan direction of the transform block, and Figure 16a shows an example of a frequency domain division method when the scan direction of the transform block is diagonal, Figure 16b shows an example when the scan direction is horizontal, and Figure 16c shows an example when the scan direction is vertical. The frequency A regions 1601, 1604, and 1607 are low frequency regions where the probability of non-zero coefficient information occurring is the highest, the frequency B regions 1602, 1605, and 1608 are less likely to have non-zero coefficient information than the A regions 1601, 1604, and 1607, and the frequency C regions 1603, 1606, and 1609 are high frequency regions where the probability of non-zero coefficient information occurring is the lowest than the A regions 1601, 1604, and 1607 and the B regions 1602, 1605, and 1608. Using this fact, it is possible to set different probability information for each region. The frequency A regions 1601, 1604, and 1607, the frequency B regions 1602, 1605, and 1608, and the frequency C regions 1603, 1606, and 1609 can also be considered as being divided according to the distance from a DC coefficient located at the upper left corner of the transform block.

[0180] Referring again to the probability information table of FIG. 15b, if the coefficient to be currently coded or decoded belongs to the A region 1601, 1604, 1607, the current coefficient is assigned index 8, the probability of symbol 1 is 61%, and the probability of symbol 0 is 39%. If the current coefficient belongs to the B region 1602, 1605, 1608, the current coefficient is assigned index 5, the probability of symbol 1 is 71%, and the probability of symbol 0 is 29%. If the current coefficient belongs to the C region 1603, 1606, 1609, the current coefficient is assigned index 2, the probability of symbol 1 is 87%, and the probability of symbol 0 is 13%. After the current coefficient is coded or decoded using the probability information table shown in FIG. 15b, the probability information can be updated as shown in FIG. 15c.

[0181] The probability information of the non-zero coefficient information, the N-excess coefficient information, and the sub-block information may be probability information having a higher occurrence probability as it approaches the A region 1601, 1604, 1607, and the probability information of the N-excess coefficient information may be selected by referring to the coefficient information that is not 0. The frequency domain division may be performed under the same conditions in the encoding / decoding device, or may be performed by encoding separate division information and transmitting it to the decoding device.

[0182] FIG 17 is a flow chart showing an arithmetic coding method according to an embodiment of the present invention. Referring to FIG 17, the value of a transform coefficient to be coded is binarized to generate binarized information (S1701). Probability information to be applied to coding of the binarized information is determined based on the position of the transform coefficient in a transform block (S1703). Referring to the example shown in FIG 16a, the probability information to be applied is determined depending on which of the frequency A domain 1601, the frequency B domain 1602, and the frequency C domain 1603 the current coefficient to be coded belongs to. Here, the frequency A domain 1601, the frequency B domain 1602, and the frequency C domain 1603 can be considered to be divided according to the distance from a DC coefficient located in the upper left corner of the transform block.

[0183] Figure 18 is a flow chart showing an arithmetic decoding method according to an embodiment of the present invention. Referring to Figure 18, the value of an arithmetically coded transform coefficient is extracted from a bitstream (S1801). Based on the position of the transform coefficient in a transform block, probability information to be applied to the decoding of the arithmetically coded transform coefficient is determined (S1803). As described above, referring to the example shown in Figure 16a, the probability information to be applied is determined depending on which region of the frequency A region 1601, the frequency B region 1602, or the frequency C region 1603 the current coefficient to be decoded belongs to. Here, the frequency A region 1601, the frequency B region 1602, and the frequency C region 1603 can be considered to be divided according to the distance from a DC coefficient located in the upper left corner of the transform block.

[0184] Next, arithmetic encoding and arithmetic decoding according to another embodiment of the present invention will be described with reference to Figs. 19a to 19c and 20.

[0185] In this embodiment, when the method of encoding quantized transform coefficients using the skip region shown in Figures 7 to 9 is used, different probability information is used when encoding or decoding current information depending on whether the skip region is used or not.

[0186] Assume that the probability information table shown in Figure 19b or Figure 19c is used for encoding or decoding the current coefficient 1901 shown in Figure 19a. The probability information table shown in Figure 19b is a probability information table applied when the skip region is not used, and the probability information table shown in Figure 19c is a probability information table applied when the skip region is used.

[0187] Referring to Figure 19a, since a skip region exists in the transform block or sub-block to which the current coefficient 1901 belongs, the probability information table shown in Figure 19c is applied for encoding or decoding the current coefficient 1901. Thus, for example, the current coefficient 1901 is assigned index 5. In this case, the probability of symbol 1 is 71%, and the probability of symbol 0 is 29%.

[0188] Alternatively, different probability information may be applied depending on the number of N-excess coefficients in the surrounding coefficients. The non-zero coefficient information and N-excess coefficient information may use probability information with a high occurrence probability based on the number of information encoded / decoded in the vicinity and the position in the frequency domain, and in the case of a coefficient located in the vicinity of the skip region in the frequency C domain, non-zero coefficient information, N-excess coefficient information, and sub-block information with a low occurrence probability may be applied.

[0189] 20 is a flow chart showing an arithmetic encoding or decoding method according to another embodiment of the present invention. As described above with reference to FIG. 19a to FIG. 19c, different probability information is used when encoding or decoding current information depending on whether the skip region is used or not.

[0190] Referring to FIG. 20, first, the position of a base coefficient in a current transform block to be coded or decoded is coded or decoded (S2001). Then, skip region information for a skip region selected based on the position of the base coefficient is coded or decoded (S2003). When the values ​​of the transform coefficients not included in the skip region are binarized to obtain binarized information, a probability information table to be applied to coding of the binarized information is selected from a plurality of probability information tables (S2005). Here, the plurality of probability information tables include at least two tables, a table for when the skip region is used and a table for when the skip region is not used.

[0191] The coded information undergoes a binarization process and then a context-adaptive binary arithmetic process. The context-adaptive binary arithmetic process refers to a process of symbolizing coded information in a block, and encoding the information by varying the probability of occurrence of the symbol using probability information according to the situation. In this example, for convenience of explanation, only symbols 0 and 1 are used, but the number of symbols may be N (N is a natural number equal to or greater than 2).

[0192] Probability information refers to the occurrence probability of 0 and 1 in the binarized information. The occurrence probability of both pieces of information may be the same or different depending on the previously restored information. It is also possible to have N pieces of probability information depending on the information.

[0193] FIG. 21 is a flow chart showing a context adaptive binary arithmetic coding method. First, probability initialization is performed (S2101). Probability initialization is a process of dividing binarized information into probability intervals by probabilities set in the probability information. However, which probability information is used may be determined by using the same conditions according to a predetermined rule in an encoding device or a decoding device, or the probability information may be coded separately. The initial probability interval may be determined to be the same in the encoding / decoding process according to a predetermined rule. Alternatively, the initial probability interval may be newly coded and used.

[0194] When binary information of the current coding parameters to be coded is determined (S2102), the binarized information of the current coding parameters is coded (S2103) using the probability interval state up to the previous step of step S2102 of Figure 21 and previous probability information of the same coding parameters. Then, the probability information and probability interval can be updated (S2104) for the binary information to be coded subsequently. If coding parameter information to be coded next exists (S2105), the process moves to the next coding parameter information (S2106) and the above-mentioned process is repeated. If there is no next encoding parameter information to be encoded, the flow chart ends.

[0195] Figure 22 is a flow chart showing a context adaptive binary arithmetic decoding method. Unlike the encoding device, the decoding device decodes binary information of the encoding parameters using probability information and probability intervals (S2202), and then determines binary information of the current encoding parameter (S2203). The other decoding methods in Figure 22 correspond to the encoding method in Figure 21, so detailed description will be omitted.

[0196] In steps S2103 and S2202 of Figures 21 and 22 described above, encoding or decoding can be performed by selectively using optimal probability information among a predetermined N number of probability information using information (or coding parameters) already reconstructed around each coding parameter.

[0197] For example, probability information of information (or coding parameters) belonging to a quantized transform block may use probability information that has a high probability of occurrence of information depending on the size of the transform block.

[0198] Alternatively, the probability information can be applied differently depending on the information of the neighboring coefficients of the coefficient currently being encoded or decoded, and the probability information of the information currently being encoded or decoded can be selected using the probability information of previously encoded or decoded information.

[0199] 23a and 23b are diagrams showing an example in which probability information is applied differently depending on information on peripheral coefficients.

[0200] FIG. 23a is an example of a probability information table for using the Sig_coeff_flag information value of the current coefficient for encoding or decoding. If the number of coefficients adjacent to the coefficient to be currently encoded or decoded that have the same information value as the Sig_coeff_flag information value of the current coefficient is one, the current coefficient is assigned index 8. In this case, the probability of symbol 1 being the Sig_coeff_flag2 value information of the current coefficient is 61%, and the probability of symbol 0 is 39%. If the number of neighboring coefficients that have the same information value as the Sig_coeff_flag information value of the current coefficient is two, the current coefficient is assigned index 5, and in this case, the probability of symbol 1 being the Sig_coeff_flag2 value information of the current coefficient is 71%, and the probability of symbol 0 is 29%. If the number of surrounding coefficients having the same information value as the Sig_coeff_flag information value of the current coefficient is 3, the current coefficient is assigned index 2, and the probability that the Sig_coeff_flag2 value information of the current coefficient is symbol 1 is 87%, and the probability of symbol 0 is 13%.

[0201] After the current coefficient is coded or decoded using the probability information table shown in FIG. 23a, the probability information can be updated as shown in FIG. 23b.

[0202] On the other hand, in the case of non-zero coefficient information Sig_coeff_flag, probability information that indicates a higher occurrence probability of non-zero coefficient information Sig_coeff_flag closer to the low-frequency region can be used.

[0203] In addition, the probability information of the N-excess coefficient information may be set by using the probability information of the N-excess coefficient information previously encoded / decoded, or the probability information of the N-excess coefficient information that is encoded / decoded for the first time in sub-block units may be used as is. As described above, the N-excess coefficient information may include Abs_greater 1_flag, Abs_greater 2_flag, and Abs_greater 3_flag.

[0204] The sub-block information Coded_sub_blk_flag may use probability information of M surrounding coded / decoded sub-blocks, or may use probability information of the sub-block coded / decoded immediately before.

[0205] Third embodiment

[0206] 24 is a flow chart showing a method for determining probability information of each coding parameter based on the position of a reference coefficient and encoding information of each coding parameter using the probability information according to an embodiment of the present invention. The flow chart of FIG. 24 can be executed by the entropy encoding unit 107 of the image encoding device 100.

[0207] 24, first, the entropy coding unit 107 codes the positions of base coefficients in a current transform block to be coded (S2401). Here, the positions of the base coefficients can be coded into base coefficient position information Last_sig.

[0208] As mentioned above, the reference coefficient may mean the first non-zero coefficient when scanning coefficients in reverse scan order, but it may also be determined based on other conditions that are set identically in the image encoding device 100 and the image decoding device 200.

[0209] Then, probability information of each coding parameter is derived based on the position of the reference coefficient, and the coding parameter is coded (S2402).

[0210] Here, the method of setting the probability table based on the position of the reference coefficient is illustrated in FIG.

[0211] 25, area A 2500 refers to an arbitrary area close to a DC coefficient in a transform block, and area B 2501 refers to an area in the transform block that is not area A 2500. It is also possible to divide a transform block into N or more areas. Here, arbitrary area information indicating area A may be transmitted from an upper header, or may be determined under the same conditions in image encoding device 100 and image decoding device 200 according to the form of the transform block.

[0212] In FIG. 25, depending on whether the position of the reference coefficient is in area A 2500 or area B 2501, the probability information of the coding parameters can be derived differently within a single probability table, and the probability information of the coding parameters can be updated.

[0213] Alternatively, depending on whether the position of the reference coefficient is in region A or region B, the probability information of the coding parameters can be updated using two or more different initial probability tables, or the same initial probability tables, independently.

[0214] A detailed example of the above method will now be described.

[0215] When encoding using two identical initial probability tables independently to derive probability information of Sig_coeff_flag information indicating whether each coefficient in a transform block is 0 or not, when the reference coefficient of the transform block is in region A 2500, the probability information of Sig_coeff_flag information can be updated independently using table 2600 of Figure 26a, and when it is in region B 2501, the probability information of Sig_coeff_flag information can be updated independently using table 2601 of Figure 26a.

[0216] The probability table 2602 in Figure 26b is the result of updating the probability information in the initial probability table 2600 in Figure 26a after the index information of the probability table based on the position of the reference coefficient has been determined to be 5, and the probability table 2603 in Figure 26b is the result of updating the probability information in the initial probability table 2601 in Figure 26a after the index information of the probability table based on the position of the reference coefficient has been determined to be 8.

[0217] Using the same principle as in the above example, the probability information of the Abs_greater1_flag information, which indicates whether the absolute value of a coefficient in a transform block is greater than 1, can be coded by selecting probability information with a high probability that the Abs_greater1_flag information is 1 when the reference coefficient is in area A, and by selecting probability information with a high probability that the Abs_greater1_flag information is 0 when the reference coefficient is in area B.

[0218] On the other hand, the method of determining index information indicating which probability is to be used in the probability table can determine the index information according to the detailed coordinates of the reference coefficients.

[0219] For example, when the detailed coordinates of the base coefficient in the transform block are located at the upper left corner of area A (2502 in FIG. 25), the index information of the probability table according to the position of the base coefficient in the initial probability table 2600 in FIG. 26a can be determined to be 5. The probability information of the index information 5 can be updated as in the probability table 2602 in FIG. 26b.

[0220] When the detailed coordinates of a base coefficient in a transform block are located in the middle of region B (2503 in FIG. 25), index information of the probability table according to the position of the base coefficient in the initial probability table 2601 in FIG. 26a can be determined to be 8. Then, the probability information of index information 8 can be updated as in the probability table 2603 in FIG. 26b. FIG. 27 is a flow chart showing a method of determining probability information of each coding parameter according to the position of a base coefficient and decoding information of each coding parameter using the probability information according to an embodiment of the present invention. The decoding method of FIG. 27 can be performed by the entropy decoding unit 201 of the image decoding device 200.

[0221] Referring to FIG 27, first, the entropy decoding unit 201 decodes the position of a base coefficient in a current transform block to be decoded (S2701). As described above, the base coefficient is the first non-zero coefficient when scanning coefficients in the reverse scan order. Then, probability information of each coding parameter is derived based on the position of the base coefficient, and the parameter information is decoded (S2702).

[0222] (Fourth embodiment)

[0223] 28 is a flow chart showing a method for deriving and encoding probability information of each encoding parameter based on partial information of DC coefficients according to an embodiment of the present invention. The encoding method of FIG. 28 can be performed by the entropy encoding unit 107 of the image encoding device 100.

[0224] Referring to FIG. 28, partial information of a DC coefficient is coded (S2801), and probability information of each coding parameter is derived based on the partial information of the DC, and the parameter information can be coded (S2802).

[0225] Here, the DC coefficient may be the upper leftmost coefficient of the transform block, or the last non-zero coefficient (coefficient that is not 0) in the reverse scan order.

[0226] Here, the partial information of the DC coefficient means a part of partial information required for encoding and decoding the DC coefficient. For example, the partial information of the DC coefficient may mean at least one of Sig_coeff_flag information and Abs_greater1_flag information of the DC coefficient.

[0227] Based on the partial information of the DC coefficient, the probability information of the coding parameters excluding the partial information of the DC coefficient can be derived differently within a single probability table, and the probability information of the coding parameters can be updated.

[0228] Alternatively, the probability information of the coding parameters can be updated by independently using two or more different initial probability tables or the same initial probability tables based on partial information of the DC coefficients.

[0229] A detailed example of the above method will now be described.

[0230] In order to derive the probability information of Sig_coeff_flag information indicating whether each coefficient in a transform block is 0 or not, two identical initial probability tables are used independently for coding, and partial information of a DC coefficient can use only Sig_coeff_flag information. When partial information of a DC coefficient is 0, table 2600 in Fig. 26a can be used to independently update the probability information of Sig_coeff_flag information, and when partial information of DC is 1, table 2601 in Fig. 26a can be used to independently update the probability information of Sig_coeff_flag information.

[0231] Using the same principle as the above example, the probability information of the Abs_greater1_flag information, which indicates whether the absolute value of a coefficient in a transform block is greater than 1, can be coded by selecting probability information that has a high probability that the Abs_greater1_flag information is 1 when Sig_coeff_flag, which is partial information of the DC coefficient, is 1, and by selecting probability information that has a high probability that the Abs_greater1_flag information is 0 when Sig_coeff_flag, which is partial information of the DC coefficient, is 0.

[0232] As a method for determining index information indicating which probability is to be used in the probability table, the index information can be determined based on partial information of the DC coefficient.

[0233] For example, when the Sig_coeff_flag information of the coefficient to be currently coded is 1, the index information of the initial probability table 2600 in Fig. 26a can be determined to be 5. Then, the probability information of the index information 5 can be updated as in the probability table 2602 in Fig. 26b.

[0234] When the Sig_coeff_flag information of the coefficient to be currently coded is 0, the index information of the initial probability table 2601 in Fig. 26a can be determined to be 8. Then, the probability information of the index information 8 can be updated as in the probability table 2603 in Fig. 26b.

[0235] FIG. 29 is a flow chart showing a method for encoding transform block coefficients using partial information of DC coefficients.

[0236] After coding the base coefficient information (S2901), partial information of the DC coefficient is coded (S2902). At this time, if the position of the DC coefficient has already been set in the coding / decoding device, the process of coding the position of the DC coefficient can be omitted. Otherwise, the position of the DC coefficient is coded (S2903). If a base coefficient is included in a subblock in a transform block, it means that a coefficient to be coded is included, so the subblock information Coded_sub_blk_flag is not coded. After that, coding is performed in the order of non-zero coefficient information coding (S2906), N excess coefficient information coding (S2907), code information coding (S2908), and residual coefficient information coding (S2909). However, since the partial information of the DC coefficient has already been coded, the steps from (S2906) to (S2909) used for the partial information of the DC coefficient when coding the DC coefficient can be omitted.

[0237] Then, if a next sub-block exists (S2911), the algorithm moves to the next sub-block (S2912) and encodes the information in the order from (S2906) to (S2909). If a next sub-block does not exist, the algorithm ends.

[0238] 30 is a flow chart showing a method for deriving and decoding probability information of each coding parameter based on partial information of a DC coefficient according to an embodiment of the present invention. The decoding method of FIG. 30 can be performed by the entropy decoding unit 201 of the image decoding device 200.

[0239] Referring to FIG. 30, first, the entropy decoding unit 201 decodes partial information of the DC coefficient (S3001), and then derives probability information of each coding parameter based on the partial information of the DC coefficient, and decodes the parameter information (S3002).

[0240] FIG. 31 is a flow chart showing a method for decoding transform block coefficients using partial information of DC coefficients.

[0241] After the base coefficient information is decoded (S3101), partial information of the DC coefficient is decoded (S3102). At this time, if the position of the DC coefficient has already been set in the encoding / decoding device, the process of decoding the position of the DC coefficient can be omitted. Otherwise, the position of the DC coefficient is decoded (S3103). If the base coefficient is included in a sub-block in the transform block, it means that the coefficient to be decoded is included, so the sub-block information Coded_sub_blk_flag is not decoded. Thereafter, the decoding is performed in the order of non-zero coefficient information decoding (S3106), N-excess coefficient information decoding (S3107), code information decoding (S3108), and residual coefficient information decoding (S3109). However, since the partial information of the DC coefficient has already been decoded, the steps used for the DC coefficient partial information when decoding the DC coefficient from (S3106) to (S3109) can be omitted.

[0242] Then, if a next subblock exists (S3111), move to the next subblock (S3112) and decode the information in the order from (S3106) to (S3109), and if a next subblock does not exist, end the algorithm.

[0243] Fifth embodiment

[0244] 32 is a flow chart showing a method for deriving and encoding probability information of each encoding parameter based on the distance between the DC coefficient and the reference coefficient and partial information of the DC coefficient according to an embodiment of the present invention. The encoding method of FIG. 32 can be performed by the entropy encoding unit 107 of the image encoding device 100.

[0245] 32, the entropy coding unit 107 codes the position of a base coefficient of a current transform block (S3201). As described above, the base coefficient may mean the first non-zero coefficient when scanning coefficients in a reverse scan order, but may also be determined according to other conditions that are set the same in the image coding device 100 and the image decoding device 200. After coding partial information of the DC coefficient, probability information of a coding parameter is derived based on the distance between the DC coefficient and the base coefficient and the partial information of the DC coefficient, and the parameter information is coded (S3202).

[0246] Here, the DC coefficient may be the upper leftmost coefficient of the transform block, or the last non-zero coefficient (coefficient that is not 0) in the reverse scan order.

[0247] Here, the partial information of the DC coefficient means a part of partial information required for encoding and decoding the DC coefficient. For example, the partial information of the DC coefficient may mean at least one of Sig_coeff_flag information and Abs_greater1_flag information of the DC coefficient.

[0248] Based on the distance between the DC coefficient and the reference coefficient and the partial information of the DC coefficient, the probability information of the coding parameters excluding the partial information of the DC coefficient can be derived differently within a single probability table, and the probability information of the coding parameters can be updated.

[0249] Alternatively, the probability information of the coding parameters can be updated by independently using two or more different initial probability tables or the same initial probability tables based on the distance between the DC coefficient and the reference coefficient and the partial information of the DC coefficient.

[0250] Here, the method of determining distance information between the DC coefficient and the reference coefficient can be the same as that of the encoding / decoding device according to a predetermined rule, or the distance information can be encoded.

[0251] A detailed example of the above method will now be described.

[0252] In order to induce the probability information of Sig_coeff_flag information indicating whether each coefficient in the transform block is 0 or not, the coding is performed using three mutually identical initial probability tables independently, and the partial information of the DC coefficient can use only Sig_coeff_flag information. If the distance information between the DC coefficient and the reference coefficient is greater than a predetermined arbitrary threshold, the table 3300 in FIG. 33 is used, and if the distance information between the DC coefficient and the reference coefficient is smaller than a predetermined arbitrary threshold, the table 3301 or 3302 in FIG. 33 is used. Here, the predetermined arbitrary threshold may be a value already set in the coding / decoding device, or a value based on information determined by the coding device and transmitted to the decoding device. In this case, which of the table 3301 or 3302 is to be used can be determined based on the partial information of the DC coefficient. For example, if the Sig_coeff_flag information, which is the partial information of the DC coefficient, is 1, the table 3301 in FIG. 33 can be used, and if it is 0, the table 3302 in FIG. 33 can be used to determine the probability information.

[0253] Meanwhile, a method for determining index information indicating which probability to use in the probability table can determine index information based on distance information between a DC coefficient and a reference coefficient, and then correct the determined index information based on partial information of the DC coefficient.

[0254] 34 is a flow chart showing a method for deriving and decoding probability information of each coding parameter based on the distance between a DC coefficient and a reference coefficient and partial information of the DC coefficient according to an embodiment of the present invention. The decoding method of FIG. 34 can be performed by the entropy decoding unit 201 of the image decoding device 200.

[0255] 34, the entropy decoding unit 201 decodes the position of a base coefficient of a current transform block and partial information of a DC coefficient (S3401). As described above, the base coefficient may mean the first non-zero coefficient when scanning coefficients in a reverse scan order, but may also be determined according to other conditions that are set the same in the image encoding device 100 and the image decoding device 200. In addition, probability information of an encoding parameter is derived based on the distance between the DC coefficient and the base coefficient and the partial information of the DC coefficient, and the parameter information is decoded (S3402).

[0256] The encoding / decoding algorithms in the image encoding device 100 and the image decoding device 200 may be the same as those shown in FIGS.

[0257] Although the exemplary method of the present disclosure is expressed as a series of operations for clarity of explanation, this is not intended to limit the order in which the steps are performed, and each step may be performed simultaneously or in a different order as needed. To realize the method according to the present disclosure, the steps illustrated may include other steps, or some steps may be omitted but the remaining steps may be included, or some steps may be omitted but still other steps may be included.

[0258] The various embodiments of the present disclosure are not intended to list all possible combinations, but are intended to describe representative aspects of the present disclosure, and the matters described in the various embodiments may be applied independently or in combination of two or more.

[0259] Additionally, various embodiments of the present disclosure may be realized by hardware, firmware, software, or a combination thereof, etc. In the case of a hardware implementation, the implementation may be realized by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general processors, controllers, microcontrollers, microprocessors, etc.

[0260] The scope of the present disclosure includes software or machine-executable instructions (e.g., operating systems, applications, firmware, programs, etc.) that cause operations according to the methods of the various embodiments to be performed on a device or computer, as well as non-transitory computer-readable medium on which such software or instructions or the like may be stored and executed on a device or computer. [Industrial Applicability]

[0261] The present invention can be used in devices for encoding / decoding images.

Claims

1. 1. A method for decoding an image, the method comprising the steps of: receiving a bitstream including coefficient information of a current transform block, the coefficient information including absolute value information, the absolute value information indicating whether an absolute value of a current transform coefficient in the current transform block is greater than 3; entropy decoding the magnitude information of the current transform coefficient from the bitstream; The step of entropy decoding the absolute value information of the current transform coefficient includes: determining probability information of the absolute value information of the current transform coefficient according to significant coefficient flag information of an adjacent transform coefficient of the current transform coefficient, the significant coefficient flag information indicating whether the adjacent transform coefficient is non-zero; decoding the absolute value information of the current transform coefficient based on the probability information; 13. A method for decoding an image, comprising:

2. the adjacent transform coefficients include coefficients with coordinates (x+2, y), (x+1, y+1) and (x, y+2); 2. The method of claim 1, wherein x and y represent the coordinates of the current transform coefficient.

3. 3. The method of claim 2, wherein the maximum number of neighboring transform coefficients available for determining the probability information of the magnitude information of the current transform coefficient is five.

4. The method comprises: determining a region to which the current transform coefficient belongs among a plurality of regions in the current transform block; 4. The method of claim 3, wherein the probability information of the absolute value information is determined by further considering the location of the region to which the current transform coefficient belongs.

5. The method of claim 4 , wherein the current transform block is divided into the plurality of regions according to distances from an upper left corner coefficient in the current transform block.

6. The method comprises: The method further comprises the step of decoding position information of the reference coefficients of the current transform block from the bitstream; 6. The method of claim 5, wherein the probability information of the absolute value information is determined by further considering the position information of the reference coefficients.

7. 1. A method for encoding an image, the method comprising the steps of: obtaining coefficient information of a current transform block, the coefficient information including absolute value information, the absolute value information indicating whether an absolute value of a current transform coefficient in the current transform block is greater than 3; generating a bitstream by encoding the coefficient information of the current transform block; Equipped with The step of encoding the coefficient information comprises the step of entropy encoding the absolute value information of the current transform coefficient; The step of entropy coding the absolute value information of the current transform coefficient includes: determining probability information of the absolute value information of the current transform coefficient according to significant coefficient flag information of an adjacent transform coefficient of the current transform coefficient, the significant coefficient flag information indicating whether the adjacent transform coefficient is non-zero; encoding the absolute value information of the current transform coefficient based on the probability information; 13. A method for encoding an image, comprising:

8. 1. A method for transmitting a bitstream generated by an encoding method, the encoding method comprising: obtaining coefficient information of a current transform block, the coefficient information including absolute value information, the absolute value information indicating whether an absolute value of a current transform coefficient in the current transform block is greater than 3; generating the bitstream by encoding the coefficient information of the current transform block; Equipped with The step of encoding the coefficient information comprises the step of entropy encoding the absolute value information of the current transform coefficient; The step of entropy coding the absolute value information of the current transform coefficient includes: determining probability information of the absolute value information of the current transform coefficient according to significant coefficient flag information of an adjacent transform coefficient of the current transform coefficient, the significant coefficient flag information indicating whether the adjacent transform coefficient is non-zero; encoding the absolute value information of the current transform coefficient based on the probability information; 13. An encoding method comprising:

Citation Information

Patent Citations

  • Object data processor, object data recording device, data storage medium and data transmission structure

    JP1998304353A

  • Coding of conversion factors for video coding

    JP2014527358A

  • Coefficient level coding

    US20130188698A1

  • Arithmetic decoding device, arithmetic coding device, image decoding device and image coding device

    WO2013190990A1