Method and apparatus for adaptive quantization parameter encoding and decoding based on quad-tree structure
Adaptive quantization and inverse quantization parameter encoding/decoding using context information from surrounding blocks in a quad-tree structure addresses bit rate control and image quality issues in video encoding/decoding, enhancing precision and quality.
Patent Information
- Application Number
- JP2024097566
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2011-06-21
- Filing Date
- 2024-06-17
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2032-06-20
AI Technical Summary
Existing video encoding/decoding technologies face challenges in effectively controlling bit rates and maintaining subjective image quality when large LCUs are allocated, as they rely on a single quantization parameter value for each LCU, leading to inconsistencies and quality deterioration.
Adaptive quantization and inverse quantization parameter encoding/decoding methods are employed using context information from surrounding blocks, allowing for finer bit amount adjustments through a quad-tree structure, predicting quantization parameter values at various levels.
This approach enables more precise bit rate control and improves subjective image quality by adaptively determining prediction directions based on context information, reducing inconsistencies among neighboring blocks.
Smart Images

Figure 2024116377000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to a video encoding / decoding apparatus and method, and more particularly to a video encoding / decoding method and apparatus that displays blocks having quantization / dequantization differential values based on a quad tree structure for a coding unit (CU) in a largest coding unit (LCU), and adaptively predicts / decodes quantization / dequantization parameter values using context information of blocks neighboring the block to be encoded / decoded.
[0002] HEVC encodes / decodes input video in units of coding units (CUs). The largest CU in a frame is called the Largest Coding Unit (LCU), and such an LCU can be divided into multiple CUs based on quadtree partitioning information before encoding / decoding. The quantization parameter value of HEVC is assigned one value per LCU, and the quantization parameter value of the LCU to be currently encoded is predicted by the previous LCU based on the raster scan order. [Background technology]
[0003] In H.264 / AVC, encoding / decoding is performed in units of macroblocks, and quantization / dequantization values are assigned in units of macroblocks. The quantization parameter value assigned in units of macroblocks is predicted from the quantization parameter value of the macroblock located to the left in the frame. Encoding is performed by recording a corresponding value in the macroblock to be encoded for the difference value generated after the prediction process of the quantization parameter value. The decoder decodes the quantization parameter value by adding the quantization parameter difference value decoded in the entropy decoding step and the quantization parameter value of the macroblock located to the left.
[0004] However, when an LCU that is relatively large compared to the size of an input image is assigned, it is not possible to effectively control the bit rate using the quantization parameter value recorded in the LCU unit. Also, when a quantization parameter value is assigned in the CU unit, a problem occurs in that the subjective image quality is deteriorated due to the difference in the quantization parameter value with the neighboring CU. Therefore, it is necessary to assign a quantization parameter value to various block sizes from a CU to an LCU unit according to an input image, and to optimize the prediction direction of the quantization parameter using context information of blocks located in the vicinity of the block to be encoded. Summary of the Invention [Problem to be solved by the invention]
[0005] The present invention provides a method and apparatus for encoding / decoding quantization / dequantization parameter values based on various quad tree structures based on CU partition information. The quantization / dequantization parameter encoding / decoding method and apparatus also provides a method and apparatus for predicting quantization / dequantization parameter values in an effective direction using context information of neighboring blocks.
[0006] The problems to be solved by the present invention are not limited to the above-mentioned technical problems, and other technical problems not described will be clearly understood by those skilled in the art from the following description. [Means for solving the problem]
[0007] To solve the above problem, an image encoding device according to an embodiment of the present invention includes a quantization differential value recording block unit determination unit that determines a block unit in which a quantization parameter differential value is recorded when an LCU in an image is divided into multiple CUs in a quad tree form or is encoded into a single CU, a quantization unit that performs quantization using a quantization value assigned to each block unit, a quantization prediction block determination unit that adaptively determines a prediction block using context information of neighboring blocks to predict a quantization value used in a block to be encoded, a quantization parameter differential value generation unit that generates a quantization differential value of a block to be encoded using a quantization parameter of the prediction block obtained based on the context information, and a quantization parameter recording unit that records division information for the quantization differential value recording block unit and the quantization parameter differential value in the corresponding block.
[0008] To solve the above problem, a video decoding apparatus according to an embodiment of the present invention includes an inverse quantization parameter difference value block division flag derivation unit that decodes information for a block having an inverse quantization parameter difference value in an LCU unit, an inverse quantization parameter difference value recording block unit determination unit that determines a block unit in which an inverse quantization differential value is recorded within an LCU using a decoded inverse quantization parameter difference value block division flag, an inverse quantization parameter difference value derivation unit that decodes an inverse quantization parameter difference value according to the inverse quantization parameter difference value block division flag, an inverse quantization parameter value prediction block determination unit that determines a block used in prediction to decode an inverse quantization parameter value of a block to be decoded using context information of neighboring blocks, an inverse quantization parameter value derivation unit that decodes an inverse quantization parameter value used in the inverse quantization process, and an inverse quantization unit that performs inverse quantization using the decoded inverse quantization parameter value. Effect of the Invention
[0009] The adaptive quantization / dequantization parameter encoding and decoding method and apparatus based on a quad tree structure according to an embodiment of the present invention allows for the allocation of quantization parameter difference values to various levels when a block is divided into a quad tree structure. The allocation of quantization parameter difference values of various levels allows for finer bit amount adjustment than the allocation of a single quantization parameter value in LCU units. In addition, when predicting / decoding quantization / dequantization parameter values in units of blocks, a zigzag scan method based on a quad tree structure as well as a prediction direction adaptively determined using context information of surrounding blocks can be used to solve the problem of subjective image quality degradation that may occur due to a large difference in quantization value with surrounding blocks. [Brief description of the drawings]
[0010] [Figure 1a] As a first embodiment of the present invention, a method and apparatus for adaptively assigning quantization parameter values to blocks having a quadtree structure in a video encoding device and encoding the blocks will be described. [Figure 1b] As a first embodiment of the present invention, a method and apparatus for adaptive inverse quantization parameter decoding based on a quadtree structure in a video decoding device will be described. [Diagram 2] The configuration of a video decoding device according to a first embodiment of the present invention is shown. [Diagram 3] 1 shows a context for quantization difference value control based on a quadtree structure recorded in a sequence parameter set according to a first embodiment of the present invention. [Figure 4a] 4 shows variables that are set to initial values in slice data according to the first embodiment of the present invention. [Figure 4b] 4 shows variables that are set to initial values in slice data according to the first embodiment of the present invention. [Diagram 5] 13 illustrates a quantization / dequantization parameter difference value recorded in units of a CU according to a first embodiment of the present invention, and a context of a condition in which the corresponding difference value exists. [Figure 6a]4 illustrates the operation of a quantization difference value recording block unit determination unit and an inverse quantization difference value recording block unit determination unit according to an embodiment of the present invention. [Figure 6b] 4 illustrates the operation of a quantization difference value recording block unit determination unit and an inverse quantization difference value recording block unit determination unit according to an embodiment of the present invention. [Figure 6c] 4 illustrates the operation of a quantization difference value recording block unit determination unit and an inverse quantization difference value recording block unit determination unit according to an embodiment of the present invention. [Figure 7a] 1 shows a quantization parameter value prediction block determination unit and an inverse quantization parameter value prediction block determination unit according to a first embodiment of the present invention. [Figure 7b] 1 shows a quantization parameter value prediction block determination unit and an inverse quantization parameter value prediction block determination unit according to a first embodiment of the present invention. [Figure 8a] 13 shows a quantization parameter value prediction block determination unit and an inverse quantization parameter value prediction block determination unit according to a second embodiment of the present invention. [Figure 8b] 13 shows a quantization parameter value prediction block determination unit and an inverse quantization parameter value prediction block determination unit according to a second embodiment of the present invention. [Figure 9a] 13 shows a quantization parameter value prediction block determination unit and an inverse quantization parameter value prediction block determination unit according to a third embodiment of the present invention. [Figure 9b] 13 shows a quantization parameter value prediction block determination unit and an inverse quantization parameter value prediction block determination unit according to a third embodiment of the present invention. [Figure 10a] 13 shows a quantization parameter value prediction block determination unit 102 and an inverse quantization parameter value prediction block determination unit 123 according to a fourth embodiment of the present invention. [Figure 10b] 13 shows a quantization parameter value prediction block determination unit 102 and an inverse quantization parameter value prediction block determination unit 123 according to a fourth embodiment of the present invention. [Figure 11a] 13 shows a quantization parameter value prediction block determination unit and an inverse quantization parameter value prediction block determination unit according to a fifth embodiment of the present invention. [Figure 11b]13 shows a quantization parameter value prediction block determination unit and an inverse quantization parameter value prediction block determination unit according to a fifth embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Hereinafter, an apparatus for encoding and decoding adaptive quantization / dequantization parameters based on a quadtree structure according to an embodiment of the present invention will be described with reference to the accompanying drawings.
[0012] FIG. 1a shows a method and apparatus for adaptively assigning quantization parameter values to a block having a quadtree structure in a video encoding device and encoding the block, according to a first embodiment of the present invention.
[0013] Referring to FIG. 1a, the adaptive quantization parameter encoding method and apparatus based on a quad tree structure includes a quantization difference value recording block unit determination unit 100, a quantization unit 101, a quantization parameter value prediction block determination unit 102, a quantization parameter difference value generation unit 103, and a quantization parameter recording unit 104.
[0014] The quantization difference value recording block unit determination unit 100 determines a block unit so that the quantization difference value can be recorded for each CU unit or a bundle of CUs based on CU division information of a corresponding LCU in an LCU unit in an image. Information on the block in which the quantization difference value is recorded can be configured in a quad tree structure.
[0015] The quantization unit 101 performs quantization on an input block by using the value of a quantization parameter assigned to the block.
[0016] The quantization parameter value prediction block determination unit 102 determines a prediction block to be used for predicting a quantization value by using context information of CUs located in the vicinity of a corresponding CU in order to effectively encode a quantization value assigned to each CU or an arbitrary CU. The context information includes a block size, a block position, a block prediction mode, etc.
[0017] The quantization parameter difference value generating unit 103 generates a quantization parameter difference value by subtracting the quantization value of the current block from the quantization parameter value of the quantization value prediction block determined by the quantization parameter value prediction block determining unit 102 .
[0018] The quantization parameter recording unit 104 provides a sequence parameter set, flag information applied / not applied to a slice unit, flag information used to indicate partition information of a block including a quantization differential value in an LCU, and a quantization parameter differential value for adaptive quantization parameter encoding based on a quad tree structure.
[0019] FIG. 1b illustrates a method and apparatus for adaptive inverse quantization parameter decoding based on a quadtree structure in a video decoding device as a first embodiment of the present invention.
[0020] Referring to FIG. 1b, the adaptive inverse quantization parameter decoding method and apparatus based on a quad tree structure includes an inverse quantization parameter difference value block division flag derivation unit 120, an inverse quantization difference value recording block unit determination unit 121, an inverse quantization parameter difference value derivation unit 122, an inverse quantization parameter value prediction block determination unit 123, an inverse quantization parameter value derivation unit 124, and an inverse quantization unit 125.
[0021] The inverse quantization parameter difference value block division flag derivation unit 120 decodes a block division flag for a block having an inverse quantization parameter difference value in LCU unit in the sequence parameter set and slice data.
[0022] The inverse quantization differential value recording block unit determination unit 121 determines a block in which the inverse quantization parameter differential value is to be recorded, using the decoded inverse quantization parameter differential value block division flag and the CU division flag. Information on the block in which the quantization differential value is to be recorded is configured in a quad tree structure.
[0023] The inverse quantization parameter difference value derivation unit 122 derives an inverse quantization parameter difference value for each block determined by the inverse quantization difference value recording block unit determination unit 121 .
[0024] The inverse quantization parameter value prediction block determination unit 123 adaptively determines a block to be referenced when performing inverse quantization by using context information of neighboring blocks, where the size of the block, the position of the block, the prediction mode of the block, etc. are used as the context information.
[0025] The inverse quantization parameter value derivation unit 124 derives an inverse quantization parameter value to be used by the inverse quantization unit 125 by adding the inverse quantization parameter value of the predicted block calculated via the inverse quantization parameter value prediction block determination unit 123 and the inverse quantization parameter difference value calculated by the inverse quantization parameter difference value derivation unit 122.
[0026] The inverse quantization unit 125 performs inverse quantization on the input block by using the parameters calculated by the inverse quantization parameter value derivation unit 124 and the like.
[0027] FIG. 2 shows the configuration of a video decoding device according to a first embodiment of the present invention.
[0028] Referring to FIG. 2, the video decoding apparatus includes an entropy decoding unit 200, a quadtree-based inverse quantization parameter derivation unit 210, a reordering unit 220, an inverse quantization unit 230, an inverse discrete cosine transform encoding unit 240, an intra / inter prediction unit 250, and a filtering unit 260.
[0029] The entropy decoding unit 200 includes an inverse quantization parameter difference value block division flag derivation unit 120 that derives a block division flag used for adaptive inverse quantization based on a quad tree structure, an inverse quantization difference value recording block unit determination unit 121 that determines a block in which a quantization parameter is recorded from the derived block division flag, and an inverse quantization parameter difference value derivation unit 122 that decodes the inverse quantization parameter difference value recorded in the corresponding block.
[0030] The quad-tree based inverse quantization parameter derivation unit 210 includes an inverse quantization parameter value prediction block determination unit 123 that determines a prediction block to be referenced when decoding the inverse quantization parameter, and an inverse quantization parameter value derivation unit 124 that calculates an inverse quantization parameter by adding the inverse quantization parameter of the prediction block and the derived inverse quantization parameter difference value, and the corresponding block performs the role of restoring the inverse quantization parameter for a block of a quad-tree structure.
[0031] FIG. 3 shows a context for quantization difference value control based on a quadtree structure recorded in a sequence parameter set according to a first embodiment of the present invention.
[0032] When the value of cu_qp_delta_enabled_flag(300) in the sequence parameter set is 1, it means that the quantization / dequantization parameter difference values can be controlled for various quad tree blocks from the smallest CU to the largest CU in all slices in the sequence.
[0033] FIG. 4a shows variables that are set to initial values in slice data according to a first embodiment of the present invention.
[0034] When a slice is divided into a quad tree structure and encoded / decoded, it is first divided into LCU units, which are the quad trees of the maximum size, and encoding / decoding is performed on the corresponding LCU in the order of the progressive scan method. When encoding / decoding each LCU, the corresponding LCU may be divided into a plurality of CU regions based on the quad tree structure again, and such division may be performed up to the minimum CU size.
[0035] In FIG. 4a, isCuQpDeltaCoded400 is a variable for controlling the quantization / dequantization parameter difference value that can be recorded in each CU when any CU is again divided into N CUs. This value is always initialized to 0 before performing encoding / decoding for each LCU in a slice.
[0036] In Fig. 4a, the coding_tree 401 function is a function that performs encoding / decoding for one LCU in a slice. The fourth factor value of this function is a flag indicating whether a quantization / dequantization parameter difference value exists in the corresponding CU. Since at least one quantization / dequantization parameter difference value is recorded per LCU, this value is always set to 1 before performing encoding / decoding for each LCU in a slice.
[0037] FIG. 4b illustrates a context for inverse quantization parameter difference value block division recorded in a coding tree block according to a first embodiment of the present invention.
[0038] The coding tree block represents a context for a CU. A CU of 2N×2N size is split into four CUs of N×N size by split_coding_unit_flag 420 and then encoded / decoded. Alternatively, the CU is not split into smaller CUs and is encoded / decoded as a CU of the current size of 2N×2N.
[0039] The current CU receives cu_qp_delta_exist_flag 421, which is a flag indicating whether a quantization / dequantization parameter difference value exists in a higher level CU. If the current CU of 2N×2N size is again split into CUs of N×N size according to the split_coding_unit_flag 420 value, split_qp_delta_flag 422 is additionally coded / decoded. Such additional division information is coded / decoded only when the cu_qp_delta_enable_flag 300 value recorded in the sequence parameter set and the cu_qp_delta_exist_flag 421 input from the higher CU are 1. The value of split_qp_delta_flag 422 is coded / decoded only when the current CU of 2N×2N size is split into N×N, and this value is input as the value of cu_qp_delta_exist_flag 421 when coding / decoding a lower CU of N×N size.
[0040] When the value of split_qp_detla_flag 422 is 0, the current CU of 2N×2N is divided into CUs of N×N, but the size of the block for recording the quantization / dequantization parameter difference value is not further divided from 2N×2N to a block of N×N. When the value of split_qp_detla_flag 422 is 0, the value of IsCuQpDeltaCoded 400 is additionally initialized to 0, so that when the current CU is divided into CUs of N×N, the quantization / dequantization parameter difference value is recorded only in the first N×N CU.
[0041] FIG. 5 illustrates quantization / dequantization parameter difference values recorded in units of CUs according to the first embodiment of the present invention and the context of conditions in which the corresponding difference values exist.
[0042] If the CU is not in skip mode, the quantization / dequantization parameter difference value is recorded in the CU. If the values of cu_qp_delta_exist_flag500 and 421 are 1, it means that the quantization / dequantization parameter difference value exists in the current CU, and in this case, the value of cu_qp_delta501 is recorded in units of CU according to the value of cu_qp_delta_enabled_flag300 recorded in the sequence parameter set. For example, if the values of cu_qp_delta_exist_flag500 and 421 are 1, and the value of cu_qp_delta_enabled_flag300 is 0, cu_qp_delta501 is not recorded.
[0043] As another example, when a 2N×2N CU is divided into four N×N CUs in a quad tree structure, only one value may be recorded as the quantization / dequantization parameter difference value. In this case, the quantization / dequantization parameter difference value is recorded in the first CU of the four CUs, and the quantization / dequantization parameter difference value is not recorded in the remaining three CUs. In this case, the value of split_qp_delta_flag422 to be encoded / decoded in the 2N×2N CU is 0, so the value of cu_qp_delta_exist_flag500 input to the N×N CU is 0. Therefore, cu_qp_delta501 does not exist in the four divided N×N CUs, but the cu_qp_delta501 value can be recorded in the first N×N CU by using the IsCuQpDeltaCoded variable. For the remaining three CUs, the first CU changes the IsCuQpDeltaCoded value to 1 after decoding cu_qp_delta 501, and therefore the cu_qp_delta 501 value is not recorded.
[0044] In this case, the value condition of cu_qp_delta_enabled_flag 300 recorded in the sequence parameter set is checked at the same time, and only if the value is 1, the value of cu_qp_delta 501 can be recorded.
[0045] FIG. 6a shows the operations of the quantization difference value recording block unit determination unit 100 and the inverse quantization difference value recording block unit determination unit 121 according to the first embodiment of the present invention.
[0046] A 2Nx2N LCU to be encoded / decoded is divided into four NxN CUs, and each CU is divided again for processing. Even if a 2Nx2N LCU is divided into multiple CUs and encoded / decoded in this way, if the value of split_qp_delta_flag 422 is 0 as shown in Figure 6a, the quantization / dequantization parameter difference value is recorded in the first CU of the LCU. The remaining CUs of the LCU use the quantization / dequantization parameter value restored in the first CU as is.
[0047] FIG. 6b shows the operations of the quantization difference value recording block unit determination unit 100 and the inverse quantization difference value recording block unit determination unit 121 according to the second embodiment of the present invention.
[0048] A 2N×2N LCU to be coded / decoded is split into four CUs in the first step, and the second CU of the CUs is split again. In this case, when a flag for CU splitting is coded / decoded in the first step, split_qp_delta_flag 422 and 630, which are split flags for quantization / dequantization parameter values, are additionally coded / decoded. If the value is 1, it means that all of the four split CUs have quantization / dequantization parameter differential values, so that in this step, split flags split_qp_delta_flag 422 and 631 for quantization / dequantization parameter values are additionally coded / decoded.
[0049] Even in this case, the second NxN CU is split up to the third step, but since the block split flags for quantization / inverse quantization, split_qp_delta_flag 422 and 631, are 0, one quantization / inverse quantization parameter value is assigned to multiple CUs.
[0050] FIG. 6c shows the operations of the quantization difference value recording block unit determination unit 100 and the inverse quantization difference value recording block unit determination unit 121 according to the third embodiment of the present invention.
[0051] Figure 6c shows a case where a 2Nx2N LCU to be encoded / decoded is divided into four CUs in the first step, and the second CU of the CU is divided again. Even if the second CU is divided again into four CUs and the divided CU is divided again into four CUs, the size of the block in which the quantization / dequantization parameter difference value is recorded can be determined through the values of split_qp_delta_flag 422 and 661. Figure 6c shows that the CU is divided into up to three pieces of depth information, but the quantization / dequantization parameter difference value has up to two pieces of depth information.
[0052] FIG. 7a shows the quantization parameter value prediction block determiner 102 and the inverse quantization parameter value prediction block determiner 123 according to the first embodiment of the present invention.
[0053] The encoder assigns quantization parameter values to the CU blocks determined through the quantization difference value recording block unit determination unit 100, and uses previously used quantization parameter values for the remaining CU blocks. In this case, the quantization parameter values are predicted using the quantization parameter values of the previous blocks, and only the quantization parameter difference values are actually encoded.
[0054] In the decoder, the inverse quantization parameter difference value derivation unit 122 decodes the inverse quantization parameter difference value, and then calculates the inverse quantization parameter value by adding the corresponding difference value to the inverse quantization parameter value of the block used for prediction.
[0055] The quantization parameter value prediction block determination unit 102 and the inverse quantization parameter value prediction block determination unit 123 determine neighboring blocks to be referenced when predicting the quantization parameter value of the current block in the encoder and the decoder, respectively.
[0056] In FIG. 7a, in order to predict the corresponding value when a quantization / dequantization parameter value is assigned to the CU 720 to be encoded / decoded, the average value, minimum value, maximum value, etc. of the quantization parameter values of the CU (712, 702; Lc, Tc) having the largest block size at each boundary among the CUs (710, 711, 712; La, Lb, Lc) located adjacent to the left boundary of the current CU 720 and the CUs (700, 701, 702; Ta, Tb, Tc) located adjacent to the upper boundary are used.
[0057] FIG. 7b shows another example of the quantization parameter value prediction block determiner 102 and the inverse quantization parameter value prediction block determiner 123 according to the first embodiment of the present invention.
[0058] Even when an LCU is divided into multiple CUs and encoded / decoded, the CU with the largest block size among the CUs located adjacent to the current CU 750 to be encoded / decoded is selected at the left and upper boundaries, and the average, minimum, maximum, etc. of the quantization parameter values used by the two CUs are used to predict the quantization parameter value of the current CU.
[0059] FIG. 8a shows the quantization parameter value prediction block determiner 102 and the inverse quantization parameter value prediction block determiner 123 according to the second embodiment of the present invention.
[0060] When predicting the quantization parameter value of the current CU 840 to be encoded / decoded, the CU in the largest block among the CUs adjacent to the current CU is referenced. In this case, when there are multiple CUs with the largest size, the CU (820;La) adjacent to the top of the left boundary is selected, and the CU (800;Ta) adjacent to the left of the top boundary is referenced preferentially to use the average, maximum, minimum, etc. of the quantization parameter value of the current CU.
[0061] FIG. 8b shows another example of the quantization parameter value prediction block determiner 102 and the inverse quantization parameter value prediction block determiner 123 according to the second embodiment of the present invention.
[0062] Even when an LCU is divided into multiple CUs and encoded / decoded, the CU with the largest block size among the CUs located adjacent to the current CU 890 to be encoded / decoded is referenced. In this case, if there are multiple CUs with the largest block size at the left boundary, the CU (870; La) located adjacent to the top is used as the reference block. If there are multiple CUs with the largest block size at the top boundary, the CU (850; Ta) located adjacent to the left is used as the reference block. After determining the blocks to be referenced on the left and top directions in this manner, the maximum, minimum, and average values of the quantization values of the two blocks are calculated, and the quantization parameter value of the CU 890 to be encoded / decoded is predicted using the corresponding values.
[0063] FIG. 9a shows the quantization parameter value prediction block determination unit 102 and the inverse quantization parameter value prediction block determination unit 123 according to the third embodiment of the present invention.
[0064] When predicting a quantization parameter value of a current CU 920 to be encoded / decoded, all referable CUs (900, 901, 902, 910, 911, 912; Ta, Tb, Tc, La, Lb, Lc) located adjacent to the corresponding CU are selected as reference blocks. The encoder predicts the quantization parameter value of the CU 920 to be encoded using the maximum, minimum, average, etc. of the quantization parameter values of all the referable CUs, and then encodes the quantization parameter difference value.
[0065] The decoder decodes the inverse quantization parameter value of the CU 920 to be decoded by adding the maximum value, minimum value, and average value of the inverse quantization parameter values of all CUs that can refer to the decoded quantization parameter difference value.
[0066] FIG. 9b shows another example of the quantization parameter value prediction block determination unit 102 and the inverse quantization parameter value prediction block determination unit 123 according to the third embodiment of the present invention.
[0067] Even when the CU 950 to be encoded / decoded is located within an LCU, the quantization parameter value is predicted using all referenceable CUs (930, 931, 932, 940, 941, 942; La, Lb, Lc, Ta, Tb, Tc) located adjacent to the CU.
[0068] In the encoder, the quantization parameter value of the CU 950 to be encoded is predicted using the average, maximum, minimum, etc. of the quantization parameter values of all surrounding referable CUs, and only the difference value is encoded.
[0069] When restoring the inverse quantization parameter value of the CU 950 to be decoded, the decoder decodes the inverse quantization parameter value by adding the average, maximum, and minimum values of the inverse quantization parameter values of all surrounding referable CUs.
[0070] FIG. 10a shows the quantization parameter value prediction block determination unit 102 and the inverse quantization parameter value prediction block determination unit 123 according to the fourth embodiment of the present invention.
[0071] When encoding / decoding a CU 1020 located at an LCU boundary, the CU (1012; Tc) with the maximum block size is referenced among the CUs (1010, 1011, 1012; La, Lb, Lc) that are adjacent to the left boundary of the CU. In this case, if there is one or more CUs with the maximum block size among the CUs that are adjacent to the left boundary, the CU located adjacent to the top of the CU is selected as a reference block.
[0072] The encoder predicts the quantization parameter value of the CU 1020 to be encoded based on the quantization parameter value of the CU (1012; Tc) selected as a reference block at the left boundary, and then encodes the difference value.
[0073] In the decoder, after decoding the inverse quantization parameter difference value of the CU 1020 to be decoded, the inverse quantization parameter value is decoded by adding the inverse quantization parameter value of the CU (1012; Tc) selected as the reference block at the left boundary.
[0074] FIG. 10b shows another example of the quantization parameter value prediction block determiner 102 and the inverse quantization parameter value prediction block determiner 123 according to the fourth embodiment of the present invention.
[0075] When an LCU is divided into multiple CUs for encoding / decoding, the CU (1030;La) having the maximum block size is referenced among the CUs (1030, 1031, 1032;La, Lb, Lc) located adjacent to the left boundary of the CU 1050 to be encoded / decoded. In this case, if there is one or more CUs with the maximum block size at the left boundary, the CU (1030;La) located adjacent to the top of the corresponding block is selected as the reference block.
[0076] The encoder predicts the quantization parameter value of the CU 1050 to be encoded based on the quantization parameter value of the CU (1030; La) selected as a reference block at the left boundary, and then encodes the difference value.
[0077] In the decoder, after decoding the inverse quantization parameter difference value of the CU 1050 to be decoded, the inverse quantization parameter value is decoded by adding the inverse quantization parameter value of the CU (1030; La) selected as the reference block at the left boundary.
[0078] FIG. 11a shows the quantization parameter value prediction block determination unit 102 and the inverse quantization parameter value prediction block determination unit 123 according to the fifth embodiment of the present invention.
[0079] When encoding / decoding a CU 1120 located at an LCU boundary, all of the referenceable CUs (1110, 1111, 1112; La, Lb, Lc) adjacent to the left boundary of the CU are used as reference blocks.
[0080] The encoder predicts the quantization parameter value of the CU 1120 to be encoded using the average, maximum, minimum, etc. of the quantization parameter values of the referenceable CUs (1110, 1111, 1112; La, Lb, Lc) adjacent to the left boundary, and then encodes only the difference value.
[0081] The decoder decodes the inverse quantization parameter difference value of the CU 1120 to be decoded, and then decodes the inverse quantization parameter value of the CU 1120 to be decoded by adding the average, maximum, minimum, etc. of the inverse quantization parameter values of the referenceable CUs (1110, 1111, 1112; La, Lb, Lc) adjacent to the left boundary.
[0082] FIG. 11b shows another example of the quantization parameter value prediction block determination unit 102 and the inverse quantization parameter value prediction block determination unit 123 according to the fifth embodiment of the present invention.
[0083] When an LCU is divided into multiple CUs for encoding / decoding, all referenceable CUs located adjacent to the left boundary of the CU 1150 to be encoded / decoded are used as reference blocks.
[0084] The encoder predicts the quantization parameter value of the CU 1150 to be encoded based on the average, minimum, maximum, etc. of the quantization parameter values of all referable CUs located adjacent to the left boundary, and then encodes the difference value.
[0085] The decoder decodes the inverse quantization parameter difference value of the CU 1150 to be decoded, and then decodes the inverse quantization parameter value by adding the average value, minimum value, maximum value, etc. of the quantization parameter values of all referenceable CUs located adjacent to the left boundary.
Claims
1. 1. A video encoding method, comprising: determining a first block having a quantization difference; performing inverse quantization on the first block using an inverse quantization parameter value assigned to the first block; determining a plurality of second blocks used in inverse quantization parameter value prediction; determining the quantization difference based on subtracting a predicted inverse quantization parameter value determined by the inverse quantization parameter value prediction from the inverse quantization parameter value; Equipped with when the first block is divided into a plurality of sub-blocks, the quantization difference difference is coded for a first sub-block in the first block, and the quantization difference difference is not coded for other sub-blocks in the first block; the other sub-blocks use the same quantization parameter value as the first sub-block; the second blocks include a leftmost block among a plurality of blocks adjacent to an upper side of the first block, the quantization difference for the first block is coded if a skip mode is not applied to the first block; The video encoding method, wherein whether the skip mode is applied or not is encoded as flag information.
2. 1. A video decoding method, comprising: determining a first block having one quantized difference; determining a plurality of second blocks used in inverse quantization parameter value prediction; determining an inverse quantization parameter value based on adding a predicted inverse quantization parameter value determined by the inverse quantization parameter value prediction to the quantization difference; performing inverse quantization using the determined inverse quantization parameter value; Equipped with when the first block is divided into a plurality of sub-blocks, the quantization difference difference is signaled for a first sub-block in the first block, and the quantization difference difference is not signaled for other sub-blocks in the first block; the other sub-blocks use the same quantization parameter value as the first sub-block; the second blocks include a leftmost block among a plurality of blocks adjacent to the first block on the upper side, If a skip mode is not applied to the first block, the quantization difference of the first block is decoded; The video decoding method, wherein whether or not the skip mode is applied is determined based on flag information in a bitstream.
3. 1. A method for transmitting a bitstream generated by a video encoding method, the video encoding method comprising: determining a first block having one quantized difference; performing inverse quantization on the first block using an inverse quantization parameter value assigned to the first block; determining a plurality of second blocks used in inverse quantization parameter value prediction; determining the quantization difference based on subtracting a predicted inverse quantization parameter value determined by the inverse quantization parameter value prediction from the inverse quantization parameter value; Equipped with when the first block is divided into a plurality of sub-blocks, the quantization difference difference is coded for a first sub-block in the first block, and the quantization difference difference is not coded for other sub-blocks in the first block; the other sub-blocks use the same quantization parameter value as the first sub-block; the second blocks include a leftmost block among a plurality of blocks adjacent to an upper side of the first block, the quantization difference for the first block is coded if a skip mode is not applied to the first block; A method for transmitting a bitstream, wherein whether or not the skip mode is applied is encoded as flag information.
Citation Information
Patent Citations
Time-varying image encoding method and device, and time-varying image decoding device
WO2008126135A1
Adaptive quantization for enhancement layer video coding
WO2009158113A2
Video encoding device, video decoding device, and data structure
WO2011048903A1
