Image decoding device, image decoding method, and program

By controlling the decoding of the secondary transformation index according to the characteristics of the object block during image decoding, the problem of high decoding processing load in the prior art is solved, and more efficient image decoding is achieved.

CN118540475APending Publication Date: 2024-08-23KDDI CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410769188.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2019-06-24
Filing Date
2020-06-11
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

During the image decoding process in the prior art, it is necessary to determine whether to apply secondary transformation, which causes the coefficient decoding processing load to increase and affects the processing speed.

Method used

The inverse transform unit generates a prediction residual signal, and controls the decoding method of the secondary transform index based on the size of the target block, the non-zero coefficient generation position, or the flag, thereby eliminating unnecessary additional processing.

Benefits of technology

The speed of image decoding processing is improved, the processing load is reduced, and the encoding performance is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540475A
    Figure CN118540475A
Patent Text Reader

Abstract

The invention provides an image decoding device, an image decoding method, and a program. An image decoding device (200) is provided with: an inverse conversion unit (220B / 220C) configured so as to generate a prediction residual signal by inverse conversion; the inverse conversion unit (220B / 220C) is configured to control the secondary conversion index of the target block on the basis of information indicating the generation position of the non-zero coefficient of the target block.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application with application number 202080040306.3, application date June 11, 2020, and invention name “Image decoding device, image decoding method and program”. Technical Field

[0002] The present invention relates to an image decoding device, an image decoding method and a program. Background Art

[0003] Conventionally, there are known techniques such as RST (Reduced Secondary Transform) (see Non-Patent Document 2) and LFNST (Low-Frequency Non-Separable Transform) (see Non-Patent Document 1) for performing a secondary transform on coefficients after a primary transform.

[0004] [Prior technical literature]

[0005] (Non-patent literature)

[0006] Non-patent document 1: Versatile Video Coding (Draft 5), JVET-N1001

[0007] Non-patent document 2: CE6: Reduced Secondary Transform (RST) (CE6-3.1), JVET-N0193

[0008] Non-patent document 3: Algorithm description for Versatile Video Coding and TestModel 5 (VTM5), JVET-N1002 Summary of the invention

[0009] [Problems to be solved by the invention]

[0010] However, in the above-mentioned prior art, there are various counters for counting the number of non-zero coefficients when decoding the coefficients, and whether to apply the secondary transform is determined based on the value of the counter. Therefore, it is necessary to perform additional coefficient counting processing just to determine whether to apply the secondary transform. There is a problem that the coefficient decoding processing is a processing that requires high throughput, but the processing load increases due to the additional processing.

[0011] Therefore, the present invention has been completed in view of the above-mentioned problems, and its object is to provide an image decoding device, an image decoding method and a program, which can omit the additional processing for determining whether to apply the secondary transform, thereby expecting the processing to be accelerated.

[0012] [Technical means to solve the problem]

[0013] The main purpose of the first feature of the present invention is an image decoding device, comprising: an inverse transformation unit, configured to generate a prediction residual signal through inverse transformation; and the inverse transformation unit is configured to determine whether to apply a secondary transformation to an object block and control a decoding method of the transformation coefficient according to the determination result.

[0014] The second feature of the present invention is mainly about an image decoding device, comprising: an inverse transform unit, configured to generate a prediction residual signal by inverse transform; and the inverse transform unit is configured to control a decoding method of a secondary transform index of the object block according to the size of the object block.

[0015] The main purpose of the third feature of the present invention is an image decoding device, comprising: an inverse transform unit, configured to generate a prediction residual signal through inverse transform; and the inverse transform unit is configured to control a decoding method of a secondary transform index of the object block based on information representing a generation position of a non-zero coefficient of the object block.

[0016] In the third feature of the present invention, when the information representing the generation position of the non-zero coefficient of the object block indicates the coefficient position where the non-zero coefficient cannot be generated when the secondary transformation is applied to the object block, the inverse transformation unit can also be configured not to decode the secondary transformation index of the object block.

[0017] In the third feature of the present invention, when the information indicating the generation position of the non-zero coefficient of the object block indicates the coefficient position of the DC component of the object block, the inverse transform unit may be configured not to decode the secondary transform index of the object block.

[0018] The fourth feature of the present invention is mainly about an image decoding device, comprising: an inverse transform unit, configured to generate a prediction residual signal through inverse transform; and the inverse transform unit is configured to control a decoding method of a secondary transform index of the object block according to a flag indicating whether a non-zero coefficient is generated in the object block.

[0019] The main purpose of the fifth feature of the present invention is an image decoding device, comprising: an inverse transform unit, configured to generate a prediction residual signal through inverse transform; and the inverse transform unit is configured to control a decoding method of a secondary transform index of the object block based on a flag indicating whether a non-zero coefficient is generated in a sub-block within the object block.

[0020] In the fifth feature of the present invention, when the flag indicating whether the non-zero coefficient is generated in the sub-block indicates that the non-zero coefficient is generated in the sub-block that cannot generate the non-zero coefficient when the secondary transform is applied to the object block, the inverse transform unit can also be configured not to decode the secondary transform index of the object block.

[0021] The main purpose of the sixth feature of the present invention is an image decoding method, comprising the following steps: generating a prediction residual signal by inverse transformation; and, in the steps, determining whether to apply a secondary transformation to the object block, and controlling the decoding method of the transformation coefficients according to the determination result.

[0022] The seventh feature of the present invention is a program that enables a computer to function as an image decoding device, wherein the image decoding device includes: an inverse transform unit, configured to generate a prediction residual signal through an inverse transform; and the inverse transform unit is configured to determine whether to apply a secondary transform to the object block and control the decoding method of the transform coefficients based on the determination result.

[0023] (Effects of the Invention)

[0024] According to the present invention, it is possible to provide an image decoding device, an image decoding method, and a program, which can omit additional processing for determining whether to apply secondary transform, thereby expecting faster processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 It is a diagram showing an example of the configuration of an image processing system 1 according to one embodiment.

[0026] Figure 2 This is a diagram showing an example of a functional block of the image encoding device 100 according to one embodiment.

[0027] Figure 3 This is a diagram showing an example of a functional block of the transform and quantization unit 131 of the image encoding device 100 according to one embodiment.

[0028] Figure 4 This is a diagram showing an example of a functional block of an image decoding device 200 according to an embodiment.

[0029] Figure 5 This is a diagram showing an example of a functional block of the inverse transform and inverse quantization unit 220 of the image decoding device 200 according to one embodiment.

[0030] Figure 6 This is a diagram for explaining an example of the function of the inverse transform and inverse quantization unit 220 of the image decoding device 200 according to one embodiment.

[0031] Figure 7This is a diagram for explaining an example of the function of the inverse transform and inverse quantization unit 220 of the image decoding device 200 according to one embodiment.

[0032] Figure 8 This is a flowchart showing an example of a method for determining whether or not to apply a secondary transform and a method for decoding coefficients in the image decoding apparatus 200 according to the first embodiment.

[0033] Fig. 9 This is a flowchart showing an example of a method for determining whether or not to apply a secondary transform and a method for decoding coefficients in the image decoding apparatus 200 according to the first embodiment.

[0034] Fig.10 This is a flowchart showing an example of a method for determining whether or not to apply a secondary transform and a method for decoding coefficients in the image decoding apparatus 200 according to Modification 1 of the first embodiment.

[0035] Fig.11 It is a diagram for explaining the second embodiment.

[0036] Fig.12 This is a flowchart showing an example of a method for determining whether or not to apply a secondary transform and a method for decoding coefficients in the image decoding apparatus 200 according to the third embodiment.

[0037] Fig.13 This is a flowchart showing an example of a method for determining whether or not to apply a secondary transform and a method for decoding coefficients in the image decoding apparatus 200 according to the third embodiment. DETAILED DESCRIPTION

[0038] <First embodiment>

[0039] Below, reference Figures 1 to 9 An image processing system 10 according to a first embodiment of the present invention will be described. Figure 1 1 is a diagram showing an image processing system 10 according to the present embodiment.

[0040] like Figure 1 As shown, the image processing system 10 of this embodiment includes an image encoding device 100 and an image decoding device 200 .

[0041] The image encoding device 100 is configured to generate encoded data by encoding an input image signal, and the image decoding device 200 is configured to generate an output image signal by decoding the encoded data.

[0042] The encoded data may be transmitted from the image encoding device 100 to the image decoding device 200 via a transmission path. The encoded data may also be provided from the image encoding device 100 to the image decoding device 200 after being stored in a storage medium.

[0043] (Image Coding Device 100)

[0044] Below, reference Figure 2 The image encoding device 100 according to this embodiment will be described. Figure 2 This is a diagram showing an example of functional blocks of the image encoding device 100 according to the present embodiment.

[0045] like Figure 2 As shown, the image encoding device 100 includes an inter-frame prediction unit 111, an intra-frame prediction unit 112, a subtractor 121, an adder 122, a transform and quantization unit 131, an inverse transform and inverse quantization unit 132, an encoding unit 140, a loop filter processing unit 150 and a frame buffer 160.

[0046] The inter-frame prediction unit 111 is configured to generate a prediction signal by inter-frame prediction.

[0047] Specifically, the inter-frame prediction unit 111 is configured to specify a reference block included in the reference frame by comparing the frame to be encoded (hereinafter referred to as the target frame) with the reference frame stored in the frame buffer 160, and determine the predicted motion vector of the specified reference block.

[0048] The inter prediction unit 111 is configured to generate a prediction signal included in each prediction block based on the reference block and the motion vector. The inter prediction unit 111 is configured to output the prediction signal to the subtractor 121 and the adder 122. Here, the reference frame is a frame different from the target frame.

[0049] The intra prediction unit 112 is configured to generate a prediction signal by intraframe prediction.

[0050] Specifically, the intra prediction unit 112 is configured to designate a reference block included in the target frame, and to generate a prediction signal for each prediction block based on the designated reference block. Furthermore, the intra prediction unit 112 is configured to output the prediction signal to the subtractor 121 and the adder 122 .

[0051] Here, the reference block is a block that is referenced by a block to be predicted (hereinafter referred to as a target block). For example, the reference block is a block adjacent to the target block.

[0052] The subtractor 121 is configured to subtract the prediction signal from the input image signal and output a prediction residual signal to the transform and quantization unit 131. Here, the subtractor 121 is configured to generate a prediction residual signal which is a difference between a prediction signal generated by intra prediction or inter prediction and the input image signal.

[0053] The adder 122 is configured to add the prediction signal and the prediction residual signal output from the inverse transform and inverse quantization unit 132 to generate a pre-filtered decoded signal, and output the pre-filtered decoded signal to the intra prediction unit 112 and the loop filter processing unit 150 .

[0054] Here, the decoded signal before filtering constitutes a reference block used in the intra prediction unit 112 .

[0055] The transform and quantization unit 131 is configured to perform a transform process on the prediction residual signal and obtain a coefficient level value. In addition, the transform and quantization unit 131 may be configured to perform quantization on the coefficient level value.

[0056] Here, the transform and quantization section 131 is configured to output a quantization index when quantizing the coefficient level values. In the following, the output of the transform and quantization section 131 will be described as coefficient level values, regardless of whether quantization is applied.

[0057] Here, the transformation process is a process of transforming the prediction residual signal into a frequency component signal. In this transformation process, a base model (transformation matrix) corresponding to a discrete cosine transform (DCT) or a base model (transformation matrix) corresponding to a discrete sine transform (DST) can be used.

[0058] In addition, the transform process may be performed multiple times before quantization. As an example, a secondary transform in which the transform process is performed a second time is described below.

[0059] The inverse transform and inverse quantization unit 132 is configured to perform an inverse transform process on the coefficient level value output from the transform and quantization unit 131. Here, the inverse transform and inverse quantization unit 132 may be configured to perform an inverse quantization on the coefficient level value before the inverse transform process.

[0060] Here, the inverse transform process and the inverse quantization are performed in the reverse order of the transform process and the quantization performed by the transform and quantization unit 131 .

[0061] The encoding unit 140 is configured to encode the coefficient level value output from the transform and quantization unit 131 and output the encoded data.

[0062] Here, for example, the encoding is entropy encoding that counts coefficients of a target block (coding block or transform block) and assigns codes of different lengths based on the generation probability of coefficient level values. The counting method of coefficients will be described below.

[0063] Furthermore, the encoding unit 140 is configured to encode not only the coefficient level value but also the control data used in the decoding process.

[0064] Here, the control data may include size data such as the coding block (CU, Coding Unit) size, the prediction block (PU, Prediction Unit) size, and the transform block (TU, Transform Unit) size.

[0065] The loop filter processing unit 150 is configured to perform filtering on the pre-filtering decoded signal output from the adder 122 , and output the post-filtering decoded signal to the frame buffer 160 .

[0066] Here, the filtering process is, for example, a deblocking filtering process for reducing distortion generated at a boundary portion of a block (coding block, prediction block, or transform block).

[0067] The frame buffer 160 is configured to store reference frames used by the inter-frame prediction unit 111 .

[0068] Here, the decoded signal after the filtering process constitutes a reference frame used in the inter-frame prediction unit 111.

[0069] (Transformation and Quantization Unit 131)

[0070] Below, reference Figure 3 The transform and quantization unit 131 of the image encoding device 110 according to this embodiment will be described. Figure 3 This is a diagram showing an example of a functional block of the transform and quantization unit 131 of the image encoding device 110 according to the present embodiment.

[0071] like Fig.13 As shown, the transform and quantization unit 131 includes a primary transform unit 131A, a secondary transform unit 131B and a quantization unit 131C.

[0072] The transform and quantization unit 131 is an example of a transform and quantization unit configured to generate a coefficient level value from a prediction residual signal by transform and quantization.

[0073] The primary transform unit 131A is configured to receive the prediction residual signal as input and generate a primary transform coefficient of the target block.

[0074] Here, the base model (transformation matrix) used for a transformation process can be selected from a plurality of base models. For example, in non-patent document 1, base models corresponding to DCT2, DCT8, and DST7 are used respectively. In addition, as a method for selecting a base model, for example, there is a method as follows: the image encoding device 100 selects a base model with the smallest encoding cost, and transmits the selected base model as side information to the image decoding device 200.

[0075] The secondary transform unit 131B is configured to receive the primary transform coefficient from the primary transform unit 131A as input, and determine whether to apply a secondary transform to the target block.

[0076] Here, when it is determined that a secondary transform is to be applied, the secondary transform unit 131B is configured to generate a secondary transform coefficient by performing a transform process on the primary transform coefficient, and output the secondary transform coefficient to the quantization unit 131C.

[0077] On the other hand, when the secondary transform unit 131B determines that the secondary transform is not to be applied, it is configured to output the primary transform coefficients directly to the quantization unit 131C.

[0078] Furthermore, the secondary transform unit 131B is configured to output information on whether or not to apply the secondary transform (hereinafter referred to as a secondary transform index) to the encoding unit 140 .

[0079] The quantization unit 131C is configured to receive a transform coefficient (a primary transform coefficient or a secondary transform coefficient) as an input and determine whether to apply quantization to the transform coefficient of the target block.

[0080] Here, the quantization unit 131C is configured to generate a quantization index when determining that quantization is to be applied. In addition, a method for determining whether to apply quantization or a method for generating a quantization index can use a well-known method, and thus a detailed description thereof will be omitted.

[0081] (Encoding unit 140)

[0082] The encoding unit 140 may be configured to encode the coefficient level value using a context that is optimized for the probability of application of the secondary transform when the secondary transform is applied.

[0083] (Inverse transformation and inverse quantization unit 132)

[0084] The inverse transform and inverse quantization unit 132 performs the same operation as the inverse transform and inverse quantization unit 220 in the image decoding device 200 described below. Therefore, the details will be described below through the explanation of the inverse transform and inverse quantization unit 220. In the following, the inverse transform and inverse quantization unit 132 will be regarded as the same as the inverse transform and inverse quantization unit 220.

[0085] (Image Decoding Device 200)

[0086] Below, reference Figure 4 The image decoding device 200 according to this embodiment is described. Figure 4 This is a diagram showing an example of functional blocks of the image decoding device 200 according to this embodiment.

[0087] like Figure 4As shown, the image decoding apparatus 200 includes a decoding unit 210 , an inverse transform and inverse quantization unit 220 , an adder 230 , an inter prediction unit 241 , an intra prediction unit 242 , a loop filter processing unit 250 , and a frame buffer 260 .

[0088] The decoding unit 210 is configured to decode the encoded data generated by the image encoding device 100 and decode the coefficient level values.

[0089] Here, for example, decoding is decoding of data that has been entropy-coded to which codes of different lengths are assigned based on the generation probability of coefficients. The decoding is entropy decoding in the reverse order of the entropy coding performed by the coding unit 140 .

[0090] Furthermore, the decoding unit 210 may be configured to acquire control data by decoding the encoded data.

[0091] In addition, as described above, the control data may include size data such as coding block size, prediction block size, and transform block size.

[0092] The inverse transform and inverse quantization unit 220 is configured to generate a prediction residual signal by performing inverse quantization processing on the quantization index output from the decoding unit 210 and inverse transform processing on the coefficient level value output from the decoding unit 210 .

[0093] The adder 230 is configured to add the prediction signal and the prediction residual signal output from the inverse transform and inverse quantization unit 220 to generate a pre-filtered decoded signal, and output the pre-filtered decoded signal to the intra prediction unit 242 and the loop filter processing unit 250 .

[0094] Here, the decoded signal before filtering constitutes a reference block used in the intra prediction unit 242 .

[0095] Similar to the inter-frame prediction unit 111 , the inter-frame prediction unit 241 is configured to generate a prediction signal by inter-frame prediction.

[0096] Specifically, the inter-frame prediction unit 241 is configured to generate a prediction signal for each prediction block based on a motion vector decoded from the coded data and a reference signal included in a reference frame. The inter-frame prediction unit 241 is configured to output the prediction signal to the adder 230 .

[0097] Similar to the intra prediction unit 112 , the intra prediction unit 242 is configured to generate a prediction signal by intra prediction (intraframe prediction).

[0098] Specifically, the intra prediction unit 242 is configured to designate a reference block included in the target frame, and to generate a prediction signal for each prediction block based on the designated reference block. The intra prediction unit 242 is configured to output the prediction signal to the adder 230 .

[0099] Similar to the loop filter processing unit 150 , the loop filter processing unit 250 is configured to perform filtering on the pre-filtering decoded signal output from the adder 230 and output the post-filtering decoded signal to the frame buffer 260 .

[0100] Here, the filtering process is, for example, a deblocking filtering process for reducing distortion generated at a boundary portion of a block (a coding block, a prediction block, a transform block, or a sub-block obtained by dividing these blocks).

[0101] Similar to the frame buffer 160 , the frame buffer 260 is configured to store reference frames used by the inter-frame prediction unit 241 .

[0102] Here, the filtered decoded signal constitutes a reference frame used in the inter-frame prediction unit 241 .

[0103] (Inverse Transformation and Inverse Quantization Unit 220)

[0104] Below, reference Figure 5 The inverse transform and inverse quantization unit 220 of the image decoding device 200 according to this embodiment will be described. Figure 5 This is a diagram showing an example of functional blocks of the inverse transform and inverse quantization unit 220 of the image decoding device 200 according to the present embodiment.

[0105] like Figure 5 As shown, the inverse transform and inverse quantization unit 220 includes an inverse quantization unit 242A, an inverse secondary transform unit 242B, and an inverse primary transform unit 242C.

[0106] The inverse quantization unit 220A is configured to generate a transform coefficient of a target block by taking a quantization index as an input signal. As a method of generating a coefficient level value based on a quantization index, a well-known method can be used, and thus a detailed description thereof will be omitted.

[0107] The inverse quadratic transform unit 220B is configured to take the coefficient level value as input and determine whether to apply the inverse quadratic transform to the target block.

[0108] Here, the inverse quadratic transform unit 220B is configured to generate a primary transform coefficient by performing an inverse transform process on the input coefficient level value when it is determined that the inverse quadratic transform is to be applied, and output the primary transform coefficient to the primary transform coefficient unit 220C.

[0109] On the other hand, the inverse secondary transform unit 220B is configured to output the input coefficient level value directly to the primary transform coefficient unit 220C as a primary transform coefficient when it is determined that the secondary transform is not to be applied.

[0110] In the following, in order to simplify the description, the secondary transform and the inverse secondary transform are collectively referred to as the secondary transform, and the secondary transform in the inverse secondary transform unit is appropriately replaced by the inverse secondary transform.

[0111] In addition, the method of determining whether to apply the secondary transform by the inverse secondary transform unit 220B will be described below.

[0112] The inverse primary transform unit 220C is configured to take the primary transform coefficient as input and generate a prediction residual signal of the target block.

[0113] Here, the base model (transformation matrix) used for the inverse primary transform process may be selected from a plurality of predetermined models, similarly to the case of the image encoding device 100. The base model may be selected using, for example, side information transmitted from the image encoding device 100 (base model information selected by the image encoding device 100).

[0114] (Description of the secondary transformation)

[0115] Below, reference Figure 6 An example of secondary transform performed by the image encoding apparatus 100 and the image decoding apparatus 200 according to the present embodiment will be described.

[0116] As described above, secondary transformation refers to a technique for transforming the primary transformation coefficients of the object block again before quantization. By transforming the primary transformation coefficients again before quantization, coefficients with non-zero coefficient level values ​​(hereinafter referred to as non-zero coefficients) are more likely to be concentrated in the low-frequency region, and in the coefficient scanning process described below, coefficients with zero coefficient level values ​​(hereinafter referred to as zero coefficients) become continuous, so it can be expected that the encoding effect can be further enhanced by entropy encoding.

[0117] Here, similar to the primary transform, the secondary transform can also use multiple base models (transformation matrices). For example, as in non-patent document 2, the usable base models can be pre-set according to the object block size, intra-frame prediction mode and secondary transform index. When the value of the secondary transform index is 0, it means that the secondary transform is invalid. On the other hand, when the value is greater than 1, it means that the secondary transform is valid. And, based on the secondary transform index, for example, two base models can also be adaptively selected as in non-patent document 2.

[0118] Furthermore, the application range of the secondary transform can be adaptively set according to the block size of the target block. Figure 6 An example of the application range of the secondary transform in Non-Patent Document 2 is shown.

[0119] like Figure 6 As shown in (a), when the block size of the object block is 8×8 pixels, the application range R1 of the secondary transform is all 64 primary transform coefficients. In addition, the generation area R2 of the non-zero coefficients after the secondary transform is limited to the low-frequency area (4×2 pixels) of the secondary transform coefficients, and the other areas are all zero coefficients (hereinafter referred to as zeroing).

[0120] On the other hand, Figure 6 As shown in (b), when the block size of the object block is M×N (where M>8, N>8) pixels, the application range R1 of the secondary transform is the primary transform coefficients of the 48 low-frequency areas. That is, the secondary transform is not applied to the primary transform coefficients other than the 48 low-frequency areas, and the primary transform coefficients are directly processed. In addition, the area where the non-zero coefficients after the secondary transform are generated is limited to the low-frequency area (4×4 pixels) of the secondary transform coefficients, and the other areas are reset to zero.

[0121] (Coefficient encoding method)

[0122] Below, reference Figure 7 The encoding method of coefficient level values ​​is explained. Figure 7 This is a diagram showing a method of scanning coefficient level values ​​of a target block.

[0123] As a method of scanning coefficients, for example, as described in Non-Patent Document 1, the following method may be used: scanning from the coefficient C1 of the highest frequency component of the target block to the coefficient Cx of the lowest frequency component in the upper left direction (hereinafter referred to as oblique scanning) (see Figure 7 ).

[0124] In natural images, non-zero coefficients are less likely to occur in high-frequency regions. Therefore, by performing oblique scanning from high-frequency components to low-frequency components, zero coefficients can be arranged continuously, and the effect of improving encoding performance through entropy encoding can be expected.

[0125] Furthermore, the oblique scanning may be performed using the sub-block units obtained by dividing the target block into 4×4 pixels as the execution units of the oblique scanning as described in Non-Patent Document 1. Furthermore, the image encoding device 100 may transmit a flag (coded_sub_block_flag) indicating whether there are non-zero coefficients to the image decoding device 200 based on the number of non-zero coefficients generated in the sub-block units.

[0126] Here, the reason for using this flag (coded_sub_block_flag) is that, for example, a sub-block having no non-zero coefficients can be encoded and decoded using a 1-bit flag (coded_sub_block_flag).

[0127] Furthermore, before encoding the flag (coded_sub_block_flag), the image coding apparatus 100 may perform a process of determining whether a non-zero coefficient is generated, starting from the sub-block that first generates a non-zero coefficient, in accordance with the scanning order.

[0128] Here, the image coding apparatus 100 may also transmit the position information (last_coeff_pos) of the first non-zero coefficient to the image decoding apparatus 200. Thus, it is determined that the sub-block before the first non-zero coefficient is generated has no non-zero coefficient at all, and therefore, the flag (coded_sub_block_flag) does not need to be transmitted, thereby saving the amount of code.

[0129] Alternatively, the image coding apparatus 100 may separate the x-coordinate value and the y-coordinate value of the position information where the non-zero coefficient first occurs in the target block into a prefix part and a suffix part and code them, for example, as described in Non-Patent Document 1.

[0130] (Method for determining whether to apply secondary transformation and method for decoding coefficients)

[0131] Figure 8 and Fig. 9 FIG. 1 is a flowchart showing an example of a method for determining whether to apply a secondary transform and a method for decoding coefficients in the image decoding apparatus 200. Figure 8 An example of a method for determining whether to apply a secondary transformation is described below. Fig. 9 An example of a coefficient decoding method will be described.

[0132] like Figure 8 As shown, in step S61, the image decoding apparatus 200 decodes a flag (cbf) indicating whether there is a non-zero coefficient in the current block. Here, the value of cbf is either 0 or 1.

[0133] In step S62 , the image decoding apparatus 200 determines whether there is a non-zero coefficient based on cbf.

[0134] When it is determined that there are no non-zero coefficients (the number of non-zero coefficients is 0) (that is, when it is determined that cbf=0), this processing ends.

[0135] On the other hand, when it is determined that there are non-zero coefficients (the number of non-zero coefficients is one or more) (that is, when it is determined that cbf=1), the process proceeds to step S63.

[0136] Here, cbf may be decoded as different flags for the luminance signal (Y signal) and the color difference signal (Cb signal and Cr signal). In this case, the image decoding apparatus 200 may make a determination as follows when the block partition tree structures of the luminance signal and the color difference signal of the target block are different (Dual Tree) and when the two are the same (Single Tree).

[0137] The image decoding apparatus 200 may proceed to step S63 when it is a Y signal in a dual tree and cbf of the Y signal=1, and otherwise, determine to end the present process.

[0138] The image decoding apparatus 200 may proceed to step S63 when the Cb / Cr signal is a Dual Tree and the cbf of at least one of the Cb / Cr signals is 1; otherwise, it may be determined to terminate the present process.

[0139] The image decoding apparatus 200 may proceed to step S63 when the cbf of at least one of the Y signal, the Cb signal, and the Cr signal in the Single Tree is 1, and otherwise, determine to terminate the present process.

[0140] In step S63 , the image decoding apparatus 200 decodes the secondary transform index (lfnst_idx).

[0141] In step S64 , the image decoding apparatus 200 decodes information indicating the first non-zero coefficient occurrence position (last_coeff_pos) in the current block in the scanning order.

[0142] In step S65, the image decoding apparatus 200 performs coefficient decoding processing (see Fig. 9 ). In addition, the image decoding apparatus 200 performs decoding processing on the coefficients in units of sub-blocks obtained by dividing the target block.

[0143] like Fig. 9 As shown, in step S641, the image decoding apparatus 200 determines whether the sub-block that first generates a non-zero coefficient is the first or last sub-block in the current block in terms of the scanning order.

[0144] When it is determined that it is either the first or last sub-block, it is obvious that there are non-zero coefficients in the sub-block, so the process proceeds to step S645.

[0145] When it is determined that it is either the first or last sub-block, in step S642 , the image decoding apparatus 200 determines whether to apply secondary transform to the sub-block based on the secondary transform index (st_idx).

[0146] When it is determined that the secondary transform is applied to the sub-block (the secondary transform is valid), and when all coefficients in the sub-block are obviously 0 (returned to zero) after the secondary transform, there is no need to decode coded_sub_block_flag, and therefore the process proceeds to step S646.

[0147] On the other hand, when it is determined that the secondary transform is not applied to the sub-block (the secondary transform is invalid), or when non-zero coefficients may still be generated when the secondary transform is applied to the sub-block, the present processing enters step S643.

[0148] In addition, the order of step S641 and step S642 can be swapped.

[0149] In step S643 , the image decoding apparatus 200 decodes a flag (coded_sub_block_flag) indicating whether a non-zero coefficient exists.

[0150] In step S644 , the image decoding apparatus 200 determines whether there is a non-zero coefficient in the sub-block based on coded_sub_block_flag.

[0151] When the value of coded_sub_block_flag is 0, the image decoding apparatus 200 determines that there is no non-zero coefficient, and the process proceeds to step S646 .

[0152] On the other hand, when the value of coded_sub_block_flag is 1, the image decoding apparatus 200 determines that a non-zero coefficient exists, and the process proceeds to step S645.

[0153] In step S645 , the image decoding apparatus 200 decodes the level value of each coefficient in the sub-block.

[0154] In step S646 , the image decoding apparatus 200 determines whether the sub-block to be processed is a final block.

[0155] When it is determined that it is not the final block, the process proceeds to step S641, moves to the next sub-block in the scanning order and starts the process again, and when it is determined that it is the final block, the process ends.

[0156] By using the above-mentioned method of determining whether to inversely apply the secondary transform and the method of decoding the coefficients, the following two effects can be expected.

[0157] The first effect is that by implementing the secondary transform index before decoding the coefficients of the target block, it is possible to omit the decoding process of the coefficients required for determining whether to apply the secondary transform in the conventional technology.

[0158] Specifically, in the prior art, two counters (a counter for measuring the number of non-zero coefficients generated in the object block and a counter for generating non-zero coefficients generated in an area where zero coefficients will obviously be generated when the secondary transform is effective) are required to determine whether to apply the secondary transform. However, by introducing the technology of this embodiment, these two counters can be omitted.

[0159] The second effect is that when the secondary transform is effective, in the prior art, for sub-blocks in which all coefficients in the secondary transform target block are obviously zero, it is necessary to redundantly decode or encode coded_sub_block_flag. In contrast, if the technology of this embodiment is used, this processing can be omitted, so it can be expected that the encoding performance can be improved.

[0160] <Change Example 1>

[0161] Below, reference Fig.10 , Modification 1 of the above-mentioned first embodiment will be described focusing on the differences from the above-mentioned first embodiment.

[0162] exist Fig.10 In the flowchart shown in FIG. 1 , a step S63 is added before step S63. Figure 8 Step S66 does not exist in the flowchart shown.

[0163] Here, when the secondary transform is obviously invalid, the transmission of the secondary transform index becomes redundant, so Fig.10 Add this step S66.

[0164] For example, when the application object of the secondary transform is limited to an intra picture or an intra block, a determination of whether the target block is an intra picture or an intra block may be added to the prescribed condition.

[0165] Furthermore, when a coding block is divided into a plurality of prediction blocks or transform blocks, the number of transform blocks to which secondary transform is applied increases. Therefore, improvement in coding performance can be expected, but on the other hand, it can be considered that the delay in coding and decoding processing increases.

[0166] Therefore, in the prescribed conditions, for example, when the intra prediction (intra-frame subdivision prediction) for dividing the coding block described in Non-Patent Document 1 into a plurality of blocks is valid, the secondary transform is considered invalid, thereby suppressing the increase of the undesirable processing delay. Therefore, the determination of whether to apply the intra-frame subdivision prediction to the target block may be added to the prescribed conditions.

[0167] <Change Example 2>

[0168] Next, Modification 2 of the above-mentioned first embodiment will be described focusing on the differences from the above-mentioned first embodiment and Modification 1.

[0169] In the first embodiment described above, if Figure 8 As shown, an example of decoding the secondary transform index in units of coding blocks is described.

[0170] In this modification example 2, when a coding block is divided into a plurality of transform blocks, the secondary transform index may be decoded in units of transform blocks.

[0171] According to this configuration, the secondary transform index can be decoded in units of different transform blocks, thereby increasing the number of blocks to which the secondary transform is applied, and thus improving the encoding performance can be expected.

[0172] <Second embodiment>

[0173] Below, reference Fig.11 , a second embodiment of the present invention will be described focusing on the differences from the above-mentioned first embodiment.

[0174] In this embodiment, if Fig.11 As shown, the configuration is to control a decoding method of position information (last_coeff_pos) where a non-zero coefficient first occurs in a target block according to whether or not a secondary transform is applied.

[0175] Regarding the decoding method of last_coeff_pos, this embodiment is different from the first embodiment 1 described above (refer to Figure 8 ). Regarding the other parts, this embodiment has the same configuration as the first embodiment, so the description thereof is omitted.

[0176] For example, in non-patent document 2, in a block where secondary transform is effective, when the target block size is 4×4 or 8×8, the generation position and number of non-zero coefficients in the target area of ​​secondary transform are limited to the upper leftmost sub-block and 8, respectively.

[0177] At this time, if the scanning order of the sub-blocks is taken into account, it can be like Fig.11 That specifies the location where non-zero coefficients are generated.

[0178] In other words, when the quadratic transform is in effect, last_coeff_pos cannot possibly represent Fig.11 The scanning order is 8 to 15.

[0179] Therefore, last_coeff_pos is usually decoded based on the prefix and suffix of the x-coordinate value and the y-coordinate value, but when the secondary transform is effective and the position and number of non-zero coefficients of the target block are limited, the decoding method of last_coeff_pos can also be modified as follows.

[0180] For example, according to the scanning order of coefficients, 0 to 7 that may generate non-zero coefficients may be used as a range, and last_coeff_pos may be transmitted as a 3-bit index.

[0181] In the prior art, the x-coordinate value and the y-coordinate value of each sub-block are expressed by 2 bits, so the amount of coding can be saved accordingly, and as a result, the effect of improving the coding performance can be expected.

[0182] <Third Embodiment>

[0183] Below, reference Fig.12 and Fig.13 , a third embodiment of the present invention will be described focusing on the differences from the first and second embodiments described above.

[0184] This embodiment is different from the first embodiment 1 in terms of the method for determining whether to apply the secondary transform and the method for decoding the coefficients (see Figure 8 ). Regarding the other parts, this embodiment has the same configuration as the first embodiment, so the description thereof is omitted.

[0185] Fig.12 and Fig.13 This is a flowchart showing an example of a method for determining whether or not to apply a secondary transform and a method for decoding coefficients in the image decoding apparatus 200 according to the present embodiment. Next, an example of the operation of the image decoding apparatus 200 according to the present embodiment will be described using this flowchart.

[0186] like Fig.12 As shown, in step S61, Figure 8 Similarly to step S61 shown, the image decoding apparatus 200 decodes the flag (cbf) indicating whether or not there is a non-zero coefficient in the current block.

[0187] In step S62, Figure 8 Similarly, in step S62 shown, the image decoding apparatus 200 determines whether there is a non-zero coefficient based on cbf.

[0188] When it is determined that there are no non-zero coefficients (the number of non-zero coefficients is 0) (that is, when it is determined that cbf=0), the process proceeds to step S91.

[0189] On the other hand, when it is determined that there are non-zero coefficients (the number of non-zero coefficients is one or more) (that is, when it is determined that cbf=1), the process proceeds to step S64.

[0190] In step S64, Figure 8Similarly, in step S64 shown, the image decoding apparatus 200 decodes information indicating the first non-zero coefficient occurrence position (last_coeff_pos) in the current block in the scanning order.

[0191] In step S93, the image decoding apparatus 200 performs Fig.13 The decoding process of the coefficients shown. Fig.13 The decoding process of the coefficients shown does not include Fig. 9 In addition, the step S642 shown in Fig. 9 The decoding process for the coefficients shown is the same.

[0192] In step S91, the image decoding apparatus 200 determines whether the following predetermined condition is satisfied. If it is determined that the predetermined condition is satisfied, the operation proceeds to step S92, and if it is determined that the predetermined condition is not satisfied, the operation ends.

[0193] Here, the predetermined condition may be a condition of whether or not to decode the secondary transform index according to the target block size.

[0194] For example, when the image decoding apparatus 200 determines in step S91 that at least one of the width or height of the target coding block is greater than 64, in step S92, it may determine not to decode the secondary transform index. The effect of this determination is as follows.

[0195] In non-patent document 3, a tool for maintaining a pipeline processing unit of a decoder called a virtual pipeline data unit (VPDU) is used. Here, in non-patent document 3, the VPDU size is set to 64×64 pixels, and the maximum value of the width and height of the transform block is set to 64 pixels.

[0196] Therefore, assuming that either the width or the height of the target coding block is larger than 64 pixels, the width and the height of the divided transform blocks are smaller than or equal to 64 pixels.

[0197] For example, when the coding block size is 128×128 pixels, four transform blocks of 64×64 pixels are included in the coding block. Since the maximum transform block size and the VPDU size are specified to be the same size, by processing each transform block, the pipeline processing specified by the VPDU can be maintained.

[0198] When a coding block includes multiple transform blocks, the image decoding apparatus 200 performs Fig.12 Steps S61, S62, S64 and S93 are shown, and then step S91 is performed.

[0199] Therefore, when at least one of the width or height of the coding block is greater than 64 pixels, the decoding control of the secondary transform index can only be performed after the processing of all VPDUs constituting the object block is completed, resulting in pipeline processing delays in the decoder.

[0200] Therefore, if the decoding of the secondary transform index is limited in advance as described above, the effect of avoiding the processing delay can be expected.

[0201] Furthermore, the predetermined condition may be a condition in which whether to decode the secondary transform index is determined using the generation position information of the non-zero coefficient (last_coeff_pos) or a flag (coded_sub_block_flag) indicating whether a non-zero coefficient is generated in the target sub-block.

[0202] For example, when the object block is 4×4 pixels or 8×8 pixels as shown in non-patent document 2, the area where non-zero coefficients are generated when applying the secondary transform is limited, the specified conditions may also include the following conditions: for the area where non-zero coefficients cannot be generated, last_coeff_pos or coded_sub_block_flag does not indicate the existence of non-zero coefficients.

[0203] For example, the prescribed condition may include the following conditions: cbf of the target block is not 0 or last_coeff_pos of the target block does not indicate a DC component (direct current component).

[0204] In addition, the judgment based on last_coeff_pos and cbf can be performed as follows when the block partition tree structures of the brightness signal (Y signal) and color difference signal (Cb signal and Cr signal) of the target block are different (Dual Tree) or the same (Single Tree).

[0205] When it is the Y signal in the case of a dual tree and last_coeff_pos is a DC component or cbf is 0, the image decoding apparatus 200 does not decode the secondary transform index.

[0206] When the Cb / Cr signal is a dual tree and last_coeff_pos of both Cb / Cr signals is a DC component or cbf is 0, the image decoding apparatus 200 does not decode the secondary transform index.

[0207] When last_coeff_pos of the Y signal, Cb signal, and Cr signal in Single Tree are all DC components or cbf is 0, the image decoding apparatus 200 does not decode the secondary transform index.

[0208] Alternatively, it may be configured that when last_coeff_pos of the Y signal is a DC component or cbf is 0 in a Single Tree, the image decoding apparatus 200 does not decode the secondary transform index.

[0209] According to this configuration, it is possible to determine whether to decode the secondary transform index without depending on the values ​​of cbf and last_coeff_pos of the Cb signal and the Cr signal.

[0210] In the above judgment, when the secondary transform index is not decoded, it is implicitly regarded as the secondary transform index is 0 (that is, it is judged that the secondary transform is not applied).

[0211] As described above, when the region where non-zero coefficients are generated when applying secondary transform is limited, and when last_coeff_pos or coded_sub_block_flag indicates the presence of non-zero coefficients for a region where non-zero coefficients cannot be generated, secondary transform is obviously not applied to the target block.

[0212] Therefore, for example, in the judgment of the specified conditions, when the object block is 4×4 pixels or 8×8 pixels, and when last_coeff_pos or coded_sub_block_flag indicates the existence of non-zero coefficients for an area where non-zero coefficients cannot be generated, the secondary transform index is not decoded. This can save the amount of coding required for the transmission of the secondary transform index, and as a result, it can be expected that the coding performance will be improved.

[0213] Furthermore, when last_coeff_pos indicates the DC component of the object block, the non-zero coefficients in the object block are only the DC component. On the other hand, considering the property that the secondary transform concentrates the non-zero primary transform coefficients, the secondary transform is effective when the non-zero primary transform coefficients also exist in the high-frequency components. Therefore, when the non-zero primary transform coefficients are only the DC component, the secondary transform may not be applied.

[0214] Therefore, for example, when last_coeff_pos indicates a DC component in the target block, it is determined that the secondary transform index is not to be decoded. This can save the amount of code required for transmitting the secondary transform index, and as a result, an effect of improved coding performance can be expected.

[0215] Secondly, when the cbf of the object block is 0, as mentioned above, since there are no non-zero coefficients in the object block, it is obvious that the secondary transform is not applied to the object block. Therefore, it is judged that the secondary transform index is not decoded. This can save the amount of symbols required for the transmission of the secondary transform index, and as a result, it can be expected that the coding performance will be improved.

[0216] In step S92 , the image decoding apparatus 200 decodes the secondary transform index and ends the present operation.

[0217] <Change Example 3>

[0218] Next, Modification Example 3 will be described with attention paid to the differences from the third embodiment described above. In Modification Example 3, it is configured to determine whether or not to decode the secondary transform index using last_coeff_pos and coded_sub_block_flag.

[0219] In the third embodiment, regarding whether to decode the secondary transform index of the target block, when last_coeff_pos and coded_sub_block_flag indicate that there are non-zero coefficients in the region where the generation of non-zero coefficients is limited when applying the secondary transform, it is determined not to decode the secondary transform index.

[0220] On the other hand, in Change Example 3, for example, when applying a secondary transform, in order to simplify processing, when all high-frequency components of the object block are zero (returned to zero), it is obviously not necessary to make a judgment based on coded_sub_block_flag. Therefore, whether to decode the secondary transform can be determined only based on last_coeff_pos.

[0221] <Change Example 4>

[0222] Next, Modification Example 4 will be described focusing on the differences from the third embodiment described above.

[0223] In the above-mentioned Embodiment 3, an example of performing decoding judgment of a secondary transform index in units of coding blocks has been described.

[0224] On the other hand, in Modification Example 4, when the coding block is divided into a plurality of transform blocks, the determination can also be performed in transform block units. According to this configuration, by determining the decoding of the secondary transform index in transform block units, it is possible to increase the number of target blocks to which the secondary transform is applied, and as a result, it can be expected that the encoding performance will be improved.

[0225] Furthermore, the above-described image encoding apparatus 100 and image decoding apparatus 200 may be implemented by a program that causes a computer to execute each function (each step).

[0226] In addition, in the above-mentioned embodiment, the application of the present invention to the image encoding device 100 and the image decoding device 200 is described as an example, but the present invention is not limited to this example, and can also be applied to an image encoding / decoding system having the functions of the image encoding device 100 and the image decoding device 200.

[0227] According to the present invention, in the conventional method, in order to determine whether to apply a secondary transform when decoding coefficients, additional processing of counting the number of non-zero coefficients is required. However, by setting the structure as the present invention, additional processing is not required, and it can be expected that the processing speed can be increased or the load can be reduced.

[0228] Furthermore, according to the present invention, decoding of the secondary transform index can be omitted for blocks to which it can be determined that the secondary transform is not applied or the effect is poor, and therefore improvement in encoding performance can be expected.

[0229] [Explanation of Symbols]

[0230] 10 Image Processing System

[0231] 100 Image encoding device

[0232] 111, 241 Inter-frame prediction unit

[0233] 112, 242 Intra-frame prediction unit

[0234] 121 Subtractor

[0235] 122, 230 Adder

[0236] 131 Transformation and Quantization Department

[0237] 131A Primary conversion unit

[0238] 131B Secondary conversion unit

[0239] 131C Quantitative Department

[0240] 132, 220 Inverse transform and inverse quantization unit

[0241] 220A Inverse Quantization Unit

[0242] 220B Inverse secondary transformation unit

[0243] 220C Inverse primary conversion unit

[0244] 140 Coding Department

[0245] 150, 250 loop filter processing unit

[0246] 160, 260 frame buffer

[0247] 200 Image decoding device

[0248] 210 Decoding Department

Claims

1. An image decoding device, characterized in that: have: an inverse transform unit configured to generate a prediction residual signal by inverse transform, The inverse transformation unit is configured to not decode the secondary transformation index of the coding block when at least either the width or the height of the coding block is larger than the maximum value of the width and the height of the transformation block, wherein the secondary transformation index indicates whether the secondary transformation is valid for the coding block and sets the available transformation matrix.

2. An image decoding method, characterized in that: have: The process of generating a prediction residual signal by inverse transformation, In the step, when at least one of the width or height of the coding block is larger than the maximum value of the width and height of the transform block, the secondary transform index of the coding block is not decoded, The secondary transform index indicates whether the secondary transform is valid for the coding block, and sets an available transform matrix.

3. A program for causing a computer to function as an image decoding device, characterized in that: The image decoding device comprises: an inverse transform unit configured to generate a prediction residual signal by inverse transform; The inverse transformation unit is configured to not decode the secondary transformation index of the coding block when at least either the width or the height of the coding block is larger than the maximum value of the width and the height of the transformation block, wherein the secondary transformation index indicates whether the secondary transformation is valid for the coding block and sets the available transformation matrix.