Image processing device and method

CN114342396BActive Publication Date: 2024-09-06SONY GROUP CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202080060634.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-09-18
Filing Date
2020-09-04
Publication Date
2024-09-06
Estimated Expiration
2040-09-04

Smart Images

  • Figure CN114342396B_ABST
    Figure CN114342396B_ABST
Patent Text Reader

Abstract

The present disclosure relates to an image processing device and method capable of suppressing information loss due to encoding and decoding. Inverse quantization is performed on quantized coefficients using a quantization parameter depending on whether transform skipping is applied. If transform skipping is not applied, inverse coefficient transform is performed on transform coefficients generated by inverse quantization, and a prediction residual is generated as a residual between an image and a predicted image of the image. If transform skipping is applied, the inverse coefficient transform is skipped. The present disclosure can be applied to, for example, an image processing device, an image encoding device, an image decoding device, a transmitting device, a receiving device, a transmitting / receiving device, an information processing device, an imaging device, a reproducing device, an electronic device, an image processing method, or an information processing method.
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 caused by encoding and decoding. Background Art

[0002] Conventionally, a coding method for deriving a prediction residual of a moving image and transforming, quantizing, and encoding the prediction residual has been proposed (e.g., Non-Patent Document 1). In addition, lossless coding has been proposed that uses a transform-quantization bypass in image coding to skip (omit) coefficient transform, quantization, etc. and reversibly encode the prediction residual (e.g., Non-Patent Document 2).

[0003] By the way, there is a method of inversely quantizing the quantization coefficient Qcoef at QP=4 with a quantization step size of 1 and skipping transform to target reversible encoding (lossless encoding) without using transform quantization bypass. For convenience, this method is called the "transform skip + QP4" method.

[0004] [Citation List]

[0005] [Non-patent literature]

[0006] [Non-patent document 1]

[0007] VTM-5.0in https: / / vcgit.hhi.fraunhofer.de / jvet / VVCSoftware_VTM

[0008] [Non-patent document 2]

[0009] 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, Sweden, 3-12 July 2019 Summary of the invention

[0010] [Technical issues]

[0011] However, in the case of this “transform skip + QP4” method, parameter settings do not correspond to lossless encoding, and there is a risk of information being lost due to encoding and decoding in the conventional method.

[0012] The present disclosure has been made in view of such circumstances, and the present disclosure makes it possible to suppress information loss due to encoding and decoding.

[0013] [Solution to the problem]

[0014] An image processing device according to one aspect of the present technology is an image processing device comprising: an inverse quantization unit that performs inverse quantization on a quantized coefficient using a quantization parameter that depends on whether transform skipping is applied; and an inverse transform unit that, when transform skipping is not applied, performs an inverse coefficient transform on the transform coefficient generated by inverse quantization of the inverse quantization unit to generate a prediction residual that is a residual of an image and a predicted image of the image, and when transform skipping is applied, skips the inverse coefficient transform.

[0015] An image processing method of one aspect of the present technology is an image processing method comprising: performing inverse quantization on quantization coefficients using quantization parameters that depend on whether transform skipping is applied; and when transform skipping is not applied, performing inverse coefficient transform on transform coefficients generated by inverse quantization to generate a prediction residual that is a residual between an image and a predicted image of the image, and when transform skipping is applied, skipping the inverse coefficient transform.

[0016] An image processing device on the other hand of the present technology is an image processing device as follows, which includes: a transform unit that performs a coefficient transform on a prediction residual that is a residual between an image and a predicted image of the image to generate a transform coefficient when transform skipping is not applied, and skips the coefficient transform when transform skipping is applied; and a quantization unit that performs quantization on the transform coefficient using a quantization parameter that depends on whether transform skipping is applied.

[0017] An image processing method on the other hand of the present technology is an image processing method as follows, which includes: when transform skipping is not applied, performing coefficient transform on a prediction residual which is a residual between an image and a predicted image of the image to generate transform coefficients, and when transform skipping is applied, skipping the coefficient transform; and performing quantization on the transform coefficients using a quantization parameter depending on whether transform skipping is applied.

[0018] An image processing device according to another aspect of the present technology is an image processing device comprising: an inverse quantization unit that inverse quantizes quantized coefficients; an inverse quantization normalization unit that normalizes transform coefficients generated by inverse quantization of the inverse quantization unit using a scaling parameter that depends on whether transform skipping is applied; and an inverse transform unit that, when transform skipping is not applied, performs an 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 skips the inverse coefficient transform when transform skipping is applied.

[0019] Another aspect of the present technology is an image processing method as follows, which includes: performing inverse quantization on quantization coefficients; normalizing transform coefficients generated by inverse quantization using scaling parameters that depend on whether transform skipping is applied; and when transform skipping is not applied, performing inverse coefficient transform on the normalized transform coefficients to generate a prediction residual that is a residual between an image and a predicted image of the image, and when transform skipping is applied, skipping the inverse coefficient transform.

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

[0021] An image processing method according to another aspect of the present technology is an image processing method comprising: when transform skipping is not applied, performing coefficient transform on a prediction residual which is a residual between an image and a predicted image of the image to generate transform coefficients, and when transform skipping is applied, skipping the coefficient transform; when transform skipping is not applied, performing quantization on the transform coefficients, and when transform skipping is applied, performing quantization on the prediction residual; and normalizing the quantization coefficients generated by quantization using a scaling parameter depending on whether transform skipping is applied.

[0022] In an image processing device and method of one aspect of the present technology, inverse quantization is performed on quantized coefficients using quantization parameters that depend on whether transform skipping is applied; and when transform skipping is not applied, inverse coefficient transform is performed on transform coefficients generated by inverse quantization to generate a prediction residual that is a residual between an image and a predicted image of the image, and when transform skipping is applied, the inverse coefficient transform is skipped.

[0023] In an image processing device and method on another aspect of the present technology, when transform skipping is not applied, coefficient transform is performed on a prediction residual which is a residual between an image and a predicted image of the image to generate transform coefficients, and when transform skipping is applied, coefficient transform is skipped; and quantization is performed on the transform coefficients using a quantization parameter depending on whether transform skipping is applied.

[0024] In an image processing device and method on another aspect of the present technology, inverse quantization is performed on quantization coefficients; transform coefficients generated by inverse quantization are normalized using scaling parameters depending on whether transform skipping is applied; and when transform skipping is not applied, 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 transform skipping is applied, the inverse coefficient transform is skipped.

[0025] In an image processing device and method of another aspect of the present technology, when transform skipping is not applied, coefficient transform is performed on a prediction residual which is a residual between an image and a predicted image of the image to generate transform coefficients, and when transform skipping is applied, coefficient transform is skipped; when transform skipping is not applied, quantization is performed on the transform coefficients, and when transform skipping is applied, quantization is performed on the prediction residual; and the quantization coefficients generated by quantization are normalized using a scaling parameter depending on whether transform skipping is applied. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] [ Figure 1 ] Figure 1 is a diagram showing an example of a method of controlling inverse quantization, inverse transform, and transform quantization based on transform skipping.

[0027] [ Figure 2 ] Figure 2 : is a block diagram showing a main configuration example of an inverse quantization and inverse transform device.

[0028] [ Figure 3 ] Figure 3 : is a flowchart showing an example of the flow of inverse quantization and inverse transform processing.

[0029] [ Figure 4 ] Figure 4 is a diagram showing an example of quantization parameter control based on transform skip.

[0030] [ Figure 5 ] Figure 5 is a diagram showing an example of rounding offset control based on transform skipping.

[0031] [ Figure 6 ] Figure 6 is a diagram showing an example of rounding offset control based on transform skipping.

[0032] [ Figure 7] Figure 7 is a block diagram showing a main configuration example of a transform and quantization device.

[0033] [ Figure 8 ] Figure 8 : is a flowchart showing an example of the flow of transform and quantization processing.

[0034] [ Fig. 9 ] Fig. 9 : is a block diagram showing a main configuration example of an inverse quantization and inverse transform device.

[0035] [ Fig.10 ] Fig.10 : is a flowchart showing an example of the flow of inverse quantization and inverse transform processing.

[0036] [ Fig.11 ] Fig.11 is a diagram showing an example of scaling parameter control based on transform skipping.

[0037] [ Fig.12 ] Fig.12 is a diagram showing an example of scaling parameter control based on transform skipping.

[0038] [ Fig.13 ] Fig.13 is a diagram showing an example of scaling parameter control based on transform skipping.

[0039] [ Fig.14 ] Fig.14 is a block diagram showing a main configuration example of a transform and quantization device.

[0040] [ Fig.15 ] Fig.15 : is a flowchart showing an example of the flow of transform and quantization processing.

[0041] [ Fig.16 ] Fig.16 : is a block diagram showing a main configuration example of an inverse quantization and inverse transform device.

[0042] [ Fig.17 ] Fig.17 : is a flowchart showing an example of the flow of inverse quantization and inverse transform processing.

[0043] [ Fig.18 ] Fig.18 is a diagram showing an example of scaling parameter control based on transform skipping.

[0044] [ Fig.19 ] Fig.19 is a diagram showing an example of scaling parameter control based on transform skipping.

[0045] [ Fig. 20 ] Fig. 20is a block diagram showing a main configuration example of a transform and quantization device.

[0046] [ Fig.21 ] Fig.21 : is a flowchart showing an example of the flow of transform and quantization processing.

[0047] [ Fig. 22 ] Fig. 22 is a block diagram showing a main configuration example of an image decoding device.

[0048] [ Fig.23 ] Fig.23 is a flowchart showing an example of the flow of image decoding processing.

[0049] [ Fig.24 ] Fig.24 is a block diagram showing a main configuration example of an image encoding device.

[0050] [ Fig.25 ] Fig.25 is a flowchart showing an example of the flow of image encoding processing.

[0051] [ Fig.26 ] Fig.26 is a block diagram showing a main configuration example of a computer. DETAILED DESCRIPTION

[0052] Hereinafter, a mode for carrying out the present disclosure (hereinafter referred to as an embodiment) will be described. The description will be made in the following order.

[0053] 1. Nearly lossless encoding based on transform skipping

[0054] 2. First Implementation Method (Parameter Control)

[0055] 3. Second Embodiment (Integration of Decompression Processing During Transform Skip)

[0056] 4. Third Embodiment (Incorporation of Normalization Processing During Transformation Skip)

[0057] 5. Fourth Embodiment (Image Decoding Device)

[0058] 6. Fifth Embodiment (Image Coding Device)

[0059] 7. Supplement

[0060] <1. Nearly lossless encoding based on transform skipping>

[0061] <Documentation supporting technical content and technical terminology>

[0062] The scope disclosed in the present technology is not limited to the contents described in the embodiments, and also includes contents described in the following non-patent documents and the like known at the time of application, contents of other documents cited in the following non-patent documents, and the like.

[0063] Non-patent document 1: (as mentioned above)

[0064] Non-patent document 2: (as mentioned above)

[0065] Non-patent document 3: Benjamin Bross, Jianle Chen, Shan Liu, “Versatile Video Coding (Draft 5)”, N1001-v10, m48053, 14th Meeting of the Joint Video Experts Group (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11: Geneva, Switzerland, March 19-27, 2019

[0066] Non-Patent Literature 4: Jianle Chen, Yan Ye, Seung Hwan Kim, “Algorithm description for Versatile Video Coding and Test Model 5 (VTM 5)”, JVET-N1002-v2, m48054, 14th Meeting of the Joint Video Experts Group (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11: Geneva, Switzerland, March 19-27, 2019

[0067] Non-Patent Literature 5: Benjamin Bross, Jianle Chen, Shan Liu, “Versatile Video Coding (Draft 6)”, JVET-O2001-vE, m49908, 15th Meeting of the Joint Video Experts Group (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11: Gothenburg, Sweden, July 3-12, 2019

[0068] Non-Patent Literature 6: Jianle Chen, Yan Ye, Seung Hwan Kim, “Algorithm description for Versatile Video Coding and Test Model 6 (VTM 6)”, JVET-O2002-v2, m49914, 15th Meeting of the Joint Video Experts Group (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11: Gothenburg, Sweden, July 3-12, 2019

[0069] Non-Patent Literature 7: Tsung-Chuan Ma, Yi-Wen Chen, Xiaoyu Xiu, Xianglin Wang, “Modifications to support the lossless coding”, JVET-O0591, m48730, 15th Meeting of the Joint Video Experts Group of ITU-T SG 16WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11: Gothenburg, Sweden, July 3-12, 2019

[0070] Non-Patent Literature 8: Hyeongmun Jang, Junghak Nam, Naeri Park, Jungah Choi, Seunghwan Kim, Jaehyun Lim, “Comments on transform quantization bypassed mode”, JVET-O0584, m48723, 15th Meeting of the Joint Video Experts Group (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11: Gothenburg, Sweden, July 3-12, 2019

[0071] Non-Patent Literature 9: Tangi Poirier, Fabrice Le Leannec, Karam Naser, Edouard Francois, “On lossless coding for VVC”, JVET-O0460, m48583, 15th Meeting of the Joint Video Experts Group (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11: Gothenburg, Sweden, July 3-12, 2019

[0072] Non-patent literature 10: ITU-T Recommendation H.264 (04 / 2017) “Advanced video coding for generic audiovisual services”, April 2017

[0073] Non-patent literature 11: ITU-T H.265 Recommendation (02 / 18) “High efficiency video coding”, February 2018

[0074] That is, the contents described in the above non-patent literature are also the basis for determining the support conditions. For example, even when the quadtree block structure and the quadtree plus binary tree (QTBT) block structure described in the above non-patent literature are not directly described in the examples, it is assumed that they meet the support requirements of the claims within the disclosure scope of the present technology. In addition, for example, for technical terms such as "parsing", "grammar", and "semantics", it is assumed that they meet the support requirements of the claims within the disclosure scope of the present technology, even if they are not directly described in the examples in the same way.

[0075] In addition, in this specification, unless otherwise specified, a "block" (not a block indicating a processing unit) used to describe a local area or a processing unit of an image (picture) indicates an arbitrary local area in a picture, and its size, shape, characteristics, etc. are not limited. For example, it is assumed that a "block" includes any local area (processing unit) described in the above-mentioned non-patent literature, such as a transform block (TB), a transform unit (TU), a prediction block (PB), a prediction unit (PU), a minimum coding unit (SCU), a coding unit (CU), a maximum coding unit (LSC), a coding tree block (CTB), a coding tree unit (CTU), a sub-block, a tile, or a slice.

[0076] In addition, when specifying the size of such a block, the block size can be specified not only directly but also indirectly. For example, the block size can be specified using identification information for identifying the size. In addition, the block size can be specified, for example, by a ratio or difference relative to the size of a reference block (e.g., LCU, SCU, etc.). For example, when sending information for specifying the block size as a syntax element, etc., the information for indirectly specifying the size as described above can be used as the information. By doing so, the amount of information can be reduced, thereby improving the coding efficiency. In addition, the specification of the block size also includes the specification of the range of the block size (e.g., the specification of the allowable block size range, etc.).

[0077] In addition, in the present specification, encoding includes not only the entire process of transforming an image into a bit stream, but also a part of the process. For example, encoding includes not only the process including prediction processing, orthogonal transformation, quantization, arithmetic coding, etc., but also the process collectively referred to as quantization and arithmetic coding, including prediction processing, quantization, arithmetic coding, etc. Similarly, decoding includes not only the entire process of transforming a bit stream into an image, but also a part of the process. For example, decoding includes not only the process including inverse arithmetic decoding, inverse quantization, inverse orthogonal transformation, prediction processing, etc., but also the process including inverse arithmetic decoding and inverse quantization, including inverse arithmetic decoding, inverse quantization, prediction processing, etc.

[0078] <“Transform Skip + QP4” method>

[0079] Non-patent document 2 discloses lossless coding, which is a coding method that uses transform and quantization bypass in image coding of Non-patent document 1 to skip (omit) coefficient transform, quantization, etc. and reversibly encode the prediction residual.

[0080] By the way, there is a method of inversely quantizing the quantization coefficient Qcoef at QP=4 with a quantization step size of 1 and skipping transform to achieve reversible encoding (lossless encoding) without using transform quantization bypass. For convenience, this method is called the "transform skip + QP4" method.

[0081] However, in the case of this "transform skip + QP4" approach, parameter settings do not correspond to lossless encoding, and there is a risk of information loss due to encoding and decoding in conventional methods.

[0082] <2. First Embodiment>

[0083] <Parameter Control of Inverse Quantization and Inverse Transform>

[0084] Therefore, in the inverse quantization and inverse transformation process, the parameters for the inverse quantization and inverse transformation are set so that the amount of lost information is reduced, such as from Figure 1 The first row (the top row) from the top of the table (Method 1-1) is shown.

[0085] The inverse quantization and inverse transform process is a process of inverse quantizing the quantized coefficients to generate transform coefficients and inverse transforming the transform coefficients to generate prediction residuals. The prediction residual is the residual between an image and a predicted image of the image. The predicted image is generated based on the temporal peripheral information of the image, the spatial peripheral information of the image, or both. The temporal peripheral information is information about a frame different from the image. The spatial peripheral information is information about the same frame as the image. The inverse coefficient transform is the inverse process of the coefficient transform, which is a process of transforming the prediction residual into coefficients to generate transform coefficients. Inverse quantization is the inverse process of quantization, which is a process of quantizing the transform coefficients generated by the coefficient transform to generate quantized coefficients. That is, the inverse quantization and inverse transform process is the inverse process of transform quantization, which performs coefficient transform and quantization. Therefore, the inverse quantization and inverse transform process can generate prediction residuals by inverse quantizing and inverse transforming the quantized coefficients generated by transforming and quantizing the prediction residuals.

[0086] In such an inverse quantization and inverse transform process, information loss due to decoding to which the inverse quantization and inverse transform process is applied can be suppressed by controlling parameters so that information loss is suppressed. That is, decoding can be performed according to the "transform skip + QP4" method to approach reversible decoding (lossless encoding).

[0087] <1-1: Inverse Quantization and Inverse Transformation Device>

[0088] Figure 2 : is a block diagram showing an example of the configuration of an inverse quantization and inverse transformation device as one aspect of an image processing device to which the present technology is applied. Figure 2 The inverse quantization and inverse transformation device 100 shown is a device that performs inverse quantization and inverse transformation on quantization coefficients to generate prediction residuals.

[0089] Figure 2 shows the main components such as processing units and data flows, and Figure 2 Not all components are shown. That is, in the inverse quantization and inverse transformation device 100, there may be Figure 2 A processing unit is not shown as a block, or may exist Figure 2 Not shown are processes or data flows such as arrows.

[0090] like Figure 2 As shown, the inverse quantization and inverse transformation apparatus 100 includes an inverse quantization unit 101 and an inverse transformation unit 102. The inverse quantization unit 101 performs a process related to inverse quantization, and the inverse transformation unit 102 performs a process related to inverse coefficient transformation.

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

[0092] 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 a decompression processing unit 125 .

[0093] The selection unit 121 and the selection unit 123 select whether to apply transform skip which is a mode of skipping inverse coefficient transform. Transform skip is a mode of skipping coefficient transform processing in coefficient transform processing, and is a mode of skipping inverse coefficient transform processing in inverse coefficient transform processing.

[0094] The selection unit 121 acquires the transform coefficient supplied from the inverse quantization unit 101. When transform skipping is not applied, that is, when inverse coefficient transform processing is performed, the selection unit 121 supplies the acquired transform coefficient to the inverse transform processing unit 122. Furthermore, the selection unit 123 acquires the prediction residual supplied from the inverse transform processing unit 122 and supplies the prediction residual to the normalization unit 124.

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

[0096] The inverse transform processing unit 122 acquires the transform coefficient supplied from the inverse quantization unit 101 via the selection unit 121. The transform coefficient has been normalized by the normalization unit 112. The inverse transform processing unit 122 performs inverse coefficient transform on the acquired transform coefficient to generate a prediction residual. The inverse transform processing unit 122 supplies the generated prediction residual to the normalization unit 124 via the selection unit 123.

[0097] The decompression processing unit 125 acquires the transform coefficient provided from the inverse quantization unit 101 via the selection unit 121. The transform coefficient has been normalized by the normalization unit 112. In addition, the transform coefficient is a prediction residual. The decompression processing unit 125 decompresses the acquired transform coefficient (i.e., prediction residual). The decompression processing unit 125 supplies the decompressed transform coefficient (i.e., prediction residual) to the normalization unit 124 via the selection unit 123.

[0098] When transform skip is not applied, that is, when the inverse coefficient transform process is performed, the normalization unit 124 acquires the prediction residual provided from the inverse transform processing unit 122 via the selection unit 123. In addition, when transform skip is applied, that is, when the inverse coefficient transform process is skipped, the normalization unit 124 acquires the transform coefficient (that is, the prediction residual) provided from the decompression 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.

[0099] In the inverse quantization and inverse transformation device 100, the above (method 1-1) is applied. That is, the inverse quantization and inverse transformation device 100 sets the parameters about the inverse quantization and inverse transformation so as to suppress information loss. The inverse quantization processing unit 111 can perform inverse quantization using the parameters set in this way. The normalization unit 112 can perform normalization using the parameters set in this way. The normalization unit 124 can perform normalization using the parameters set in this way.

[0100] By doing so, the inverse quantization and inverse transformation device 100 can suppress information loss due to decoding to which the inverse quantization and inverse transformation process is applied. That is, the inverse quantization and inverse transformation device 100 can perform decoding according to the "transform skip + QP4" method to approach reversible decoding (lossless encoding).

[0101] <Flow of inverse quantization and inverse transform processing>

[0102] Next, we will refer to Figure 3 The flowchart describes an example of the flow of the inverse quantization and inverse transform process performed by the inverse quantization and inverse transform device 100.

[0103] When the inverse quantization and inverse transform process starts, the inverse quantization unit 101 sets parameters regarding inverse quantization in step S101 .

[0104] In step S102 , the inverse quantization processing unit 111 performs inverse quantization on the quantization coefficient using the parameters set in step S101 to generate a transform coefficient.

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

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

[0107] In step S105 , the inverse transform unit 102 sets parameters regarding inverse coefficient transform.

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

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

[0110] In step S108 , the normalization unit 124 normalizes the prediction residual generated in step S106 or the transform coefficient (ie, prediction residual) decompressed in step S107 using the parameters set in step S105 .

[0111] When the process of step S108 is completed, the inverse quantization and inverse transformation process is completed.

[0112] In this inverse quantization and inverse transform processing, the above (method 1-1) is applied. That is, the inverse quantization unit 101 sets the parameters regarding inverse quantization in step S101 so as to suppress information loss. The inverse quantization processing unit 111 can perform inverse quantization using the parameters set in this manner in step S102. The normalization unit 112 can perform normalization using the parameters set in this manner in step S103. In addition, the inverse transform unit 102 sets the parameters regarding inverse coefficient transform in step S105 so as to suppress information loss. The normalization unit 124 can perform normalization using the parameters set in this manner in step S108.

[0113] By doing so, the inverse quantization and inverse transformation device 100 can suppress information loss due to decoding to which the inverse quantization and inverse transformation process is applied. That is, the inverse quantization and inverse transformation device 100 can perform decoding according to the "transform skip + QP4" method to approach reversible decoding (lossless encoding).

[0114] <1-1-1: Control of Quantization Parameters>

[0115] As described above, parameters related to inverse quantization can be controlled. For example, in image processing, inverse quantization can be performed on a quantized coefficient using a quantization parameter depending on whether transform skipping is applied.

[0116] For example, the image processing apparatus may include an inverse quantization unit that performs inverse quantization on a quantization coefficient using a quantization parameter depending on whether transform skipping is applied.

[0117] By doing so, the image processing device can suppress information loss due to decoding applying inverse quantization performed by the inverse quantization unit. That is, the image processing device can approach reversible decoding (lossless encoding) by decoding according to the "transform skip + QP4" method.

[0118] At this time, when inverse correlation quantization is applied in inverse quantization and transform skipping is not applied, the inverse quantization unit may correct the quantization parameter and perform inverse quantization using the corrected quantization parameter. Figure 1 As shown in the second row from the top of the table, correction of the quantization parameter (QP) of the relevant quantization can be controlled based on transform skipping (method 1-1-1).

[0119] For example, in the encoding method described in non-patent document 5, correlated quantization (DQ) is prepared as a quantization mode. In correlated quantization, selection of whether to multiply a quantization step size corresponding to a quantization parameter (QP) applied to a coefficient of a current processing target by an odd number or an even number is performed based on a transform coefficient and a parity flag of a past processing target. That is, the quantization step size of a specific quantization parameter is transformed (branched) according to a previous state. By doing so, a reduction in encoding efficiency can be suppressed.

[0120] Figure 4 A is the semantics of such correlated quantization described in non-patent document 5. As shown in the semantics, when correlated quantization is applied, the quantization parameter (QP) is corrected. That is, when correlated quantization is not applied, the scaling parameter (ls) is derived using the quantization parameter (qP) represented by formula (8-960). On the other hand, when correlated quantization is applied, the scaling parameter ls is derived using the corrected quantization parameter (qP'=qP+1) represented by formula (8-959).

[0121] Correlation quantization can be applied to inverse quantization in the same manner. In fact, the inverse process of correlation quantization (also called inverse correlation quantization) is applied in inverse quantization. Therefore, when correlation quantization is applied, the quantization parameter is corrected in the same manner in inverse quantization.

[0122] However, when transform skip is applied, the minimum value of the quantization parameter is 4, and thus the quantization step cannot be set to 1 by correcting the quantization parameter according to the related quantization (QP+1). Therefore, there is a risk of losing information due to inverse quantization.

[0123] Therefore, if Figure 4 The semantics shown in B of , for example, "and the transform skip flag (transform_skip_flag) is not equal to the value (IS_SKIP) indicating that 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 transform skip is applied. For example, if the transform skip flag is true (for example, 1), it indicates that transform skip is applied. If the transform skip flag is false (for example, 0), it indicates that transform skip is not applied. In addition, "or the transform skip flag (transform_skip_flag) is true (IS_SKIP)" is added to the condition of the above formula (8-960).

[0124] The inverse quantization processing unit 111 derives the scaling parameter ls according to such semantics. By doing so, when transform skipping is applied, formula (8-960) is applied and correction of the quantization parameter according to the correlation quantization (inverse correlation quantization) is omitted. Therefore, when transform skipping is applied, the inverse quantization processing unit 111 can suppress information loss due to inverse correlation quantization.

[0125] <1-1-2: Rounding offset sign control>

[0126] The parameter about inverse quantization as the control target may not be a quantization parameter. Figure 1 As shown in the third row from the top of the table, the sign of the rounding offset of the normalization process in the inverse quantization can be set, for example, based on the sign of the transform coefficient as the input value (method 1-1-2).

[0127] For example, the image processing device may further include an inverse quantization normalization unit that sets a sign of a rounding offset based on a sign of a transform coefficient and normalizes the transform coefficient using the rounding offset. Then, when transform skipping is not applied, the inverse transform unit may perform an inverse coefficient transform on the transform coefficient normalized by the inverse quantization normalization unit.

[0128] Figure 5A is the semantics of the normalization process in the inverse quantization (the normalization process performed by the normalization unit 112) described in the non-patent document 5. As shown in the semantics, in the normalization process in the inverse quantization, the normalization according to the logical shift is performed using the rounding offset bdOffset1 and the scaling parameter bdShift1 (formula (8-963)). The rounding offset bdOffset1 is derived by the following formula (A) using the scaling parameter bdShift1.

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

[0130] Since the normalization process is a logical shift performed in this way, the sign (positive or negative) of the rounding error (also called a dead zone) is biased. Therefore, there is a risk that the inverse quantization will become an irreversible process. That is, there is a risk that information is lost in the inverse quantization.

[0131] So, for example, in Figure 5 In the semantics shown in B of , the sign of the rounding offset of the normalization process in the inverse quantization is set based on the sign of the transform coefficient as 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 also multiplied.

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

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

[0134] In other words, the inverse quantization unit 101 corrects the rounding offset bdOffset1 derived from the formula (A) by multiplying the sign 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.

[0135] By doing so, the normalization unit 112 can perform normalization processing according to the arithmetic displacement, so that the deviation of the sign (positive or negative) of the rounding error can be reduced, and the information loss in the inverse quantization can be suppressed.

[0136] <1-1-3: Rounding offset sign control>

[0137] The parameters related to the inverse transformation can be the control target. For example, Figure 1 As shown in the fourth row from the top of the table, for example, the sign of the rounding offset of the normalization process in the inverse coefficient transform can be set based on the sign of the prediction residual as the input value (method 1-1-3).

[0138] For example, the image processing device may also include an inverse transform normalization unit, which sets the sign of a rounding offset based on the sign of a prediction residual and normalizes the prediction residual using the rounding offset when transform skipping is not applied, and sets the sign of a rounding offset based on the sign of a transform coefficient (i.e., prediction residual) and normalizes the transform coefficient (i.e., prediction residual) using the rounding offset when transform skipping is applied.

[0139] Figure 6 A is the semantics of the normalization process (normalization process performed by the normalization unit 124) in the inverse coefficient transform described in non-patent document 5. As shown in the semantics, in the normalization process of the inverse coefficient transform, normalization according to the logical shift is performed using the rounding offset bdOffset2 and the scaling parameter bdShift2 (formula (8-946)). The rounding offset bdOffset2 is derived by the following formula (C) using the scaling parameter bdShift2.

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

[0141] Since the normalization process is a logical shift performed in this way, the sign (positive or negative) of the rounding error (also called a dead zone) is biased. Therefore, there is a risk that the inverse coefficient transformation will become an irreversible process. That is, there is a risk of information loss in the inverse coefficient transformation.

[0142] So, for example, in Figure 6 In the semantics shown in B, 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 as the input value. That is, as shown in the following formula (D), the sign sign (r[x][y]) of the prediction residual r[x][y] is also multiplied.

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

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

[0145] In other words, the inverse transform unit 102 corrects the rounding offset bdOffset2 derived by formula (C) by multiplying the sign 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.

[0146] By doing so, the normalization unit 124 can perform normalization processing according to the arithmetic displacement, so that the deviation of the sign (positive or negative) of the rounding error can be reduced, and the information loss in the inverse coefficient transform can be suppressed.

[0147] <1-1-4: Combination>

[0148] The methods 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> can be applied in combination as needed. The inverse quantization and inverse transformation device 100 can further suppress information loss in the inverse quantization and inverse transformation process by combining more methods. That is, the inverse quantization and inverse transformation device 100 can further perform decoding according to the "transform skip + QP4" method by combining more of the above methods to approach reversible decoding (lossless encoding).

[0149] <Transform Quantization Parameter Control>

[0150] In the transform quantization process, as in the case of the inverse quantization inverse transform process, Figure 1 As shown in the fifth row from the top of the table, the parameters related to transform quantization can be set to reduce the amount of lost information (method 1-2).

[0151] In the transform and quantization process, by controlling parameters to suppress information loss, information loss due to encoding using the transform and quantization process can be suppressed. That is, encoding can be performed according to the "transform skip + QP4" method to approach reversible encoding (lossless encoding).

[0152] <1-2: Transformation and Quantization Device>

[0153] Figure 7 : is a block diagram showing an example of the configuration of a transform and quantization device as one aspect of an image processing device to which the present technology is applied. Figure 7 The illustrated transform and quantization apparatus 200 is an apparatus for transforming and quantizing a prediction residual to generate a quantized coefficient.

[0154] Figure 7 shows the main components such as processing units and data flows, and Figure 7 Not all components are shown. That is, in the transform quantization device 200, there may be Figure 7 A processing unit is not shown as a block, or may exist Figure 7 Not shown are processes or data flows such as arrows.

[0155] like Figure 7 As shown, the transform and quantization apparatus 200 includes a transform unit 201 and a quantization unit 202. The transform unit 201 performs processing related to coefficient transform, and the quantization unit 202 performs processing related to quantization.

[0156] The transform unit 201 includes a selection unit 211 , a transform processing unit 212 , a selection unit 213 , a normalization unit 214 , and a decompression processing unit 215 .

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

[0158] When transform skip is applied, that is, coefficient transform processing 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 (decompressed prediction residual) supplied from the decompression processing unit 215 and supplies the prediction residual to the normalization unit 214.

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

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

[0161] When transform skip is not applied, that is, when the coefficient transform process is performed, the normalization unit 214 acquires the transform coefficient provided from the transform processing unit 212 via the selection unit 213. In addition, when transform skip is applied, that is, when the coefficient transform process is skipped, the normalization unit 214 acquires the prediction residual (decompressed prediction residual) provided from the decompression processing unit 215 via the selection unit 213. That is, when transform skip is applied, the coefficient transform is skipped, and thus the prediction residual is provided to the normalization unit 214. The processing unit after the normalization unit 214 processes the prediction residual as a transform coefficient. That is, the prediction residual is processed in the same manner as the case of the transform coefficient generated by the transform processing unit 212. Therefore, the prediction residual provided from the decompression processing unit will also be described as a transform coefficient below. The normalization unit 214 normalizes the acquired transform coefficient. The normalization unit 214 provides the normalized transform coefficient to the quantization unit 202.

[0162] The quantization unit 202 includes a quantization processing unit 221 and a normalization unit 222. The quantization processing unit 221 acquires the transform coefficient provided from the transform unit 201. The quantization processing unit 221 performs quantization on the acquired transform coefficient to generate a quantized coefficient. The quantization processing unit 221 provides the generated quantized coefficient to the normalization unit 222. The normalization unit 222 acquires the quantized coefficient provided from the quantization processing unit 221. The normalization unit 222 normalizes the acquired quantized coefficient. The normalization unit 222 outputs the normalized quantized coefficient to the outside of the transform and quantization device 200.

[0163] In the transform quantization device 200, the above (method 1-2) is applied. That is, the transform quantization device 200 sets the parameters about the transform 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.

[0164] By doing so, the transform and quantization device 200 can suppress information loss due to encoding to which the transform and quantization process is applied. That is, the transform and quantization device 200 can perform encoding according to the "transform skip + QP4" method to approach reversible encoding (lossless encoding).

[0165] <Transformation and Quantization Processing Flow>

[0166] Next, we will refer to Figure 8 The flowchart of FIG. 200 describes an example of the flow of a transform and quantization process performed by the transform and quantization device 200 .

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

[0168] In step S202 , the transform unit 201 sets parameters regarding coefficient transform.

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

[0170] If it is determined in step S201 that transform skip is 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.

[0171] In step S205 , the normalization unit 214 normalizes the transform coefficient generated in step S203 or the prediction residual (ie, transform coefficient) decompressed in step S204 using the parameters set in step S202 .

[0172] In step S206 , the quantization unit 202 sets parameters regarding quantization.

[0173] In step S207 , the quantization processing unit 221 performs quantization on the transform coefficient normalized in step S205 using the parameters set in step S206 to generate a quantized coefficient.

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

[0175] When the process of step S208 is completed, the transform and quantization process is completed.

[0176] In this transform quantization process, the above (method 1-2) is applied. That is, the transform unit 201 sets the parameters regarding the coefficient transform so that information loss is suppressed in step S202. The normalization unit 214 can perform normalization using the parameters set in this way in step S205. In addition, the quantization unit 202 sets the parameters regarding quantization so that information loss is suppressed in step S206. In step S207, 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 in step S208.

[0177] By doing so, the transform and quantization device 200 can suppress information loss due to encoding to which the transform and quantization process is applied. That is, the transform and quantization device 200 can perform encoding according to the "transform skip + QP4" method to approach reversible encoding (lossless encoding).

[0178] <1-2-1: Control of Quantization Parameters>

[0179] As described above, parameters related to quantization can be controlled. For example, in image processing, quantization can be performed on transform coefficients using quantization parameters depending on whether transform skipping is applied.

[0180] For example, the image processing apparatus may include a quantization unit that performs quantization on a transform coefficient using a quantization parameter depending on whether transform skipping is applied.

[0181] By doing so, the image processing device can suppress information loss due to encoding applying quantization performed by the quantization unit. That is, the image processing device can perform encoding according to the "transform skip + QP4" method to approach reversible encoding (lossless encoding).

[0182] At this time, when correlated quantization is applied in quantization and transform skipping is not applied, the quantization unit may correct the quantization parameter and perform quantization using the corrected quantization parameter. Figure 1 As shown in the sixth row from the top of the table, the correction of the quantization parameter (QP) of the relevant quantization can be controlled based on transform skipping (method 1-2-1).

[0183] As described above, in the encoding method described in Non-Patent Document 5, Figure 4 The quantization parameter is corrected according to the application of correlated quantization as in the example of A of FIG. That is, in the case of quantization, as in the case of inverse quantization, when transform skipping is applied, the quantization step size cannot be set to 1 by correcting the quantization parameter according to correlated quantization (QP+1). Therefore, there is a risk of losing information due to quantization.

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

[0185] The quantization processing unit 221 derives the scaling parameter ls according to such semantics. By doing so, when transform skipping is applied, formula (8-960) is applied and correction of the quantization parameter according to the correlated quantization is omitted. Therefore, when transform skipping is applied, the quantization processing unit 221 can suppress information loss due to correlated quantization.

[0186] <1-2-2: Rounding offset sign control>

[0187] The parameter about quantization as the control target may not be a quantization parameter. Figure 1 As shown in the seventh row from the top of the table, the sign of the rounding offset of the normalization process in the quantization can be set based on the sign of the quantization coefficient as the input value, for example (method 1-2-2).

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

[0189] In the case of normalization processing in quantization, the normalization processing in inverse quantization is different from that in the case of normalization processing in inverse quantization ( Figure 5 The same as formula (8-963) of A, normalization according to the logical shift is performed using the rounding offset fwdbdOffset2 and the scaling parameter fwdbdShift2.

[0190] That is, in the case of the normalization process in quantization, the sign (positive or negative) of the rounding error deviates as in the case of the normalization process in inverse quantization. Therefore, there is a risk that quantization will become an irreversible process. That is, there is a risk of information loss in quantization.

[0191] Therefore, in the case of the normalization process in quantization, as in the case of the normalization process in inverse quantization, the sign of the rounding offset in the normalization process in quantization is set based on the sign of the quantization coefficient as the input value ( Figure 5 B).

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

[0193] 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.

[0194] By doing so, the normalization unit 222 can perform normalization processing according to the arithmetic shift, so that the deviation of the sign (positive or negative) of the rounding error can be reduced and the information loss in quantization can be suppressed.

[0195] <1-2-3: Rounding offset sign control>

[0196] The parameters related to the coefficient transformation can be the control target. For example, Figure 1 As shown in the eighth row from the top of the table, for example, the sign of the rounding offset in the normalization process in the coefficient transformation can be set based on the sign of the transformation coefficient as the input value (method 1-2-3).

[0197] For example, the image processing device may also include a transform normalization unit, which 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 transform skipping is not applied, and sets the sign of a rounding offset based on the sign of the transform coefficient (i.e., prediction residual) and normalizes the transform coefficient (i.e., prediction residual) when transform skipping is applied.

[0198] In the case of the normalization process in the coefficient transformation, as in the case of the normalization process in the inverse coefficient transformation, normalization according to the logical shift is performed using the rounding offset fwdbdOffset1 and the scaling parameter fwdbdShift1 ( Figure 6 Formula (8-946))).

[0199] That is, in the case of the normalization process in the coefficient transformation, the sign (positive or negative) of the rounding error deviates as in the case of the normalization process in the inverse coefficient transformation. Therefore, there is a risk that the coefficient transformation will become an irreversible process. That is, there is a risk of information loss in the coefficient transformation.

[0200] Therefore, in the case of the normalization process in the coefficient transform, as in the case of the normalization process in the inverse coefficient transform, the sign of the rounding offset of the normalization process in the coefficient transform is set based on the sign of the transform coefficient as the input value ( Figure 6 B).

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

[0202] 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.

[0203] By doing so, the normalization unit 214 can perform normalization processing according to the arithmetic shift, so that the deviation of the sign (positive or negative) of the rounding error can be reduced and the information loss in the coefficient transformation can be suppressed.

[0204] <1-2-4: Combination>

[0205] The methods 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 combination as needed. The transform quantization device 200 can further suppress information loss in the transform quantization process by combining more methods. That is, the transform quantization device 200 can further perform encoding according to the "transform skip + QP4" method by combining multiple of the above methods to approach reversible encoding (lossless encoding).

[0206] Meanwhile, the methods 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 the methods 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 and inverse transform device 100 can perform decoding according to the method of "transform skip + QP4" to approach reversible decoding (lossless encoding), and the transform and quantization device 200 can further perform encoding according to the method of "transform skip + QP4" to approach reversible encoding (lossless encoding).

[0207] <3. Second Embodiment>

[0208] <Merging of decompression processing during transform skip>

[0209] When transform skipping is applied, there is a risk of redundant processing, which increases the load of the inverse quantization and inverse transform processing. For example, in the data path when transform skipping occurs, in order to match the dynamic range of the prediction residual after the inverse orthogonal transform and the dynamic range of the prediction residual when the inverse orthogonal transform is skipped, a TS coefficient decompression process unique to transform skipping (<<tsShift) is provided. However, this TS coefficient decompression process is a displacement in the opposite direction to the normalization process (>>bdShift1) in the inverse quantization process. Therefore, it is redundant to execute these kinds of processes as different kinds of processes.

[0210] Therefore, in the inverse quantization and inverse transform processing, as shown in the ninth row from the top of the table in Figure 1 , the decompression process (<<tsShift) in transform skipping is replaced by the normalization process in inverse quantization (Method 2-1).

[0211] For example, in an image processing method, inverse quantization is performed on quantization coefficients using quantization parameters depending on whether transform skipping is applied. When transform skipping is not applied, inverse coefficient transform is performed on the transform coefficients generated by the inverse quantization to generate a prediction residual that is the residual between an image and a predicted image of the image, and when transform skipping is applied, the inverse coefficient transform is skipped.

[0212] For example, an image processing apparatus may include: an inverse quantization unit that performs inverse quantization on quantization coefficients; an inverse quantization normalization unit that normalizes the transform coefficients generated by the inverse quantization performed by the inverse quantization unit using a scaling parameter depending on whether transform skipping is applied; and an inverse transform unit that, when transform skipping 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 the residual between an image and a predicted image of the image, and when transform skipping is applied, skips the inverse coefficient transform.

[0213] By doing so, redundant processing can be reduced, and an increase in the load of the inverse quantization and inverse transform processing can be suppressed. That is, an increase in the decoding load caused by the "transform skipping + QP4" method can be suppressed.

[0214] <2-1: Inverse Quantization and Inverse Transform Apparatus>

[0215] Fig. 9 is a block diagram showing an example of the configuration of the inverse quantization and inverse transform apparatus 100 in this case. Fig. 9 The main components such as processing units and data flows are shown, and Fig. 9 not all components are shown. That is, in the inverse quantization and inverse transform apparatus 100, there may be Fig. 9 processing units not shown as blocks, or there may be Fig. 9 processings or data flows not shown as arrows, etc.

[0216] like Fig. 9 As shown, the inverse quantization and inverse transformation device 100 in this case includes an inverse quantization unit 101 and an inverse transformation unit 102. Figure 2 The inverse quantization unit 101 includes an inverse quantization processing unit 111 and a normalization unit 112. Figure 2 The inverse transform unit 102 includes a selection unit 121 to a normalization unit 124. That is, Figure 2 Compared with the case where the decompression processing unit 125 is omitted.

[0217] In the inverse quantization and inverse transform device 100, the above (method 2-1) is applied. That is, the inverse quantization and inverse transform device 100 replaces the decompression 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 performed by the inverse quantization processing unit 111 using the scaling parameter depending on whether the transform skip is applied. In addition, when the transform skip is applied, Figure 2 The decompression processing of the decompression processing unit 125 in Fig. 9 The normalization process in the inverse quantization of the normalization unit 112 in is merged.

[0218] By doing so, 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 decoding load due to the "transform skip + QP4" method.

[0219] <Flow of inverse quantization and inverse transform processing>

[0220] Next, we will refer to Fig.10 The flowchart describes an example of the flow of inverse quantization and inverse transform processing in this case.

[0221] When the inverse quantization and inverse transform processing in this case starts, each type of processing in steps S301 to S306 is basically the same as Figure 3 The processing of each kind of steps S101 to S106 is performed in the same manner.

[0222] However, if it is determined in step S304 that transform skip is applied, the process proceeds to step S307. When the process of step S306 ends, the process proceeds to step S307.

[0223] With Figure 3 The process of step S307 is performed in the same manner as the process of step S108. When the process of step S307 ends, the inverse quantization and inverse transform process ends.

[0224] In this inverse quantization and inverse transform processing, the above (method 2-1) is applied. That is, the normalization unit 112 performs normalization processing on the transform coefficients to replace the decompression processing in the transform skip in step S303. That is, the normalization unit 112 normalizes the transform coefficients generated by the inverse quantization performed by the inverse quantization processing unit 111 using the scaling parameter depending on whether the transform skip is applied. When the transform skip is applied, Figure 3 The decompression process performed in step S107 is combined with the normalization process in the inverse quantization in step S303.

[0225] By doing so, 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 decoding load due to the "transform skip + QP4" method.

[0226] <2-1-1: Depending on the setting of the scaling parameter of the transform skip>

[0227] When the normalization process in the inverse quantization and the decompression process in the transform skip are performed as different kinds of processes, for example, the scaling parameter bdShift1 used in the normalization process and the scaling parameter tsShift used in the decompression process may be as follows: Fig.11 The semantic derivation shown in A.

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

[0229] That is, the scaling parameter bdShift1 includes a component having a positive or negative sign opposite to that of the scaling parameter tsShift. Therefore, when transform skip is applied, the displacement of the decompression process in transform skip is reflected in the displacement of the normalization process in inverse quantization to merge the decompression process and the normalization process.

[0230] That is, when transform skipping is not applied, the normalization unit 112 normalizes the transform coefficients using scaling parameters that do not reflect the decompression process in transform skipping, and when transform skipping is applied, the normalization unit 112 normalizes the transform coefficients using scaling parameters that reflect the decompression process in transform skipping.

[0231] For example, when the scaling parameter bdShift1 used for the normalization process in inverse quantization is Fig.11 When the semantics shown in B is derived, if the transform skip flag indicates that transform skip is applied (transform_skip_flag == IS_SKIP), the component based on the transform block size is set to "0". If the transform skip flag indicates that transform skip is not applied (transform_skip_flag!= IS_SKIP), the component based on the transform block size is set to ((log2(nTbW)+log2(nTbH) / 2)-5).

[0232] By doing so, the inverse quantization and inverse transformation device 100 can reduce redundant processing, thereby suppressing an increase in the load of the inverse quantization and inverse transformation processing. That is, the inverse quantization and inverse transformation device 100 can suppress an increase in the decoding load due to the "transform skip + QP4" method.

[0233] At the same time, the method of expressing semantics in this case is arbitrary and is not limited to Fig.11 Example of B. For example, Fig.12 The semantics of A may be such that the variable tsShift may be set depending on whether transform skipping is applied, and the variable tsShift may be used as a component based on the transform block size to derive the scaling parameter bdShift1.

[0234] In addition, as in Fig.12 In the example of the semantics of B of , the correlated quantization based component can also be set depending on whether transform skipping is applied. In this case, the correlated quantization based component (dep_quant_enabled_flag) is added to the scaling parameter bdShift1 only when transform skipping is not applied.

[0235] In these cases ( Fig.12 A and Fig.12 B), and Fig.11 As in the case of B, redundant processing can also be reduced.

[0236] <2-1-2: Setting of Scaling Parameters Corresponding to Quantization Matrix>

[0237] When the transform skip flag indicates that transform skip is applied (transform_skip_flag == IS_SKIP), the components of the transform block size based on the scaling parameter bdShift1 may be set to values ​​that depend on the quantization matrix.

[0238] For example, when the scaling parameter bdShift1 used for the normalization process in inverse quantization is Fig.13When deriving the semantics shown in A, if the transform skip flag indicates that transform skip is applied (transform_skip_flag == IS_SKIP), the component based on the transform block size is set to "-4". If the transform skip flag indicates that transform skip is not applied (transform_skip_flag != IS_SKIP), the component based on the transform block size is set to ((log2(nTbW)+log2(nTbH) / 2)-5).

[0239] By doing so, the inverse quantization inverse transform device 100 can suppress the overflow of processing.

[0240] The method of representing semantics in this case is arbitrary and is not limited to Fig.12 the example of A in. Fig.13 For example, for the semantics of B in, the variable tsShift can be set depending on whether transform skip is applied, and the variable tsShift can be used as the component based on the transform block size to derive the scaling parameter bdShift1.

[0241] In addition, as in the example of the semantics of C in Fig.13 the component based on the relevant quantization can also be set depending on whether transform skip is applied. In this case, the component based on the relevant quantization (dep_quant_enabled_flag) is added to the scaling parameter bdShift1 only when transform skip is not applied.

[0242] In these cases ( Fig.13 B in Fig.13 and Fig.13 C in), the overflow of processing can also be suppressed as in the case of A in

[0243] <Merge of decompression processing during transform skip>

[0244] The transform quantization process is the same as the case of the above inverse quantization inverse transform process. That is, when transform skip is applied, there is a risk of redundant processing, which increases the load of the transform quantization process. For example, in the data path when transform skip is applied, in order to match the dynamic range of the transform coefficients after orthogonal transform and the dynamic range of the prediction residuals when orthogonal transform is skipped, a TS coefficient decompression process unique to transform skip (<<fwdtsShift) is provided. However, this TS coefficient decompression process is a displacement in the opposite direction to the normalization process (>>fwdbdShift2) in the quantization process. Therefore, it is redundant to execute these types of processes as different types of processes.

[0245] Therefore, in the transform quantization process, as from Figure 1As shown in the tenth row from the top of the table, the decompression process in the transform skip (<<fwdtsShift) is replaced by the normalization process in quantization (Method 2-2).

[0246] For example, in an image processing method, when transform skip is not applied, coefficient transformation is performed on a prediction residual, which is a residual between an image and a predicted image of the image, to generate transform coefficients. When transform skip is applied, coefficient transformation is skipped. When transform skip is not applied, quantization is performed on the transform coefficients. When transform skip is applied, quantization is performed on the prediction residual. And quantization coefficients generated by quantization are normalized using a scaling parameter depending on whether transform skip is applied.

[0247] For example, an image processing apparatus may include: 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 transform coefficients when transform skip is not applied, and skips coefficient transformation when transform skip is applied; a quantization unit that performs quantization on the transform coefficients when transform skip is not applied, and performs quantization on the prediction residual when transform skip is applied; and a quantization normalization unit that normalizes quantization coefficients generated by quantization performed by the quantization unit using a scaling parameter depending on whether transform skip is applied.

[0248] By doing so, redundant processing can be reduced and an increase in the transform quantization processing load can be suppressed. That is, an increase in the coding load due to the "transform skip + QP4" method can be suppressed.

[0249] <2-2: Transform Quantization Apparatus>

[0250] Fig.14 is a block diagram showing an example of the configuration of the transform quantization apparatus 200 in this case. Fig.14 Main components such as processing units and data flows are shown, and Fig.14 not all components are shown. That is, in the transform quantization apparatus 200, there may be Fig.14 processing units not shown as blocks, or there may be Fig.14 processing or data flows not shown as arrows or the like.

[0251] As Fig.14 shown, the transform quantization apparatus 200 in this case includes a transform unit 201 and a quantization unit 202 in the same way as Figure 7 the case of Figure 7 . The transform unit 201 includes a selection unit 211 to a normalization unit 214. That is, compared with Figure 7 the case of

[0252] In the transform quantization device 200, the above (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 performed by the quantization processing unit 221 using the scaling parameter depending on whether the transform skip is applied. Then, when the transform skip is applied, Figure 7 The decompression processing performed by the decompression processing unit 215 is the same as Fig.14 The normalization process in the quantization performed by the normalization unit 222 is merged.

[0253] By doing so, the transform and quantization apparatus 200 can suppress an increase in the load of the transform and quantization process. That is, the transform and quantization apparatus 200 can suppress an increase in the encoding load due to the "transform skip + QP4" method.

[0254] <Transformation and Quantization Processing Flow>

[0255] Next, we will refer to Fig.15 The flowchart of FIG. 1 describes an example of the flow of the transform quantization process in this case.

[0256] When the transform quantization process in this case starts, the processing of steps S321 to S327 is performed in the same manner as Figure 8 The processing of steps S201 to S203 and steps S205 to S208 is performed in basically the same manner.

[0257] However, if it is determined in step S321 that the transformation skip is applied, the process proceeds to step S324. When the process of step S323 ends, the process proceeds to step S324.

[0258] When the processing of step S327 is completed, the transform and quantization processing is completed.

[0259] In this transform quantization process, the above (method 2-2) is applied. That is, the normalization unit 222 performs normalization processing on the quantization coefficients instead of the decompression processing in the transform skip in step S327. That is, the normalization unit 222 normalizes the quantization coefficients generated by the quantization performed by the quantization processing unit 221 using the scaling parameter depending on whether the transform skip is applied. Then, when the transform skip is applied, Figure 8 The decompression processing performed in step S204 is merged with the normalization processing in the quantization in step S327.

[0260] By doing so, the transform and quantization apparatus 200 can suppress an increase in the load of the transform and quantization process. That is, the transform and quantization apparatus 200 can suppress an increase in the encoding load due to the "transform skip + QP4" method.

[0261] <2-2-1: Depending on the setting of the scaling parameter of the transform skip>

[0262] When the normalization process in quantization and the decompression process in transform skip are performed as different kinds of processes, the scaling parameter fwdbdShift2 used in the normalization process and the scaling parameter fwdtsShift used in the decompression process are used in the same manner as Fig.11 The example of A is derived in the same way.

[0263] That is, the scaling parameter fwdbdShift2 includes a component having a sign opposite to that of the scaling parameter fwdtsShift, which is positive or negative. Therefore, it is redundant to perform the normalization process in quantization and the decompression process in transform skip as different kinds of processes. Therefore, when transform skip is applied, the displacement of the decompression process in transform skip is reflected in the displacement of the normalization process in quantization to merge the decompression process and the normalization process.

[0264] That is, the transform processing unit 212 performs coefficient transform on the prediction residual when transform skipping is not applied, and skips the coefficient transform without performing decompression processing when transform skipping is applied, and the normalization unit 222 normalizes the quantization coefficients using a scaling parameter that does not reflect the decompression processing in the transform skipping when transform skipping is not applied, and normalizes the quantization coefficients using a scaling parameter that reflects the decompression processing when transform skipping is applied.

[0265] For example, with Fig.11 As in the case of the semantics shown in B, if the transform skip flag indicates that transform skip is applied (transform_skip_flag==IS_SKIP) when deriving the scaling parameter fwdbdShift2 for the normalization process in quantization, the component based on the transform block size is set to "0". If the transform skip flag indicates that transform skip is not applied (transform_skip_flag!=IS_SKIP), the component based on the transform block size is set to ((log2(nTbW)+log2(nTbH) / 2)-5).

[0266] By doing so, the transform quantization apparatus 200 can reduce redundant processing, thereby suppressing an increase in the load of the transform quantization processing. That is, the transform quantization apparatus 200 can suppress an increase in the encoding load due to the "transform skip + QP4" method.

[0267] At the same time, the way to express semantics in this case is arbitrary. Fig.12As in the case of the semantics of A, the variable fwdtsShift may be set depending on whether transform skipping is applied, and the variable fwdtsShift may be used as a component based on the transform block size to derive the scaling parameter fwdbdShift1.

[0268] In addition, with Fig.12 As in the case of the semantics of B, the component based on correlated quantization can also be set depending on whether transform skipping is applied. In this case, the component based on correlated quantization (dep_quant_enabled_flag) is added to the scaling parameter fwdbdShift2 only when transform skipping is not applied.

[0269] In these cases, redundant processing can also be reduced.

[0270] <2-2-2: Setting of Scaling Parameters Corresponding to Quantization Matrix>

[0271] In addition, in the case of this transform quantization processing, as in the case of the above-mentioned inverse quantization inverse transform processing, when the transform skip flag indicates that transform skip is applied (transform_skip_flag == IS_SKIP), the components of the transform block size based on the scaling parameter fwdbdShift2 can be set to values ​​depending on the quantization matrix.

[0272] For example, with Fig.13 As in the case of the semantics shown in A of FIG. 1 , if the transform skip flag indicates that transform skip is applied (transform_skip_flag == IS_SKIP) when deriving the scaling parameter fwdbdShift2 for the normalization process in quantization, the component based on the transform block size is set to "-4". If the transform skip flag indicates that transform skip is not applied (transform_skip_flag!= IS_SKIP), the component based on the transform block size is set to ((log2(nTbW)+log2(nTbH) / 2)-5).

[0273] By doing so, the transform and quantization apparatus 200 can suppress overflow of processing.

[0274] At the same time, the way to express the semantics in this case is arbitrary. For example, Fig.13 As is the case with the semantics of B, the variable fwdtsShift may be set depending on whether transform skipping is applied, and the variable fwdtsShift may be used as a component based on the transform block size to derive the scaling parameter fwdbdShift2.

[0275] In addition, with Fig.13In the same way as in the case of the semantics of C, it may also depend on whether the transform skip is applied to set the components based on the relevant quantization. In this case, the components based on the relevant quantization (dep_quant_enabled_flag) are added to the scaling parameter fwdbdShift2 only when the transform skip is not applied.

[0276] In these cases, it is also possible to Fig.13 suppress the overflow of the process in the same way as in the case of A.

[0277] At the same time, each method described in this embodiment can be appropriately applied in combination with each method described in the first embodiment.

[0278] <4. Third Embodiment>

[0279] <Combination of Normalization Processing During Transform Skip>

[0280] For example, in the data path during transform skip, in order to match the dynamic range of the predicted residual after the inverse coefficient transform and the dynamic range of the transform coefficient (i.e., the predicted residual) when skipping the inverse coefficient transform, a TS coefficient decompression process unique to transform skip (<<tsShift) and a normalization process based on "bdShift2" are provided. However, the displacements in this TS coefficient decompression process and the normalization process can be combined with the displacements in the normalization process (>>bdShift1) in the inverse quantization process. That is, it is redundant to perform each of these displacements.

[0281] Therefore, in the inverse quantization inverse transform process, in the case of transform skip, the decompression process (<<tsShift) in transform skip and the normalization process in the inverse coefficient transform are replaced by the normalization process in the inverse quantization, as shown in the eleventh row from the top of the Figure 1 table (Method 3-1).

[0282] By doing so, redundant processing can be reduced and an increase in the load of the inverse quantization inverse transform process can be suppressed. That is, an increase in the decoding load due to the "transform skip + QP4" method can be suppressed.

[0283] <3-1: Inverse Quantization Inverse Transform Device>

[0284] Fig.16 is a block diagram showing an example of the configuration of the inverse quantization inverse transform device 100 in this case. Fig.16 The main components such as processing units and data streams are shown, and Fig.16 not all components are shown. That is, in the inverse quantization inverse transform device 100, there may be Fig.16 processing units not shown as blocks, or there may be Fig.16Not shown are processes or data flows such as arrows.

[0285] like Fig.16 As shown, the inverse quantization and inverse transformation device 100 in this case includes an inverse quantization unit 101 and an inverse transformation unit 102. Figure 2 The inverse quantization unit 101 includes an inverse quantization processing unit 111 and a normalization unit 112. Figure 2 The inverse transform unit 102 includes a selection unit 121 to a normalization unit 124. That is, Figure 2 Compared with the case where the decompression processing unit 125 is omitted.

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

[0287] In this inverse quantization and inverse transform device 100, the above (method 3-1) is applied. That is, in the case of transform skipping, the inverse quantization and inverse transform device 100 replaces the decompression process in transform skipping and the normalization process in inverse coefficient transforming with the normalization process in inverse quantization. That is, the normalization unit 112 normalizes the transform coefficients generated by the inverse quantization performed by the inverse quantization processing unit 111 using the scaling parameter depending on whether transform skipping is applied. When transform skipping is applied, Figure 2 The decompression processing performed by the decompression processing unit 125 in Figure 2 The normalization process in the inverse coefficient transformation performed by the normalization unit 124 in Fig.16 The normalization process in the inverse quantization performed by the normalization unit 112 in is merged.

[0288] By doing so, 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 decoding load due to the "transform skip + QP4" method.

[0289] <Flow of inverse quantization and inverse transform processing>

[0290] Next, we will refer to Fig.17 The flowchart describes an example of the flow of inverse quantization and inverse transform processing in this case.

[0291] When the inverse quantization and inverse transform processing in this case starts, each type of processing in steps S341 to S347 is performed in the same manner as Fig.10 Each kind of processing of steps S301 to S307 is performed in basically the same manner.

[0292] However, if it is determined in step S344 that transform skip is applied, each type of processing of steps S345 to S347 is skipped and the inverse quantization and inverse transform processing ends.

[0293] In this inverse quantization and inverse transform processing, the above (method 3-1) is applied. That is, when transform skipping is applied, the normalization unit 112 performs normalization processing on the transform coefficients to replace the decompression processing in transform skipping and the normalization processing in the inverse coefficient transform in step S343. That is, the normalization unit 112 normalizes the transform coefficients generated by the inverse quantization performed by the inverse quantization processing unit 111 using the scaling parameter depending on whether transform skipping is applied. When transform skipping is applied, Figure 3 The decompression process performed in step S107 and the Figure 3 The normalization process performed in step S108 is merged with the normalization process in the inverse quantization in step S343.

[0294] By doing so, 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 decoding load due to the "transform skip + QP4" method.

[0295] <3-1-1: Depending on the setting of the scaling parameter of the transform skip>

[0296] When the normalization process in inverse quantization, the decompression process in transform skip, and the normalization process in inverse coefficient transform are performed as different kinds of processes, the scaling parameter bdShift1 for the normalization process in inverse quantization, the scaling parameter tsShift for the decompression process, and the scaling parameter bdShift2 for the normalization process in inverse coefficient transform may be derived, for example, as Fig.18 The semantics shown in A.

[0297] That is, the scaling parameter bdShift1 and the scaling parameter tsShift are derived as described in the second embodiment. The scaling parameter bdShift2 is set to a larger value between the difference between "20" and the bit depth (bitDepth) and "0". The shifts using these scaling parameters are combined.

[0298] That is, when transform skipping is not applied, the normalization unit 124 normalizes the prediction residual, and when transform skipping is applied, the normalization unit 112 normalizes the transform coefficient using a scaling parameter reflecting the normalization process performed on the prediction residual by the normalization unit 124 .

[0299] For example, when the transform skip flag indicates that transform skip is applied (transform_skip_flag == IS_SKIP), Fig.18 The semantics are the same as shown in B, the scaling parameter bdShift1 used for normalization in inverse quantization is derived from the sum of the variable trBdShift and the component based on the relevant quantization (dep_quant_enabled_flag).

[0300] The variable trBdShift is derived as the sum of the value according to the inverse quantization (INV_QUANT) and the value according to the scaling list (SCALING_LIST_BITS), as Fig.18 The semantics shown in B.

[0301] For example, the value according to inverse quantization (INV_QUANT) may be set to “6”, and the value according to the scaling list (SCALING_LIST_BITS) may be set to “4.” That is, the variable trBdShift is set to “10”.

[0302] By doing so, the inverse quantization and inverse transformation device 100 can reduce redundant processing, thereby suppressing an increase in the load of the inverse quantization and inverse transformation processing. That is, the inverse quantization and inverse transformation device 100 can suppress an increase in the decoding load due to the "transform skip + QP4" method.

[0303] At the same time, the way to express semantics in this case is arbitrary. For example, Fig.19 The semantics of A may be such that the variable trBdShift may be set depending on whether transform skipping is applied, and the variable trBdShift may be used as a component based on the transform block size to derive the scaling parameter bdShift1.

[0304] In addition, as in Fig.19 In the example of the semantics of B of , the correlated quantization based component can also be set depending on whether transform skipping is applied. In this case, the correlated quantization based component (dep_quant_enabled_flag) is added to the scaling parameter bdShift1 only when transform skipping is not applied.

[0305] In these cases ( Fig.19 A and Fig.19 B), and like Fig.18In the case of B, redundant processing can also be reduced.

[0306] <Combination of Normalization Processing during Transform Skip>

[0307] The transform quantization process is the same as in the case of the above inverse quantization and inverse transform processes. That is, when transform skip is applied, there is a risk of redundant processing, which increases the load of the transform quantization process. For example, in the data path during transform skip, in order to match the dynamic range of the transform coefficients after orthogonal transform and the dynamic range of the prediction residual when orthogonal transform is skipped, a TS coefficient decompression process unique to transform skip (<<fwdtsShift) and a normalization process based on "fwdbdShift1" are provided. However, the displacements in the TS coefficient decompression process and the normalization process can be combined with the displacement in the normalization process (>>fwdbdShift2) in the quantization process. That is, it is redundant to perform each of these displacements.

[0308] Therefore, in the transform quantization process, as shown in the twelfth row (the lowest row) from the top of the Figure 1 table, in the case of transform skip, the decompression process (<<fwdtsShift) in transform skip and the normalization process in coefficient transform are replaced by the normalization process in quantization (Method 3-2).

[0309] By doing so, redundant processing can be reduced and an increase in the load of the transform quantization process can be suppressed. That is, an increase in the coding load due to the "transform skip + QP4" method can be suppressed.

[0310] <3-2: Transform Quantization Device>

[0311] Fig. 20 is a block diagram showing an example of the configuration of the transform quantization device 200 in this case. Fig. 20 Main components such as processing units and data streams are shown, and Fig. 20 not all components are shown. That is, in the transform quantization device 200, there may be Fig. 20 processing units not shown as blocks, or there may be Fig. 20 processing or data streams not shown as arrows, etc.

[0312] As Fig. 20 shown, the transform quantization device 200 in this case includes a transform unit 201 and a quantization unit 202, just like in the case of Figure 7 . The transform unit 201 includes a selection unit 211 to a normalization unit 214. That is, compared with the case of Figure 7 , the decompression processing unit 215 is omitted.

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

[0314] Quantization unit 202 and Figure 7 As in the case of , it includes a quantization processing unit 221 and a normalization unit 222.

[0315] In the transform quantization device 200, the above (method 3-2) is applied. That is, the transform quantization device 200 replaces the decompression process in the transform skip and the normalization process in the coefficient transform with the normalization process in the quantization. That is, the normalization unit 222 normalizes the quantization coefficients generated by the quantization performed by the quantization processing unit 221 using the scaling parameter depending on whether the transform skip is applied. When the transform skip is applied, Figure 7 The decompression processing unit 215 performs the decompression processing and Figure 7 The normalization process performed by the normalization unit 214 is the same as Fig. 20 The normalization process in the quantization performed by the normalization unit 222 is merged.

[0316] By doing so, the transform and quantization apparatus 200 can suppress an increase in the load of the transform and quantization process. That is, the transform and quantization apparatus 200 can suppress an increase in the encoding load due to the "transform skip + QP4" method.

[0317] [Transformation and quantization process flow]

[0318] Next, we will refer to Fig.21 The flowchart of FIG. 1 describes an example of the flow of the transform quantization process in this case.

[0319] When the transform quantization process in this case starts, each type of processing in steps S361 to S367 is performed in the same manner as Fig.15 Each kind of processing of steps S321 to S327 is performed in basically the same manner.

[0320] However, if it is determined in step S361 that transform skip is applied, the processing of each kind of steps S362 to S364 is skipped and the processing proceeds to step S365.

[0321] In this transform quantization process, the above (method 3-2) is applied. That is, when transform skipping is applied, the normalization unit 222 performs normalization processing on the transform coefficients to replace the decompression processing in transform skipping and the normalization processing in coefficient transform in step S367. That is, the normalization unit 222 normalizes the quantization coefficients generated by the quantization performed by the quantization processing unit 221 using the scaling parameter depending on whether transform skipping is applied. When transform skipping is applied, Figure 8 The decompression process performed in step S204 and Figure 8 The normalization processing performed in step S205 is merged with the normalization processing in quantization in step S367.

[0322] By doing so, the transform and quantization apparatus 200 can suppress an increase in the load of the transform and quantization process. That is, the transform and quantization apparatus 200 can suppress an increase in the encoding load due to the "transform skip + QP4" method.

[0323] <3-2-1: Depending on the setting of the scaling parameter of the transform skip>

[0324] When transform skipping is not applied, the normalization unit 214 normalizes the transform coefficients, and when transform skipping is applied, the normalization unit 222 normalizes the quantization coefficients using a scaling parameter reflecting the normalization process performed on the prediction residual by the normalization unit 214 .

[0325] For example, in Fig.18 In the case of B, when the transform skip flag indicates that transform skip is applied (transform_skip_flag == IS_SKIP), the scaling parameter fwdbdShift2 used for the normalization process in quantization is derived from the sum of the variable fwdtrBdShift and the component based on the relevant quantization (dep_quant_enabled_flag).

[0326] The variable fwdtrBdShift is derived as the sum of the value according to quantization (QUANT) and the value according to the scaling list (SCALING_LIST_BITS), such as Fig.18 The semantic situation shown in B.

[0327] For example, the value according to quantization (QUANT) may be set to “6”, and the value according to the scaling list (SCALING_LIST_BITS) may be set to “4.” That is, the variable fwdtrBdShift is set to “10”.

[0328] By doing so, the transform quantization apparatus 200 can reduce redundant processing, thereby suppressing an increase in the load of the transform quantization processing. That is, the transform quantization apparatus 200 can suppress an increase in the encoding load due to the "transform skip + QP4" method.

[0329] At the same time, the way to express semantics in this case is arbitrary. Fig.19 As in the case of A's semantics, the variable fwdtrBdShift can be set depending on whether a transform skip is applied, and the variable fwdtrBdShift can be used to derive the scaling parameter fwdbdShift2.

[0330] In addition, with Fig.19 As in the case of the semantics of B, the component based on correlated quantization can also be set depending on whether transform skipping is applied. In this case, the component based on correlated quantization (dep_quant_enabled_flag) is added to the scaling parameter fwdbdShift2 only when transform skipping is not applied.

[0331] In these cases ( Fig.19 A and Fig.19 B), or Fig.18 The same as in case B reduces redundant processing.

[0332] <5. Fourth embodiment>

[0333] <Image decoding device>

[0334] The present technology described above in the first to third embodiments and the like can be applied to any device, apparatus, system, etc. For example, the present technology can be applied to an image decoding device that decodes encoded data of image data. The present technology can also be applied to an image encoding device that encodes image data.

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

[0336] Fig. 22 shows the main components such as processing units and data flows, and Fig. 22Not all components are shown. That is, in the image decoding apparatus 500, there may be Fig. 22 A processing unit is not shown as a block, or may exist Fig. 22 1 and 2. Processing or data flow as arrows or the like is not shown in FIG. This also applies to other diagrams showing processing units or the like in the image decoding device 500.

[0337] exist Fig. 22 , the image decoding device 500 includes a control unit 501, an accumulation buffer 511, a decoding unit 512, an inverse quantization and inverse transformation unit 513, a calculation unit 514, an in-loop filter unit 515, a reordering buffer 516, a frame memory 517, and a prediction unit 518. The prediction unit 518 includes an intra-frame prediction unit and an inter-frame prediction unit, which are not shown.

[0338] <Control Unit>

[0339] The control unit 501 performs processing related to decoding control. For example, the control unit 501 obtains encoding 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. In addition, the control unit 501 estimates encoding parameters not included in the bitstream. In addition, the control unit 501 controls decoding by controlling the processing units (accumulation buffer 511 to prediction unit 518) of the image decoding device 500 based on the acquired (or estimated) encoding parameters.

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

[0341] Of course, the above example is only an example and is not limited to this example. For example, each encoding parameter can be provided to any processing unit. In addition, other information can be provided to any processing unit.

[0342] <Header Information Hinfo>

[0343] The header information Hinfo may include, for example, header information such as video parameter set (VPS) / sequence parameter set (SPS) / picture parameter set (PPS) / picture header (PH) / slice header (SH). The header information Hinfo may include, for example, information defining image size (width PicWidth, height PicHeight), bit depth (luminance bitDepthY, chrominance bitDepthC), chrominance array type ChromaArrayType, maximum value MaxCUSize / minimum value MinCUSize of CU size, maximum depth MaxQTDepth / minimum depth MinQTDepth of quadtree partitioning, maximum depth MaxBTDepth / minimum depth MinBTDepth of binary tree partitioning, maximum value MaxTSSize of transform skip block (also called maximum transform skip block size), on / off flag of each encoding tool (also called valid flag), etc.

[0344] For example, the on / off flag of the coding tool included in the header information Hinfo includes an on / off flag related to the transformation and quantization processing described below. The on / off flag of the coding tool can also be interpreted as a flag indicating whether there is a syntax related to the coding tool in the coded data. In addition, the on / off flag indicates that the coding tool can be used when its value is 1 (true), and indicates that the coding tool cannot be used when its value is 0 (false). The construction of the flag value can be interchangeable.

[0345] <Prediction mode information Pinfo>

[0346] For example, the prediction mode information Pinfo may include information such as size information PBSize (prediction block size) of a processing target PB (prediction block), intra prediction mode information IPinfo, and motion prediction information MVinfo.

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

[0348] In addition, the intra-frame prediction mode information IPinfo may include, for example, an inter-component prediction flag (ccp_flag(cclmp_flag)), a multi-class linear prediction mode flag (mclm_flag), a chroma sample location type identifier (chroma_sample_loc_type_idx), a chroma MPM identifier (chroma_mpm_idx), a luma intra-frame prediction mode (IntraPredModeC) derived from these syntaxes, and the like.

[0349] The inter-component prediction flag (ccp_flag (cclmp_flag)) is flag information indicating whether 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.

[0350] The multi-class linear prediction mode flag (mclm_flag) is information about the linear prediction mode (linear prediction mode information). More specifically, the multi-class linear prediction mode flag (mclm_flag) is flag information indicating whether the multi-class linear prediction mode is set. For example, "0" indicates a 1-class mode (single-class mode) (e.g., CCLMP), and "1" indicates a 2-class mode (multi-class mode) (e.g., MCLMP).

[0351] The chroma sample position type identifier (chroma_sample_loc_type_idx) is an identifier for identifying the type of the pixel position of the chroma difference component (also referred to as the chroma sample position type).

[0352] The color difference sample position type identifier (chroma_sample_loc_type_idx) is transmitted (stored) as information (chroma_sample_loc_info()) on the pixel position of the color difference component.

[0353] 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 designated as the chroma intra prediction mode.

[0354] For example, the motion prediction information MVinfo may include information such as merge_idx, merge_flag, inter_pred_idc, ref_idx_LX, mvp_lX_flag, X={0,1}, and mvd (see, for example, JCTVC-W1005, 7.3.8.6 Prediction Unit Syntax).

[0355] Of course, the information included in the prediction mode information Pinfo is arbitrary, and information other than this information may be included.

[0356] <Transformation information Tinfo>

[0357] The transformation information Tinfo may include, for example, the following information: Of course, the information included in the transformation information Tinfo is arbitrary, and may include information other than this information.

[0358] The width size TBWSize and the height TBHSize of the processing target transform block: the logarithmic values ​​of each TBWSize, TBHSize with base 2, log2TBWSize and log2TBHSize, are also available.

[0359] Transform skip flag (ts_flag): A flag indicating whether to skip the (inverse) primary transform and (inverse) secondary transform

[0360] Scan Identifier (scanIdx)

[0361] Quantization parameter (qp)

[0362] Quantization matrix (scaling_matrix): For example, JCTVC-W1005, 7.3.4 Scaling list data syntax

[0363] <Residual information Rinfo>

[0364] The residual information Rinfo (for example, see 7.3.8.11 Residual Coding syntax of JCTVC-W1005) may include, for example, the following syntax.

[0365] cbf (coded_block_flag): A flag indicating the presence or absence of residual data

[0366] last_sig_coeff_x_pos: the last non-zero coefficient X coordinate

[0367] last_sig_coeff_y_pos: the last non-zero coefficient Y coordinate

[0368] coded_sub_block_flag: A flag indicating the presence or absence of sub-block non-zero coefficients

[0369] sig_coeff_flag: Flag indicating the presence or absence of non-zero coefficients

[0370] gr1_flag: A flag indicating whether the level of the non-zero coefficient is greater than 1 (also called the GR1 flag)

[0371] gr2_flag: A flag indicating whether the level of non-zero coefficients is greater than 2 (also called the GR2 flag)

[0372] sign_flag: indicates the positive or negative sign of the non-zero coefficient (also called the sign code)

[0373] coeff_abs_level_remaining: The residual level of non-zero coefficients (also called the non-zero coefficient residual level),

[0374] etc.

[0375] Of course, the information included in the residual information Rinfo is arbitrary, and may include information other than this information.

[0376] <Filter information Finfo>

[0377] For example, the filter information Finfo may include control information about the following filter processing.

[0378] Control information about the deblocking filter (DBF)

[0379] Control information about pixel adaptive offset (SAO)

[0380] Control information about the adaptive loop filter (ALF)

[0381] Other linear / non-linear filter control information

[0382] More specifically, the filter information Finfo may include, for example, a picture to which each filter is applied, information for specifying an area in the picture, filter on / off control information in units of CUs, filter on / off control information about boundaries of slices and tiles, etc. Of course, the information included in the filter information Finfo is arbitrary, and information other than this information may be included.

[0383] <Accumulation Buffer>

[0384] The accumulation buffer 511 acquires and holds (stores) a bit stream input to the image decoding device 500. The accumulation buffer 511 extracts encoded data included in the accumulated bit stream at a predetermined timing or when a predetermined condition or the like is satisfied, and supplies the encoded data to the decoding unit 512.

[0385] <Decoding Unit>

[0386] The decoding unit 512 performs processing related to image decoding. For example, the decoding unit 512 may receive the encoded data provided from the accumulation buffer 511 as input and entropy decode (reversibly decode) the syntax value of each syntax element from the bit string according to the definition of the syntax table to derive parameters.

[0387] For example, the parameters derived from the syntax elements and the syntax values ​​of the syntax elements may include information such as header information Hinfo, prediction mode information Pinfo, transform information Tinfo, residual information Rinfo, filter information Finfo. That is, the decoding unit 512 parses (analyzes and acquires) such information from the bitstream.

[0388] Furthermore, the decoding unit 512 performs such parsing according to the control of the control unit 501. Then, the decoding unit 512 supplies the control unit 501 with information obtained by the parsing.

[0389] In addition, the decoding unit 512 decodes the encoded data with reference to the residual information Rinfo. At this time, the decoding unit 512 applies entropy decoding (reversible 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.

[0390] For example, it is assumed that CABAC is applied. In the case of non-lossless coding mode, the decoding unit 512 performs arithmetic decoding on the encoded data using the context model to derive the quantization coefficient level of each coefficient position in each transform block. The decoding unit 512 provides the derived quantization coefficient level to the inverse quantization inverse transform unit 513.

[0391] Furthermore, in the case of the lossless encoding mode, the decoding unit 512 performs arithmetic decoding on the encoded data in the bypass mode to derive residual data D. The decoding unit 512 supplies the derived residual data D to the inverse quantization and inverse transformation unit 513 .

[0392] <Inverse quantization and inverse transformation unit>

[0393] The inverse quantization and inverse transformation unit 513 performs processing related to inverse quantization and inverse coefficient transformation. For example, in the case of a non-lossless encoding mode, the inverse quantization and inverse transformation unit 513 obtains the quantization coefficient level provided from the decoding unit 512. The inverse quantization and inverse transformation unit 513 scales (inverse quantizes) the obtained quantization coefficient level to derive the transformation coefficient Coeff. The inverse quantization and inverse transformation unit 513 performs an inverse coefficient transformation such as an inverse orthogonal transformation on the transformation coefficient Coeff to derive the residual data D'. The inverse quantization and inverse transformation unit 513 provides the residual data D' to the calculation unit 514.

[0394] The inverse quantization and inverse transformation unit 513 may skip (omit) inverse quantization and inverse coefficient transformation. For example, in the case of lossless encoding mode, the inverse quantization and inverse transformation unit 513 obtains the residual data D provided from the decoding unit 512. The inverse quantization and inverse transformation unit 513 skips (omit) inverse quantization and inverse coefficient transformation and provides the residual data D to the calculation unit 514 as residual data D'.

[0395] The inverse quantization and inverse transformation unit 513 performs such processing according to the control of the control unit 501. For example, the inverse quantization and inverse transformation unit 513 may perform such processing based on the prediction mode information Pinfo and the transformation information Tinfo supplied from the control unit 501.

[0396] <Computational Unit>

[0397] The calculation unit 514 performs processing related to adding information about the image. For example, the calculation unit 514 receives as input the residual data D' provided from the inverse quantization and inverse transformation unit 513 and the predicted image provided from the prediction unit 518. The calculation unit 514 adds the residual data to the predicted image (prediction signal) corresponding to the residual data to derive a local decoded image. The calculation unit 514 provides the derived local decoded image to the in-loop filter unit 515 and the frame memory 517.

[0398] <In-loop filter unit>

[0399] The in-loop filter unit 515 performs processing related to the in-loop filtering process. For example, the in-loop filter unit 515 receives as input the local decoded image provided from the calculation unit 514 and the filter information Finfo provided from the control unit 501. The information input to the in-loop filter unit 515 is arbitrary, and information other than this information may be input.

[0400] The in-loop filter unit 515 appropriately filters the local decoded image based on the filter information Finfo. For example, the in-loop filter unit 515 applies four in-loop filters in the following order: a bilateral filter, a deblocking filter (DBF), an adaptive offset filter (sample adaptive offset (SAO)), and an adaptive loop filter (ALF). Which filter is applied and in which order is applied are arbitrary and can be appropriately selected.

[0401] The in-loop filter unit 515 performs a filtering process corresponding to the filtering process performed by the encoding side (e.g., the in-loop filter unit 618 of the image encoding device 600). Of course, the filtering 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 can apply a Wiener filter or the like.

[0402] The in-loop filter unit 515 provides the filtered local decoded image to the reordering buffer 516 and the frame memory 517.

[0403] <Reorder Buffer>

[0404] The reordering buffer 516 receives the local decoded image provided from the in-loop filter unit 515 as an input and saves (stores) the local decoded image. The reordering buffer 516 reconstructs a decoded image for each picture unit using the local decoded image and saves the decoded image (stores the decoded image in the buffer). The reordering buffer 516 rearranges the obtained decoded image from the decoding order to the reproduction order. The reordering buffer 516 outputs the rearranged decoded image group as motion image data to the outside of the image decoding device 500.

[0405] <Frame Memory>

[0406] The frame memory 517 performs processing related to storage of data about an image. For example, the frame memory 517 receives the local decoded image provided from the calculation unit 514 as input, reconstructs the decoded image for each picture unit, and stores the decoded image in a buffer in the frame memory 517.

[0407] In addition, the frame memory 517 receives the in-loop filtered local decoded image provided from the in-loop filter unit 515 as an input, reconstructs the decoded image for each picture unit, and stores the decoded image in a buffer in the frame memory 517. The frame memory 517 appropriately provides the stored decoded image (or a portion thereof) to the prediction unit 518 as a reference image.

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

[0409] <Prediction Unit>

[0410] The prediction unit 518 performs processing related to the generation of the predicted image. For example, the prediction unit 518 receives the prediction mode information Pinfo provided from the control unit 501 and the decoded image (or a part thereof) read from the frame memory 517 as input. The prediction unit 518 performs prediction processing in the prediction mode adopted in encoding based on the prediction mode information Pinfo, and generates the predicted image with reference to the decoded image as a reference image. The prediction unit 518 provides the generated predicted image to the calculation unit 514.

[0411] <Application of inverse quantization and inverse transformation device>

[0412] As the inverse quantization and inverse transformation unit 513 of the image decoding device 500 as described above, the inverse quantization and inverse transformation device 100 described in the first to third embodiments can be applied. That is, the inverse quantization and inverse transformation unit 513 can have Figure 2 , Fig. 9 or Fig.16 By doing so, the inverse quantization and inverse transformation unit 513 can obtain the above-described effects in the first to third embodiments. That is, the image decoding device 500 can obtain the above-described effects in the first to third embodiments in its decoding process.

[0413] <Flow of Image Decoding Process>

[0414] Next, we will refer to Fig.23 The flowchart describes an example of the flow of the image decoding process performed by the image decoding device 500 as described above.

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

[0416] In step S502, the decoding unit 512 parses (analyzes and acquires) various encoding parameters from the bit stream. The control unit 501 sets various encoding parameters by providing the acquired various encoding parameters to various types of processing units.

[0417] In step S503, the control unit 501 sets the processing unit based on the obtained encoding parameters.

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

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

[0420] In step S506 , the prediction unit 518 performs prediction processing by a prediction method specified by the encoding side based on the encoding parameters set in step S502 and the like, and generates a predicted image P with reference to the reference image stored in the frame memory 517 and the like.

[0421] 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 local decoded image Rlocal.

[0422] In step S508 , the in-loop filter unit 515 performs in-loop filtering processing on the local decoded image Rlocal obtained by the process of step S507 .

[0423] In step S509, the rearrangement buffer 516 uses the local decoded image Rlocal filtered by the process of step S508 to derive a decoded image R, and rearranges a set of decoded images R from the decoding order to the reproduction order. The set of decoded images R rearranged in the reproduction order is output as a moving image to the outside of the image decoding device 500.

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

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

[0426] <Application of inverse quantization and inverse transform processing>

[0427] As the inverse quantization and inverse transformation process (step S505) of the above-mentioned image decoding device 500, the inverse quantization and inverse transformation process described in the above-mentioned first to third embodiments can be applied. That is, the inverse quantization and inverse transformation process can be performed according to Figure 3 , Fig.10 or Fig.17 The process shown in the flowchart shown in the figure is executed. By doing so, the inverse quantization and inverse transformation unit 513 can obtain the effects in the first to third embodiments described above. That is, the image decoding device 500 can obtain the above effects in the first to third embodiments in the image decoding process.

[0428] <6. Fifth embodiment>

[0429] <Image Coding Device>

[0430] Fig.24 : is a block diagram showing a configuration example of an image encoding device as one aspect of an image processing device to which the present technology is applied. Fig.24 The image encoding device 600 shown is a device for encoding image data of a moving image. For example, the image encoding device 600 may encode the image data of the moving image by an encoding method such as Versatile Video Coding (VVC), Advanced Video Coding (AVC), or High Efficiency Video Coding (HEVC) described in the above non-patent literature.

[0431] Fig.24 shows the main components such as processing units and data flows, and Fig.24 Not all components are shown. That is, in the image encoding device 600, there may be Fig.24 A processing unit is not shown as a block, or may exist Fig.24 1 and 2. Processing or data flow as arrows or the like is not shown in FIG. This also applies to other diagrams showing processing units or the like in the image encoding device 600.

[0432] like Fig.24 As shown, the image encoding device 600 includes a control unit 601, a reordering buffer 611, a calculation unit 612, a transform quantization unit 613, an encoding unit 614, and an accumulation buffer 615. In addition, the image encoding device 600 includes an inverse quantization and 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.

[0433] <Control Unit>

[0434] Based on the block size of the external or predetermined processing unit, the control unit 601 divides the moving image data stored by the reorder buffer 611 into blocks (CU, PU, ​​TU, etc.) in the processing unit. In addition, the control unit 601 determines the encoding parameters (header information Hinfo, prediction mode information Pinfo, transform information Tinfo, filter information Finfo, etc.) to be provided to each block, for example, based on rate-distortion optimization (RDO). For example, the control unit 601 can set a transform skip flag, etc.

[0435] The details of these encoding parameters will be described later. When the control unit 601 determines the encoding parameters as described above, the control unit 601 provides these encoding parameters to each block. The details are as follows.

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

[0437] <Reorder Buffer>

[0438] Each field (input image) of the moving image data is input to the image encoding device 600 in the order of its reproduction (display). The reordering buffer 611 acquires and saves (stores) each input image in the order of its reproduction (display). The reordering buffer 611 reorders the input image in the encoding order (decoding order) or divides the input image into blocks based on the control of the control unit 601. The reordering buffer 611 supplies each processed input image to the calculation unit 612.

[0439] <Computational Unit>

[0440] The calculation unit 612 subtracts the predicted image P supplied from the prediction unit 620 from the image corresponding to the block in the processing unit supplied from the rearrangement buffer 611 to derive residual data D, and supplies the residual data D to the transform quantization unit 613 .

[0441] <Transform Quantization Unit>

[0442] The transform quantization unit 613 performs processing related to coefficient transform and quantization. For example, the transform quantization unit 613 obtains the residual data D provided from the calculation unit 612. In the case of the non-lossless encoding mode, the transform quantization unit 613 performs a coefficient transform such as an orthogonal transform on the residual data D to derive a transform coefficient Coeff. The transform quantization unit 613 scales (quantizes) the transform coefficient Coeff to derive a quantized coefficient level. The transform quantization unit 613 provides the quantized coefficient level to the encoding unit 614 and the inverse quantization inverse transform unit 616.

[0443] The transform and quantization unit 613 may skip (omit) coefficient transform and quantization. In the case of lossless encoding mode, the transform and quantization unit 613 skips coefficient transform and quantization and supplies the acquired residual data D to the encoding unit 614 and the inverse quantization and inverse transform unit 616.

[0444] The transform quantization unit 613 performs such processing according to the control of the control unit 601. For example, the transform quantization unit 613 may perform such processing based on the prediction mode information Pinfo and the transform information Tinfo provided from the control unit 601. In addition, the quantization rate performed by the transform quantization unit 613 is controlled by the rate control unit 621.

[0445] <Coding unit>

[0446] The encoding unit 614 receives as input the quantization coefficient level (or residual data D) provided from the transform and quantization unit 613, various encoding parameters (header information Hinfo, prediction mode information Pinfo, transform information Tinfo, filter information Finfo, etc.) provided from the control unit 601, information about the filter (for example, filter coefficients provided from the in-loop filter unit 618), and information about the optimal prediction mode provided from the prediction unit 620.

[0447] For example, the encoding unit 614 performs entropy encoding (lossless encoding), such as context-based adaptive binary arithmetic coding (CABAC) or context-based adaptive variable length coding (CAVLC), on the quantized coefficient level or residual data D to generate a bit string (encoded data). For example, when CABAC is applied, the encoding unit 614 performs arithmetic encoding on the quantized coefficient level using a context model in a non-lossless encoding mode to generate encoded data. In addition, in the lossless encoding mode, the encoding unit 614 performs arithmetic encoding on the residual data D in a bypass mode to generate encoded data.

[0448] Furthermore, the encoding unit 614 derives residual information Rinfo from the quantization coefficient level and the residual data, and encodes the residual information Rinfo to generate a bit string.

[0449] In addition, the encoding unit 614 includes the information about the filter provided from the in-loop filter unit 618 in the filter information Finfo, and includes the information about the optimal prediction mode provided from the prediction unit 620 in the prediction mode information Pinfo. Then, the encoding unit 614 encodes the above-mentioned various encoding parameters (header information Hinfo, prediction mode information Pinfo, transformation information Tinfo, filter information Finfo, etc.) to generate a bit string.

[0450] Furthermore, 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.

[0451] <Accumulation Buffer>

[0452] The accumulation buffer 615 temporarily stores the encoded data obtained in the encoding unit 614. The accumulation buffer 615 outputs the stored encoded data as, for example, a bit stream, etc., to the outside of the image encoding device 600 at a predetermined timing. For example, the encoded data is sent to the decoding side via an arbitrary recording medium, an arbitrary transmission medium, an arbitrary information processing device, etc. That is, the accumulation buffer 615 is also a transmission unit that transmits the encoded data (bit stream).

[0453] <Inverse quantization and inverse transformation unit>

[0454] The inverse quantization and inverse transformation unit 616 performs processing related to inverse quantization and inverse coefficient transformation. For example, in the non-lossless coding mode, the inverse quantization and inverse transformation unit 616 receives as input the quantization coefficient level provided from the transform quantization unit 613 and the transformation information Tinfo provided from the control unit 601. The inverse quantization and inverse transformation unit 616 scales (inverse quantizes) the value of the quantization coefficient level based on the transformation information Tinfo to derive the transform coefficient Coeff. The inverse quantization is the inverse process of the quantization performed in the transform quantization unit 613. In addition, the inverse quantization and inverse transformation unit 616 performs an inverse coefficient transformation (e.g., an inverse orthogonal transformation) on the transform coefficient Coeff based on the transformation information Tinfo to derive the residual data D'. The inverse coefficient transformation is the inverse process of the coefficient transformation performed in the transform quantization unit 613. The inverse quantization and inverse transformation unit 616 provides the derived residual data D' to the calculation unit 617.

[0455] The inverse quantization and inverse transformation unit 616 may skip (omit) inverse quantization and inverse coefficient transformation. For example, when the lossless coding mode is applied, the inverse quantization and inverse transformation unit 616 receives as input the residual data D provided from the transformation and quantization unit 613 and the transformation information Tinfo provided from the control unit 601. The inverse quantization and inverse transformation unit 616 skips inverse quantization and inverse coefficient transformation and provides the residual data D (as residual data D') to the calculation unit 617.

[0456] Since the inverse quantization and inverse transformation unit 616 is the same as the inverse quantization and inverse transformation unit (to be described later) on the decoding side, the description about the decoding side (to be described later) can be applied to the inverse quantization and inverse transformation unit 616.

[0457] <Computational Unit>

[0458] The calculation unit 617 receives as input the residual data D' provided from the inverse quantization and inverse transformation unit 616 and the predicted image P provided 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 local decoded image. The calculation unit 617 provides the derived local decoded image to the in-loop filter unit 618 and the frame memory 619.

[0459] <In-loop filter unit>

[0460] The in-loop filter unit 618 performs processing related to the in-loop filtering process. For example, the in-loop filter unit 618 receives as input the local decoded image provided by the calculation unit 617, the filter information Finfo provided by the control unit 601, and the input image (original image) provided by the reordering buffer 611. The information input to the in-loop filter unit 618 is arbitrary, and information other than the information can be input. For example, the prediction mode, motion information, code amount target value, quantization parameter QP, picture type, block (CU, CTU, etc.) information, etc. can be input to the in-loop filter unit 618 as needed.

[0461] The in-loop filter unit 618 appropriately filters the local decoded image based on the filter information Finfo. The in-loop filter unit 618 also performs filtering processing using the input image (original image) and other input information as necessary.

[0462] For example, the in-loop filter unit 618 may apply four in-loop filters in the following order: bilateral filter, deblocking filter (DBF), adaptive offset filter (sample adaptive offset (SAO)), and adaptive loop filter (ALF). Which filter is applied and in which order is arbitrary and can be appropriately selected.

[0463] 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 can apply a Wiener filter or the like.

[0464] The in-loop filter unit 618 supplies the filtered local decoded image to the frame memory 619. The in-loop filter unit 618 supplies the information on the filter to the encoding unit 614 when information on the filter, such as a filter coefficient, is transmitted to the decoding side.

[0465] <Frame Memory>

[0466] The frame memory 619 performs processing related to the storage of data about the image. For example, the frame memory 619 receives the local decoded image provided from the calculation unit 617 and the filtered local decoded image provided from the in-loop filter unit 618 as input and saves (stores) them. In addition, the frame memory 619 reconstructs the decoded image for each picture unit using the local decoded image and saves the decoded image (storing the decoded image in a buffer in the frame memory 619). In response to a request from the prediction unit 620, the frame memory 619 provides the decoded image (or a portion thereof) to the prediction unit 620.

[0467] <Prediction Unit>

[0468] The prediction unit 620 performs processing related to the generation of a predicted image. For example, the prediction unit 620 receives as input the prediction mode information Pinfo provided from the control unit 601, the input image (original image) provided from the reordering buffer 611, and the decoded image (or a portion thereof) read from the frame memory 619. The prediction unit 620 performs a prediction process such as inter-frame prediction or intra-frame 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, and performs motion compensation processing based on the prediction result to generate a predicted image. The prediction unit 620 provides the generated predicted image to the calculation unit 612 and the calculation unit 617. In addition, the prediction unit 620 provides information about the prediction mode selected by the above-mentioned processing, that is, the optimal prediction mode, to the encoding unit 614 as needed.

[0469] <Rate Control Unit>

[0470] 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 quantization unit 613 based on the code amount of the encoded data stored in the accumulation buffer 615 so that overflow or underflow does not occur.

[0471] <Application of Transform Quantization Device>

[0472] As the transform quantization unit 613 of the image encoding device 600 as described above, the transform quantization device 200 described in the first to third embodiments can be applied. That is, the transform quantization unit 613 may have a configuration such as Figure 7 , Fig.14 or Fig. 20 By doing so, the transform quantization unit 613 can obtain the above-mentioned effects in the first to third embodiments. That is, the image encoding device 600 can obtain the above-mentioned effects in the first to third embodiments in the decoding process.

[0473] <Flow of Image Coding Process>

[0474] Will refer to Fig.25 The flowchart describes an example of the flow of image encoding processing performed by the image encoding device 600.

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

[0476] In step S602 , the control unit 601 determines (sets) encoding parameters for the input image stored in the reordering buffer 611 .

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

[0478] In step S604, the prediction unit 620 performs a prediction process to generate a predicted image in the optimal prediction mode, etc. For example, in the prediction process, the prediction unit 620 may perform intra prediction to generate a predicted image in the optimal intra prediction mode, perform inter prediction to generate a predicted image in the optimal inter prediction mode, etc., and select the optimal prediction mode between the optimal intra prediction mode and the optimal inter prediction mode according to a cost function value, etc.

[0479] In step S605, the calculation unit 612 calculates the difference between the input image and the predicted image in 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 predicted image. The amount of residual data D obtained in this way is smaller than the amount of original image data. Therefore, compared with the case where the image is encoded as it is, the amount of data can be compressed.

[0480] In step S606 , the transform and quantization unit 613 performs transform and quantization processing on the residual data D generated by the process of step S605 according to the transform mode information generated in step S601 .

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

[0482] In step S608 , the calculation unit 617 generates a local decoded image by adding the predicted image obtained by the prediction process of step S604 and the residual data D′ obtained by the inverse quantization and inverse transform process of step S607 .

[0483] In step S609 , the in-loop filter unit 618 performs in-loop filtering processing on the local decoded image derived by the process of step S608 .

[0484] In step S610 , the frame memory 619 stores the local decoded image derived through the process of step S608 and the local decoded image filtered in step S609 .

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

[0486] In step S612, the accumulation buffer 615 accumulates the encoded data obtained in this way, and outputs the encoded data as, for example, a bit stream to the outside of the image encoding device 600. The bit stream is transmitted to the decoding side via, for example, a transmission path or a recording medium. In addition, the rate control unit 621 performs rate control as needed. When the processing of step S612 ends, the image encoding processing ends.

[0487] <Application of Transform Quantization Processing>

[0488] As the transform quantization process (step S606) of the image encoding device 600 as described above, the above-mentioned inverse quantization and inverse transform process in the first to third embodiments can be applied. That is, the inverse quantization and inverse transform process can be performed according to Figure 8 , Fig.15 or Fig.21 The process shown in the flowchart shown in the figure is executed. By doing so, the transform quantization unit 613 can obtain the above-mentioned effects in the first to third embodiments. That is, the image encoding device 600 can obtain the above-mentioned effects in the first to third embodiments in the image encoding process.

[0489] <7.Supplement>

[0490] <Computer>

[0491] The above series of processing can be performed by hardware or software. In the case where a series of processing is performed by software, a program configuring the software is installed on a computer. Here, the computer may include, for example, a computer built into dedicated hardware, a general-purpose personal computer installed with various programs to perform various functions, etc.

[0492] Fig.26 : is a block diagram showing a configuration example of hardware of a computer that executes the above-described series of processes according to a program.

[0493] exist Fig.26 In the illustrated computer 800 , a central processing unit (CPU) 801 , a read only memory (ROM) 802 , and a random access memory (RAM) 803 are connected to each other via a bus 804 .

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

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

[0496] In the computer having the above configuration, for example, the CPU 801 performs the above series of processing by loading the program stored in the storage unit 813 to the RAM 803 via the input / output interface 810 and the bus 804 and executing the program. In the RAM 803, data required for the CPU 801 to perform various types of processing and the like is also appropriately stored.

[0497] The program executed by the computer can be applied by being recorded on the removable medium 821 as a package medium, etc. In this case, the program can be installed in the storage unit 813 via the input / output interface 810 by inserting the removable medium 821 into the drive 815 .

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

[0499] Furthermore, the program may be installed in the ROM 802 or the storage unit 813 in advance.

[0500] <Application objects of prior art>

[0501] The present technology can be applied to any image encoding / decoding method. That is, the specifications of various types of processing related to image encoding / decoding such as transformation (inverse transformation), quantization (inverse quantization), encoding (decoding), and prediction are arbitrary as long as they do not contradict the above-mentioned present technology, and are not limited to the above-mentioned examples. In addition, some processing can be omitted as long as they do not contradict the above-mentioned present technology.

[0502] In addition, the present technology can be applied to a multi-view image encoding / decoding system that encodes / decodes a multi-view image including an image of a plurality of viewpoints (views). In this case, the present technology can be applied to encoding / decoding of each viewpoint (view).

[0503] In addition, the present technology can be applied to a layered image encoding (scalable encoding) / decoding system that encodes / decodes a layered image of multiple layers (layers) to have a scalability function for a predetermined parameter. In this case, the present technology can be applied to encoding / decoding of each layer.

[0504] Although the inverse quantization and inverse transform device 100 , the transform and quantization device 200 , the image decoding device 500 , and the image encoding device 600 have been described above as application examples of the present technology, the present technology can be applied to an arbitrary configuration.

[0505] For example, the present technology can be applied to various electronic devices, such as transmitters or receivers for satellite broadcasting (e.g., television receivers or mobile phones), cable broadcasting such as cable television, distribution on the Internet, distribution to terminals via cellular communications, etc., devices that record images on media such as optical disks, magnetic disks, and flash memories and reproduce images from these storage media, etc. (e.g., hard disk recorders and camera devices).

[0506] In addition, for example, the present technology can be implemented as part of the configuration of the following devices, such as a processor as a system large-scale integration (LSI) or the like (e.g., a video processor), a module using multiple processors or the like (e.g., a video module), a unit using multiple modules or the like (e.g., a video unit), or a collection of units to which other functions are added (e.g., a video collection).

[0507] In addition, the present technology can be applied to, for example, a network system composed of a plurality of devices. For example, the present technology can be implemented as cloud computing for performing processing in a shared or joint manner in a plurality of devices via a network. For example, the present technology can be implemented in a cloud service for providing image (moving image) related services to arbitrary terminals such as computers, audio-visual (AV) devices, portable information processing terminals, and IoT (Internet of Things) devices.

[0508] In this specification, a system refers to a collection of multiple components (devices, modules (components), etc.), and it does not matter whether all the components are in the same housing. Therefore, multiple devices housed in different housings and connected via a network and a device in which multiple modules are housed in one housing are both systems.

[0509] <Fields and applications of this technology>

[0510] Systems, devices, processing units, etc. to which the present technology is applied can be used in any field, such as transportation, medical treatment, crime prevention, agriculture, animal husbandry, mining, beauty, factories, household appliances, weather and nature monitoring. In addition, its use is arbitrary.

[0511] For example, the present technology can be applied to systems and devices for providing content for appreciation, etc. In addition, the present technology can also be applied to systems and devices for transportation, such as traffic condition monitoring and automatic driving control. In addition, the present technology can also be applied to systems and devices for safety, for example. In addition, the present technology can also be applied to systems and devices for automatic control of machines, etc. In addition, the present technology can also be applied to systems and devices for agriculture and animal husbandry, for example. In addition, the present technology can also be applied to systems and devices for monitoring natural conditions such as volcanoes, forests, oceans and wild animals, for example. In addition, the present technology can also be applied to systems and devices for sports, for example.

[0512] <Others>

[0513] In this specification, a "flag" is information for identifying multiple states, including not only information for identifying the two states of true (1) or false (0), but also information capable of identifying three or more states. Therefore, the value that a "flag" can take can be, for example, 2 values ​​of 1 and 0, or 3 or more values. That is, the number of bits constituting a "flag" is arbitrary, and can be 1 bit or can be multiple bits. In addition, it is assumed that the identification information (including the flag) has not only a form in which the identification information is included in a bit stream, but also a form in which the difference information of the identification information relative to specific reference information is included in the bit stream. Therefore, in this specification, "flag" and "identification information" include not only the information, but also the difference information relative to the reference information.

[0514] In addition, various types of information (metadata, etc.) related to the coded data (bitstream) can be transmitted or recorded in any form as long as they are associated with the coded data. Here, the term "association" means, for example, making other information available (linkable) when processing one piece of information. That is, multiple pieces of data associated with each other can be combined into one piece of data, or can be separate data. For example, information associated with the coded data (image) can be transmitted via a transmission path different from the transmission path of the coded data (image). In addition, for example, information associated with the coded data (image) can be recorded on a recording medium different from the coded data (image) (or another recording area of ​​the same recording medium). This "association" can be not only the entire data, but also a part of the data. For example, an image and the information corresponding to the image can be associated with each other in arbitrary units such as multiple frames, one frame, or a part within a frame.

[0515] At the same time, in this specification, terms such as "synthesize", "multiplex", "add", "integrate", "include", "store", "put in", "enclose" and "insert" may mean, for example, combining multiple objects into one, such as combining encoded data and metadata into one piece of data, and represent a method of the above-mentioned "association".

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

[0517] For example, a configuration described as one device (or one processing unit) may be divided to be configured as a plurality of devices (or processing units). Conversely, a configuration described as a plurality of devices (or processing units) in the above specification may be configured together as one device (or one processing unit). In addition, a configuration other than the above configuration may be added to the configuration of each device (or each processing unit). In addition, a portion of the configuration of a certain device (or processing unit) may be included in the configuration of another device (or another processing unit), as long as the configuration or operation is substantially the same as the entire system.

[0518] In addition, for example, the above-mentioned program can be executed in an arbitrary device. In this case, the device may have a necessary function (functional block, etc.) capable of obtaining necessary information.

[0519] In addition, for example, each step of a flowchart may be performed by one device, or may be performed by multiple devices in a shared manner. In addition, when multiple processes are included in one step, the multiple processes may be performed by one device, or may be performed by multiple devices in a shared manner. In other words, multiple types of processes included in one step may be performed as processes of multiple steps. Conversely, processes described as multiple steps may be performed collectively as a single step.

[0520] In addition, for a program executed by a computer, for example, various types of processing describing the steps of the program may be performed in chronological order according to the order described in this specification, or may be performed in parallel or individually at necessary timing, such as in response to a call. That is, as long as no contradiction occurs, the processing of each step may be performed in an order different from the above order. In addition, the processing describing the steps of a program may be performed in parallel with the processing of another program or may be performed in conjunction with the processing of another program.

[0521] In addition, for example, as long as no contradiction occurs, multiple technologies related to the present technology can be implemented independently. Of course, any number of the present technologies can be implemented in combination. For example, part or all of the present technology described in any embodiment can be implemented in combination with part or all of the present technology described in another embodiment. In addition, part or all of any one of the above-mentioned present technologies can be implemented in combination with other technologies not described above.

[0522] At the same time, the present technology can also adopt the following configurations.

[0523] (1) An image processing device comprising:

[0524] an inverse quantization unit that performs inverse quantization on the quantized coefficient using a quantization parameter depending on whether transform skipping is applied; and

[0525] An inverse transform unit that performs an inverse coefficient transform on the transform coefficient generated by the inverse quantization of the inverse quantization unit to generate a prediction residual as a residual between an image and a predicted image of the image when the transform skip is not applied, and skips the inverse coefficient transform when the transform skip is applied.

[0526] (2) The image processing device according to (1), wherein the inverse quantization unit applies inverse correlation quantization in the inverse quantization, and when the transform skip is not applied, corrects the quantization parameter, and performs the inverse quantization using the corrected quantization parameter.

[0527] (3) The image processing device according to (1), 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,

[0528] Wherein, 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.

[0529] (4) The image processing device according to (1) further includes an inverse transform normalization unit, which sets the sign of the rounding offset based on the sign of the prediction residual when the transform skip is not applied, and uses the rounding offset to normalize the prediction residual, and sets the sign of the rounding offset based on the sign of the transform coefficient when the transform skip is applied, and uses the rounding offset to normalize the transform coefficient.

[0530] (5) An image processing method, comprising:

[0531] performing inverse quantization on the quantized coefficients using a quantization parameter depending on whether transform skipping is applied; and

[0532] When the transform skip is not applied, inverse coefficient transform is performed on the transform coefficient generated by the inverse quantization to generate a prediction residual as 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.

[0533] (6) An image processing device comprising:

[0534] a transform unit that, when transform skipping is not applied, performs coefficient transform on a prediction residual that is a residual between an image and a predicted image of the image to generate transform coefficients, and skips the coefficient transform when the transform skipping is applied; and

[0535] A quantization unit performs quantization on the transform coefficient using a quantization parameter depending on whether the transform skip is applied.

[0536] (7) An image processing method, comprising:

[0537] When transform skipping is not applied, performing coefficient transform on a prediction residual that is a residual between an image and a predicted image of the image to generate transform coefficients, and when the transform skipping is applied, skipping the coefficient transform; and

[0538] Quantization is performed on the transform coefficients using a quantization parameter depending on whether the transform skip is applied.

[0539] (8) An image processing device comprising:

[0540] an inverse quantization unit that performs inverse quantization on the quantized coefficients;

[0541] an inverse quantization normalization unit that normalizes transform coefficients generated by inverse quantization of the inverse quantization unit using a scaling parameter depending on whether transform skipping is applied; and

[0542] An inverse transform unit that performs inverse coefficient transform on the transform coefficient 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 when the transform skip is not applied, and skips the inverse coefficient transform when the transform skip is applied.

[0543] (9) The image processing device according to (8), wherein the inverse quantization normalization unit normalizes the transform coefficients using a scaling parameter that does not reflect a decompression process in the transform skip when the transform skip is not applied, and normalizes the transform coefficients using a scaling parameter that reflects the decompression process when the transform skip is applied, and

[0544] Wherein, 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 a scaling parameter that does not reflect the decompression process, and when the transform skip is applied, skips the inverse coefficient transform without performing the decompression process.

[0545] (10) The image processing device according to (9), wherein when the transform skip is applied, the inverse quantization normalization unit sets a component determined based on a transform block size of the scaling parameter to “0”.

[0546] (11) The image processing device according to (9), wherein, when the transform skip is applied, the inverse quantization normalization unit sets a component determined based on a transform block size of the scaling parameter to a value according to a quantization matrix.

[0547] (12) The image processing device according to (11), wherein the value according to the quantization matrix is ​​"-4".

[0548] (13) The image processing device according to (8), further comprising an inverse transform normalization unit that normalizes the prediction residual when the transform skip is not applied.

[0549] Wherein, when the transform skip is applied, the inverse quantization normalization unit normalizes the transform coefficients using a scaling parameter reflecting a normalization process of the prediction residual performed by the inverse transform normalization unit.

[0550] (14) An image processing device according to (13), wherein, when the transform skip is applied, the inverse quantization normalization unit normalizes the transform coefficient using a scaling parameter including a value according to an inverse quantization and scaling list and a value according to application of inverse correlation quantization.

[0551] (15) The image processing device according to (14), wherein the value according to the inverse quantization and the scaling list is "10".

[0552] (16) An image processing method, comprising:

[0553] performing inverse quantization on the quantized coefficients;

[0554] normalizing a transform coefficient generated by the inverse quantization using a scaling parameter depending on whether transform skipping is applied; and

[0555] When the transform skip is not applied, inverse coefficient transform is performed on the normalized transform coefficient 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, the inverse coefficient transform is skipped.

[0556] (17) An image processing device comprising:

[0557] a transform unit that, when transform skipping is not applied, performs coefficient transform on a prediction residual that is a residual between an image and a predicted image of the image to generate transform coefficients, and when the transform skipping is applied, skips the coefficient transform;

[0558] a quantization unit that performs quantization on the transform coefficient when the transform skip is not applied, and performs quantization on the prediction residual when the transform skip is applied; and

[0559] A quantization normalization unit normalizes quantization coefficients generated by quantization of the quantization unit using a scaling parameter depending on whether the transform skip is applied.

[0560] (18) The image processing device according to (17), wherein the transform unit performs the coefficient transform on the prediction residual when the transform skip is not applied, and skips the coefficient transform without performing decompression processing when the transform skip is applied, and

[0561] The quantization normalization unit normalizes the quantization coefficients using a scaling parameter that does not reflect a decompression process in the transform skip when the transform skip is not applied, and normalizes the quantization coefficients using a scaling parameter that reflects the decompression process when the transform skip is applied.

[0562] (19) The image processing device according to (17), further comprising a transform normalization unit that normalizes the transform coefficients when the transform skip is not applied.

[0563] Wherein, when the transform skip is applied, the quantization normalization unit normalizes the quantization coefficients using a scaling parameter reflecting a normalization process of the transform coefficients performed by the transform normalization unit.

[0564] (20) An image processing method, comprising:

[0565] When transform skipping is not applied, performing coefficient transform on a prediction residual that is a residual between an image and a predicted image of the image to generate transform coefficients, and when the transform skipping is applied, skipping the coefficient transform;

[0566] When the transform skip is not applied, quantizing the transform coefficients, and when the transform skip is applied, quantizing the prediction residuals; and

[0567] A quantization coefficient generated by the quantization is normalized using a scaling parameter depending on whether the transform skip is applied.

[0568] [reference numerals list]

[0569] 100 Inverse quantization and inverse transformation device

[0570] 101 Inverse Quantization Unit

[0571] 102 Inverse Transformation Unit

[0572] 111 Inverse quantization processing unit

[0573] 112 Normalized Unit

[0574] 121 Select Unit

[0575] 122 Inverse transform processing unit

[0576] 123 Select Unit

[0577] 124 Normalization Unit

[0578] 125 Decompression processing unit

[0579] 200 Transform Quantization Device

[0580] 201 Transformation Unit

[0581] 202 Quantitative Unit

[0582] 211 Select Unit

[0583] 212 Transformation Processing Unit

[0584] 213 Select Unit

[0585] 214 Normalization Unit

[0586] 215 Decompression processing unit

[0587] 221 Quantization Processing Unit

[0588] 222 Normalized Unit

[0589] 500 Image decoding device

[0590] 513 Inverse quantization and inverse transform unit

[0591] 600 Image encoding device

[0592] 613 Transform Quantization Unit

[0593] 616 Inverse quantization and inverse transform unit

Claims

1. An image processing device, comprising: an inverse quantization unit that performs inverse quantization on the quantized coefficients using a quantization parameter that depends on whether a transform skip is applied; as well as an inverse transform unit that, when the transform skip is not applied, performs an inverse coefficient transform on the transform coefficient generated by the inverse quantization of the inverse quantization unit to generate 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, wherein the inverse quantization unit applies inverse correlation quantization in the inverse quantization, and When the transform skipping is not applied, the inverse quantization unit corrects the quantization parameter and performs the inverse quantization using the corrected quantization parameter, and when the transform skipping is applied, the inverse quantization unit ignores the correction of the quantization parameter.

2. The image processing device according to claim 1, 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, in, When the transform skip is not applied, the inverse transform unit performs the inverse coefficient transform on the transform coefficient normalized by the inverse quantization normalization unit.

3. The image processing device according to claim 1 further includes an inverse transform normalization unit, which sets the sign of the rounding offset based on the sign of the prediction residual when the transform skip is not applied, and uses the rounding offset to normalize the prediction residual, and sets the sign of the rounding offset based on the sign of the transform coefficient when the transform skip is applied, and uses the rounding offset to normalize the transform coefficient.

4. An image processing method, comprising: performing inverse quantization on the quantized coefficients using a quantization parameter that depends on whether transform skipping is applied; as well as When the transform skip is not applied, inverse coefficient transform is performed on the transform coefficient 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, Wherein, the image processing method further includes: In the inverse quantization, inverse correlation quantization is applied, When the transform skip is not applied, correcting the quantization parameter, and performing the inverse quantization using the corrected quantization parameter, When the transform skip is applied, the correction of the quantization parameter is ignored.

5. An image processing device, comprising: a transform unit that, when transform skipping is not applied, performs coefficient transform on a prediction residual that is a residual between an image and a predicted image of the image to generate transform coefficients, and when the transform skipping is applied, skips the coefficient transform; as well as a quantization unit that performs quantization on the transform coefficients using a quantization parameter that depends on whether the transform skip is applied, wherein the quantization unit applies correlation quantization in the quantization, and When the transform skipping is not applied, the quantization unit corrects the quantization parameter and performs the quantization using the corrected quantization parameter, and when the transform skipping is applied, the quantization unit ignores the correction of the quantization parameter.

6. An image processing method, comprising: When transform skipping is not applied, performing coefficient transform on a prediction residual that is a residual between an image and a predicted image of the image to generate transform coefficients, and when the transform skipping is applied, skipping the coefficient transform; as well as performing quantization on the transform coefficients using a quantization parameter depending on whether the transform skip is applied, Wherein, the image processing method further includes: applying correlation quantization in said quantization, When the transform skip is not applied, correcting the quantization parameter, and performing the quantization using the corrected quantization parameter, When the transform skip is applied, the correction of the quantization parameter is ignored.