Image processing device and method

The image processing device and method address the issue of information loss in conventional encoding by using inverse quantization and scaling parameters to control transform skip, enhancing the reversibility and losslessness of the encoding process.

JP2024144478AActive Publication Date: 2024-10-11SONY GROUP CORP

Patent Information

Application Number
JP2024117124
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2019-09-18
Filing Date
2024-07-22
Publication Date
2024-10-11
Estimated Expiration
2040-09-04

AI Technical Summary

Technical Problem

The 'conversion skip + QP4' approach in conventional image encoding methods does not support lossless encoding and poses a risk of information loss during encoding and decoding.

Method used

An image processing device and method that utilizes inverse quantization and scaling parameters to control transform skip, normalizing coefficients, and selectively performing inverse coefficient transforms to suppress information loss, thereby bringing the encoding closer to reversible decoding.

Benefits of technology

The solution effectively reduces information loss during encoding and decoding, making the process more reversible and lossless.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024144478000001_ABST
    Figure 2024144478000001_ABST
Patent Text Reader

Abstract

To make it possible to suppress loss of information due to coding and decoding.SOLUTION: Inverse quantization is performed on a quantization coefficient using a quantization parameter depending on whether a transform skip is to be applied, inverse coefficient transformation is performed on a transform coefficient generated by inverse quantization to generate a predicted residual that is a residual between an image and a predicted image of the image when the transform skip is not to be applied, and the inverse coefficient transformation is skipped when the transform skip is to be applied. The present disclosure can be applied to, for example, an image processing device, an image coding device, an image decoding device, a transmission device, a reception device, a transmission / reception device, an information processing device, an imaging device, a reproduction device, an electronic apparatus, an image processing method, an information processing method, or the like.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to an image processing device and method, and more particularly to an image processing device and method capable of suppressing information loss due to encoding and decoding. [Background technology]

[0002] Conventionally, a coding method has been proposed in which a prediction residual of a moving image is derived, coefficient transformed, quantized, and then coded (for example, Non-Patent Document 1). In addition, in the image coding, a lossless coding method has been proposed in which coefficient transformation, quantization, etc. are skipped (omitted) using a transform quantization bypass, and the prediction residual is losslessly coded (for example, Non-Patent Document 2).

[0003] By the way, there is a method to aim for lossless coding (lossless coding) by inverse quantizing the quantization coefficient Qcoef with QP=4, which makes the quantization step size 1, without using the transform quantization bypass, and then performing transform skip. For convenience, this approach is called the "transform skip + QP4" approach. [Prior art documents] [Non-patent literature]

[0004] [Non-Patent Document 1] VTM-5.0 in https: / / vcgit.hhi.fraunhofer.de / jvet / VVCSoftware_VTM [Non-Patent Document 2] Tsung-Chuan Ma, Yi-Wen Chen, Xiaoyu Xiu, Xianglin Wang, Tangi Poirier, Fabrice Le Leannec, Karam Naser, Edouard Francois, Hyeongmun Jang, Junghak Nam, Naeri Park, Jungah Choi, Seunghwan Kim, Jaehyun Lim, "Lossless coding for VVC", JVET-O1061, m49678, Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11 15th Meeting: Gothenburg, SE, 3-12 July 2019 Summary of the Invention [Problem to be solved by the invention]

[0005] However, in the case of such a "transform skip + QP4" approach, the parameter settings in the conventional method do not support lossless coding, and there is a risk of information loss during encoding and decoding.

[0006] The present disclosure has been made in consideration of such circumstances, and makes it possible to suppress information loss due to encoding and decoding. [Means for solving the problem]

[0007] An image processing device according to one aspect of the present technology includes an inverse quantization unit that performs inverse quantization on quantized coefficients, an inverse quantization normalization unit that normalizes transform coefficients generated by the inverse quantization by the inverse quantization unit using a scaling parameter according to whether a transform skip is applied, and an inverse transform unit that, when the transform skip is not applied, performs inverse coefficient transform on the transform coefficients normalized by the inverse quantization normalization unit to generate a prediction residual that is a residual between an image and a predicted image of the image, and, when the transform skip is applied, skips the inverse coefficient transform.

[0008] An image processing method according to one aspect of the present technology performs inverse quantization on quantized coefficients, normalizes transform coefficients generated by the inverse quantization using a scaling parameter depending on whether a transform skip is applied, and if the transform skip is not applied, performs inverse coefficient transformation on the normalized transform coefficients to generate a prediction residual which is a residual between an image and a predicted image of the image, and if the transform skip is applied, skips the inverse coefficient transformation.

[0009] An image processing device according to another aspect of the present technology is an image processing device including: a transform unit that performs coefficient transformation on a prediction residual, which is a residual between an image and a predicted image of the image, to generate a transform coefficient when a transform skip is not applied, and skips the coefficient transformation when the transform skip is applied; a quantization unit that performs quantization on the transform coefficient when the transform skip is not applied, and performs the quantization on the prediction residual when the transform skip is applied; and a quantization normalization unit that normalizes the quantization coefficient generated by the quantization by the quantization unit using a scaling parameter according to whether the transform skip is applied.

[0010] An image processing method according to another aspect of the present technology is an image processing method in which, when a transform skip is not applied, coefficient conversion is performed on a prediction residual, which is a residual between an image and a predicted image of the image, to generate a transform coefficient, when the transform skip is applied, the coefficient conversion is skipped, when the transform skip is not applied, quantization is performed on the transform coefficient, and when the transform skip is applied, the quantization is performed on the prediction residual, and the quantization coefficient generated by the quantization is normalized using a scaling parameter according to whether the transform skip is applied.

[0011] In an image processing device and method according to one aspect of the present technology, inverse quantization is performed on the quantized coefficients, and the transform coefficients generated by the inverse quantization are normalized using a scaling parameter depending on whether a transform skip is applied. If a transform skip is not applied, an inverse coefficient transform is performed on the normalized transform coefficients to generate a prediction residual, which is the residual between an image and a predicted image of that image. If a transform skip is applied, the inverse coefficient transform is skipped.

[0012] In an image processing device and method of another aspect of the present technology, when a transform skip is not applied, coefficient conversion is performed on a prediction residual, which is the residual between an image and a predicted image of that image, to generate a transform coefficient, when the transform skip is applied, the coefficient conversion is skipped, when the transform skip is not applied, quantization is performed on the transform coefficient, and when the transform skip is applied, quantization is performed on the prediction residual, and the quantized coefficient generated by the quantization is normalized using a scaling parameter depending on whether the transform skip is applied. [Brief description of the drawings]

[0013] [Figure 1] 11A and 11B are diagrams illustrating an example of a control method for inverse quantization and inverse transform and transform quantization based on a transform skip. [Diagram 2] 1 is a block diagram showing an example of the main configuration of an inverse quantization and inverse transform device. [Diagram 3] 13 is a flowchart showing an example of the flow of an inverse quantization and inverse transform process. [Figure 4] FIG. 13 is a diagram illustrating an example of quantization parameter control based on a transform skip. [Diagram 5] FIG. 13 is a diagram illustrating an example of rounding offset control based on transform skip. [Figure 6] FIG. 13 is a diagram illustrating an example of rounding offset control based on transform skip. [Figure 7] 1 is a block diagram showing an example of the main configuration of a transform and quantization device; [Figure 8] 13 is a flowchart showing an example of the flow of a transform and quantization process. [Figure 9] 1 is a block diagram showing an example of the main configuration of an inverse quantization and inverse transform device. [Figure 10] 13 is a flowchart showing an example of the flow of an inverse quantization and inverse transform process. [Figure 11] 11A and 11B are diagrams illustrating an example of scaling parameter control based on a transform skip. [Figure 12] 11A and 11B are diagrams illustrating an example of scaling parameter control based on a transform skip. [Figure 13] 11A and 11B are diagrams illustrating an example of scaling parameter control based on a transform skip. [Figure 14] 1 is a block diagram showing an example of the main configuration of a transform and quantization device; [Figure 15] 13 is a flowchart showing an example of the flow of a transform and quantization process. [Figure 16] 1 is a block diagram showing an example of the main configuration of an inverse quantization and inverse transform device. [Figure 17] 13 is a flowchart showing an example of the flow of an inverse quantization and inverse transform process. [Figure 18] 11A and 11B are diagrams illustrating an example of scaling parameter control based on a transform skip. [Figure 19] 11A and 11B are diagrams illustrating an example of scaling parameter control based on a transform skip. [Figure 20] 1 is a block diagram showing an example of the main configuration of a transform and quantization device; [Figure 21]13 is a flowchart showing an example of the flow of a transform and quantization process. [Figure 22] FIG. 1 is a block diagram showing an example of the main configuration of an image encoding device. [Diagram 23] 13 is a flowchart showing an example of the flow of an image encoding process. [Figure 24] FIG. 2 is a block diagram showing an example of the main configuration of an image decoding device. [Diagram 25] 13 is a flowchart showing an example of the flow of an image decoding process. [Figure 26] FIG. 1 is a block diagram showing an example of a main configuration of a computer. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] Hereinafter, modes for carrying out the present disclosure (hereinafter referred to as embodiments) will be described in the following order. 1. Near-lossless coding with transform skip 2. First embodiment (parameter control) 3. Second embodiment (merging of decompression processing when conversion is skipped) 4. Third embodiment (merging of normalization processing when conversion is skipped) 5. Fourth embodiment (image decoding device) 6. Fifth embodiment (image encoding device) 7. Notes

[0015] <1. Near-lossless encoding using transform skip> <References supporting technical content and technical terms> The scope of disclosure of the present technology includes not only the contents described in the embodiments, but also the contents described in the following non-patent documents that were publicly known at the time of filing the application, and the contents of other documents referenced in the following non-patent documents.

[0016] Non-patent document 1: (mentioned above) Non-patent document 2: (mentioned above) Non-licensed Document 3: Benjamin Bross, Jianle Chen, Shan Liu, "Versatile Video Coding (Draft 5)", N1001-v10, m48053, Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11 14th Meeting: Geneva, CH, 19-27 Mar. 2019 Unauthorized Document 4: Jianle Chen, Yan Ye, Seung Hwan Kim, "Algorithm description for Versatile Video Coding and Test Model 5 (VTM 5)", JVET-N1002-v2, m48054, Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11 14th Meeting: Geneva, CH, 19-27 Mar. 2019 Non-Patent Document 5: Benjamin Bross, Jianle Chen, Shan Liu, "Versatile Video Coding (Draft 6)", JVET-O2001-vE, m49908, Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11 15th Meeting: Gothenburg, SE, 3-12 July 2019 Non-Patent Document 6: Jianle Chen, Yan Ye, Seung Hwan Kim, "Algorithm description for Versatile Video Coding and Test Model 6 (VTM 6)", JVET-O2002-v2, m49914, Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11 15th Meeting: Gothenburg, SE, 3-12 July 2019 Non-Patent Document 7: Tsung-Chuan Ma, Yi-Wen Chen, Xiaoyu Xiu, Xianglin Wang, "Modifications to support the lossless coding", JVET-O0591, m48730, Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11 15th Meeting: Gothenburg, SE, 3-12 July 2019 Non-Patent Document 8: Hyeongmun Jang, Junghak Nam, Naeri Park, Jungah Choi Seunghwan Kim, Jaehyun Lim, "Comments on transform quantization bypassed mode", JVET-O0584, m48723, Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11 15th Meeting: Gothenburg, SE, 3-12 July 2019 Non-Patent Document 9: Tangi Poirier, Fabrice Le Leannec, Karam Naser, Edouard Francois, "On lossless coding for VVC" JVET-O0460, m48583, Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11 15th Meeting: Gothenburg, SE, 3-12 July 2019 Non-Patent Document 10: Recommendation ITU-T H.264 (04 / 2017) "Advanced video coding for generic audiovisual services", April 2017 Non-Patent Document 11: Recommendation ITU-T H.265 (02 / 18) "High efficiency video coding", february 2018

[0017] In other words, the contents described in the above non-patent documents are also the basis for determining the support requirements. For example, even if the Quad-Tree Block Structure and QTBT (Quad Tree Plus Binary Tree) Block Structure described in the above non-patent documents are not directly described in the examples, they are considered to be within the disclosure scope of the present technology and to satisfy the support requirements of the claims. Similarly, for example, technical terms such as parsing, syntax, and semantics are also considered to be within the disclosure scope of the present technology and to satisfy the support requirements of the claims, even if they are not directly described in the examples.

[0018] In addition, in this specification, a "block" (not a block indicating a processing unit) used in the description as a partial region or processing unit of an image (picture) indicates any partial region in a picture, and its size, shape, characteristics, etc. are not limited, unless otherwise specified. For example, a "block" includes any partial region (processing unit) such as a TB (Transform Block), TU (Transform Unit), PB (Prediction Block), PU (Prediction Unit), SCU (Smallest Coding Unit), CU (Coding Unit), LCU (Largest Coding Unit), CTB (Coding Tree Block), CTU (Coding Tree Unit), subblock, macroblock, tile, or slice described in the above-mentioned non-patent document.

[0019] In addition, when specifying the size of such a block, the block size may be specified indirectly in addition to directly. For example, the block size may be specified using identification information for identifying the size. For example, the block size may be specified by a ratio or difference with respect to the size of a reference block (for example, LCU or SCU). For example, when transmitting information specifying a block size as a syntax element or the like, the information may be used to indirectly specify the size as described above. In this way, the amount of information can be reduced, and coding efficiency may be improved. The specification of the block size also includes specification of a range of block sizes (for example, specification of a range of allowable block sizes, etc.).

[0020] In this specification, encoding includes not only the whole process of converting an image into a bit stream, but also a part of the process. For example, it includes not only a process including prediction processing, orthogonal transformation, quantization, arithmetic coding, etc., but also a process collectively referring to quantization and arithmetic coding, a process including prediction processing, quantization, and arithmetic coding, etc. Similarly, decoding includes not only the whole process of converting a bit stream into an image, but also a part of the process. For example, it includes not only a process including inverse arithmetic decoding, inverse quantization, inverse orthogonal transformation, prediction processing, etc., but also a process including inverse arithmetic decoding and inverse quantization, a process including inverse arithmetic decoding, inverse quantization, and prediction processing, etc.

[0021] <"Skip conversion + QP4" approach> Non-Patent Document 2 discloses a lossless coding method that uses a transform and quantization bypass to skip (omit) coefficient transform, quantization, etc. in the image coding of Non-Patent Document 1, and performs lossless coding of prediction residuals.

[0022] By the way, there is a method to aim for lossless coding (lossless coding) by inverse quantizing the quantization coefficient Qcoef with QP=4, which makes the quantization step size 1, and skipping the transform, without using the transform quantization bypass. For convenience, this approach is called the "transform skip + QP4" approach.

[0023] However, in the case of such a "transform skip + QP4" approach, the parameter settings in the conventional method do not support lossless coding, and there is a risk of information loss during encoding and decoding.

[0024] <2. First embodiment> <Parameter control of inverse quantization and inverse transform> Therefore, in the inverse quantization and inverse transform process, parameters related to the inverse quantization and inverse transform are set so as to reduce the amount of information lost, as shown in the first row from the top (top row) of the table in FIG. 1 (method 1-1).

[0025] The inverse quantization inverse transform process is a process of inverse quantizing a quantized coefficient to generate a transform coefficient, and inversely transforming the transform coefficient to generate a prediction residual. The prediction residual is a residual between an image and a predicted image of the image. The predicted image is generated based on information about the temporal periphery of the image, information about the spatial periphery of the image, or both. The temporal periphery information is information about a frame different from the image. The spatial periphery information is information about a frame the same as the image. The inverse coefficient transform is an inverse process of coefficient transform, which is a process of transforming a prediction residual to generate a transform coefficient. The inverse quantization is an inverse process of quantization, which is a process of quantizing a transform coefficient generated by the coefficient transform to generate a quantized coefficient. In other words, the inverse quantization inverse transform process is an inverse process of transform quantization, which performs coefficient transform and quantization. Therefore, the inverse quantization inverse transform process can generate a prediction residual by inverse quantization inverse transforming a quantized coefficient generated by transforming and quantizing a prediction residual.

[0026] In this inverse quantization and inverse transform process, by controlling parameters to suppress information loss, it is possible to suppress information loss due to decoding using this inverse quantization and inverse transform process. In other words, it is possible to make decoding using the "transform skip + QP4" approach closer to lossless decoding (lossless coding).

[0027] <1-1: Inverse quantization and inverse transformation device> Fig. 2 is a block diagram showing an example of the configuration of an inverse quantization and inverse transform device, which is one aspect of an image processing device to which the present technology is applied. The inverse quantization and inverse transform device 100 shown in Fig. 2 is a device that inverse quantizes and inverse transforms quantized coefficients to generate prediction residuals.

[0028] Note that Fig. 2 shows the main processing units, data flows, and the like, and is not limited to all that is shown in Fig. 2. In other words, in the inverse quantization and inverse transformation device 100, there may be processing units that are not shown as blocks in Fig. 2, and there may be processing and data flows that are not shown as arrows or the like in Fig. 2.

[0029] 2, the inverse quantization and inverse transform device 100 includes an inverse quantization unit 101 and an inverse transform unit 102. The inverse quantization unit 101 performs processing related to inverse quantization. The inverse transform unit 102 performs processing related to inverse coefficient transform.

[0030] The inverse quantization unit 101 has an inverse quantization processing unit 111 and a normalization unit 112. The inverse quantization processing unit 111 acquires quantization coefficients to be input to the inverse quantization and inverse transform device 100. The inverse quantization processing unit 111 performs inverse quantization on the acquired quantization coefficients to generate transform coefficients. The inverse quantization processing unit 111 supplies the generated transform coefficients to the normalization unit 112. The normalization unit 112 acquires the transform coefficients supplied from the inverse quantization processing unit 111. The normalization unit 112 normalizes the acquired transform coefficients. The normalization unit 112 supplies the normalized transform coefficients to the inverse transform unit 102.

[0031] The inverse transform unit 102 includes a selection unit 121 , an inverse transform processing unit 122 , a selection unit 123 , a normalization unit 124 , and an expansion processing unit 125 .

[0032] The selection unit 121 and the selection unit 123 select whether or not to apply a transform skip, which is a mode for skipping an inverse coefficient transform. The transform skip is a mode for skipping a coefficient transform process in a coefficient transform process, and is a mode for skipping an inverse coefficient transform process in an inverse coefficient transform process.

[0033] The selection unit 121 acquires the transform coefficients supplied from the inverse quantization unit 101. When transform skip is not applied, that is, when inverse coefficient transform processing is performed, the selection unit 121 supplies the acquired transform coefficients to the inverse transform processing unit 122. In addition, the selection unit 123 acquires the prediction residuals supplied from the inverse transform processing unit 122, and supplies them to the normalization unit 124.

[0034] When applying the transform skip, that is, when skipping the inverse coefficient transform process, the selection unit 121 supplies the acquired transform coefficient to the expansion processing unit 125. In this case, since the coefficient transform process is skipped, this transform coefficient is a prediction residual. In addition, the selection unit 123 acquires the transform coefficient (i.e., the prediction residual) supplied from the expansion processing unit 125, and supplies it to the normalization unit 124.

[0035] The inverse transform processing unit 122 acquires the transform coefficients supplied from the inverse quantization unit 101 via the selection unit 121. These transform coefficients have been normalized by the normalization unit 112. The inverse transform processing unit 122 performs inverse coefficient transform on the acquired transform coefficients to generate prediction residuals. The inverse transform processing unit 122 supplies the generated prediction residuals to the normalization unit 124 via the selection unit 123.

[0036] The decompression processing unit 125 acquires the transform coefficients supplied from the inverse quantization unit 101 via the selection unit 121. These transform coefficients are normalized by the normalization unit 112. These transform coefficients are prediction residuals. The decompression processing unit 125 decompresses the acquired transform coefficients (i.e., prediction residuals). The decompression processing unit 125 supplies the decompressed transform coefficients (i.e., prediction residuals) to the normalization unit 124 via the selection unit 123.

[0037] When transform skip is not applied, that is, when inverse coefficient transform processing is performed, the normalization unit 124 acquires the prediction residual supplied from the inverse transform processing unit 122 via the selection unit 123. When transform skip is applied, that is, when inverse coefficient transform processing is skipped, the normalization unit 124 acquires the transform coefficient (that is, the prediction residual) supplied from the expansion processing unit 125 via the selection unit 123. The normalization unit 124 normalizes the acquired prediction residual. The normalization unit 124 outputs the normalized prediction residual to the outside of the inverse quantization and inverse transform device 100.

[0038] In such an inverse quantization and inverse transform device 100, the above-mentioned (Method 1-1) is applied. That is, the inverse quantization and inverse transform device 100 sets parameters related to inverse quantization and inverse transform so as to suppress information loss. The inverse quantization processing unit 111 can perform inverse quantization using the parameters set in this manner. The normalization unit 112 can perform normalization using the parameters set in this manner. The normalization unit 124 can perform normalization using the parameters set in this manner.

[0039] In this way, the inverse quantization and inverse transform device 100 can suppress information loss due to decoding using this inverse quantization and inverse transform processing. In other words, the inverse quantization and inverse transform device 100 can make decoding using the "transform skip+QP4" approach closer to lossless decoding (lossless coding).

[0040] <Flow of inverse quantization and inverse transform processing> Next, an example of the flow of the inverse quantization and inverse transform process executed by the inverse quantization and inverse transform device 100 will be described with reference to the flowchart of FIG.

[0041] When the inverse quantization and inverse transform process starts, the inverse quantization unit 101 sets parameters related to inverse quantization in step S101.

[0042] In step S102, the inverse quantization processor 111 performs inverse quantization on the quantized coefficients using the parameters set in step S101 to generate transform coefficients.

[0043] In step S103, the normalization unit 112 normalizes the transform coefficients generated in step S102 using the parameters set in step S101.

[0044] In step S104, the selection unit 121 and the selection unit 123 determine whether or not to apply the transform skip. If it is determined that the transform skip is not to be applied, the process proceeds to step S105.

[0045] In step S105, the inverse transform unit 102 sets parameters related to the inverse coefficient transform.

[0046] In step S106, the inverse transform processing unit 122 performs inverse coefficient transform on the transform coefficients normalized in step S103 using the parameters set in step S105 to generate prediction residuals. When the process of step S106 ends, the process proceeds to step S108.

[0047] Also, if it is determined in step S104 that the transform skip is to be applied, the process proceeds to step S107. In step S107, the decompression processing unit 125 decompresses the transform coefficient (i.e., the prediction residual) normalized in step S103. When the process of step S107 ends, the process proceeds to step S108.

[0048] In step S108, the normalization unit 124 normalizes the prediction residual generated in step S106 or the transform coefficient (that is, the prediction residual) expanded in step S107, using the parameters set in step S105.

[0049] When the process of step S108 ends, the inverse quantization and inverse transform process ends.

[0050] In such an inverse quantization and inverse transform process, the above-mentioned (Method 1-1) is applied. That is, in step S101, the inverse quantization unit 101 sets parameters related to inverse quantization so as to suppress information loss. In step S102, the inverse quantization processing unit 111 can perform inverse quantization using the parameters set in this way. In step S103, the normalization unit 112 can perform normalization using the parameters set in this way. Also, in step S105, the inverse transform unit 102 sets parameters related to inverse coefficient transform so as to suppress information loss. In step S108, the normalization unit 124 can perform normalization using the parameters set in this way.

[0051] In this way, the inverse quantization and inverse transform device 100 can suppress information loss due to decoding using this inverse quantization and inverse transform processing. In other words, the inverse quantization and inverse transform device 100 can make decoding using the "transform skip+QP4" approach closer to lossless decoding (lossless coding).

[0052] <1-1-1: Quantization parameter control> As described above, the parameters related to the inverse quantization may be controlled. For example, in image processing, the inverse quantization of the quantized coefficients may be performed using a quantization parameter according to whether or not a transform skip is applied.

[0053] For example, an image processing device may include an inverse quantization unit that performs inverse quantization on quantized coefficients using a quantization parameter according to whether or not a transform skip is applied.

[0054] In this way, the image processing device can suppress information loss due to decoding that applies inverse quantization by the inverse quantization unit. In other words, the image processing device can bring decoding by the "transform skip + QP4" approach closer to lossless decoding (lossless coding).

[0055] In this case, when the inverse quantization unit applies inverse dependent quantization in the inverse quantization and does not apply a transform skip, the inverse quantization unit may correct the quantization parameter and perform the inverse quantization using the corrected quantization parameter. That is, as shown in the second row from the top of the table in FIG. 1, the correction of the quantization parameter (QP) of the dependent quantization may be controlled based on the transform skip (method 1-1-1).

[0056] For example, in the coding method described in Non-Patent Document 5, dependent quantization (DQ) is prepared as a quantization mode. In dependent quantization, based on the transform coefficients of past processing targets and the parity flag, a selection is made as to whether the quantization step size corresponding to the quantization parameter (QP) applied to the coefficient of the current processing target is an odd number multiple or an even number multiple. In other words, the quantization step size for a certain quantization parameter is converted (branched) according to the previous state. In this way, it is possible to suppress a decrease in coding efficiency.

[0057] A in Fig. 4 shows the semantics for such dependent quantization described in Non-Patent Document 5. As shown in this semantics, when dependent quantization is applied, the quantization parameter (QP) is corrected. That is, when dependent quantization is not applied, the scaling parameter ls is derived using the quantization parameter (qP) as in equation (8-960). On the other hand, when dependent quantization is applied, the scaling parameter ls is derived using the corrected quantization parameter (qP' = qP + 1) as in equation (8-959).

[0058] Similarly, in the inverse quantization, dependent quantization can be applied. In practice, inverse processing of dependent quantization (also called inverse dependent quantization) is applied in the inverse quantization. Therefore, in the inverse quantization, when dependent quantization is applied, the quantization parameter is similarly corrected.

[0059] However, when transform skip is applied, the minimum value of the quantization parameter is 4, so that the quantization step size cannot be set to 1 by correcting the quantization parameter (QP + 1) by such dependent quantization. Therefore, there is a risk of information loss due to inverse quantization.

[0060] Therefore, for example, as in the semantics shown in B of Figure 4, "and if the transform skip flag (transform_skip_flag) is not a value (IS_SKIP) indicating that the transform skip is applied" is added to the condition of the above formula (8-959). The transform skip flag (transform_skip_flag) is flag information indicating whether or not to apply the transform skip. For example, if the transform skip flag is true (e.g., 1), it indicates that the transform skip is applied. If the transform skip flag is false (e.g., 0), it indicates that the transform skip is not applied. In addition, "or if the transform skip flag (transform_skip_flag) is true (IS_SKIP)" is added to the condition of the above formula (8-960).

[0061] The inverse quantization unit 111 derives the scaling parameter ls according to such semantics. In this way, when a transform skip is applied, the formula (8-960) is applied, and correction of the quantization parameter by the dependent quantization (inverse dependent quantization) is omitted. Therefore, the inverse quantization unit 111 can suppress information loss due to the inverse dependent quantization when a transform skip is applied.

[0062] <1-1-2: Rounding offset sign control> The parameter related to the inverse quantization to be controlled may be other than the quantization parameter. For example, as shown in the third row from the top of the table in Fig. 1, the sign of the rounding offset of the normalization process in the inverse quantization may be set based on the sign of the transform coefficient, which is the input value (method 1-1-2).

[0063] For example, the image processing device may further include an inverse quantization normalization unit that sets the sign of a rounding offset based on the sign of a transform coefficient and normalizes the transform coefficient using the rounding offset. When the inverse transform unit does not apply a transform skip, the inverse transform unit may perform an inverse coefficient transform on the transform coefficient normalized by the inverse quantization normalization unit.

[0064] A in Fig. 5 shows semantics related to the normalization process in inverse quantization (the normalization process by the normalization unit 112) described in Non-Patent Document 5. As shown in this semantics, in the normalization process in inverse quantization, normalization by logical bit shift is performed using a rounding offset bdOffset1 and a scaling parameter bdShift1 (equation (8-963)). The rounding offset bdOffset1 is derived as shown in the following equation (A) using the scaling parameter bdShift1.

[0065] bdOffset1 = (1<<(bdShift1-1)) ···(A)

[0066] Since the normalization process is a logical bit shift, the sign (positive or negative) of the rounding error (also called the dead zone) is biased. This means that the inverse quantization may be an irreversible process, which may cause information loss during the inverse quantization.

[0067] Therefore, for example, as shown in B of Fig. 5, the sign of the rounding offset in the normalization process in the inverse quantization is set based on the sign of the transform coefficient, which is the input value. That is, as shown in the following formula (B), the sign (sign(dz[x][y])) of the transform coefficient level TransCoefLevel[xTbY][yTbY][cIdx] (=dz[x][y]) is further multiplied.

[0068] bdOffset1 = sign(dz[x][y])*(1<<(bdShift1-1)) ···(B)

[0069] For example, in the inverse quantization and inverse transformation device 100, the inverse quantization unit 101 derives the rounding offset bdOffset1 as shown in equation (B), and the normalization unit 112 performs normalization using the rounding offset bdOffset1 and a scaling parameter bdShift1.

[0070] In other words, the inverse quantization unit 101 corrects the rounding offset bdOffset1 derived by equation (A) by multiplying the sign(dz[x][y]) of the transform coefficient level TransCoefLevel[xTbY][yTbY][cIdx] (=dz[x][y]). Then, the normalization unit 112 performs normalization using the corrected rounding offset bdOffset1′ and the scaling parameter bdShift1.

[0071] In this way, the normalization unit 112 can perform normalization processing by arithmetic bit shifting, thereby reducing bias in the signs (positive and negative) of rounding errors and suppressing information loss in inverse quantization.

[0072] <1-1-3: Rounding offset sign control> Parameters related to inverse transform may be controlled. For example, as shown in the fourth row from the top of the table in FIG. 1, the sign of the rounding offset of the normalization process in the inverse coefficient transform may be set based on the sign of the prediction residual, which is an input value (method 1-1-3).

[0073] For example, in an image processing device, when a transform skip is not applied, the sign of a rounding offset is set based on the sign of a prediction residual, and the prediction residual is normalized using the rounding offset, and when a transform skip is applied, the image processing device may further include an inverse transform normalization unit that sets the sign of a rounding offset based on the sign of a transform coefficient (i.e., a prediction residual), and normalizes the transform coefficient (i.e., a prediction residual) using the rounding offset.

[0074] A in Fig. 6 shows semantics related to the normalization process in the inverse coefficient transform (the normalization process by the normalization unit 124) described in Non-Patent Document 5. As shown in this semantics, in the normalization process in the inverse coefficient transform, normalization by logical bit shift is performed using the rounding offset bdOffset2 and the scaling parameter bdShift2 (Equation (8-946)). The rounding offset bdOffset2 is derived as shown in the following equation (C) using the scaling parameter bdShift2.

[0075] bdOffset2 = (1<<(bdShift2-1)) ···(C)

[0076] Since the normalization process is a logical bit shift, the sign (positive or negative) of the rounding error (also called the dead zone) is biased. This can cause the inverse coefficient transformation to be an irreversible process. In other words, there is a risk of information loss occurring in the inverse coefficient transformation.

[0077] Therefore, for example, as shown in B of Fig. 6, the sign of the rounding offset of the normalization process in the inverse coefficient transform is set based on the sign of the prediction residual, which is the input value. That is, as shown in the following formula (D), the sign (r[x][y]) of the prediction residual r[x][y] is further multiplied.

[0078] bdOffset2 = sign(r[x][y])*(1<<(bdShift2-1)) ···(D)

[0079] For example, in the inverse quantization and inverse transformation device 100, the inverse transformation unit 102 derives the rounding offset bdOffset2 as shown in equation (D), and the normalization unit 124 performs normalization using the rounding offset bdOffset2 and the scaling parameter bdShift2.

[0080] In other words, the inverse transform unit 102 corrects the rounding offset bdOffset2 derived by equation (C) by multiplying the sign (r[x][y]) of the prediction residual r[x][y]. Then, the normalization unit 124 performs normalization using the corrected rounding offset bdOffset2′ and the scaling parameter bdShift2.

[0081] In this way, the normalization unit 124 can perform normalization processing by arithmetic bit shifting, thereby reducing bias in the signs (positive and negative) of rounding errors and suppressing information loss in inverse coefficient transformation.

[0082] <1-1-4: Combination> The methods described in <1-1-1: Control of quantization parameter>, <1-1-2: Code control of rounding offset>, and <1-1-3: Code control of rounding offset> can be applied in appropriate combination. By combining more methods, the inverse quantization and inverse transform device 100 can further suppress information loss in the inverse quantization and inverse transform process. In other words, by combining more of the above-mentioned methods, the inverse quantization and inverse transform device 100 can make decoding by the "transform skip + QP4" approach closer to lossless decoding (lossless coding).

[0083] <Parameter control of transform quantization> As in the case of the inverse quantization and inverse transform process, in the transform quantization process, parameters related to the transform quantization may be set so as to reduce the amount of information lost, as shown in the fifth row from the top of the table in Figure 1 (method 1-2).

[0084] By controlling parameters in the transform quantization process to suppress information loss, it is possible to suppress information loss caused by encoding using this transform quantization process. In other words, encoding using the "transform skip + QP4" approach can be made closer to lossless encoding.

[0085] <1-2: Transformation and quantization device> Fig. 7 is a block diagram showing an example of the configuration of a transform and quantization device, which is one aspect of an image processing device to which the present technology is applied. The transform and quantization device 200 shown in Fig. 7 is a device that transforms and quantizes a prediction residual to generate a quantized coefficient.

[0086] Note that Fig. 7 shows the main processing units, data flows, etc., and is not limited to all that are shown in Fig. 7. In other words, in the transform and quantization device 200, there may be processing units that are not shown as blocks in Fig. 7, and there may be processing and data flows that are not shown as arrows, etc. in Fig. 7.

[0087] 7, the transform and quantization device 200 includes a transform unit 201 and a quantization unit 202. The transform unit 201 performs processing related to coefficient transform. The quantization unit 202 performs processing related to quantization.

[0088] The conversion unit 201 includes a selection unit 211 , a conversion processing unit 212 , a selection unit 213 , a normalization unit 214 , and an expansion processing unit 215 .

[0089] The selection unit 211 and the selection unit 213 select whether or not to apply a transform skip. The selection unit 211 acquires a prediction residual input to the transform quantization device 200. When the transform skip is not applied, that is, when a coefficient transform process is performed, the selection unit 211 supplies the acquired prediction residual to the transform processing unit 212. Furthermore, the selection unit 213 acquires the transform coefficient supplied from the transform processing unit 212, and supplies it to the normalization unit 214.

[0090] When the transform skip is applied, that is, when the coefficient transform process is skipped, the selection unit 211 supplies the acquired prediction residual to the decompression processing unit 215. The selection unit 213 acquires the prediction residual (the decompressed prediction residual) supplied from the decompression processing unit 215, and supplies it to the normalization unit 214.

[0091] The transform processing unit 212 acquires the prediction residual input to the transform and quantization device 200 via the selection unit 211. The transform processing unit 212 performs coefficient transform on the acquired prediction residual to generate transform coefficients. The transform processing unit 212 supplies the generated transform coefficients to the normalization unit 214 via the selection unit 213.

[0092] The decompression processing unit 215 obtains the prediction residual input to the transform and quantization device 200 via the selection unit 211. The decompression processing unit 215 decompresses the obtained prediction residual. The decompression processing unit 215 supplies the decompressed prediction residual to the normalization unit 214 via the selection unit 213.

[0093] When the transform skip is not applied, that is, when the coefficient transform process is performed, the normalization unit 214 acquires the transform coefficient supplied from the transform processing unit 212 via the selection unit 213. When the transform skip is applied, that is, when the coefficient transform process is skipped, the normalization unit 214 acquires the prediction residual (expanded prediction residual) supplied from the decompression processing unit 215 via the selection unit 213. That is, when the transform skip is applied, the coefficient transform is skipped, and the prediction residual is supplied to the normalization unit 214. The processing units after the normalization unit 214 process this prediction residual as a transform coefficient. That is, this prediction residual is processed in the same way as the transform coefficient generated in the transform processing unit 212. Therefore, in the following, the prediction residual supplied from the decompression processing unit will also be described as a transform coefficient. The normalization unit 214 normalizes the acquired transform coefficient. The normalization unit 214 supplies the normalized transform coefficient to the quantization unit 202.

[0094] The quantization unit 202 has a quantization processing unit 221 and a normalization unit 222. The quantization processing unit 221 acquires the transformation coefficients supplied from the transformation unit 201. The quantization processing unit 221 quantizes the acquired transformation coefficients to generate quantization coefficients. The quantization processing unit 221 supplies the generated quantization coefficients to the normalization unit 222. The normalization unit 222 acquires the quantization coefficients supplied from the quantization processing unit 221. The normalization unit 222 normalizes the acquired quantization coefficients. The normalization unit 222 outputs the normalized quantization coefficients to the outside of the transformation and quantization device 200.

[0095] In such a transform and quantization device 200, the above-mentioned (Method 1-2) is applied. That is, the transform and quantization device 200 sets parameters related to transform and quantization so as to suppress information loss. The normalization unit 214 can perform normalization using the parameters set in this way. The quantization processing unit 221 can perform quantization using the parameters set in this way. The normalization unit 222 can perform normalization using the parameters set in this way.

[0096] In this way, the transform and quantization device 200 can suppress information loss due to encoding using this transform and quantization process. In other words, the transform and quantization device 200 can make encoding using the "transform skip+QP4" approach closer to lossless encoding.

[0097] <Flow of conversion and quantization process> Next, an example of the flow of the transform and quantization process executed by the transform and quantization device 200 will be described with reference to the flowchart of FIG.

[0098] When the transform and quantization process starts, the selection unit 211 and the selection unit 213 determine whether or not to apply a transform skip in step S201. If it is determined that the transform skip is not to be applied, the process proceeds to step S202.

[0099] In step S202, the conversion unit 201 sets parameters related to coefficient conversion.

[0100] In step S203, the transform processing unit 212 performs coefficient transform on the prediction residuals using the parameters set in step S202 to generate transform coefficients. When the process of step S203 ends, the process proceeds to step S205.

[0101] Also, in the case where it is determined in step S201 that the transform skip is to be applied, the process proceeds to step S204. In step S204, the decompression processing unit 215 decompresses the prediction residual. When the process of step S204 ends, the process proceeds to step S205.

[0102] In step S205, the normalization unit 214 normalizes the transform coefficients generated in step S203 or the prediction residuals (that is, the transform coefficients) expanded in step S204, using the parameters set in step S202.

[0103] In step S206, the quantization unit 202 sets parameters related to quantization.

[0104] In step S207, the quantization processing unit 221 quantizes the transform coefficients normalized in step S205 using the parameters set in step S206 to generate quantized coefficients.

[0105] In step S208, the normalization unit 222 normalizes the quantization coefficients generated in step S207 using the parameters set in step S206.

[0106] When the process of step S208 ends, the conversion and quantization process ends.

[0107] In such a conversion quantization process, the above-mentioned (Method 1-2) is applied. That is, in step S202, the conversion unit 201 sets parameters related to coefficient conversion so as to suppress information loss. In step S205, the normalization unit 214 can perform normalization using the parameters thus set. Also, in step S206, the quantization unit 202 sets parameters related to quantization so as to suppress information loss. In step S207, the quantization processing unit 221 can perform quantization using the parameters thus set. In step S208, the normalization unit 222 can perform normalization using the parameters thus set.

[0108] In this way, the transform and quantization device 200 can suppress information loss due to encoding using this transform and quantization process. In other words, the transform and quantization device 200 can make encoding using the "transform skip+QP4" approach closer to lossless encoding.

[0109] <1-2-1: Quantization parameter control> As described above, the parameters related to quantization may be controlled. For example, in image processing, quantization of transform coefficients may be performed using a quantization parameter according to whether or not a transform skip is applied.

[0110] For example, an image processing device may include a quantization unit that quantizes transform coefficients using a quantization parameter according to whether or not a transform skip is applied.

[0111] In this way, the image processing device can suppress information loss due to encoding that applies quantization by the quantization unit. In other words, the image processing device can make encoding using the "transform skip + QP4" approach closer to lossless encoding.

[0112] In this case, when the quantization unit applies dependent quantization and does not apply transform skip in quantization, the quantization parameter may be corrected and the quantization may be performed using the corrected quantization parameter. That is, as shown in the sixth row from the top of the table in FIG. 1, the correction of the quantization parameter (QP) of dependent quantization may be controlled based on the transform skip (method 1-2-1).

[0113] As described above, in the coding method described in Non-Patent Document 5, the quantization parameter is corrected in response to application of dependent quantization, as in the example of A in Fig. 4. In other words, in the case of quantization, as in the case of inverse quantization, when transform skip is applied, the quantization step size cannot be set to 1 due to the correction of the quantization parameter (QP + 1) by dependent quantization. Therefore, there is a risk of information loss due to quantization.

[0114] Therefore, in the case of quantization, as in the case of inverse quantization, the condition "and the transform skip flag (transform_skip_flag) is not a value (IS_SKIP) indicating that the transform skip is applied" is added to the condition of the above equation (8-959) (B in FIG. 4). In addition, the condition "or the transform skip flag (transform_skip_flag) is true (IS_SKIP)" is added to the condition of the above equation (8-960) (B in FIG. 4).

[0115] The quantization processing unit 221 derives the scaling parameter ls according to such semantics. In this way, when a transform skip is applied, the formula (8-960) is applied, and correction of the quantization parameter by dependent quantization is omitted. Therefore, the quantization processing unit 221 can suppress information loss due to dependent quantization when a transform skip is applied.

[0116] <1-2-2: Rounding offset sign control> The parameter related to quantization to be controlled may be other than the quantization parameter. For example, as shown in the seventh row from the top of the table in Fig. 1, the sign of the rounding offset of the normalization process in the quantization may be set based on the sign of the quantization coefficient, which is the input value (method 1-2-2).

[0117] For example, the image processing device may further include a quantization normalization unit that sets the sign of a rounding offset based on the sign of a quantization coefficient and normalizes the quantization coefficient using the rounding offset.

[0118] In the case of normalization processing in quantization, similarly to the case of normalization processing in inverse quantization (equation (8-963) of A in FIG. 5), normalization is performed by logical bit shift using a rounding offset fwdbdOffset2 and a scaling parameter fwdbdShift2.

[0119] In other words, in the case of normalization processing in quantization, as in the case of normalization processing in inverse quantization, bias occurs in the sign (positive or negative) of the rounding error. Therefore, there is a risk that quantization becomes an irreversible process. In other words, there is a risk that information loss occurs in quantization.

[0120] Therefore, in the case of normalization processing in quantization, similar to the case of normalization processing in inverse quantization (B in FIG. 5), the sign of the rounding offset in the normalization processing in quantization is set based on the sign of the quantization coefficient, which is the input value.

[0121] For example, in the transform and quantization device 200, the quantization unit 202 derives the rounding offset fwdbdOffset2 using the scaling parameter fwdbdShift2 in the same manner as in equation (B), and the normalization unit 222 performs normalization using the rounding offset fwdbdOffset2 and the scaling parameter fwdbdShift2.

[0122] In other words, the quantization unit 202 corrects the rounding offset fwdbdOffset2 derived using the scaling parameter fwdbdShift2 by multiplying the sign of the quantization coefficient level. Then, the normalization unit 222 performs normalization using the corrected rounding offset fwdbdOffset2′ and the scaling parameter fwdbdShift2.

[0123] In this way, the normalization unit 222 can perform normalization processing by arithmetic bit shifting, thereby reducing bias in the signs (positive and negative) of rounding errors and suppressing information loss in quantization.

[0124] <1-2-3: Rounding offset sign control> A parameter related to coefficient transformation may be controlled. For example, as shown in the eighth row from the top of the table in FIG. 1, the sign of a rounding offset of a normalization process in coefficient transformation may be set based on the sign of a transformation coefficient, which is an input value (method 1-2-3).

[0125] For example, in an image processing device, when a transform skip is not applied, the sign of a rounding offset is set based on the sign of a transform coefficient, and the transform coefficient is normalized using the rounding offset, and when a transform skip is applied, the image processing device may further include a transform normalization unit that sets the sign of a rounding offset based on the sign of a transform coefficient (i.e., a prediction residual), and normalizes the transform coefficient (i.e., a prediction residual) using the rounding offset.

[0126] In the case of normalization processing in coefficient transform, similarly to the case of normalization processing in inverse coefficient transform (equation (8-946) in A of FIG. 6), normalization is performed by logical bit shift using a rounding offset fwdbdOffset1 and a scaling parameter fwdbdShift1.

[0127] In other words, in the case of normalization processing in coefficient transformation, as in the case of normalization processing in inverse coefficient transformation, bias occurs in the sign (positive or negative) of the rounding error. Therefore, there is a risk that the coefficient transformation becomes an irreversible process. In other words, there is a risk that information loss occurs in the coefficient transformation.

[0128] Therefore, in the case of normalization processing in coefficient transform, similar to the case of normalization processing in inverse coefficient transform (B in FIG. 6), the sign of the rounding offset of the normalization processing in coefficient transform is set based on the sign of the transform coefficient, which is the input value.

[0129] For example, in the transform / quantization device 200, the transform unit 201 derives the rounding offset fwdbdOffset1 using the scaling parameter fwdbdShift1 in the same manner as in equation (D), and the normalization unit 214 performs normalization using the rounding offset fwdbdOffset1 and the scaling parameter fwdbdShift1.

[0130] In other words, the transform unit 201 corrects the rounding offset fwdbdOffset1 derived using the scaling parameter fwdbdShift1 by multiplying the sign of the transform coefficient. Then, the normalization unit 214 performs normalization using the corrected rounding offset fwdbdOffset1′ and the scaling parameter fwdbdShift1.

[0131] In this way, the normalization unit 214 can perform normalization processing by arithmetic bit shifting, thereby reducing bias in the signs (positive and negative) of rounding errors and suppressing information loss in coefficient conversion.

[0132] <1-2-4: Combination> The methods described in <1-2-1: Control of quantization parameter>, <1-2-2: Control of code of rounding offset>, and <1-2-3: Control of code of rounding offset> can be applied in appropriate combination. By combining more methods, the transform quantization device 200 can further suppress information loss in the transform quantization process. In other words, by combining more of the above-mentioned methods, the transform quantization device 200 can make the encoding by the "transform skip + QP4" approach closer to lossless encoding (lossless encoding).

[0133] In addition, each method described in <1-2-1: Control of Quantization Parameter>, <1-2-2: Sign Control of Rounding Offset>, and <1-2-3: Sign Control of Rounding Offset> can be applied in appropriate combination with each method described in <1-1-1: Control of Quantization Parameter>, <1-1-2: Sign Control of Rounding Offset>, and <1-1-3: Sign Control of Rounding Offset>. That is, the inverse quantization inverse transformation device 100 can bring the decoding by the "transform skip + QP4" approach closer to reversible decoding (lossless coding), and the transform quantization device 200 can bring the coding by the "transform skip + QP4" approach closer to more reversible coding (lossless coding).

[0134] <3. Second Embodiment> <Merge of Extension Processing at Time of Transform Skip> When applying transform skip, there was redundant processing, which could increase the load of the inverse quantization inverse transformation process. For example, in the data path at the time of transform skip, there is a TS coefficient extension process specific to transform skip (<<tsShift) to equalize the dynamic range of the prediction residual after inverse orthogonal transformation and the dynamic range of the prediction residual when inverse orthogonal transformation is skipped. However, this TS coefficient extension process is a bit shift in the reverse direction from the normalization process (>>bdShift1) in the inverse quantization process. Therefore, it was redundant to perform these processes as different processes from each other.

[0135] Therefore, in the inverse quantization inverse transformation process, as shown in the ninth row from the top of the table in FIG. 1, the extension process (<<tsShift) in transform skip is replaced with the normalization process in inverse quantization (Method 2-1).

[0136] For example, in an image processing method, inverse quantization is performed on the quantized coefficients using a quantization parameter depending on whether a transform skip is applied, and if the transform skip is not applied, an inverse coefficient transform is performed on the transform coefficients generated by the inverse quantization to generate a prediction residual, which is the residual between an image and a predicted image of that image, and if the transform skip is applied, the inverse coefficient transform is skipped.

[0137] For example, an image processing device may include an inverse quantization unit that performs inverse quantization on quantized coefficients, an inverse quantization normalization unit that normalizes transform coefficients generated by inverse quantization by the inverse quantization unit using a scaling parameter according to whether a transform skip is applied, and an inverse transform unit that, when the transform skip is not applied, performs inverse coefficient transform on the transform coefficients normalized by the inverse quantization normalization unit to generate a prediction residual, which is the residual between an image and a predicted image of that image, and, when the transform skip is applied, skips the inverse coefficient transform.

[0138] In this way, it is possible to reduce redundant processing and suppress an increase in the load of the inverse quantization and inverse transform processing. In other words, it is possible to suppress an increase in the decoding load due to the "transform skip + QP4" approach.

[0139] <2-1: Inverse quantization and inverse transformation device> Fig. 9 is a block diagram showing an example of the configuration of the inverse quantization and inverse transformation device 100 in this case. Note that Fig. 9 shows main processing units, data flows, etc., and is not limited to all that are shown in Fig. 9. In other words, in the inverse quantization and inverse transformation device 100, there may be processing units not shown as blocks in Fig. 9, and there may be processing and data flows not shown as arrows, etc. in Fig. 9.

[0140] As shown in Fig. 9, the inverse quantization and inverse transform device 100 in this case has an inverse quantization unit 101 and an inverse transform unit 102, similar to the case in Fig. 2. The inverse quantization unit 101 has an inverse quantization processing unit 111 and a normalization unit 112, similar to the case in Fig. 2. The inverse transform unit 102 has a selection unit 121 to a normalization unit 124. That is, compared to the case in Fig. 2, the decompression processing unit 125 is omitted.

[0141] In such an inverse quantization and inverse transform device 100, the above-mentioned (method 2-1) is applied. That is, the inverse quantization and inverse transform device 100 replaces the expansion process in the transform skip with the normalization process in the inverse quantization. That is, the normalization unit 112 normalizes the transform coefficients generated by the inverse quantization by the inverse quantization processing unit 111 using a scaling parameter according to whether the transform skip is applied. Then, when the transform skip is applied, the expansion process by the expansion processing unit 125 in FIG. 2 is merged with the normalization process in the inverse quantization by the normalization unit 112 in FIG. 9.

[0142] In this way, the inverse quantization and inverse transform device 100 can suppress an increase in the load of the inverse quantization and inverse transform process. That is, the inverse quantization and inverse transform device 100 can suppress an increase in the load of decoding due to the "transform skip+QP4" approach.

[0143] <Flow of inverse quantization and inverse transform processing> Next, an example of the flow of the inverse quantization and inverse transform process in this case will be described with reference to the flowchart in FIG.

[0144] When the inverse quantization and inverse transform process in this case is started, the processes of steps S301 to S306 are executed basically in the same manner as the processes of steps S101 to S106 in FIG.

[0145] However, if it is determined in step S304 that conversion skip is to be applied, the process proceeds to step S307. Also, when the process of step S306 ends, the process proceeds to step S307.

[0146] The process of step S307 is executed in the same manner as the process of step S108 in Fig. 3. When the process of step S307 ends, the inverse quantization and inverse transform process ends.

[0147] In such an inverse quantization and inverse transform process, the above-mentioned (method 2-1) is applied. That is, in step S303, the normalization unit 112 performs a normalization process on the transform coefficients so as to replace the expansion process in the transform skip. That is, the normalization unit 112 normalizes the transform coefficients generated by the inverse quantization by the inverse quantization processing unit 111 using a scaling parameter according to whether the transform skip is applied. Then, when the transform skip is applied, the expansion process performed in step S107 of FIG. 3 is merged with the normalization process in the inverse quantization in step S303.

[0148] In this way, the inverse quantization and inverse transform device 100 can suppress an increase in the load of the inverse quantization and inverse transform process. That is, the inverse quantization and inverse transform device 100 can suppress an increase in the load of decoding due to the "transform skip+QP4" approach.

[0149] <2-1-1: Setting scaling parameters according to conversion skip> When the normalization process in the inverse quantization and the expansion process in the transform skip are performed as separate processes, the scaling parameter bdShift1 used in the normalization process and the scaling parameter tsShift used in the expansion process are derived, for example, as shown in the semantics of A in FIG. 11.

[0150] That is, the scaling parameter bdShift1 is derived by the sum of a component based on the bit depth (bitDepth), a component based on the transform block size and the transform skip flag (transform_skip_flag) ((rectNonTsFlag ? 1:0)), a component based on the transform block size ((log2(nTbW)+log2(nTbH) / 2)-5), and a component based on the dependent quantization (dep_quant_enabled_flag). Also, the scaling parameter tsShift is derived by a component based on the transform block size (5+(log2(nTbW)+log2(nTbH) / 2)).

[0151] That is, the scaling parameter bdShift1 includes a component with the positive and negative of the scaling parameter tsShift. Therefore, when the transform skip is applied, the bit shift of the decompression process in the transform skip is reflected in the bit shift of the normalization process in the inverse quantization, and these processes are merged.

[0152] In other words, when the normalization unit 112 does not apply a transform skip, it normalizes the transform coefficients using a scaling parameter that does not reflect the expansion processing in the transform skip, and when the normalization unit 112 applies a transform skip, it normalizes the transform coefficients using a scaling parameter that reflects the expansion processing in the transform skip.

[0153] For example, as shown in the semantics in B of Fig. 11, when deriving a scaling parameter bdShift1 used in the normalization process in inverse quantization, if the transform skip flag indicates application of the transform skip (transform_skip_flag == IS_SKIP), the component based on the transform block size is set to "0." Also, if the transform skip flag indicates non-application of the transform skip (transform_skip_flag != IS_SKIP), the component based on the transform block size is set to ((log2(nTbW)+log2(nTbH) / 2)-5).

[0154] In this way, the inverse quantization and inverse transform device 100 can reduce redundant processing, and therefore can suppress an increase in the load of the inverse quantization and inverse transform processing. In other words, the inverse quantization and inverse transform device 100 can suppress an increase in the decoding load due to the "transform skip+QP4" approach.

[0155] In this case, the method of expressing the semantics is arbitrary and is not limited to the example of B in Fig. 11. For example, as in the semantics of A in Fig. 12, the variable tsShift may be set depending on whether or not to apply a transform skip, and the variable tsShift may be used as a component based on the transform block size to derive the scaling parameter bdShift1.

[0156] Furthermore, as in the example of semantics in B of Fig. 12, a component based on dependent quantization may be set depending on whether or not a transform skip is applied. In this case, only when a transform skip is not applied, a component based on dependent quantization (dep_quant_enabled_flag) is added to the scaling parameter bdShift1.

[0157] In these cases (FIG. 12A and FIG. 12B), similarly to the case of FIG. 11B, redundant processing can be reduced.

[0158] <2-1-2: Setting scaling parameters corresponding to the quantization matrix> When the transform skip flag indicates application of the transform skip (transform_skip_flag==IS_SKIP), a component of the scaling parameter bdShift1 based on the transform block size may be set to a value according to the quantization matrix.

[0159] For example, as shown in the semantics in A of Fig. 13, when deriving a scaling parameter bdShift1 used in the normalization process in inverse quantization, if the transform skip flag indicates application of the transform skip (transform_skip_flag == IS_SKIP), the component based on the transform block size is set to "-4". Also, if the transform skip flag indicates non-application of the transform skip (transform_skip_flag != IS_SKIP), the component based on the transform block size is set to ((log2(nTbW)+log2(nTbH) / 2)-5).

[0160] In this way, the inverse quantization and inverse transform device 100 can prevent the process from overflowing.

[0161] In this case, the method of expressing the semantics is arbitrary and is not limited to the example of A in Fig. 12. For example, as in the semantics of B in Fig. 13, the variable tsShift may be set depending on whether or not to apply a transform skip, and the variable tsShift may be used as a component based on the transform block size to derive the scaling parameter bdShift1.

[0162] Furthermore, as in the example of semantics of C in Fig. 13, a component based on dependent quantization may be set depending on whether or not a transform skip is applied. In this case, a component based on dependent quantization (dep_quant_enabled_flag) is added to the scaling parameter bdShift1 only when a transform skip is not applied.

[0163] In these cases (FIG. 13B and FIG. 13C), similarly to the case of FIG. 13A, it is possible to prevent the process from becoming an overflow.

[0164] <Merge decompression process when conversion is skipped> In the conversion quantization process, it is the same as in the case of the above-mentioned inverse quantization inverse transformation process. That is, when applying conversion skip, there is redundant processing, which may increase the load of the conversion quantization process. For example, in the data path during conversion skip, in order to align the dynamic range of the conversion coefficients after orthogonal transformation and the dynamic range of the prediction residual when orthogonal transformation is skipped, there is a TS coefficient extension process specific to conversion skip (<<fwdtsShift). However, this TS coefficient extension process is a normalization process (>>fwdbdShift2) in the quantization process and a bit shift in the reverse direction. Therefore, it was redundant to perform these processes as different processes from each other.

[0165] Therefore, in the conversion quantization process, as shown in the tenth row from the top of the table in FIG. 1, the extension process (<<fwdtsShift) in conversion skip is replaced with the normalization process in quantization (Method 2-2).

[0166] For example, in an image processing method, when conversion skip is not applied, coefficient conversion is performed on the prediction residual, which is the residual between an image and its predicted image, to generate conversion coefficients. When conversion skip is applied, coefficient conversion is skipped. When conversion skip is not applied, quantization is performed on the conversion coefficients. When conversion skip is applied, quantization is performed on the prediction residual. The quantization coefficients generated by quantization are normalized using a scaling parameter according to whether conversion skip is applied.

[0167] For example, in an image processing apparatus, when conversion skip is not applied, coefficient conversion is performed on the prediction residual, which is the residual between an image and its predicted image, to generate conversion coefficients. When conversion skip is applied, a conversion unit that skips coefficient conversion, when conversion skip is not applied, a quantization unit that performs quantization on the conversion coefficients, and when conversion skip is applied, a quantization normalization unit that normalizes the quantization coefficients generated by quantization by the quantization unit using a scaling parameter according to whether conversion skip is applied are provided.

[0168] In this way, it is possible to reduce redundant processing and suppress an increase in the load of the transform quantization processing, that is, it is possible to suppress an increase in the encoding load due to the "transform skip + QP4" approach.

[0169] <2-2: Transformation and quantization device> Fig. 14 is a block diagram showing an example of the configuration of the transform and quantization device 200 in this case. Note that Fig. 14 shows main processing units, data flows, etc., and is not limited to all of the processing units and data flows shown in Fig. 14. In other words, in the transform and quantization device 200, there may be processing units not shown as blocks in Fig. 14, and there may be processing and data flows not shown as arrows in Fig. 14.

[0170] As shown in Fig. 14, the transform and quantization device 200 in this case has a transform unit 201 and a quantization unit 202, similar to the case of Fig. 7. The transform unit 201 has components from a selection unit 211 to a normalization unit 214. That is, compared to the case of Fig. 7, the decompression processing unit 215 is omitted. The quantization unit 202 has a quantization processing unit 221 and a normalization unit 222, similar to the case of Fig. 7.

[0171] In such a transform quantization device 200, the above-mentioned (Method 2-2) is applied. That is, the transform quantization device 200 replaces the decompression process in the transform skip with the normalization process in the quantization. That is, the normalization unit 222 normalizes the quantization coefficients generated by the quantization by the quantization unit 221 using a scaling parameter according to whether the transform skip is applied. Then, when the transform skip is applied, the decompression process by the decompression unit 215 in Fig. 7 is merged with the normalization process in the quantization by the normalization unit 222 in Fig. 14.

[0172] In this way, the transform / quantization device 200 can suppress an increase in the load of the transform / quantization process. That is, the transform / quantization device 200 can suppress an increase in the load of encoding due to the "transform skip+QP4" approach.

[0173] <Flow of conversion and quantization process> Next, an example of the flow of the conversion and quantization process in this case will be described with reference to the flowchart in FIG.

[0174] When the conversion and quantization process in this case is started, the processes of steps S321 to S327 are executed basically in the same manner as the processes of steps S201 to S203 and steps S205 to S208 in FIG.

[0175] However, if it is determined in step S321 that conversion skip is to be applied, the process proceeds to step S324. Also, when the process of step S323 ends, the process proceeds to step S324.

[0176] When the process of step S327 ends, the conversion and quantization process ends.

[0177] In such a transform quantization process, the above-mentioned (method 2-2) is applied. That is, in step S327, the normalization unit 222 performs a normalization process on the quantization coefficients so as to replace the expansion process in the transform skip. That is, the normalization unit 222 normalizes the quantization coefficients generated by the quantization by the quantization processing unit 221 using a scaling parameter according to whether the transform skip is applied. Then, when the transform skip is applied, the expansion process performed in step S204 of FIG. 8 is merged with the normalization process in the quantization in step S327.

[0178] In this way, the transform / quantization device 200 can suppress an increase in the load of the transform / quantization process. That is, the transform / quantization device 200 can suppress an increase in the load of encoding due to the "transform skip+QP4" approach.

[0179] <2-2-1: Setting scaling parameters according to conversion skip> When the normalization process in quantization and the expansion process in transform skip are performed as separate processes, the scaling parameter fwdbdShift2 used in the normalization process and the scaling parameter fwdtsShift used in the expansion process are derived in the same manner as in the example of A in FIG.

[0180] In other words, the scaling parameter fwdbdShift2 contains a component with the positive and negative of the scaling parameter fwdtsShift. Therefore, it is redundant to perform the normalization process in the quantization and the expansion process in the transform skip as separate processes. Therefore, when the transform skip is applied, the bit shift of the expansion process in the transform skip is reflected in the bit shift of the normalization process in the quantization, and these processes are merged.

[0181] In other words, when a transform skip is not applied, the transform processing unit 212 performs coefficient transformation on the prediction residual, and when a transform skip is applied, the transform processing unit 212 skips the coefficient transformation without performing the expansion process. When a transform skip is not applied, the normalization unit 222 normalizes the quantization coefficients using a scaling parameter that does not reflect the expansion process in the transform skip, and when a transform skip is applied, the normalization unit 222 normalizes the quantization coefficients using a scaling parameter that reflects the expansion process.

[0182] For example, similarly to the case of the semantics shown in B of Fig. 11, when deriving the scaling parameter fwdbdShift2 used in the normalization process in quantization, if the transform skip flag indicates application of the transform skip (transform_skip_flag == IS_SKIP), the component based on the transform block size is set to "0." Also, if the transform skip flag indicates non-application of the transform skip (transform_skip_flag != IS_SKIP), the component based on the transform block size is set to ((log2(nTbW)+log2(nTbH) / 2)-5).

[0183] In this way, the transform and quantization device 200 can reduce redundant processing, and thus can suppress an increase in the load of the transform and quantization processing. That is, the transform and quantization device 200 can suppress an increase in the load of encoding due to the "transform skip+QP4" approach.

[0184] In this case, the semantics may be expressed in any manner. For example, as in the case of the semantics of A in FIG. 12, the variable fwdtsShift may be set depending on whether or not to apply a transform skip, and the variable fwdtsShift may be used as a component based on the transform block size to derive the scaling parameter fwdbdShift1.

[0185] Also, similarly to the case of the semantics of B in Fig. 12, a component based on dependent quantization may be set depending on whether or not a transform skip is applied. In this case, only when a transform skip is not applied, a component based on dependent quantization (dep_quant_enabled_flag) is added to the scaling parameter fwdbdShift2.

[0186] In these cases as well, redundant processing can be reduced.

[0187] <2-2-2: Setting scaling parameters corresponding to the quantization matrix> Also, in the case of this transform quantization process, as in the case of the inverse quantization inverse transform process described above, if the transform skip flag indicates the application of a transform skip (transform_skip_flag == IS_SKIP), the component based on the transform block size of the scaling parameter fwdbdShift2 may be set to a value corresponding to the quantization matrix.

[0188] For example, as in the case of the semantics shown in A of Fig. 13, when deriving the scaling parameter fwdbdShift2 used in the normalization process in quantization, if the transform skip flag indicates application of the transform skip (transform_skip_flag == IS_SKIP), the component based on the transform block size is set to "-4". Also, if the transform skip flag indicates non-application of the transform skip (transform_skip_flag != IS_SKIP), the component based on the transform block size is set to ((log2(nTbW)+log2(nTbH) / 2)-5).

[0189] In this way, the transform and quantization device 200 can prevent the process from overflowing.

[0190] In this case, the semantics may be expressed in any manner. For example, as in the case of the semantics of B in FIG. 13, the variable fwdtsShift may be set depending on whether or not to apply a transform skip, and the variable fwdtsShift may be used as a component based on the transform block size to derive the scaling parameter fwdbdShift2.

[0191] Also, similarly to the case of the semantics of C in Fig. 13, a component based on dependent quantization may be set depending on whether or not a transform skip is applied. In this case, only when a transform skip is not applied, a component based on dependent quantization (dep_quant_enabled_flag) is added to the scaling parameter fwdbdShift2.

[0192] In these cases, as in the case of A in FIG. 13, it is possible to prevent the process from becoming an overflow.

[0193] Each method described in this embodiment mode can be applied in combination with each method described in the first embodiment mode as appropriate.

[0194] <4. Third embodiment> <Merge of Normalization Processing During Conversion Skip> For example, in the data path during conversion skip, in order to align the dynamic range of the prediction residual after inverse coefficient conversion and the dynamic range of the conversion coefficient (i.e., the prediction residual) when inverse coefficient conversion is skipped, there are a TS coefficient extension process specific to conversion skip (<<tsShift) and a normalization process by "bdShift2". However, the bit shifts in this TS coefficient heightening process and normalization process can be merged with the bit shift in the normalization process (>>bdShift1) in the inverse quantization process. That is, performing these bit shifts respectively was redundant.

[0195] Therefore, in the inverse quantization inverse transformation process, as shown in the 11th row from the top of the table in FIG. 1, in the case of conversion skip, the extension process (<<tsShift) in conversion skip and the normalization process in inverse coefficient conversion are replaced by the normalization process in inverse quantization (Method 3-1).

[0196] By doing so, redundant processing can be reduced, and an increase in the load of the inverse quantization inverse transformation process can be suppressed. That is, an increase in the decoding load by the "conversion skip + QP4" approach can be suppressed.

[0197] <3-1: Inverse Quantization Inverse Transformation Device> FIG. 16 is a block diagram showing an example of the configuration of the inverse quantization inverse transformation device 100 in this case. Note that in FIG. 16, main components such as processing units and data flows are shown, and not all components shown in FIG. 16 are necessarily included. That is, in the inverse quantization inverse transformation device 100, there may be processing units not shown as blocks in FIG. 16, or there may be processes and data flows not shown as arrows or the like in FIG. 16.

[0198] As shown in Fig. 16, the inverse quantization and inverse transform device 100 in this case has an inverse quantization unit 101 and an inverse transform unit 102, similar to the case in Fig. 2. The inverse quantization unit 101 has an inverse quantization processing unit 111 and a normalization unit 112, similar to the case in Fig. 2. The inverse transform unit 102 has a selection unit 121 to a normalization unit 124. That is, compared to the case in Fig. 2, the decompression processing unit 125 is omitted.

[0199] Furthermore, the normalization unit 124 is provided between the inverse transform processing unit 122 and the selection unit 123. Therefore, in this case, when a transform skip is not applied, the normalization unit 124 obtains the prediction residual supplied from the inverse transform processing unit 122, performs a normalization process on the prediction residual, and supplies the normalized prediction residual to the selection unit 123. When a transform skip is not applied, the selection unit 123 obtains the prediction residual (normalized prediction residual) supplied from the normalization unit 124, and outputs it to the outside of the inverse quantization and inverse transform device 100.

[0200] In such an inverse quantization and inverse transform device 100, the above-mentioned (Method 3-1) is applied. That is, in the case of transform skip, the inverse quantization and inverse transform device 100 replaces the expansion process in the transform skip and the normalization process in the inverse coefficient transform with the normalization process in the inverse quantization. That is, the normalization unit 112 normalizes the transform coefficients generated by the inverse quantization by the inverse quantization processing unit 111 using a scaling parameter according to whether the transform skip is applied. Then, when the transform skip is applied, the expansion process by the expansion processing unit 125 in FIG. 2 and the normalization process in the inverse coefficient transform by the normalization unit 124 in FIG. 2 are merged with the normalization process in the inverse quantization by the normalization unit 112 in FIG. 16.

[0201] In this way, the inverse quantization and inverse transform device 100 can suppress an increase in the load of the inverse quantization and inverse transform process. That is, the inverse quantization and inverse transform device 100 can suppress an increase in the load of decoding due to the "transform skip+QP4" approach.

[0202] <Flow of inverse quantization and inverse transform processing> Next, an example of the flow of the inverse quantization and inverse transform process in this case will be described with reference to the flowchart in FIG.

[0203] When the inverse quantization and inverse transform process in this case is started, the processes of steps S341 to S347 are executed basically in the same manner as the processes of steps S301 to S307 in FIG.

[0204] However, if it is determined in step S344 that a transform skip is to be applied, the processes of steps S345 to S347 are skipped, and the inverse quantization and inverse transform process ends.

[0205] In such an inverse quantization and inverse transform process, the above-mentioned (method 3-1) is applied. That is, in step S343, when a transform skip is applied, the normalization unit 112 performs a normalization process on the transform coefficients so as to substitute the expansion process in the transform skip and the normalization process in the inverse coefficient transform. That is, the normalization unit 112 normalizes the transform coefficients generated by the inverse quantization by the inverse quantization processing unit 111 using a scaling parameter according to whether or not the transform skip is applied. Then, when a transform skip is applied, the expansion process performed in step S107 in FIG. 3 and the normalization process performed in step S108 in FIG. 3 are merged with the normalization process in the inverse quantization in step S343.

[0206] In this way, the inverse quantization and inverse transform device 100 can suppress an increase in the load of the inverse quantization and inverse transform process. That is, the inverse quantization and inverse transform device 100 can suppress an increase in the load of decoding due to the "transform skip+QP4" approach.

[0207] <3-1-1: Setting scaling parameters according to conversion skip> When the normalization process in inverse quantization, the expansion process in transform skip, and the normalization process in inverse coefficient transform are performed as separate processes, the scaling parameter bdShift1 used in the normalization process in inverse quantization, the scaling parameter tsShift used in the expansion process, and the scaling parameter bdShift2 used in the normalization process in inverse coefficient transform are derived, for example, as shown in the semantics of A in Figure 18.

[0208] That is, the scaling parameters bdShift1 and tsShift are derived as described in the second embodiment. The scaling parameter bdShift2 is set to the greater of the difference between "20" and the bit depth (bitDepth) and "0". Bit shifts using these scaling parameters are merged.

[0209] In other words, when the normalization unit 124 does not apply a transform skip, it normalizes the prediction residual, and when the normalization unit 112 applies a transform skip, it normalizes the transform coefficients using a scaling parameter that reflects the normalization process performed by the normalization unit 124 on the prediction residual.

[0210] For example, as in the semantics shown in B of Figure 18, when the transform skip flag indicates the application of a transform skip (transform_skip_flag == IS_SKIP), the scaling parameter bdShift1 used in the normalization process in inverse quantization is derived by the sum of the variable trBdShift and a component based on dependent quantization (dep_quant_enabled_flag).

[0211] This variable trBdShift is derived as the sum of a value according to inverse quantization (INV_QUANT) and a value according to the scaling list (SCALING_LIST_BITS), as shown in the semantics of B in FIG.

[0212] For example, the value corresponding to the inverse quantization (INV_QUANT) is set to "6," and the value corresponding to the scaling list (SCALING_LIST_BITS) is set to "4." That is, the variable trBdShift is set to "10."

[0213] In this way, the inverse quantization and inverse transform device 100 can reduce redundant processing, and therefore can suppress an increase in the load of the inverse quantization and inverse transform processing. In other words, the inverse quantization and inverse transform device 100 can suppress an increase in the decoding load due to the "transform skip+QP4" approach.

[0214] In this case, the semantics may be expressed in any manner. For example, as in the semantics of A in Fig. 19, the variable trBdShift may be set depending on whether or not to apply a transform skip, and the variable trBdShift may be used as a component based on the transform block size to derive the scaling parameter bdShift1.

[0215] Furthermore, as in the example of semantics in B of Fig. 19, a component based on dependent quantization may be set depending on whether or not a transform skip is applied. In this case, only when a transform skip is not applied, a component based on dependent quantization (dep_quant_enabled_flag) is added to the scaling parameter bdShift1.

[0216] In these cases (A in FIG. 19 and B in FIG. 19), redundant processing can be reduced, similarly to the case of B in FIG.

[0217] <Merge normalization process when conversion is skipped> Also in the conversion quantization process, it is the same as in the case of the above inverse quantization inverse transformation process. That is, when applying conversion skip, there is redundant processing, which may increase the load of the conversion quantization process. For example, in the data path during conversion skip, in order to align the dynamic range of the conversion coefficients after orthogonal transformation and the dynamic range of the prediction residual when orthogonal transformation is skipped, there are a TS coefficient extension process specific to conversion skip (<<fwdtsShift) and a normalization process by "fwdbdShift1". However, the bit shifts in this TS coefficient heightening process and normalization process can be merged with the bit shift in the normalization process (>>fwdbdShift2) in the quantization process. That is, it was redundant to perform these bit shifts respectively.

[0218] Therefore, in the conversion quantization process, as shown in the 12th row (the bottom row) from the top of the table in FIG. 1, in the case of conversion skip, the extension process (<<fwdtsShift) in conversion skip and the normalization process in coefficient conversion are replaced by the normalization process in quantization (Method 3-2).

[0219] By doing so, redundant processing can be reduced, and an increase in the load of the conversion quantization process can be suppressed. That is, an increase in the encoding load by the "conversion skip + QP4" approach can be suppressed.

[0220] <3-2: Conversion Quantization Device> FIG. 20 is a block diagram showing an example of the configuration of the conversion quantization device 200 in this case. Note that in FIG. 20, main elements such as processing units and data flows are shown, and what is shown in FIG. 20 is not necessarily all. That is, in the conversion quantization device 200, there may be processing units not shown as blocks in FIG. 20, or there may be processes and data flows not shown as arrows or the like in FIG. 20.

[0221] As shown in Fig. 20, the transform and quantization device 200 in this case has a transform unit 201 and a quantization unit 202, similar to the case in Fig. 7. The transform unit 201 has components from a selection unit 211 to a normalization unit 214. That is, compared to the case in Fig. 7, the decompression processing unit 215 is omitted.

[0222] Moreover, the normalization unit 214 is provided between the transform processing unit 212 and the selection unit 213. Therefore, in this case, when a transform skip is not applied, the normalization unit 214 acquires the transform coefficient supplied from the transform processing unit 212, performs a normalization process on the transform coefficient, and supplies the normalized transform coefficient to the selection unit 213. When a transform skip is not applied, the selection unit 213 acquires the transform coefficient (normalized transform coefficient) supplied from the normalization unit 214, and outputs it to the outside of the transform and quantization device 200.

[0223] The quantization unit 202 includes a quantization processing unit 221 and a normalization unit 222, similar to the case of FIG.

[0224] In such a transform quantization device 200, the above-mentioned (Method 3-2) is applied. That is, the transform quantization device 200 replaces the expansion process in the transform skip and the normalization process in the coefficient transform with a normalization process in the quantization. That is, the normalization unit 222 normalizes the quantized coefficients generated by the quantization by the quantization unit 221 using a scaling parameter according to whether the transform skip is applied. Then, when the transform skip is applied, the expansion process by the expansion unit 215 in Fig. 7 and the normalization process by the normalization unit 214 in Fig. 7 are merged with the normalization process in the quantization by the normalization unit 222 in Fig. 20.

[0225] In this way, the transform / quantization device 200 can suppress an increase in the load of the transform / quantization process. That is, the transform / quantization device 200 can suppress an increase in the load of encoding due to the "transform skip+QP4" approach.

[0226] <Flow of conversion and quantization process> Next, an example of the flow of the conversion and quantization process in this case will be described with reference to the flowchart in FIG.

[0227] When the conversion and quantization process in this case is started, the processes of steps S361 to S367 are executed basically in the same manner as the processes of steps S321 to S327 in FIG.

[0228] However, if it is determined in step S361 that conversion skip is to be applied, the processes of steps S362 to S364 are skipped, and the process proceeds to step S365.

[0229] In such a transform quantization process, the above-mentioned (method 3-2) is applied. That is, in step S367, when a transform skip is applied, the normalization unit 222 performs a normalization process on the transform coefficients so as to substitute the expansion process in the transform skip and the normalization process in the coefficient transform. That is, the normalization unit 222 normalizes the quantization coefficients generated by the quantization by the quantization processing unit 221 using a scaling parameter according to whether or not a transform skip is applied. Then, when a transform skip is applied, the expansion process performed in step S204 of FIG. 8 and the normalization process performed in step S205 of FIG. 8 are merged with the normalization process in the quantization in step S367.

[0230] In this way, the transform / quantization device 200 can suppress an increase in the load of the transform / quantization process. That is, the transform / quantization device 200 can suppress an increase in the load of encoding due to the "transform skip+QP4" approach.

[0231] <3-2-1: Setting scaling parameters according to conversion skip> When the normalization unit 214 does not apply a transform skip, it normalizes the transform coefficients, and when the normalization unit 222 applies a transform skip, it normalizes the quantization coefficients using a scaling parameter that reflects the normalization process performed by the normalization unit 214 on the prediction residual.

[0232] For example, as in the case of B in Figure 18, when the transform skip flag indicates the application of the transform skip (transform_skip_flag == IS_SKIP), the scaling parameter fwdbdShift2 used in the normalization process in quantization is derived by the sum of the variable fwdtrBdShift and the component based on dependent quantization (dep_quant_enabled_flag).

[0233] This variable fwdtrBdShift is derived as the sum of a value according to quantization (QUANT) and a value according to the scaling list (SCALING_LIST_BITS), similar to the case of the semantics shown in FIG.

[0234] For example, the value corresponding to the quantization (QUANT) is set to "6," and the value corresponding to the scaling list (SCALING_LIST_BITS) is set to "4." That is, the variable fwdtrBdShift is set to "10."

[0235] In this way, the transform and quantization device 200 can reduce redundant processing, and thus can suppress an increase in the load of the transform and quantization processing. That is, the transform and quantization device 200 can suppress an increase in the load of encoding due to the "transform skip+QP4" approach.

[0236] In this case, the semantics may be expressed in any manner. For example, as in the case of the semantics of A in Fig. 19, the variable fwdtrBdShift may be set depending on whether or not the conversion skip is applied, and the scaling parameter fwdbdShift2 may be derived using the variable fwdtrBdShift.

[0237] Also, similarly to the case of the semantics example of B in Fig. 19, a component based on dependent quantization may be set depending on whether or not a transform skip is applied. In this case, only when a transform skip is not applied, a component based on dependent quantization (dep_quant_enabled_flag) is added to the scaling parameter fwdbdShift2.

[0238] In these cases (A in FIG. 19 and B in FIG. 19), redundant processing can be reduced, similarly to the case of B in FIG.

[0239] <5. Fourth embodiment> <Image Decoding Device> The present technology described above in the first to third embodiments can be applied to any apparatus, device, system, etc. For example, the present technology can be applied to an image decoding device that decodes encoded data of image data. It can also be applied to an image encoding device that encodes image data.

[0240] Fig. 22 is a block diagram showing an example of the configuration of an image decoding device, which is one aspect of an image processing device to which the present technology is applied. The image decoding device 500 shown in Fig. 22 is a device that decodes encoded data of a moving image. For example, the image decoding device 500 decodes encoded data of a moving image encoded by an encoding method such as VVC, AVC, or HEVC described in the above-mentioned non-patent document. For example, the image decoding device 500 can decode encoded data (bit stream) generated by an image encoding device 600 described later.

[0241] Note that Fig. 22 shows the main processing units, data flows, etc., and is not limited to all that are shown in Fig. 22. In other words, in the image decoding device 500, there may be processing units not shown as blocks in Fig. 22, and there may be processing and data flows not shown as arrows, etc. in Fig. 22. This is the same in other figures explaining processing units, etc. in the image decoding device 500.

[0242] 22, the image decoding device 500 includes a control unit 501, an accumulation buffer 511, a decoding unit 512, an inverse quantization and inverse transform unit 513, a calculation unit 514, an in-loop filter unit 515, a rearrangement buffer 516, a frame memory 517, and a prediction unit 518. Note that the prediction unit 518 includes an intra prediction unit and an inter prediction unit, not shown.

[0243] <Control Unit> The control unit 501 performs processing related to control of decoding. For example, the control unit 501 acquires coding parameters (header information Hinfo, prediction mode information Pinfo, transformation information Tinfo, residual information Rinfo, filter information Finfo, etc.) included in the bitstream via the decoding unit 512. The control unit 501 may also estimate coding parameters not included in the bitstream. Furthermore, the control unit 501 controls each processing unit (accumulation buffer 511 to prediction unit 518) of the image decoding device 500 based on the acquired (or estimated) coding parameters, thereby controlling the decoding.

[0244] For example, the control unit 501 supplies header information Hinfo to the inverse quantization and inverse transform unit 513, the prediction unit 518, and the in-loop filter unit 515. In addition, the control unit 501 supplies prediction mode information Pinfo to the inverse quantization and inverse transform unit 513 and the prediction unit 518. In addition, the control unit 501 supplies transformation information Tinfo to the inverse quantization and inverse transform unit 513. In addition, the control unit 501 supplies residual information Rinfo to the decoding unit 512. In addition, the control unit 501 supplies filter information Finfo to the in-loop filter unit 515.

[0245] Of course, the above example is merely an example, and the present invention is not limited to this example. For example, each encoding parameter may be supplied to an arbitrary processing unit. In addition, other information may be supplied to an arbitrary processing unit.

[0246] <Header information Hinfo> The header information Hinfo includes, for example, header information such as a video parameter set (VPS), a sequence parameter set (SPS), a picture parameter set (PPS), a picture header (PH), and a slice header (SH). The header information Hinfo includes, for example, information that specifies an image size (horizontal width PicWidth, vertical width PicHeight), bit depth (luminance bitDepthY, chrominance bitDepthC), a chrominance array type ChromaArrayType, a maximum value MaxCUSize / minimum value MinCUSize of CU size, a maximum depth MaxQTDepth / minimum depth MinQTDepth of quad-tree partitioning, a maximum depth MaxBTDepth / minimum depth MinBTDepth of binary-tree partitioning, a maximum value MaxTSSize of transform skip blocks (also called maximum transform skip block size), an on / off flag (also called valid flag) of each encoding tool, and the like.

[0247] For example, the on / off flag of the encoding tool included in the header information Hinfo includes on / off flags related to the conversion and quantization processes shown below. The on / off flag of the encoding tool can also be interpreted as a flag indicating whether or not syntax related to the encoding tool is present in the encoded data. When the value of the on / off flag is 1 (true), it indicates that the encoding tool is usable, and when the value of the on / off flag is 0 (false), it indicates that the encoding tool is not usable. The interpretation of the flag value may be reversed.

[0248] <Prediction mode information Pinfo> The prediction mode information Pinfo includes, for example, size information PBSize (prediction block size) of the processing target PB (prediction block), intra prediction mode information IPinfo, motion prediction information MVinfo, and other information.

[0249] The intra prediction mode information IPinfo includes, for example, prev_intra_luma_pred_flag, mpm_idx, and rem_intra_pred_mode in JCTVC-W1005, 7.3.8.5 Coding Unit syntax, and a luma intra prediction mode IntraPredModeY derived from the syntax.

[0250] In addition, the intra-prediction mode information IPinfo includes, for example, an inter-component prediction flag (ccp_flag (cclmp_flag)), a multi-class linear prediction mode flag (mclm_flag), a chrominance sample position type identifier (chroma_sample_loc_type_idx), a chrominance MPM identifier (chroma_mpm_idx), and a luma intra-prediction mode (IntraPredModeC) derived from these syntaxes.

[0251] The inter-component prediction flag (ccp_flag (cclmp_flag)) is flag information indicating whether or not inter-component linear prediction is applied. For example, when ccp_flag==1, it indicates that inter-component prediction is applied, and when ccp_flag==0, it indicates that inter-component prediction is not applied.

[0252] The multi-class linear prediction mode flag (mclm_flag) is information on the linear prediction mode (linear prediction mode information). More specifically, the multi-class linear prediction mode flag (mclm_flag) is flag information indicating whether or not to use the multi-class linear prediction mode. For example, "0" indicates a one-class mode (single class mode) (e.g., CCLMP), and "1" indicates a two-class mode (multi-class mode) (e.g., MCLMP).

[0253] The chrominance sample location type identifier (chroma_sample_loc_type_idx) is an identifier that identifies the type of pixel location of the chrominance component (also referred to as the chrominance sample location type).

[0254] Note that this chrominance sample location type identifier (chroma_sample_loc_type_idx) is transmitted (stored in) information about the pixel location of the chrominance component (chroma_sample_loc_info()).

[0255] The chroma MPM identifier (chroma_mpm_idx) is an identifier indicating which prediction mode candidate in the chroma intra prediction mode candidate list (intraPredModeCandListC) is to be specified as the chroma intra prediction mode.

[0256] The motion prediction information MVinfo includes information such as merge_idx, merge_flag, inter_pred_idc, ref_idx_LX, mvp_lX_flag, X={0,1}, mvd, etc. (see, for example, JCTVC-W1005, 7.3.8.6 Prediction Unit Syntax).

[0257] Of course, the prediction mode information Pinfo may include any information, and may include information other than the above information.

[0258] <Conversion information Tinfo> The conversion information Tinfo includes, for example, the following information: Of course, the information included in the conversion information Tinfo is arbitrary, and information other than the above information may be included.

[0259] The width size TBWSize and height TBHSize of the transform block to be processed may be logarithmic values ​​log2TBWSize and log2TBHSize of TBWSize and TBHSize, respectively, with the base 2. Transform skip flag (ts_flag): A flag indicating whether or not to skip the (inverse) primary transform and the (inverse) secondary transform. Scan Identifier (scanIdx) Quantization parameter (qp) Quantization matrix (scaling_matrix): For example, JCTVC-W1005, 7.3.4 Scaling list data syntax

[0260] <Residual information Rinfo> The residual information Rinfo (see, for example, 7.3.8.11 Residual Coding syntax in JCTVC-W1005) includes, for example, the following syntax:

[0261] cbf(coded_block_flag): Residual data presence flag last_sig_coeff_x_pos: last non-zero coefficient X coordinate last_sig_coeff_y_pos: Y coordinate of the last non-zero coefficient coded_sub_block_flag: Sub-block non-zero coefficient presence / absence flag sig_coeff_flag: Non-zero coefficient presence / absence flag gr1_flag: Flag indicating whether the level of the non-zero coefficient is greater than 1 (also called the GR1 flag) gr2_flag: Flag indicating whether the level of the non-zero coefficient is greater than 2 (also called the GR2 flag) sign_flag: Sign indicating the positive or negative of the non-zero coefficient (also called the sign sign) coeff_abs_level_remaining: The remaining level of non-zero coefficients (also called the non-zero coefficient residual level) etc.

[0262] Of course, the information included in the residual information Rinfo is arbitrary, and information other than the above information may be included.

[0263] <Filter information Finfo> The filter information Finfo includes, for example, control information related to each of the following filter processes:

[0264] Control information for the deblocking filter (DBF) Control information for pixel adaptive offset (SAO) Control information for the adaptive loop filter (ALF) Other control information for linear and nonlinear filters

[0265] More specifically, for example, information specifying a picture to which each filter is applied, an area within a picture, filter On / Off control information for each CU, filter On / Off control information related to slice and tile boundaries, etc. Of course, any information is included in the filter information Finfo, and information other than these pieces of information may be included.

[0266] <Accumulation buffer> The accumulation buffer 511 acquires and holds (stores) the bitstream input to the image decoding device 500. At a predetermined timing, or when a predetermined condition is met, the accumulation buffer 511 extracts coded data included in the accumulated bitstream and supplies the coded data to the decoding unit 512.

[0267] <Decryption section> The decoding unit 512 performs processing related to image decoding. For example, the decoding unit 512 receives the encoded data supplied from the accumulation buffer 511 as input, and entropy-decodes (losslessly decodes) the syntax values ​​of the syntax elements from the bit string in accordance with the definition of the syntax table, to derive parameters.

[0268] The parameters derived from the syntax elements and the syntax values ​​of the syntax elements include, for example, header information Hinfo, prediction mode information Pinfo, transformation information Tinfo, residual information Rinfo, filter information Finfo, etc. In other words, the decoding unit 512 parses (analyzes and obtains) this information from the bitstream.

[0269] Moreover, the decoding unit 512 performs such parsing under the control of the control unit 501. Then, the decoding unit 512 supplies the control unit 501 with the information obtained by parsing.

[0270] Furthermore, the decoding unit 512 decodes the encoded data by referring to the residual information Rinfo. At this time, the decoding unit 512 applies entropy decoding (lossless decoding) such as CABAC or CAVLC. That is, the decoding unit 512 decodes the encoded data by a decoding method corresponding to the encoding method performed by the encoding unit 614 of the image encoding device 600.

[0271] For example, assume that CABAC is applied. In the non-lossless coding mode, the decoding unit 512 performs arithmetic decoding using a context model on the coded data to derive a quantization coefficient level for each coefficient position in each transform block. The decoding unit 512 supplies the derived quantization coefficient level to the inverse quantization and inverse transform unit 513.

[0272] Furthermore, in the lossless coding mode, the decoding unit 512 performs arithmetic decoding on the coded data in bypass mode to derive residual data D. The decoding unit 512 supplies the derived residual data D to the inverse quantization and inverse transform unit 513.

[0273] <Inverse quantization and inverse transform section> The inverse quantization and inverse transform unit 513 performs processes related to inverse quantization and inverse coefficient transformation. For example, in the case of a non-lossless coding mode, the inverse quantization and inverse transform unit 513 acquires the quantization coefficient level supplied from the decoding unit 512. The inverse quantization and inverse transform unit 513 scales (inverse quantizes) the acquired quantization coefficient level to derive a transform coefficient Coeff. The inverse quantization and inverse transform unit 513 performs inverse coefficient transformation, such as inverse orthogonal transformation, on the transform coefficient Coeff to derive residual data D'. The inverse quantization and inverse transform unit 513 supplies the residual data D' to the calculation unit 514.

[0274] The inverse quantization and inverse transform unit 513 may skip (omit) these inverse quantization and inverse coefficient transform. For example, in the case of a lossless coding mode, the inverse quantization and inverse transform unit 513 obtains the residual data D supplied from the decoding unit 512. The inverse quantization and inverse transform unit 513 skips (omits) the inverse quantization and inverse coefficient transform, and supplies the residual data D to the calculation unit 514 as residual data D'.

[0275] Note that the inverse quantization and inverse transform unit 513 performs these processes under the control of the control unit 501. For example, the inverse quantization and inverse transform unit 513 can perform these processes based on prediction mode information Pinfo and transformation information Tinfo supplied from the control unit 501.

[0276] <Arithmetic section> The calculation unit 514 performs processing related to addition of information related to an image. For example, the calculation unit 514 receives the residual data D' supplied from the inverse quantization and inverse transform unit 513 and a predicted image supplied from the prediction unit 518. The calculation unit 514 adds the residual data and a predicted image (prediction signal) corresponding to the residual data to derive a locally decoded image. The calculation unit 514 supplies the derived locally decoded image to the in-loop filter unit 515 and the frame memory 517.

[0277] <In-loop filter section> The in-loop filter unit 515 performs processing related to in-loop filter processing. For example, the in-loop filter unit 515 receives as input a locally decoded image supplied from the calculation unit 514 and filter information Finfo supplied from the control unit 501. Note that any information is input to the in-loop filter unit 515, and information other than the above information may be input.

[0278] The in-loop filter unit 515 performs appropriate filtering on the locally decoded image based on the filter information Finfo. For example, the in-loop filter unit 515 applies four in-loop filters, a bilateral filter, a deblocking filter (DBF (DeBlocking Filter)), an adaptive offset filter (SAO (Sample Adaptive Offset)), and an adaptive loop filter (ALF (Adaptive Loop Filter)), in this order. Note that which filters are applied and in what order they are applied are arbitrary and can be appropriately selected.

[0279] The in-loop filter unit 515 performs a filter process corresponding to the filter process performed by the encoding side (for example, the in-loop filter unit 618 of the image encoding device 600). Of course, the filter process performed by the in-loop filter unit 515 is arbitrary and is not limited to the above example. For example, the in-loop filter unit 515 may apply a Wiener filter or the like.

[0280] The in-loop filter unit 515 supplies the filtered locally decoded image to a reordering buffer 516 and a frame memory 517 .

[0281] <Sorting Buffer> The reordering buffer 516 receives the locally decoded images supplied from the in-loop filter unit 515 and holds (stores) them. The reordering buffer 516 uses the locally decoded images to reconstruct decoded images for each picture and holds them (stores them in the buffer). The reordering buffer 516 reorders the obtained decoded images from the decoding order to the playback order. The reordering buffer 516 outputs the reordered decoded images to the outside of the image decoding device 500 as video data.

[0282] <Frame memory> The frame memory 517 performs processing related to storage of image-related data. For example, the frame memory 517 receives the locally decoded image supplied from the calculation unit 514, reconstructs the decoded image for each picture, and stores the reconstructed image in a buffer within the frame memory 517.

[0283] Furthermore, the frame memory 517 receives as input the locally decoded image that has been in-loop filtered and is supplied from the in-loop filter unit 515, reconstructs a decoded image for each picture, and stores the reconstructed image in a buffer within the frame memory 517. The frame memory 517 appropriately supplies the stored decoded image (or a part thereof) to the prediction unit 518 as a reference image.

[0284] The frame memory 517 may store header information Hinfo, prediction mode information Pinfo, transformation information Tinfo, filter information Finfo, and the like, which are related to the generation of a decoded image.

[0285] <Prediction Department> The prediction unit 518 performs processing related to the generation of a predicted image. For example, the prediction unit 518 receives prediction mode information Pinfo supplied from the control unit 501 and a decoded image (or a part thereof) read from the frame memory 517 as input. The prediction unit 518 performs prediction processing in a prediction mode adopted at the time of encoding based on the prediction mode information Pinfo, and generates a predicted image by referring to the decoded image as a reference image. The prediction unit 518 supplies the generated predicted image to the calculation unit 514.

[0286] <Application of inverse quantization and inverse transformation device> The inverse quantization and inverse transform device 100 described above in the first to third embodiments may be applied as the inverse quantization and inverse transform unit 513 of the image decoding device 500 described above. That is, the inverse quantization and inverse transform unit 513 may have a configuration as shown in FIG. 2, FIG. 9, or FIG. 16. By doing so, the inverse quantization and inverse transform unit 513 can obtain the effects described above in the first to third embodiments. That is, the image decoding device 500 can obtain the effects described above in the first to third embodiments in its decoding process.

[0287] <Flow of image decoding process> Next, an example of the flow of the image decoding process executed by the image decoding device 500 described above will be described with reference to the flowchart in FIG.

[0288] When the image decoding process starts, in step S501, the accumulation buffer 511 acquires and holds (accumulates) a bit stream (encoded data) supplied from outside the image decoding device 500.

[0289] In step S502, the decoding unit 512 parses (analyzes and acquires) various coding parameters from the bit stream. The control unit 501 supplies the acquired various coding parameters to various processing units, thereby setting the various coding parameters.

[0290] In step S503, the control unit 501 sets a processing unit based on the obtained coding parameters.

[0291] In step S504, the decoding unit 512 decodes the bit stream under the control of the control unit 501 to obtain coefficient data (quantized coefficient level or residual data r). For example, when CABAC is applied, in the non-lossless coding mode, the decoding unit 512 performs arithmetic decoding using a context model to derive the quantized coefficient level of each coefficient position in each transform block. In addition, in the lossless coding mode, the decoding unit 512 performs arithmetic decoding on the coded data in bypass mode to derive the residual data D.

[0292] In step S505, the inverse quantization and inverse transform unit 513 performs an inverse quantization and inverse transform process to generate residual data r(D'). The inverse quantization and inverse transform process will be described later.

[0293] In step S506, the prediction unit 518 performs a prediction process using a prediction method specified by the encoding side based on the encoding parameters set in step S502, and generates a predicted image P by referring to a reference image stored in the frame memory 517, etc.

[0294] In step S507, the calculation unit 514 adds the residual data D' obtained in step S505 and the predicted image P obtained in step S506 to derive a locally decoded image Rlocal.

[0295] In step S508, the in-loop filter unit 515 performs an in-loop filter process on the locally decoded image Rlocal obtained by the process in step S507.

[0296] In step S509, the reordering buffer 516 derives the decoded images R using the locally decoded images R filtered in the process of step S508, and reorders the order of the decoded images R from the decoding order to the playback order. The decoded images R reordered in the playback order are output to the outside of the image decoding device 500 as a moving image.

[0297] Furthermore, in step S510, the frame memory 517 stores at least one of the locally decoded image Rlocal obtained by the process in step S507 and the locally decoded image Rlocal filtered by the process in step S508.

[0298] When the process of step S510 ends, the image decoding process ends.

[0299] <Application of inverse quantization and inverse transform processing> The inverse quantization and inverse transform process described above in the first to third embodiments may be applied as the inverse quantization and inverse transform process (step S505) of the image decoding device 500 as described above. That is, this inverse quantization and inverse transform process may be executed according to a flow such as the flowchart shown in FIG. 3, FIG. 10, or FIG. 17. By doing so, the inverse quantization and inverse transform unit 513 can obtain the effects described above in the first to third embodiments. That is, the image decoding device 500 can obtain the effects described above in the first to third embodiments in the image decoding process.

[0300] <6. Fifth embodiment> <Image encoding device> Fig. 24 is a block diagram showing an example of the configuration of an image encoding device, which is one aspect of an image processing device to which the present technology is applied. The image encoding device 600 shown in Fig. 24 is a device that encodes image data of a moving image. For example, the image encoding device 600 encodes image data of a moving image using an encoding method such as VVC (Versatile Video Coding), AVC (Advanced Video Coding), or HEVC (High Efficiency Video Coding) described in the above-mentioned non-patent literature.

[0301] Note that Fig. 24 shows the main processing units, data flows, etc., and is not limited to all that are shown in Fig. 24. In other words, in the image encoding device 600, there may be processing units not shown as blocks in Fig. 24, and there may be processing and data flows not shown as arrows, etc. in Fig. 24. This is the same in other figures explaining processing units, etc. in the image encoding device 600.

[0302] 24, the image coding device 600 includes a control unit 601, a rearrangement buffer 611, a calculation unit 612, a transform / quantization unit 613, an encoding unit 614, and an accumulation buffer 615. The image coding device 600 also includes a dequantization / inverse transform unit 616, a calculation unit 617, an in-loop filter unit 618, a frame memory 619, a prediction unit 620, and a rate control unit 621.

[0303] <Control Unit> The control unit 601 divides the video data held by the rearrangement buffer 611 into blocks (CU, PU, ​​TU, etc.) of processing units based on an external or pre-specified block size of the processing units. The control unit 601 also determines the coding parameters (header information Hinfo, prediction mode information Pinfo, transformation information Tinfo, filter information Finfo, etc.) to be supplied to each block based on, for example, RDO (Rate-Distortion Optimization). For example, the control unit 601 can set a transformation skip flag, etc.

[0304] These coding parameters will be described in detail later. After determining the coding parameters as described above, the control unit 601 supplies them to each block. More specifically, the process is as follows.

[0305] The header information Hinfo is supplied to each block. The prediction mode information Pinfo is supplied to the encoding unit 614 and the prediction unit 620. The transformation information Tinfo is supplied to the encoding unit 614, the transformation and quantization unit 613, and the inverse quantization and inverse transformation unit 616. The filter information Finfo is supplied to the in-loop filter unit 618.

[0306] <Sorting Buffer> Each field (input image) of video data is input to the image coding device 600 in its playback order (display order). The reordering buffer 611 acquires and holds (stores) each input image in its playback order (display order). Under the control of the control unit 601, the reordering buffer 611 reorders the input images in coding order (decoding order) and divides them into blocks, which are processing units. The reordering buffer 611 supplies each processed input image to the calculation unit 612.

[0307] <Arithmetic section> The calculation unit 612 subtracts the predicted image P supplied from the prediction unit 620 from the image corresponding to the block of processing units supplied from the sorting buffer 611 to derive residual data D, and supplies it to the transformation and quantization unit 613.

[0308] <Transformation and quantization section> The transform and quantization unit 613 performs processing related to coefficient transformation and quantization. For example, the transform and quantization unit 613 obtains residual data D supplied from the calculation unit 612. In the case of a non-lossless coding mode, the transform and quantization unit 613 performs coefficient transformation, such as orthogonal transformation, on the residual data D to derive a transform coefficient Coeff. The transform and quantization unit 613 scales (quantizes) the transform coefficient Coeff to derive a quantization coefficient level. The transform and quantization unit 613 supplies the quantization coefficient level to the encoding unit 614 and the inverse quantization and inverse transform unit 616.

[0309] The transform and quantization unit 613 can skip (omit) coefficient transform and quantization. In the lossless coding mode, the transform and quantization unit 613 skips the coefficient transform and quantization, and supplies the acquired residual data D to the coding unit 614 and the inverse quantization and inverse transform unit 616.

[0310] Note that the transform and quantization unit 613 performs these processes under the control of the control unit 601. For example, the transform and quantization unit 613 may perform these processes based on prediction mode information Pinfo and transformation information Tinfo supplied from the control unit 601. In addition, the rate of quantization performed by the transform and quantization unit 613 is controlled by the rate control unit 621.

[0311] <Encoding part> The encoding unit 614 receives as input the quantization coefficient level (or residual data D) supplied from the transformation and quantization unit 613, various encoding parameters (header information Hinfo, prediction mode information Pinfo, transformation information Tinfo, filter information Finfo, etc.) supplied from the control unit 601, information regarding filters such as filter coefficients supplied from the in-loop filter unit 618, and information regarding the optimal prediction mode supplied from the prediction unit 620.

[0312] The encoding unit 614 performs entropy encoding (lossless encoding) such as CABAC (Context-based Adaptive Binary Arithmetic Code) or CAVLC (Context-based Adaptive Variable Length Code) on the quantization coefficient level or the residual data D to generate a bit string (encoded data). For example, when CABAC is applied, the encoding unit 614 performs arithmetic encoding using a context model on the quantization coefficient level in a non-lossless encoding mode to generate encoded data. Also, in a lossless encoding mode, the encoding unit 614 performs arithmetic encoding on the residual data D in a bypass mode to generate encoded data.

[0313] Furthermore, the encoding unit 614 derives residual information Rinfo from the quantized coefficient levels and residual data, encodes the residual information Rinfo, and generates a bit string.

[0314] Furthermore, the encoding unit 614 includes information on the filter supplied from the in-loop filter unit 618 in the filter information Finfo, and includes information on the optimal prediction mode supplied from the prediction unit 620 in the prediction mode information Pinfo. Then, the encoding unit 614 encodes the various encoding parameters (header information Hinfo, prediction mode information Pinfo, transformation information Tinfo, filter information Finfo, etc.) described above to generate a bit string.

[0315] The encoding unit 614 multiplexes the bit strings of the various types of information generated as described above to generate encoded data. The encoding unit 614 supplies the encoded data to the accumulation buffer 615.

[0316] <Accumulation buffer> The accumulation buffer 615 temporarily holds the encoded data obtained in the encoding unit 614. The accumulation buffer 615 outputs the held encoded data, for example as a bit stream, to the outside of the image encoding device 600 at a predetermined timing. For example, this encoded data is transmitted to the decoding side via an arbitrary recording medium, an arbitrary transmission medium, an arbitrary information processing device, etc. In other words, the accumulation buffer 615 is also a transmission unit that transmits the encoded data (bit stream).

[0317] <Inverse quantization and inverse transform section> The inverse quantization and inverse transform unit 616 performs processing related to inverse quantization and inverse coefficient transformation. For example, in the case of a non-lossless coding mode, the inverse quantization and inverse transform unit 616 receives the quantization coefficient level supplied from the transform and quantization unit 613 and the transformation information Tinfo supplied from the control unit 601 as input. The inverse quantization and inverse transform unit 616 scales (inverse quantizes) the value of the quantization coefficient level based on the transformation information Tinfo to derive the transformation coefficient Coeff. Note that this inverse quantization is the inverse process of the quantization performed by the transform and quantization unit 613. The inverse quantization and inverse transform unit 616 also performs inverse coefficient transformation (for example, inverse orthogonal transformation) on the transformation coefficient Coeff based on the transformation information Tinfo to derive residual data D'. Note that this inverse coefficient transformation is the inverse process of the coefficient transformation performed by the transform and quantization unit 613. The inverse quantization and inverse transform unit 616 supplies the derived residual data D' to the calculation unit 617.

[0318] Note that the inverse quantization and inverse transform unit 616 can skip (omit) this inverse quantization and inverse coefficient transform. For example, when a lossless coding mode is applied, the inverse quantization and inverse transform unit 616 receives as input the residual data D supplied from the transform and quantization unit 613 and the transformation information Tinfo supplied from the control unit 601. The inverse quantization and inverse transform unit 616 skips this inverse quantization and inverse coefficient transform, and supplies the residual data D (as residual data D') to the calculation unit 617.

[0319] Note that since this inverse quantization and inverse transform unit 616 is similar to the inverse quantization and inverse transform unit on the decoding side (described later), the explanation on the decoding side (described later) can be applied to the inverse quantization and inverse transform unit 616.

[0320] <Arithmetic section> The calculation unit 617 receives the residual data D' supplied from the inverse quantization and inverse transform unit 616 and the predicted image P supplied from the prediction unit 620. The calculation unit 617 adds the residual data D' to the predicted image corresponding to the residual data D' to derive a locally decoded image. The calculation unit 617 supplies the derived locally decoded image to an in-loop filter unit 618 and a frame memory 619.

[0321] <In-loop filter section> The in-loop filter unit 618 performs processing related to in-loop filter processing. For example, the in-loop filter unit 618 receives the locally decoded image supplied from the calculation unit 617, the filter information Finfo supplied from the control unit 601, and the input image (original image) supplied from the rearrangement buffer 611. Note that any information is input to the in-loop filter unit 618, and information other than the above information may be input. For example, a prediction mode, motion information, a code amount target value, a quantization parameter QP, a picture type, information on a block (CU, CTU, etc.), etc. may be input to the in-loop filter unit 618 as necessary.

[0322] The in-loop filter unit 618 performs appropriate filtering on the locally decoded image based on the filter information Finfo. The in-loop filter unit 618 also uses the input image (original image) and other input information for the filtering, as necessary.

[0323] For example, the in-loop filter unit 618 can apply four in-loop filters, a bilateral filter, a deblocking filter (DBF (DeBlocking Filter)), an adaptive offset filter (SAO (Sample Adaptive Offset)), and an adaptive loop filter (ALF (Adaptive Loop Filter)), in this order. Note that which filters to apply and in what order to apply them are arbitrary and can be appropriately selected.

[0324] Of course, the filtering process performed by the in-loop filter unit 618 is arbitrary and is not limited to the above example. For example, the in-loop filter unit 618 may apply a Wiener filter or the like.

[0325] The in-loop filter unit 618 supplies the filtered locally decoded image to the frame memory 619. When transmitting information about the filter, such as a filter coefficient, to the decoding side, the in-loop filter unit 618 supplies the information about the filter to the encoding unit 614.

[0326] <Frame memory> The frame memory 619 performs processing related to storage of image-related data. For example, the frame memory 619 receives as input a locally decoded image supplied from the calculation unit 617 and a locally decoded image that has been subjected to a filter process supplied from the in-loop filter unit 618, and holds (stores) them. The frame memory 619 also uses the locally decoded images to reconstruct and hold a decoded image for each picture (stores the image in a buffer within the frame memory 619). The frame memory 619 supplies the decoded image (or a part thereof) to the prediction unit 620 in response to a request from the prediction unit 620.

[0327] <Prediction Department> The prediction unit 620 performs processing related to the generation of a predicted image. For example, the prediction unit 620 receives the prediction mode information Pinfo supplied from the control unit 601, the input image (original image) supplied from the rearrangement buffer 611, and the decoded image (or a part thereof) read from the frame memory 619 as input. The prediction unit 620 performs prediction processing such as inter prediction or intra prediction using the prediction mode information Pinfo and the input image (original image), performs prediction by referring to the decoded image as a reference image, performs motion compensation processing based on the prediction result, and generates a predicted image. The prediction unit 620 supplies the generated predicted image to the calculation unit 612 and the calculation unit 617. The prediction unit 620 also supplies information on the prediction mode selected by the above processing, i.e., the optimal prediction mode, to the encoding unit 614 as necessary.

[0328] <Rate control section> The rate control unit 621 performs processing related to rate control. For example, the rate control unit 621 controls the rate of the quantization operation of the transform and quantization unit 613 based on the code amount of the encoded data accumulated in the accumulation buffer 615 so as to prevent overflow or underflow.

[0329] <Application of transform quantization device> The transform and quantization device 200 described above in the first to third embodiments may be applied as the transform and quantization unit 613 of the image coding device 600 described above. That is, the transform and quantization unit 613 may have a configuration as shown in FIG. 7, FIG. 14, or FIG. 20. In this manner, the transform and quantization unit 613 can obtain the effects described above in the first to third embodiments. That is, the image coding device 600 can obtain the effects described above in the first to third embodiments in its decoding process.

[0330] <Image encoding process flow> An example of the flow of image encoding processing executed by the image encoding device 600 will be described with reference to the flowchart in FIG.

[0331] When the image encoding process starts, in step S601, the reordering buffer 611 is controlled by the control unit 601 to reorder the frames of the input video data from the display order to the encoding order.

[0332] In step S602, the control unit 601 determines (sets) coding parameters for the input image held by the reordering buffer 611.

[0333] In step S603, the control unit 601 sets a processing unit for the input image held by the sorting buffer 611 (performs block division).

[0334] In step S604, the prediction unit 620 performs a prediction process to generate a predicted image, etc., of an optimal prediction mode. For example, in this prediction process, the prediction unit 620 performs intra prediction to generate a predicted image, etc., of an optimal intra prediction mode, performs inter prediction to generate a predicted image, etc., of an optimal inter prediction mode, and selects an optimal prediction mode from among them based on a cost function value, etc.

[0335] In step S605, the calculation unit 612 calculates the difference between the input image and the prediction image of the optimal mode selected by the prediction process in step S604. That is, the calculation unit 612 generates residual data D between the input image and the prediction image. The residual data D thus obtained has a reduced data amount compared to the original image data. Therefore, the data amount can be compressed compared to the case where the image is encoded as it is.

[0336] In step S606, the transform / quantization unit 613 performs a transform / quantization process on the residual data D generated in the process of step S605, in accordance with the transform mode information generated in step S601.

[0337] In step S607, the inverse quantization and inverse transform unit 616 performs an inverse quantization and inverse transform process. This inverse quantization and inverse transform process is an inverse process of the transform quantization process in step S606, and the same process is also performed in the above-mentioned image decoding device 500. Therefore, this inverse quantization and inverse transform process will be described when describing the decoding side (image decoding device 500). This description can be applied to this inverse quantization and inverse transform process (step S607). Through this process, the inverse quantization and inverse transform unit 616 appropriately performs inverse quantization or inverse coefficient transform on the input coefficient data (quantized coefficient level or residual data r(D)) to generate residual data D'.

[0338] In step S608, the calculation unit 617 generates a locally decoded image by adding the predicted image obtained by the prediction process in step S604 to the residual data D' obtained by the inverse quantization and inverse transform process in step S607.

[0339] In step S609, the in-loop filter unit 618 performs an in-loop filter process on the locally decoded image derived in the process of step S608.

[0340] In step S610, the frame memory 619 stores the locally decoded image derived by the process in step S608 and the locally decoded image filtered in step S609.

[0341] In step S611, the encoding unit 614 encodes the quantization coefficient level or the residual data D obtained by the transform and quantization process in step S606 to generate encoded data. At this time, the encoding unit 614 also encodes various encoding parameters (header information Hinfo, prediction mode information Pinfo, and transform information Tinfo). Furthermore, the encoding unit 614 derives residual information RInfo from the quantization coefficient level or the residual data D, and encodes the residual information RInfo.

[0342] In step S612, the accumulation buffer 615 accumulates the encoded data thus obtained and outputs it to the outside of the image encoding device 600, for example as a bit stream. This bit stream is transmitted to the decoding side, for example, via a transmission path or a recording medium. In addition, the rate control unit 621 performs rate control as necessary. When the process of step S612 ends, the image encoding process ends.

[0343] <Application of transformation and quantization processing> The inverse quantization and inverse transform processing described above in the first to third embodiments may be applied as the transform and quantization processing (step S606) of the image coding device 600 as described above. That is, this inverse quantization and inverse transform processing may be executed according to a flow like the flowchart shown in FIG. 8, FIG. 15, or FIG. 21. By doing so, the transform and quantization unit 613 can obtain the effects described above in the first to third embodiments. That is, the image coding device 600 can obtain the effects described above in the first to third embodiments in the image coding processing.

[0344] <7. Notes> <Computer> The above-mentioned series of processes can be executed by hardware or software. When the series of processes is executed by software, the programs constituting the software are installed in a computer. Here, the computer includes a computer built into dedicated hardware, and a general-purpose personal computer, etc., capable of executing various functions by installing various programs.

[0345] FIG. 26 is a block diagram showing an example of the hardware configuration of a computer that executes the above-mentioned series of processes by a program.

[0346] In a computer 800 shown in FIG. 26, a CPU (Central Processing Unit) 801, a ROM (Read Only Memory) 802, and a RAM (Random Access Memory) 803 are interconnected via a bus 804.

[0347] An input / output interface 810 is also connected to the bus 804. To the input / output interface 810, an input unit 811, an output unit 812, a storage unit 813, a communication unit 814, and a drive 815 are connected.

[0348] The input unit 811 includes, for example, a keyboard, a mouse, a microphone, a touch panel, an input terminal, etc. The output unit 812 includes, for example, a display, a speaker, an output terminal, etc. The storage unit 813 includes, for example, a hard disk, a RAM disk, a non-volatile memory, etc. The communication unit 814 includes, for example, a network interface. The drive 815 drives removable media 821 such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory.

[0349] In the computer configured as above, the CPU 801 performs the above-mentioned series of processes by, for example, loading a program stored in the storage unit 813 into the RAM 803 via the input / output interface 810 and the bus 804 and executing the program. The RAM 803 also stores data and the like necessary for the CPU 801 to execute various processes as appropriate.

[0350] The program executed by the computer can be applied by recording it on a removable medium 821 such as a package medium, for example. In this case, the program can be installed in the storage unit 813 via the input / output interface 810 by mounting the removable medium 821 on the drive 815.

[0351] This program can also be provided via a wired or wireless transmission medium such as a local area network, the Internet, digital satellite broadcasting, etc. In this case, the program can be received by the communication unit 814 and installed in the storage unit 813.

[0352] In addition, this program can also be installed in advance in the ROM 802 or the storage unit 813.

[0353] <Target of application of this technology> This technology can be applied to any image encoding / decoding method. In other words, as long as it does not conflict with the above-mentioned technology, the specifications of various processes related to image encoding / decoding, such as transform (inverse transform), quantization (inverse quantization), encoding (decoding), and prediction, are arbitrary and are not limited to the above-mentioned examples. In addition, as long as it does not conflict with the above-mentioned technology, some of these processes may be omitted.

[0354] This technology can also be applied to a multi-viewpoint image encoding / decoding system that encodes and decodes multi-viewpoint images that include images from multiple views. In that case, this technology can be applied to the encoding / decoding of each view.

[0355] Furthermore, this technology can be applied to a hierarchical image coding (scalable coding) and decoding system that performs coding and decoding of hierarchical images that are layered to have a scalability function for a predetermined parameter. In that case, this technology can be applied to the coding and decoding of each layer.

[0356] Furthermore, in the above, the inverse quantization and inverse transformation device 100, the transform quantization device 200, the image decoding device 500, and the image encoding device 600 have been described as application examples of the present technology, but the present technology can be applied to any configuration.

[0357] For example, the present technology can be applied to various electronic devices, such as transmitters and receivers (e.g., television sets and mobile phones) in satellite broadcasting, wired broadcasting such as cable TV, distribution over the Internet, and distribution to terminals via cellular communication, or devices (e.g., hard disk recorders and cameras) that record images on media such as optical disks, magnetic disks, and flash memories, and play images from these storage media.

[0358] Furthermore, for example, the present technology can also be implemented as part of an apparatus, such as a processor (e.g., a video processor) as a system LSI (Large Scale Integration), a module (e.g., a video module) using multiple processors, a unit (e.g., a video unit) using multiple modules, or a set in which other functions are added to a unit (e.g., a video set).

[0359] In addition, for example, the present technology can also be applied to a network system composed of multiple devices. For example, the present technology may be implemented as cloud computing in which multiple devices share and cooperate with each other to perform processing via a network. For example, the present technology may be implemented in a cloud service that provides services related to images (video images) to any terminal such as a computer, an AV (Audio Visual) device, a portable information processing terminal, or an IoT (Internet of Things) device.

[0360] In this specification, a system refers to a collection of multiple components (devices, modules (parts), etc.), regardless of whether all the components are in the same housing. Therefore, multiple devices housed in separate housings and connected via a network, and a single device in which multiple modules are housed in a single housing, are both systems.

[0361] <Fields and applications where this technology can be applied> Systems, devices, processing units, etc. to which the present technology is applied can be used in any field, such as transportation, medical care, crime prevention, agriculture, livestock farming, mining, beauty, factories, home appliances, weather, and nature monitoring. In addition, the applications are also arbitrary.

[0362] For example, the present technology can be applied to systems and devices used for providing ornamental content, etc. Furthermore, for example, the present technology can be applied to systems and devices used for traffic, such as monitoring traffic conditions and automatic driving control. Furthermore, for example, the present technology can be applied to systems and devices used for security. Furthermore, for example, the present technology can be applied to systems and devices used for automatic control of machines, etc. Furthermore, for example, the present technology can be applied to systems and devices used for agriculture and livestock farming. Furthermore, for example, the present technology can be applied to systems and devices that monitor natural conditions, such as volcanoes, forests, and oceans, and wildlife, etc. Furthermore, for example, the present technology can be applied to systems and devices used for sports.

[0363] <Other> In this specification, a "flag" refers to information for identifying multiple states, and includes not only information used to identify two states, true (1) or false (0), but also information capable of identifying three or more states. Thus, the value that this "flag" can take may be, for example, a binary value of 1 / 0, or may be three or more values. In other words, the number of bits constituting this "flag" is arbitrary, and may be one bit or multiple bits. Furthermore, it is assumed that identification information (including flags) is not only included in the bit stream, but also includes difference information of the identification information with respect to certain reference information in the bit stream. Therefore, in this specification, "flag" and "identification information" include not only the information itself, but also difference information with respect to the reference information.

[0364] Also, various information (metadata, etc.) related to the coded data (bit stream) may be transmitted or recorded in any form as long as it is associated with the coded data. Here, the term "associate" means, for example, that one piece of data can be used (linked) when processing the other piece of data. That is, data associated with each other may be combined into one piece of data, or each piece of data may be made into separate data. For example, information associated with coded data (image) may be transmitted on a transmission path different from that of the coded data (image). Also, for example, information associated with coded data (image) may be recorded on a recording medium different from that of the coded data (image) (or on a different recording area of ​​the same recording medium). Note that this "association" may be a part of the data, not the entire data. For example, an image and information corresponding to the image may be associated with each other in any unit, such as multiple frames, one frame, or a part of a frame.

[0365] In this specification, the terms "combine," "multiplex," "append," "integrate," "include," "store," "embed," "insert," and the like refer to combining multiple items into one, such as combining encoded data and metadata into one piece of data, and refer to one method of "associating" as described above.

[0366] Furthermore, the embodiments of the present technology are not limited to the above-described embodiments, and various modifications are possible without departing from the gist of the present technology.

[0367] For example, the configuration described above as one device (or processing unit) may be divided and configured as multiple devices (or processing units). Conversely, the configurations described above as multiple devices (or processing units) may be combined and configured as one device (or processing unit). Of course, configurations other than those described above may be added to the configuration of each device (or processing unit). Furthermore, as long as the configuration and operation of the system as a whole are substantially the same, part of the configuration of one device (or processing unit) may be included in the configuration of another device (or other processing unit).

[0368] Also, for example, the above-mentioned program may be executed in any device, as long as the device has the necessary functions (functional blocks, etc.) and can obtain the necessary information.

[0369] Also, for example, each step of one flowchart may be executed by one device, or may be shared and executed by multiple devices. Furthermore, when one step includes multiple processes, the multiple processes may be executed by one device, or may be shared and executed by multiple devices. In other words, multiple processes included in one step can be executed as multiple step processes. Conversely, processes described as multiple steps can be executed collectively as one step.

[0370] Also, for example, the processing of the steps of a program executed by a computer may be executed in chronological order according to the order described in this specification, or may be executed in parallel, or individually at a required timing such as when a call is made. In other words, the processing of each step may be executed in an order different from the order described above, so long as no contradiction occurs. Furthermore, the processing of the steps of this program may be executed in parallel with the processing of another program, or may be executed in combination with the processing of another program.

[0371] Also, for example, a plurality of techniques related to the present technology can be implemented independently and independently, as long as no contradiction occurs. Of course, any of a plurality of the present technologies can be implemented in combination. For example, a part or all of the present technology described in any of the embodiments can be implemented in combination with a part or all of the present technology described in other embodiments. Also, a part or all of any of the above-mentioned present technologies can be implemented in combination with other technologies not described above.

[0372] The present technology can also be configured as follows. (1) an inverse quantization unit that performs inverse quantization on a quantized coefficient using a quantization parameter according to whether or not a transform skip is applied; an inverse transform unit that performs inverse coefficient transform on the transform coefficients generated by the inverse quantization by the inverse quantization unit when the transform skip is not applied, generates a prediction residual that is a residual between an image and a prediction image of the image, and skips the inverse coefficient transform when the transform skip is applied; An image processing device comprising: (2) When the inverse dependent quantization is applied in the inverse quantization and the transform skip is not applied, the inverse quantization unit corrects the quantization parameter and performs the inverse quantization using the corrected quantization parameter. An image processing device as described in (1). (3) further comprising an inverse quantization normalization unit that sets a sign of a rounding offset based on a sign of the transform coefficient, and normalizes the transform coefficient using the rounding offset; When the transform skip is not applied, the inverse transform unit performs the inverse coefficient transform on the transform coefficients normalized by the inverse quantization normalization unit. An image processing device as described in (1). (4) The inverse transform normalization unit further includes an inverse transform normalization unit that sets a sign of a rounding offset based on a sign of the prediction residual when the transform skip is not applied, and normalizes the prediction residual using the rounding offset, and sets a sign of the rounding offset based on a sign of the transform coefficient when the transform skip is applied, and normalizes the transform coefficient using the rounding offset. An image processing device as described in (1). (5) performing inverse quantization on the quantized coefficients using a quantization parameter depending on whether or not a transform skip is applied; When the transform skip is not applied, an inverse coefficient transform is performed on the transform coefficients generated by the inverse quantization to generate a prediction residual which is a residual between an image and a predicted image of the image, and when the transform skip is applied, the inverse coefficient transform is skipped. Image processing methods.

[0373] (6) a transform unit that performs coefficient transform on a prediction residual, which is a residual between an image and a prediction image of the image, when a transform skip is not applied, to generate a transform coefficient, and skips the coefficient transform when the transform skip is applied; a quantization unit that quantizes the transform coefficients using a quantization parameter according to whether the transform skip is applied; An image processing device comprising: (7) When a transform skip is not applied, a coefficient transform is performed on a prediction residual, which is a residual between an image and a predicted image of the image, to generate a transform coefficient; when the transform skip is applied, the coefficient transform is skipped; Quantizing the transform coefficients using a quantization parameter according to whether the transform skip is applied. Image processing methods.

[0374] (8) an inverse quantization unit that performs inverse quantization on the quantized coefficients; an inverse quantization normalization unit that normalizes the transform coefficients generated by the inverse quantization by the inverse quantization unit using a scaling parameter according to whether or not a transform skip is applied; an inverse transform unit that performs inverse coefficient transform on the transform coefficients normalized by the inverse quantization normalization unit when the transform skip is not applied, generates a prediction residual that is a residual between an image and a predicted image of the image, and skips the inverse coefficient transform when the transform skip is applied; An image processing device comprising: (9) When the transform skip is not applied, the inverse quantization normalization unit normalizes the transform coefficients using the scaling parameter that does not reflect the decompression process in the transform skip, and when the transform skip is applied, normalizes the transform coefficients using the scaling parameter that reflects the decompression process; When the transform skip is not applied, the inverse transform unit performs the inverse coefficient transform on the transform coefficients normalized by the inverse quantization normalization unit using the scaling parameter that does not reflect the expansion process, and when the transform skip is applied, the inverse transform unit skips the inverse coefficient transform without performing the expansion process. An image processing device according to (8). (10) When the transform skip is applied, the inverse quantization normalization unit sets a component of the scaling parameter determined based on a transform block size to “0.” An image processing device according to (9). (11) When the transform skip is applied, the inverse quantization normalization unit sets a component of the scaling parameter determined based on a transform block size to a value according to a quantization matrix. An image processing device according to (9). (12) The value corresponding to the quantization matrix is ​​"-4". The image processing device according to (11). (13) An inverse transform normalization unit that normalizes the prediction residual when the transform skip is not applied, When the transform skip is applied, the inverse quantization normalization unit normalizes the transform coefficients using the scaling parameter that reflects a normalization process performed by the inverse transform normalization unit on the prediction residual. An image processing device according to (8). (14) When the transform skip is applied, the inverse quantization normalization unit normalizes the transform coefficients using the scaling parameters including a value according to the inverse quantization and scaling list and a value according to the application of inverse dependent quantization. An image processing device according to (13). (15) The value according to the inverse quantization and the scaling list is “10”. An image processing device according to (14). (16) performing inverse quantization on the quantized coefficients; normalizing the transform coefficients generated by the inverse quantization using a scaling parameter corresponding to whether a transform skip is applied; When the transform skip is not applied, an inverse coefficient transform is performed on the normalized transform coefficients to generate a prediction residual which is a residual between an image and a predicted image of the image, and when the transform skip is applied, the inverse coefficient transform is skipped. Image processing methods.

[0375] (17) A transform unit that performs coefficient transform on a prediction residual, which is a residual between an image and a prediction image of the image, when a transform skip is not applied, to generate a transform coefficient, and skips the coefficient transform when the transform skip is applied; a quantization unit that performs quantization on the transform coefficients when the transform skip is not applied, and performs the quantization on the prediction residual when the transform skip is applied; a quantization normalization unit that normalizes a quantized coefficient generated by the quantization by the quantization unit using a scaling parameter according to whether the transform skip is applied; An image processing device comprising: (18) When the transform skip is not applied, the transform unit performs the coefficient transform on the prediction residual, and when the transform skip is applied, the transform unit skips the coefficient transform without performing an expansion process. The quantization normalization unit normalizes the quantization coefficients using the scaling parameter that does not reflect the expansion process in the transform skip when the transform skip is not applied, and normalizes the quantization coefficients using the scaling parameter that reflects the expansion process when the transform skip is applied. The image processing device according to (17). (19) A transform normalization unit that normalizes the transform coefficients when the transform skip is not applied, When the transform skip is applied, the quantization normalization unit normalizes the quantization coefficients using the scaling parameter that reflects a normalization process performed by the transform normalization unit on the transform coefficients. The image processing device according to (17). (20) When a transform skip is not applied, a coefficient transform is performed on a prediction residual, which is a residual between an image and a predicted image of the image, to generate a transform coefficient; when the transform skip is applied, the coefficient transform is skipped; When the transform skip is not applied, the quantization is performed on the transform coefficients, and when the transform skip is applied, the quantization is performed on the prediction residuals; Normalizing the quantized coefficients generated by the quantization using a scaling parameter according to whether the transform skip is applied. Image processing methods. [Explanation of symbols]

[0376] 100 inverse quantization and inverse transformation device, 101 inverse quantization unit, 102 inverse transformation unit, 111 inverse quantization processing unit, 112 normalization unit, 121 selection unit, 122 inverse transformation processing unit, 123 selection unit, 124 normalization unit, 125 decompression processing unit, 200 transform and quantization device, 201 transform unit, 202 quantization unit, 211 selection unit, 212 transform processing unit, 213 selection unit, 214 normalization unit, 215 decompression processing unit, 221 quantization processing unit, 222 normalization unit, 500 image decoding device, 513 inverse quantization and inverse transformation unit, 600 image encoding device, 613 transform and quantization unit, 616 inverse quantization and inverse transformation unit

Claims

1. an inverse quantization unit that performs inverse quantization on the quantized coefficients; an inverse quantization normalization unit that normalizes the transform coefficients generated by the inverse quantization by the inverse quantization unit using a scaling parameter according to whether or not a transform skip is applied; an inverse transform unit that performs inverse coefficient transform on the transform coefficients normalized by the inverse quantization normalization unit when the transform skip is not applied, generates a prediction residual that is a residual between an image and a predicted image of the image, and skips the inverse coefficient transform when the transform skip is applied; An image processing device comprising:

2. When the transform skip is not applied, the inverse quantization normalization unit normalizes the transform coefficients using the scaling parameter that does not reflect the decompression process in the transform skip, and when the transform skip is applied, the inverse quantization normalization unit normalizes the transform coefficients using the scaling parameter that reflects the decompression process; When the transform skip is not applied, the inverse transform unit performs the inverse coefficient transform on the transform coefficients normalized by the inverse quantization normalization unit using the scaling parameter that does not reflect the expansion process, and when the transform skip is applied, the inverse transform unit skips the inverse coefficient transform without performing the expansion process. The image processing device according to claim 1 .

3. When the transform skip is applied, the inverse quantization normalization unit sets a component of the scaling parameter determined based on a transform block size to “0”. The image processing device according to claim 2 .

4. When applying the transform skip, the inverse quantization normalization unit sets a component of the scaling parameter determined based on a transform block size to a value according to a quantization matrix. The image processing device according to claim 2 .

5. The value according to the quantization matrix is ​​"-4". The image processing device according to claim 4.

6. When the transform skip is not applied, an inverse transform normalization unit that normalizes the prediction residual is further provided; When the transform skip is applied, the inverse quantization normalization unit normalizes the transform coefficients using the scaling parameter that reflects a normalization process performed by the inverse transform normalization unit on the prediction residual. The image processing device according to claim 1 .

7. The inverse quantization normalization unit normalizes the transform coefficients using the scaling parameters including a value according to the inverse quantization and scaling list and a value according to the application of the inverse dependent quantization when the transform skip is applied. The image processing device according to claim 6.

8. The value according to the inverse quantization and the scaling list is "10". The image processing device according to claim 7.

9. Perform inverse quantization on the quantized coefficients; normalizing the transform coefficients generated by the inverse quantization using a scaling parameter corresponding to whether a transform skip is applied; When the transform skip is not applied, an inverse coefficient transform is performed on the normalized transform coefficients to generate a prediction residual which is a residual between an image and a predicted image of the image, and when the transform skip is applied, the inverse coefficient transform is skipped. Image processing methods.

10. A transform unit that performs coefficient transform on a prediction residual, which is a residual between an image and a predicted image of the image, to generate a transform coefficient when a transform skip is not applied, and skips the coefficient transform when the transform skip is applied; a quantization unit that performs quantization on the transform coefficients when the transform skip is not applied, and performs the quantization on the prediction residual when the transform skip is applied; a quantization normalization unit that normalizes a quantized coefficient generated by the quantization by the quantization unit using a scaling parameter according to whether the transform skip is applied; An image processing device comprising:

11. When the transform skip is not applied, the transform unit performs the coefficient transform on the prediction residual, and when the transform skip is applied, the transform unit skips the coefficient transform without performing an expansion process; The quantization normalization unit normalizes the quantization coefficients using the scaling parameter that does not reflect the expansion process in the transform skip when the transform skip is not applied, and normalizes the quantization coefficients using the scaling parameter that reflects the expansion process when the transform skip is applied. The image processing device according to claim 10.

12. If the transform skip is not applied, a transform normalization unit that normalizes the transform coefficients, When the transform skip is applied, the quantization normalization unit normalizes the quantization coefficients using the scaling parameter that reflects a normalization process performed by the transform normalization unit on the transform coefficients. The image processing device according to claim 10.

13. When a transform skip is not applied, a coefficient transform is performed on a prediction residual, which is a residual between an image and a predicted image of the image, to generate a transform coefficient; when the transform skip is applied, the coefficient transform is skipped; When the transform skip is not applied, the quantization is performed on the transform coefficients, and when the transform skip is applied, the quantization is performed on the prediction residuals; Normalizing the quantized coefficients generated by the quantization using a scaling parameter according to whether the transform skip is applied. Image processing methods.

Citation Information

Patent Citations

  • Image processing device, image processing method, and program

    WO2019003676A1

Cited By

  • Resin composition for stereolithography

    US12344691B2