Image encoding device, image decoding device and program
By generating suitable orthogonal transform types based on adjacent decoded pixel positions in inter-component intra prediction, the problem of imbalanced energy distribution of color difference block prediction residuals is solved and coding efficiency is improved, especially in CCIP_A and CCIP_L modes. Choosing a suitable transform type such as DST-7 or DCT-8 improves the energy distribution of the prediction residual, thereby improving image coding and decoding efficiency.
Patent Information
- Application Number
- CN201980054090.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-08-15
- Filing Date
- 2019-08-09
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2039-08-09
AI Technical Summary
When using the inter-component intra prediction mode, the energy distribution of the prediction residual of the color difference block is unbalanced, resulting in reduced coding efficiency. Especially in CCIP_A mode and CCIP_L mode, the energy of the prediction residual is not concentrated, resulting in DCT-8 application Coding efficiency is reduced.
In inter-component intra prediction, appropriate orthogonal transform type candidates are generated based on the reference adjacent decoded pixel positions, and the appropriate orthogonal transform type is selected to process the prediction residual, for example, in CCIP_A mode and CCIP_L mode, Choose DST-7 or DCT-8 as the transformation type to improve the energy distribution of the prediction residuals.
The coding efficiency in the case of inter-component intra prediction is improved. By selecting a suitable orthogonal transform type, the energy distribution of the prediction residual is improved, thereby improving the efficiency of image coding and decoding.
Smart Images

Figure CN112567743B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an image encoding device, an image decoding device, and a program. Background Art
[0002] Intra-frame prediction, which uses spatial correlation within a frame, is widely used in image coding technology. Intra-frame prediction predicts pixel values within a block to be predicted with reference to adjacent decoded pixels adjacent to the block to be predicted, thereby generating a predicted image.
[0003] The image encoding device calculates a prediction residual indicating an error in a predicted image for the block, generates a transform coefficient by performing an orthogonal transform process on the prediction residual, quantizes and entropy encodes the transform coefficient, and outputs encoded data (bit stream).
[0004] For example, Patent Document 1 discloses an image encoding device that uses an intraframe predictor that can improve the encoding efficiency of the intraframe prediction mode of the color difference signal in an intraframe predictor that determines the intraframe prediction mode of the color difference signal for each block of the image (see Patent Document 1). As an orthogonal transform type applied to orthogonal transform processing, DCT type 2 (DCT-2) has been widely used in the past.
[0005] In addition, HEVC described in non-patent document 1 stipulates that for blocks of a specified size or less to which intra-frame prediction is applied, DST type 7 (DST-7) is applied instead of DCT-2. DST-7 is different from DCT-2 in that it is an orthogonal transform with an asymmetric impulse response, and is a transform in which the coefficients of one end point are small and the coefficients of the other end point are large.
[0006] Intra-frame prediction predicts a block by referring to adjacent decoded pixels adjacent to the block, so within the block, the prediction accuracy of the area close to the adjacent decoded pixels is high and the prediction accuracy of the area far from the adjacent decoded pixels is likely to be low. By applying DST-7 to the prediction residual having this characteristic, the energy of the prediction residual can be more effectively concentrated.
[0007] On the other hand, as a mode of intra prediction, there is known cross-component intra prediction (CCIP: Cross-Component Intra Prediction) for predicting a pixel value of chrominance (Chroma) using adjacent decoded pixels of luminance (Luma).
[0008] Specifically, in the inter-component intra-frame prediction, the linear models of the brightness and color difference of the block are calculated with reference to the brightness decoded pixels and color difference decoded pixels adjacent to the upper side and the left side of the color difference block, and the pixel values of the color difference in the block are predicted using the calculated linear models. In addition, the inter-component intra-frame prediction is sometimes referred to as CCLM (Cross-Component Linear Model) prediction.
[0009] In the inter-component intra prediction, the relationship between the signal distribution of the adjacent decoded pixels of luminance and chrominance on the upper side and the left side of the block can be used to approximate the relationship between the signal distribution of luminance and chrominance of the block, and the chrominance signal can be predicted with high accuracy. However, since the adjacent decoded pixels on the upper side and the left side are always used, when the relationship between the signal distribution of luminance and chrominance is different on the upper side and the left side, the correct linear model cannot be calculated, and as a result, the prediction accuracy of chrominance is reduced.
[0010] In view of the above-mentioned problems, CCIP_A mode and CCIP_L mode are described in non-patent document 2 as new intra-frame prediction modes for chrominance. CCIP_A mode is an intra-frame prediction mode that calculates a linear model using only the adjacent decoded pixels of luminance and chrominance on the upper side instead of using the adjacent decoded pixels of luminance and chrominance on the upper side and the left side. CCIP_L mode is an intra-frame prediction mode that calculates a linear model using only the adjacent decoded pixels of luminance and chrominance on the left side. In addition, the same intra-frame prediction mode is also described in non-patent document 3, but CCIP_A is called LM-top and CCIP_L is called LM-left.
[0011] In addition, non-patent document 2 records that in the orthogonal transform processing of the prediction residual of the color difference block to which the CCIP mode, CCIP_A mode or CCIP_L mode is applied, DCT-2 is applied in the vertical and horizontal directions, or DCT-8 or DST-7 is selectively applied in the vertical and horizontal directions, respectively.
[0012] Prior art literature
[0013] Patent Literature
[0014] Patent Document 1: Japanese Patent Application Publication No. 2018-078409
[0015] Non-patent literature
[0016] Non-patent document 1: Recommendation ITU-T H.265, (12 / 2016), "High efficiency video coding", International Telecommunication Union
[0017] Non-patent document 2: JVET-J0025, “Description of SDR, HDR and 360° video coding technology proposal by Qualcomm and Technicolor medium complexity version”, retrieved on May 22, 2018, Internet <URL: http: / / phenix.it-sudparis.eu / jvet / doc_end_user / documents / 10_San%20Diego / wg11 / JVET-J0025-v4.zip>
[0018] Non-patent document 3: JVET-J0018, “Description of SDR video coding technology proposal by MediaTek”, retrieved on May 22, 2018, Internet <URL: http: / / phenix.it-sudparis.eu / jvet / doc_end_user / documents / 10_San%20Diego / wg11 / JVET-J0018-v2.zip> Summary of the invention
[0019] Problem that the invention aims to solve
[0020] However, there is a high possibility that the energy distribution of the prediction residual of the color difference block to which the CCIP_A mode or the CCIP_L mode is applied tends to be unbalanced.
[0021] For example, when the CCIP_A mode is applied, since the adjacent decoded pixels of the luminance and chrominance on the upper side are used for the calculation of the linear model, the prediction accuracy of the upper end area of the block is likely to be high. On the other hand, the prediction accuracy of the lower end area away from the adjacent decoded pixels used for the linear model calculation is likely to be low. For the prediction residual with this characteristic, if DCT-8 is applied to the vertical direction, there is a problem of reduced coding efficiency because the energy of the prediction residual is not concentrated.
[0022] Similarly, when the CCIP_L mode is applied, since the adjacent decoded pixels of the luminance and chrominance on the left are used for linear model calculation, the prediction accuracy of the left end area of the chrominance of the block is likely to be high, but the prediction accuracy of the right end area away from the adjacent decoded pixels used for linear model calculation is likely to be low. For the prediction residual with this characteristic, if DCT-8 is applied to the horizontal direction, there is a problem of reduced coding efficiency because the energy of the prediction residual is not concentrated.
[0023] Therefore, an object of the present invention is to provide an image encoding device, an image decoding device, and a program that improve encoding efficiency when using inter-component intra prediction.
[0024] Means used to solve problems
[0025] According to the image encoding device of the first feature, its main point is that the image encoding device includes: an inter-component intra-frame prediction unit, which generates a prediction block of the second component by predicting a block of the second component by referring to the decoded pixels of the first component and the decoded pixels of the second component as adjacent decoded pixels adjacent to the block of the second component to be encoded; a candidate generation unit, which generates a candidate of an orthogonal transformation type applied to an orthogonal transformation process for a prediction residual, and the prediction residual represents an error of the prediction block of the second component relative to the block of the second component; and a transformation unit, which performs an orthogonal transformation process on the prediction residual using an orthogonal transformation type selected from the candidates generated by the candidate generation unit, and the candidate generation unit generates the candidate of the orthogonal transformation type based on the position of the adjacent decoded pixels referenced in the inter-component intra-frame prediction.
[0026] According to the image decoding device of the second feature, its main point is that the image decoding device includes: an inter-component intra-frame prediction unit, which generates a prediction block of the second component by predicting a block of the second component by referring to the decoded pixels of the first component and the decoded pixels of the second component as adjacent decoded pixels adjacent to the block of the second component to be decoded; a candidate generation unit, which generates a candidate of an orthogonal transform type applied to an inverse orthogonal transform processing for a transform coefficient of the second component corresponding to a prediction residual, wherein the prediction residual represents an error of the prediction block of the second component relative to the block of the second component; and an inverse transform unit, which performs an inverse orthogonal transform processing on the transform coefficient of the second component using an orthogonal transform type selected from the candidates generated by the candidate generation unit, and the candidate generation unit generates the candidate of the orthogonal transform type based on the position of the adjacent decoded pixels referenced in the inter-component intra-frame prediction.
[0027] The program according to the third feature causes a computer to function as the image encoding device according to the first feature.
[0028] A program according to the fourth feature causes a computer to function as the image decoding device according to the second feature.
[0029] Effects of the Invention
[0030] According to the present invention, it is possible to provide an image encoding device, an image decoding device, and a program that improve encoding efficiency when using inter-component intra prediction. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 It is a diagram showing the structure of an image encoding device according to an embodiment.
[0032] Figure 2 It is a diagram showing a general CCIP mode.
[0033] Figure 3 It is a diagram showing the CCIP_A mode.
[0034] Figure 4 It is a diagram showing the CCIP_L mode.
[0035] Figure 5 It is a diagram showing the structure of an image decoding device according to an embodiment.
[0036] Figure 6 is a diagram showing an operation example of the image encoding device according to an embodiment.
[0037] Figure 7 is a diagram showing an operation example of an image decoding device according to an embodiment.
[0038] Figure 8 It is a diagram showing an operation example of the image encoding device according to Modification Example 1 of the embodiment.
[0039] Fig. 9 It is a diagram showing an operation example of the image decoding device according to Modification Example 1 of the embodiment.
[0040] Fig.10 A diagram showing an operation example of an image encoding device according to variation 2 of the embodiment.
[0041] Fig.11 A diagram showing an operation example of an image decoding device according to variation 2 of the embodiment. DETAILED DESCRIPTION
[0042] An image encoding device and an image decoding device according to an embodiment are described with reference to the accompanying drawings. The image encoding device and the image decoding device according to the present embodiment encode and decode moving images represented by MPEG. In addition, in the description of the following drawings, the same or similar reference numerals are given to the same or similar parts.
[0043] <1. Configuration of Image Coding Device>
[0044] Figure 1 1 is a diagram showing the structure of the image encoding device 1 according to the present embodiment.
[0045] like Figure 1 As shown, the image encoding device 1 includes a block division unit 100, a subtraction unit 110, a transform and quantization unit 120, an entropy encoding unit 130, an inverse quantization and inverse transform unit 140, a synthesis unit 150, a memory 160, a prediction unit 170 and a transform control unit 180.
[0046] The block division unit 100 divides the input image of the frame (or image) unit constituting the moving image into small block-shaped areas, and outputs the blocks obtained by the division to the subtraction unit 110. Each pixel in the input image is composed of brightness (Y) and color difference (C). b , C r )constitute.
[0047] The size of a block is, for example, 32×32 pixels, 16×16 pixels, 8×8 pixels, or 4×4 pixels. The shape of a block is not limited to a square, but may be a rectangle. A block is a unit for encoding by the image encoding device 1 and a unit for decoding by the image decoding device 2.
[0048] In this embodiment, the block division unit 100 divides the input image into blocks called CUs (Coding Units). A CU includes a luminance block and a chrominance block. The image encoding device 1 can encode the luminance block and the chrominance block constituting a CU separately. Similarly, the image decoding device 2 can decode the luminance block and the chrominance block constituting a CU separately.
[0049] The subtraction unit 110 calculates a prediction residual indicating an error on a pixel basis between the block input from the block division unit 100 and a predicted image (prediction block) obtained by predicting the block by the prediction unit 170. Specifically, the subtraction unit 110 calculates the prediction residual by subtracting each pixel value of the predicted image from each pixel value of the block input from the block division unit 100, and outputs the calculated prediction residual to the transform and quantization unit 120.
[0050] The transform and quantization unit 120 performs orthogonal transform processing and quantization processing in units of blocks. The transform and quantization unit 120 includes a transform unit 121 and a quantization unit 122 .
[0051] Under the control of the transform control unit 180, the transform unit 121 performs an orthogonal transform process on the prediction residual input from the subtraction unit 110, calculates a transform coefficient, and outputs the calculated transform coefficient to the quantization unit 122. The orthogonal transform process refers to, for example, discrete cosine transform (DCT), discrete sine transform (DST), Karhunen-Loewenstein transform (KLT), etc.
[0052] In the present embodiment, the transform unit 121 performs orthogonal transform processing in the horizontal direction and the vertical direction respectively using the orthogonal transform type selected by the transform control unit 180 from DCT type 2 (DCT-2), DCT type 5 (DCT-5), DCT type 8 (DCT-8) and DST type 7 (DST-7). In addition, these orthogonal transform types themselves are well known to those skilled in the art, so the description of the mathematical formulas of each orthogonal transform type is omitted.
[0053] The quantization unit 122 quantizes the transform coefficients input from the transform unit 121 using the quantization parameter (Qp) and the quantization matrix to generate quantized transform coefficients. The quantization parameter (Qp) is a parameter commonly applied to each transform coefficient in the block and is a parameter that determines the coarseness of quantization. The quantization matrix is a matrix having quantization values when each transform coefficient is quantized as elements. The quantization unit 122 outputs the quantized transform coefficients to the entropy coding unit 130 and the inverse quantization and inverse transform unit 140.
[0054] The entropy coding unit 130 performs entropy coding on the transform coefficients input from the quantization unit 122, performs data compression, generates coded data (bit stream), and outputs the coded data to the outside of the image coding device 1. Huffman coding, CABAC (Context-based Adaptive Binary Arithmetic Coding), etc. can be used for entropy coding.
[0055] Furthermore, control information related to prediction is input to the entropy coding unit 130 from the prediction unit 170, and control information related to transformation processing is input to the entropy coding unit 130 from the transformation control unit 180. The entropy coding unit 130 also performs entropy coding on these control information.
[0056] The inverse quantization and inverse transformation unit 140 performs inverse quantization processing and inverse orthogonal transformation processing in units of blocks. The inverse quantization and inverse transformation unit 140 includes an inverse quantization unit 141 and an inverse transformation unit 142 .
[0057] The inverse quantization unit 141 performs an inverse quantization process corresponding to the quantization process performed by the quantization unit 122. Specifically, the inverse quantization unit 141 performs an inverse quantization process on the quantized transform coefficient input from the quantization unit 122 using a quantization parameter (Qp) and a quantization matrix, restores the transform coefficient, and outputs the restored transform coefficient to the inverse transform unit 142.
[0058] The inverse transform unit 142 performs an inverse orthogonal transform process corresponding to the orthogonal transform process performed by the transform unit 121 under the control of the transform control unit 180. For example, when the transform unit 121 performs an orthogonal transform process based on DCT-2, the inverse transform unit 142 performs an inverse orthogonal transform process based on DCT-2. The inverse transform unit 142 performs inverse orthogonal transform processes in the horizontal direction and in the vertical direction on the transform coefficients input from the inverse quantization unit 141, restores the prediction residual, and outputs the restored prediction residual to the synthesis unit 150.
[0059] The synthesizer 150 synthesizes the restored prediction residual input from the inverse transform unit 142 with the predicted image input from the predictor 170 in pixel units. The synthesizer 150 adds each pixel value of the restored prediction residual to each pixel value of the predicted image, reconstructs (decodes) the block, and outputs the decoded image in block units to the memory 160. This decoded image is sometimes referred to as a reconstructed image. In addition, a loop filter may be provided between the synthesizer 150 and the memory 160.
[0060] The memory 160 stores the decoded image input from the synthesizing unit 150. The memory 160 stores the decoded image in units of frames.
[0061] The prediction unit 170 performs prediction in units of blocks and includes an intra prediction unit 171 , an inter prediction unit 172 , and a switching unit 173 .
[0062] The intra prediction unit 171 performs intra prediction in block units obtained by dividing the original image of the frame unit. The intra prediction unit 171 generates an intra prediction image by referring to adjacent decoded pixels adjacent to the prediction target block in the decoded image stored in the memory 160, and outputs the generated intra prediction image to the switching unit 173.
[0063] In addition, the intra prediction unit 171 selects the most appropriate intra prediction mode to be applied to the target block from a plurality of intra prediction modes, and performs intra prediction using the selected intra prediction mode. The intra prediction unit 171 outputs a flag (index) indicating the selected intra prediction mode to the entropy coding unit 130. In addition, the intra prediction modes include planar prediction, DC prediction, and directional prediction.
[0064] The intra prediction unit 171 can select inter-component intra prediction (CCIP) as the intra prediction mode applied to the chrominance block of the CU of the prediction object. Specifically, the intra prediction unit 171 includes an inter-component intra prediction unit 171a, which predicts the chrominance block of the CU using the decoded image (decoded pixel value) of the luminance block of the CU through CCIP.
[0065] Specifically, the inter-component intra prediction unit 171a generates a predicted chrominance block by performing inter-component intra prediction to predict a chrominance block by referring to decoded luma pixels and decoded chrominance pixels as adjacent decoded pixels adjacent to the chrominance block to be encoded.
[0066] In addition, when inter-component intra prediction (CCIP) is applied, the intra prediction unit 171 first performs intra prediction on the luminance block of the CU, and stores a decoded image of the luminance block of the CU in the memory 160 .
[0067] The inter-component intra prediction unit 171a generates a predicted color difference block by inter-component intra prediction (CCIP), and outputs the predicted color difference block to the subtraction unit 110 through the switching unit 173. The subtraction unit 110 calculates a color difference prediction residual, which indicates an error of the predicted color difference block with respect to the color difference block input from the block division unit 100, and outputs the calculated color difference prediction residual to the transformation unit 121. The transformation unit 121 performs an orthogonal transformation process on the color difference prediction residual input from the subtraction unit 110.
[0068] In this embodiment, CCIP includes three modes: normal CCIP, CCIP_A, and CCIP_L. Figure 2 is a diagram showing a typical CCIP mode. Figure 3 is a diagram showing the CCIP_A mode, Figure 4 It is a diagram showing the CCIP_L mode.
[0069] like Figure 2 As shown, in the case of the usual CCIP mode, the inter-component intra-frame prediction unit 171a uses the luminance decoded pixels and chrominance decoded pixels adjacent to the upper and left sides of the CU to calculate the linear model of the luminance and chrominance of the CU, and uses the calculated linear model to predict the pixel value of the chrominance block of the CU.
[0070] The conventional CCIP mode uses the relationship between the signal distribution of the adjacent decoded pixels of brightness and color difference on the upper and left sides of the CU to approximate the relationship between the signal distribution of the brightness and color difference of the CU, and can predict the color difference signal with high accuracy. In addition, the adjacent decoded pixel can also include the concept of the next adjacent decoded pixel.
[0071] The inter-component intra prediction unit 171a calculates the predicted pixel value pred of the chrominance (Cb) of the CU by the following equation (1), as described in, for example, JVET-G1001-V1, in addition to the above-mentioned non-patent literature. c (i,j).
[0072] [Mathematical formula 1]
[0073] pred C (i, j) = α·rec L ′(i, j)+β …(1)
[0074] Among them, rec L '(i,j) represents the decoded pixel value of the downsampled luminance of the CU (downsampled reconstructed luma samples).
[0075] In addition, α and β are calculated by the following equations (2) and (3).
[0076] [Mathematical formula 2]
[0077]
[0078]
[0079] Wherein, L(n) represents the top and left neighbouring reconstructed luma samples, and C(n) represents the top and left neighbouring reconstructed chroma samples.
[0080] Thus, since the conventional CCIP always uses the adjacent decoded pixels on the upper and left sides of the CU, it is not possible to calculate the correct linear model when the relationship between the signal distribution of luminance and chrominance is different on the upper side and the left side, and as a result, the prediction accuracy of chrominance is reduced. The CCIP_A mode and CCIP_L mode are suitable modes when the relationship between the signal distribution of luminance and chrominance is different on the upper side and the left side of the CU.
[0081] like Figure 3 As shown, in the case of CCIP_A mode, the inter-component intra prediction unit 171a calculates the linear model using only the adjacent decoded pixels of luminance and chrominance above the CU instead of using the adjacent decoded pixels of luminance and chrominance above and to the left of the CU.
[0082] When the CCIP_A mode is applied, the prediction accuracy of the region close to the adjacent decoded pixels used for the calculation of the linear model (i.e., the upper end region of the color difference block) is likely to be high. On the other hand, the prediction accuracy of the region far from the adjacent decoded pixels used for the calculation of the linear model (i.e., the lower end region of the color difference block) is likely to be low.
[0083] like Figure 4 As shown, in the case of CCIP_L mode, the inter-component intra prediction unit 171a calculates the linear model using only the adjacent decoded pixels of luminance and chrominance on the left side of the CU instead of using the adjacent decoded pixels of luminance and chrominance on the upper and left sides of the CU.
[0084] When the CCIP_L mode is applied, the prediction accuracy of the area close to the adjacent decoded pixels used for calculation of the linear model (i.e., the left end area of the chrominance block) is likely to increase, but the prediction accuracy of the area far from the adjacent decoded pixels used for calculation of the linear model (i.e., the right end area of the chrominance block) is likely to decrease.
[0085] When any one of the normal CCIP mode, CCIP_A mode, and CCIP_L mode is selected as the intra prediction mode applied to the chrominance block, the inter-component intra prediction unit 171 a outputs a flag indicating the selected mode to the entropy coding unit 130 and the transform control unit 180 .
[0086] The inter-frame prediction unit 172 uses the decoded image stored in the memory 160 as a reference image, calculates a motion vector by a method such as block matching, predicts a block to be predicted, generates an inter-frame prediction image, and outputs the generated inter-frame prediction image to the switching unit 173. The inter-frame prediction unit 172 selects the most appropriate inter-frame prediction method from among inter-frame prediction using multiple reference images (typically bi-prediction) and inter-frame prediction using one reference image (unidirectional prediction), and performs inter-frame prediction using the selected inter-frame prediction method.
[0087] The switching unit 173 switches between the intra prediction image input from the intra prediction unit 171 and the inter prediction image input from the inter prediction unit 172 , and outputs one of the prediction images to the subtraction unit 110 and the synthesis unit 150 .
[0088] The transform control unit 180 controls the orthogonal transform process performed by the transform unit 121 and the inverse orthogonal transform process performed by the inverse transform unit 142. In the present embodiment, when any one of the normal CCIP mode, CCIP_A mode, and CCIP_L mode is selected as the intra prediction mode applied to the color difference block, the transform control unit 180 controls the transform process (orthogonal transform process and inverse orthogonal transform process) corresponding to the color difference block.
[0089] The conversion control unit 180 includes a candidate generation unit 181 and a type selection unit 182 .
[0090] The candidate generation unit 181 generates a candidate of an orthogonal transform type applied to an orthogonal transform process for a color difference prediction residual based on the flag of the intra prediction mode input from the inter-component intra prediction unit 171a, and outputs the generated candidate to the type selection unit 182. For example, the candidate of the orthogonal transform type is at least one of DCT-2, DCT-5, DCT-8, and DCT-7.
[0091] Specifically, the candidate generator 181 generates candidates for the orthogonal transform type according to whether the position of the adjacent decoded pixel referenced in the inter-component intra prediction (CCIP) is only one of the top, bottom, left, and right of the chrominance block.
[0092] In this embodiment, the inter-component intra prediction unit 171a performs inter-component intra prediction using a mode selected from a plurality of modes including a first mode (normal CCIP mode) and a second mode (CCIP_A mode or CCIP_L mode). The first mode is a mode in which the color difference block is predicted with reference to adjacent decoded pixels on both the upper side and the left side of the color difference block. The second mode is a mode in which the color difference block is predicted with reference to only adjacent decoded pixels on the upper side or the left side of the color difference block.
[0093] When the first mode is selected, the candidate generation unit 181 generates a first candidate consisting of one or more orthogonal transform types as a candidate for the orthogonal transform type. When the second mode is selected, the candidate generation unit 181 generates a second candidate different from the first candidate as a candidate for the orthogonal transform type. That is, the candidate generation unit 181 generates candidates of orthogonal transform types different from each other in the first mode (normal CCIP mode) and the second mode (CCIP_A mode or CCIP_L mode).
[0094] Here, the first candidate and the second candidate include: a horizontal candidate, applied to the horizontal transformation process, and composed of one or more orthogonal transformation type candidates; and a vertical candidate, applied to the vertical transformation process, and composed of one or more orthogonal transformation type candidates. For the first candidate, the horizontal candidate and the vertical candidate may be the same. On the other hand, for the second candidate, the horizontal candidate and the vertical candidate are different from each other.
[0095] The type selection unit 182 selects an orthogonal transform type to be applied to the orthogonal transform process for the chrominance prediction residual from the candidates input from the candidate generation unit 181, and outputs a flag (mark) indicating the selected orthogonal transform type to the transform unit 121, the inverse transform unit 142, and the entropy encoding unit 130. For example, the type selection unit 182 may calculate an RD (rate-distortion) cost for each of the candidates input from the candidate generation unit 181, and select an orthogonal transform type from the candidates based on the calculated RD cost.
[0096] Specifically, the type selection unit 182 selects an orthogonal transformation type applied to the transformation processing in the horizontal direction from the horizontal direction candidates input by the candidate generation unit 181, and outputs a flag (mark) indicating the selected horizontal direction orthogonal transformation type to the transformation unit 121, the inverse transformation unit 142 and the entropy coding unit 130.
[0097] However, in the case where the horizontal direction candidates input from the candidate generation unit 181 consist of only one orthogonal transform type, since the orthogonal transform type applied for the transform processing in the horizontal direction is uniquely determined, the flag (mark) indicating the orthogonal transform type in the horizontal direction may not be output to the entropy encoding unit 130.
[0098] In addition, the type selection unit 182 selects an orthogonal transform type applied to the transform processing in the vertical direction from the vertical direction candidates input by the candidate generation unit 181, and outputs a flag (mark) indicating the selected vertical direction orthogonal transform type to the transform unit 121, the inverse transform unit 142 and the entropy coding unit 130.
[0099] However, in the case where the vertical direction candidates input from the candidate generation unit 181 consist of only one orthogonal transform type, since the orthogonal transform type applied for the transform processing in the vertical direction is uniquely determined, the flag (mark) indicating the orthogonal transform type in the vertical direction may not be output to the entropy coding unit 130.
[0100] <2. Configuration of Image Decoding Device>
[0101] Figure 5 It is a diagram showing the structure of the image decoding device 2 according to the present embodiment.
[0102] like Figure 5 As shown, the image decoding device 2 includes an entropy coding and decoding unit 200 , an inverse quantization and inverse transformation unit 210 , a synthesis unit 220 , a memory 230 , a prediction unit 240 , and a transformation control unit 250 .
[0103] The entropy coding and decoding unit 200 decodes the coded data generated by the image coding device 1, and outputs the quantized transform coefficients to the inverse quantization and inverse transform unit 210. In addition, the entropy coding and decoding unit 200 obtains control information related to prediction (intra-frame prediction and inter-frame prediction), and outputs the obtained control information to the prediction unit 240.
[0104] In this embodiment, the entropy coding and decoding unit 200 obtains the flag of the intra-frame prediction mode (specifically, the CCIP mode) and the flags of the orthogonal transform types in the horizontal and vertical directions, outputs the flag of the intra-frame prediction mode to the intra-frame prediction unit 241 and the type selection unit 252, and outputs the flag of the orthogonal transform type to the type selection unit 252.
[0105] The inverse quantization and inverse transformation unit 210 performs inverse quantization processing and inverse orthogonal transformation processing in units of blocks. The inverse quantization and inverse transformation unit 210 includes an inverse quantization unit 211 and an inverse transformation unit 212 .
[0106] The inverse quantization unit 211 performs an inverse quantization process corresponding to the quantization process performed by the quantization unit 122 of the image encoding device 1. The inverse quantization unit 211 performs inverse quantization on the quantized transform coefficient input from the entropy coding and decoding unit 200 by using the quantization parameter (Qp) and the quantization matrix, restores the transform coefficient, and outputs the restored transform coefficient to the inverse transform unit 212.
[0107] The inverse transform unit 212 performs an inverse orthogonal transform process corresponding to the orthogonal transform process performed by the transform unit 121 of the image encoding device 1 under the control of the transform control unit 250. The inverse transform unit 212 performs inverse orthogonal transform processes in the horizontal direction and the vertical direction on the transform coefficients input from the inverse quantization unit 211, restores the prediction residual, and outputs the restored prediction residual to the synthesis unit 220.
[0108] The synthesis unit 220 reconstructs (decodes) the original block by synthesizing the prediction residual input from the inverse transform unit 212 and the prediction image (prediction block) input from the prediction unit 240 in pixel units, and outputs the decoded image in block units to the memory 230. In addition, a loop filter may be provided between the synthesis unit 220 and the memory 230.
[0109] The memory 230 stores the decoded image input from the synthesizing unit 220. The memory 230 stores the decoded image in units of frames. The memory 230 outputs the decoded image in units of frames to the outside of the image decoding device 2.
[0110] The prediction unit 240 performs prediction in units of blocks and includes an intra prediction unit 241 , an inter prediction unit 242 , and a switching unit 243 .
[0111] The intra prediction unit 241 generates an intra prediction image by referring to adjacent decoded pixels adjacent to the prediction target block in the decoded image stored in the memory 230, and outputs the generated intra prediction image to the switching unit 243. In addition, the intra prediction unit 241 selects an intra prediction mode from a plurality of intra prediction modes based on the flag of the intra prediction mode input from the entropy coding and decoding unit 200, and performs intra prediction using the selected intra prediction mode.
[0112] The intra prediction unit 241 includes an inter-component intra prediction unit 241a, which predicts the chrominance block of the CU using the decoded image (decoded pixel value) of the luminance block of the CU based on inter-component intra prediction (CCIP). Specifically, the inter-component intra prediction unit 241a generates a predicted chrominance block by inter-component intra prediction that predicts the chrominance block by referring to the luminance decoded pixels and the chrominance decoded pixels as adjacent decoded pixels adjacent to the chrominance block to be decoded.
[0113] In addition, when inter-component intra prediction (CCIP) is applied, the intra prediction unit 241 first performs intra prediction on the luminance block of the CU, and stores a decoded image of the luminance block of the CU in the memory 230 .
[0114] The inter-component intra prediction unit 241a generates a predicted color difference block by inter-component intra prediction (CCIP), and outputs the predicted color difference block to the synthesis unit 220 through the switching unit 243. The synthesis unit 220 synthesizes the color difference prediction residual input from the inverse transform unit 212 and the predicted color difference block input from the inter-component intra prediction unit 241a in pixel units, reconstructs (decodes) the original color difference block, and outputs a decoded image in block units to the memory 230.
[0115] In this embodiment, CCIP includes three modes: normal CCIP, CCIP_A, and CCIP_L. When any one of the normal CCIP mode, CCIP_A mode, and CCIP_L mode is selected as the intra prediction mode applied to the chrominance block, the inter-component intra prediction unit 241a outputs a flag indicating the selected mode to the transformation control unit 250.
[0116] The inter prediction unit 242 performs inter prediction for predicting a block to be predicted using the decoded image stored in the memory 230 as a reference image. The inter prediction unit 242 generates an inter prediction image by performing inter prediction according to the control information (motion vector information, etc.) input from the entropy coding and decoding unit 200, and outputs the generated inter prediction image to the switching unit 243.
[0117] The switching unit 243 switches between the intra prediction image input from the intra prediction unit 241 and the inter prediction image input from the inter prediction unit 242 , and outputs either prediction image to the synthesis unit 220 .
[0118] The transform control unit 250 controls the inverse orthogonal transform process performed by the inverse transform unit 212. In the present embodiment, when any one of the normal CCIP mode, CCIP_A mode, and CCIP_L mode is selected as the intra prediction mode applied to the color difference block, the transform control unit 250 controls the transform process (inverse orthogonal transform process) corresponding to the color difference block. The transform control unit 250 includes a candidate generation unit 251 and a type selection unit 252.
[0119] The candidate generation unit 251 generates a candidate of an orthogonal transform type applied to the inverse orthogonal transform process performed by the inverse transform unit 212 based on the flag of the intra prediction mode input from the inter-component intra prediction unit 241a, and outputs the generated candidate to the type selection unit 252. For example, the candidate of the orthogonal transform type is at least one of DCT-2, DCT-5, DCT-8, and DCT-7.
[0120] Specifically, the candidate generator 251 generates candidates for the orthogonal transform type according to whether the position of the adjacent decoded pixel referenced in the inter-component intra prediction (CCIP) is only one of the top, bottom, left, and right of the chrominance block.
[0121] In this embodiment, the inter-component intra prediction unit 241a performs inter-component intra prediction using a mode selected from a plurality of modes including a first mode (normal CCIP mode) and a second mode (CCIP_A mode or CCIP_L mode). The first mode is a mode in which the color difference block is predicted with reference to adjacent decoded pixels on both the upper side and the left side of the color difference block. The second mode is a mode in which the color difference block is predicted with reference to only adjacent decoded pixels on the upper side or the left side of the color difference block.
[0122] When the first mode is selected, the candidate generation unit 251 generates a first candidate consisting of one or more orthogonal transform types as a candidate for the orthogonal transform type. When the second mode is selected, the candidate generation unit 251 generates a second candidate different from the first candidate as a candidate for the orthogonal transform type. That is, the candidate generation unit 251 generates candidates of orthogonal transform types different from each other in the first mode (normal CCIP mode) and the second mode (CCIP_A mode or CCIP_L mode).
[0123] Here, the first candidate and the second candidate include: a horizontal candidate, which is applied to the horizontal transformation process and is composed of one or more orthogonal transformation type candidates; and a vertical candidate, which is applied to the vertical transformation process and is composed of one or more orthogonal transformation type candidates. In the first candidate, the horizontal candidate and the vertical candidate may be the same. On the other hand, in the second candidate, the horizontal candidate and the vertical candidate may be different from each other.
[0124] The type selection unit 252 selects an orthogonal transform type to be applied to the inverse orthogonal transform process (horizontal direction, vertical direction) from the candidates input by the candidate generation unit 251 according to the flag of the orthogonal transform type (horizontal direction, vertical direction) input from the entropy coding and decoding unit 200. Specifically, the flag of the orthogonal transform type input from the entropy coding and decoding unit 200 is a flag that specifies any one of the candidates generated by the candidate generation unit 251. The type selection unit 252 outputs a flag (flag) indicating the selected orthogonal transform type to the inverse transform unit 212.
[0125] <3. Operation example>
[0126] An operation example of the image encoding device 1 and the image decoding device 2 according to the present embodiment will be described below.
[0127] <3.1. Operation example of image encoding device>
[0128] Figure 6 1 is a diagram showing an operation example of the image encoding device 1 according to the present embodiment.
[0129] like Figure 6 As shown, in step S101, the intra prediction unit 171 selects an intra prediction mode for the color difference block. Here, it is assumed that any one of the normal CCIP mode, CCIP_A mode and CCIP_L mode is selected and described. The inter-component intra prediction unit 171a performs inter-component intra prediction according to the selected mode to generate a predicted color difference block. The subtraction unit 110 calculates the color difference prediction residual, which represents the error between the original color difference block and the predicted color difference block.
[0130] (Usually CCIP mode)
[0131] When the normal CCIP mode is selected (step S102: Yes), in step S103, the candidate generator 181 generates candidates composed of DCT-2, DCT-8, and DST-7 as horizontal candidates. The candidate generator 181 generates candidates composed of DCT-2, DCT-8, and DST-7 as vertical candidates.
[0132] In step S107 , the type selection unit 182 determines whether to apply DCT-2 to the vertical direction and the horizontal direction, or to selectively apply DCT-8 or DCT-7 to the vertical direction and the horizontal direction, respectively.
[0133] In step S108 , the transform unit 121 performs an orthogonal transform process (horizontal direction, vertical direction) on the chrominance prediction residual using the orthogonal transform type selected by the type selection unit 182 , and generates a transform coefficient.
[0134] In step S109 , the entropy coding unit 130 encodes the quantized transform coefficient and a flag indicating a normal CCIP mode.
[0135] In addition, in step S109, the entropy coding unit 130 encodes a flag indicating the selected orthogonal transform type. For example, the flag includes a first flag and a second flag. Specifically, when DCT-2 is applied to the horizontal direction and the vertical direction, the first flag is encoded as "1" and transmitted. When DCT-8 or DST-7 is selectively applied to the vertical direction and the horizontal direction, respectively, the first flag is encoded as "0" and transmitted, and then the second flag indicating that the orthogonal transform type in the horizontal direction is one of DCT-8 and DST-7 is encoded and output through a bit stream. Similarly, the second flag indicating that the orthogonal transform type in the vertical direction is one of DCT-8 and DST-7 is encoded and output through a bit stream.
[0136] (CCIP_L mode)
[0137] When the CCIP_L mode is selected (step S104: Yes), in step S105, the candidate generation unit 181 generates a candidate composed of only DST-7 as a horizontal candidate. In addition, the candidate generation unit 181 generates a candidate composed of DCT-8 and DST-7 as a vertical candidate. As described above, when the CCIP_L mode is applied to the color difference block, there is a tendency for the energy of the left area of the prediction residual to become smaller, and there is a tendency for the energy of the right area of the prediction residual to become larger. Therefore, the candidate generation unit 181 generates a candidate composed of only DST-7 as a horizontal candidate.
[0138] In step S107, the type selection unit 182 selects either DCT-8 or DST-7 for the vertical direction. Since DST-7 is the only candidate for the horizontal direction, the type selection unit 182 selects DST-7 for the horizontal direction.
[0139] In step S108 , the transform unit 121 performs an orthogonal transform process (horizontally and vertically) on the chrominance prediction residual using the orthogonal transform type selected by the type selection unit 182 , and generates a transform coefficient.
[0140] In step S109 , the entropy coding unit 130 encodes the quantized transform coefficient and a flag indicating the CCIP_L mode.
[0141] In addition, in step S109, the entropy coding unit 130 encodes the flag indicating the selected orthogonal transform type. However, since there is only one orthogonal transform candidate in the horizontal direction, the entropy coding unit 130 does not entropy code the flag indicating the orthogonal transform type applied to the horizontal direction, and entropy codes the flag indicating the orthogonal transform type applied to the vertical direction (the first flag and the second flag described above). Since entropy coding of the flag indicating the orthogonal transform type applied to the horizontal direction is not required, the flags to be transmitted to the image decoding device 2 can be reduced.
[0142] (CCIP_A mode)
[0143] When the CCIP_A mode is selected (step S104: No), in step S106, the candidate generation unit 181 generates a candidate composed of only DST-7 as a vertical candidate. In addition, the candidate generation unit 181 generates a candidate composed of DCT-8 and DST-7 as a horizontal candidate. As described above, when the CCIP_A mode is applied to the color difference block, there is a tendency for the energy of the upper area of the prediction residual to become smaller, and there is a tendency for the energy of the lower area of the prediction residual to become larger. Therefore, the candidate generation unit 181 generates a candidate composed of only DST-7 as a vertical candidate.
[0144] In step S107, the type selection unit 182 selects either DCT-8 or DST-7 for the horizontal direction. Since there is only DST-7 as a candidate for the vertical direction, the type selection unit 182 selects DST-7 for the horizontal direction.
[0145] In step S108 , the transform unit 121 performs an orthogonal transform process (horizontal direction, vertical direction) on the chrominance prediction residual using the orthogonal transform type selected by the type selection unit 182 , and generates a transform coefficient.
[0146] In step S109 , the entropy coding unit 130 encodes the quantized transform coefficient and a flag indicating the CCIP_A mode.
[0147] In addition, in step S109, the entropy coding unit 130 encodes the flag indicating the selected orthogonal transform type. However, since there is only one orthogonal transform candidate in the vertical direction, the entropy coding unit 130 does not entropy code the flag indicating the orthogonal transform type applied to the vertical direction, but entropy codes the flag indicating the orthogonal transform type applied to the horizontal direction (the first flag and the second flag described above). Since entropy coding of the flag indicating the orthogonal transform type applied to the vertical direction is not necessary, the flags to be transmitted to the image decoding device 2 can be reduced.
[0148] <3.2. Operation example of image decoding device>
[0149] Figure 7 1 is a diagram showing an operation example of the image decoding device 2 according to the present embodiment.
[0150] like Figure 7 As shown, in step S201, the entropy coding and decoding unit 200 decodes the coded data generated by the image coding device 1, and outputs the quantized transform coefficients to the inverse quantization and inverse transformation unit 210. In addition, the entropy coding and decoding unit 200 obtains the flag of the intra-frame prediction mode and the flag of the orthogonal transform type (horizontal direction, vertical direction). Here, it is assumed that the flag of the intra-frame prediction mode indicates any one of the normal CCIP mode, CCIP_A mode and CCIP_L mode and is described. The inter-component intra-frame prediction unit 241a performs inter-component intra-frame prediction according to the mode indicated by the flag to generate a predicted color difference block.
[0151] (Usually CCIP mode)
[0152] In the case of the normal CCIP mode (step S202: Yes), in step S203, the candidate generator 251 generates candidates composed of DCT-2, DCT-8, and DST-7 as horizontal candidates. The candidate generator 251 generates candidates composed of DCT-2, DCT-8, and DST-7 as vertical candidates.
[0153] In step S207, the type selection unit 252 selects the orthogonal transformation type (horizontal direction, vertical direction) applied to the inverse orthogonal transformation processing for the transformation coefficient from the candidates (horizontal direction, vertical direction) generated by the candidate generation unit 251 based on the flag of the orthogonal transformation type (horizontal direction, vertical direction) input from the entropy coding and decoding unit 200.
[0154] In step S208, the inverse transform unit 212 performs inverse orthogonal transform processing (horizontally and vertically) on the transform coefficients to restore the color difference prediction residual using the orthogonal transform type selected by the type selection unit 252. Thereafter, the synthesis unit 220 synthesizes the restored color difference prediction residual with the predicted color difference block generated by the inter-component intra-frame prediction unit 241a to restore (decode) the original color difference block.
[0155] (CCIP_L mode)
[0156] In the case of CCIP_L mode (step S204: Yes), in step S205, the candidate generator 251 generates a candidate composed of only DST-7 as a horizontal candidate. Also, the candidate generator 251 generates a candidate composed of DCT-8 and DST-7 as a vertical candidate.
[0157] In step S207, the type selection unit 252 selects either DCT-8 or DST-7 for the vertical direction based on the flag (vertical direction) of the orthogonal transform type input from the entropy coding and decoding unit 200. For the horizontal direction, since only DST-7 is a candidate, the type selection unit 252 selects DST-7 for the horizontal direction.
[0158] In step S208, the inverse transform unit 212 performs inverse orthogonal transform processing (horizontally and vertically) on the transform coefficients to restore the color difference prediction residual using the orthogonal transform type selected by the type selection unit 252. Thereafter, the synthesis unit 220 synthesizes the restored color difference prediction residual with the predicted color difference block generated by the inter-component intra prediction unit 241a, thereby restoring (decoding) the original color difference block.
[0159] (CCIP_A mode)
[0160] In the case of CCIP_A mode (step S204: No), in step S206, the candidate generator 251 generates a candidate composed of only DST-7 as a vertical candidate. Also, the candidate generator 251 generates a candidate composed of DCT-8 and DST-7 as a horizontal candidate.
[0161] In step S207, the type selection unit 252 selects either DCT-8 or DST-7 for the horizontal direction based on the flag (horizontal direction) of the orthogonal transform type input from the entropy coding and decoding unit 200. For the vertical direction, since only DST-7 is a candidate, the type selection unit 252 selects DST-7 for the horizontal direction.
[0162] In step S208, the inverse transform unit 212 performs inverse orthogonal transform processing (horizontally and vertically) on the transform coefficients to restore the color difference prediction residual using the orthogonal transform type selected by the type selection unit 252. Thereafter, the synthesis unit 220 synthesizes the restored color difference prediction residual with the predicted color difference block generated by the inter-component intra prediction unit 241a, thereby restoring (decoding) the original color difference block.
[0163] <4. Summary of implementation methods>
[0164] As described above, according to the image encoding device and the image decoding device 2 of the present embodiment, even when the position of the adjacent decoded pixel referenced in the inter-component intra-frame prediction is only any one of the upper, lower, left, and right of the color difference block (i.e., in the CCIP_A mode or the CCIP_L mode), it is possible to use an orthogonal transform type suitable for the energy distribution tendency of the prediction residual to perform transform processing (orthogonal transform processing and inverse orthogonal transform processing), thereby improving the encoding efficiency.
[0165] According to the image encoding device 1 and the image decoding device 2 of the present embodiment, by generating candidates of orthogonal transform types different from each other in a first mode (normal CCIP mode) and a second mode (CCIP_A mode or CCIP_L mode), it is possible to use an orthogonal transform type suitable for the energy distribution tendency of the prediction residual in the second mode to perform transform processing (orthogonal transform processing and inverse orthogonal transform processing), thereby improving the encoding efficiency.
[0166] According to the image encoding device 1 and the image decoding device 2 of the present embodiment, when the second mode is selected, candidates of orthogonal transform types that are different from each other are generated in the horizontal transform processing and the vertical transform processing, thereby being able to use orthogonal transform types that are respectively suitable for the energy distribution tendencies of the prediction residuals in the horizontal and vertical directions for transform processing, thereby improving the coding efficiency.
[0167] <5. Modification 1>
[0168] In the operation example of the above-mentioned embodiment, an example of generating DST-7 as an orthogonal transform candidate when only one candidate is generated as a candidate of the orthogonal transform type in the horizontal direction or the vertical direction is described. However, as long as it is an orthogonal transform that has an asymmetric impulse response like DST-7 and has a small coefficient at one end point and a large coefficient at the other end point, its type is not limited to DST-7. For example, DCT-5 having the same characteristics as DST-7 can be used instead of DST-7.
[0169] Alternatively, DCT-5 and DST-7 may be selectively applied. Figure 82 is a diagram showing an operation example of the image encoding device 1 according to the present modification. Fig. 9 2 is a diagram showing an operation example of the image decoding device 2 according to the present modification. Here, points different from the operation example according to the above-described embodiment will be described.
[0170] like Figure 8 As shown, in the case of CCIP_L (step S104: Yes), in step S105a, the candidate generation unit 181 generates candidates composed of DCT-5 and DST-7 as horizontal direction candidates. In addition, the candidate generation unit 181 generates candidates composed of DCT-8 and DST-7 as vertical direction candidates. In this case, in step S107, the type selection unit 182 selects either DCT-5 or DST-7 for the horizontal direction, and selects either DCT-8 or DST-7 for the vertical direction.
[0171] On the other hand, in the case of CCIP_A (step S104: No), in step S106a, the candidate generator 181 generates a candidate composed of DCT-5 and DST-7 as a vertical candidate. Also, the candidate generator 181 generates a candidate composed of DCT-8 and DST-7 as a horizontal candidate.
[0172] In step S107 , the type selection unit 182 selects either DCT-5 or DST-7 in the vertical direction, and selects either DCT-8 or DST-7 in the horizontal direction.
[0173] like Fig. 9 As shown, in the case of CCIP_L mode (step S204: Yes), in step S205a, the candidate generator 251 generates candidates composed of DCT-5 and DST-7 as horizontal candidates. Also, the candidate generator 251 generates candidates composed of DCT-8 and DST-7 as vertical candidates.
[0174] In step S207, the type selection unit 252 selects either DCT-5 or DST-7 for the horizontal direction based on the flag of the orthogonal transform type (horizontal direction) input from the entropy coding and decoding unit 200, and selects either DCT-8 or DST-7 for the vertical direction based on the flag of the orthogonal transform type (vertical direction) input from the entropy coding and decoding unit 200.
[0175] On the other hand, in the CCIP_A mode (step S204: No), in step S206a, the candidate generator 251 generates candidates composed of DCT-5 and DST-7 as vertical candidates. Also, the candidate generator 251 generates candidates composed of DCT-8 and DST-7 as horizontal candidates.
[0176] In step S207, the type selection unit 252 selects either DCT-5 or DST-7 for the vertical direction based on the flag of the orthogonal transform type (vertical direction) input from the entropy coding and decoding unit 200, and selects either DCT-8 or DST-7 for the horizontal direction based on the flag of the orthogonal transform type (horizontal direction) input from the entropy coding and decoding unit 200.
[0177] In addition, in this variation, an example of generating DST-7 and DCT-5 as orthogonal transform candidates is described, but as long as it is a transform of an asymmetric impulse response having the same characteristics as DST-7 and DCT-5, it is not limited to DST-7 and DCT-5.
[0178] <6. Modification 2>
[0179] In the above-described embodiment and modification 1, by making the number of orthogonal transform candidates in the case of applying CCIP_L mode and the case of applying CCIP_A mode smaller than the number of orthogonal transform candidates in the normal CCIP mode, the bit length of the flag transmitted from the image encoding device 1 to the image decoding device 2 can be reduced. However, the following configuration may also be adopted.
[0180] Specifically, in this modification, when CCIP_A mode is applied, the application of DCT-8 is prohibited in the vertical direction, so that the vertical direction candidates do not include DCT-8. In addition, when CCIP_L mode is applied, the application of DCT-8 is prohibited in the horizontal direction, so that the horizontal direction candidates do not include DCT-8. The orthogonal transform candidates other than this are the same as the orthogonal transform candidates of the normal CCIP mode.
[0181] then, Fig.10 : is a diagram showing an operation example of the image encoding device 1 according to this modification. Fig.11 This is a diagram showing an operation example of the image decoding device 2 according to the present modification, and describes the differences from the operation example of the above-mentioned embodiment.
[0182] like Fig.10As shown, when CCIP_L mode is applied, the candidate generator 181 generates candidates composed of DCT-2 and DST-7 as horizontal candidates, and generates candidates composed of DCT-2, DCT-8, and DST-7 as vertical candidates (step S105b).
[0183] In step S107 , the type selection unit 182 selects either DCT-2 or DST-7 in the horizontal direction, and selects either DCT-2, DCT-8, or DST-7 in the vertical direction.
[0184] On the other hand, when CCIP_A mode is applied, the candidate generator 181 generates candidates composed of DCT-2 and DST-7 as vertical candidates, and generates candidates composed of DCT-2, DCT-8, and DST-7 as horizontal candidates (step S106b).
[0185] In step S107 , the type selection unit 182 selects either DCT-2 or DST-7 in the vertical direction, and selects either DCT-2, DCT-8, or DST-7 in the horizontal direction.
[0186] like Fig.11 As shown, when CCIP_L mode is applied, the candidate generator 251 generates candidates composed of DCT-2 and DST-7 as horizontal candidates, and generates candidates composed of DCT-2, DCT-8, and DST-7 as vertical candidates (step S205b).
[0187] In step S207, the type selection unit 252 selects either DCT-2 or DST-7 for the horizontal direction based on the flag of the orthogonal transform type (horizontal direction) input from the entropy coding and decoding unit 200. Furthermore, the type selection unit 252 selects either DCT-2, DCT-8, or DST-7 for the vertical direction based on the flag of the orthogonal transform type (vertical direction) input from the entropy coding and decoding unit 200. When the CCIP_A mode is applied, the candidate generation unit 251 generates a candidate consisting of DCT-2 and DST-7 as a vertical direction candidate, and generates a candidate consisting of DCT-2, DCT-8, and DST-7 as a horizontal direction candidate.
[0188] In step S207, the type selection unit 252 selects either DCT-2 or DST-7 for the vertical direction based on the flag of the orthogonal transform type (vertical direction) input from the entropy coding and decoding unit 200, and selects either DCT-2, DCT-8 or DST-7 for the horizontal direction based on the flag of the orthogonal transform type (horizontal direction) input from the entropy coding and decoding unit 200.
[0189] <7. Other embodiments>
[0190] In the above-mentioned embodiment, the CCIP mode for predicting a chroma block using adjacent decoded pixels of luminance and chroma on the upper and left sides of the reference chroma block is described as an example of a normal CCIP mode, but this mode may be replaced by a mode for predicting the chroma block using adjacent decoded pixels of luminance and chroma on the lower and right sides of the reference chroma block.
[0191] In addition, in the above-mentioned embodiment, an example of the CCIP_A mode is described for predicting a chroma block using only the luminance on the upper side of the chroma block and the adjacent decoded pixels of the chroma. However, instead of this mode, a mode for predicting the chroma block using only the luminance on the lower side of the chroma block and the adjacent decoded pixels of the chroma can be used.
[0192] In addition, in the above-mentioned embodiment, an example of the CCIP_L mode for predicting a chroma block using only the luminance on the left side of the chroma block and the adjacent decoded pixels of the chroma is described, but instead of this mode, a mode for predicting the chroma block using only the luminance on the right side of the chroma block and the adjacent decoded pixels of the chroma can be used.
[0193] In the above-mentioned embodiment, the orthogonal transform candidates may include a transform skipping method in which a transform is not applied to the residual signal. The transform skipping method does not perform a transform such as DCT or DST, but performs scaling on the residual signal to obtain a transform coefficient.
[0194] In the above-mentioned embodiment, an example in which the components constituting the video signal are luminance and color difference components (YCbCr) has been described, but the components constituting the video signal may also be three primary color components (RGB).
[0195] In addition, a program for causing a computer to execute each process performed by the image encoding device 1 and a program for causing a computer to execute each process performed by the image decoding device 2 may also be provided. The program may be stored in a computer-readable medium. If a computer-readable medium is used, the program may be installed in a computer. Here, the computer-readable medium storing the program may be a non-temporary storage medium. The non-temporary storage medium may be, for example, a storage medium such as a CD-ROM, a DVD-ROM, etc., but there is no particular limitation. In addition, the circuits for executing each process performed by the image encoding device 1 may be integrated, and the image encoding device 1 may be configured as a semiconductor integrated circuit (chip set, SoC). Similarly, the circuits for executing each process performed by the image decoding device 2 may be integrated, and the image decoding device 2 may be configured as a semiconductor integrated circuit.
[0196] As mentioned above, although embodiment is demonstrated in detail with reference to drawings, the specific structure is not limited to the structure mentioned above, Various design changes etc. can be made within the range which does not deviate from the summary.
[0197] The present invention claims the priority of Japanese Patent Application No. 2018-152988 (filed on August 15, 2018), the entire contents of which are incorporated herein by reference.
Claims
1. Image coding device, It is characterized in that The image encoding device comprises: an inter-component intra prediction unit for generating a prediction block of the second component by inter-component intra prediction, wherein the inter-component intra prediction predicts a block of the second component by referring to decoded pixels of the first component and decoded pixels of the second component as adjacent decoded pixels adjacent to a block of the second component to be encoded; a candidate generating unit that generates a candidate of an orthogonal transform type to be applied to an orthogonal transform process for a prediction residual that represents an error of a prediction block of the second component relative to a block of the second component; and a transform unit that performs an orthogonal transform process on the prediction residual using an orthogonal transform type selected from the candidates generated by the candidate generating unit, The candidate generation unit generates the candidate having an orthogonal transform type with an asymmetric impulse response based on the position of the adjacent decoded pixel referenced in the inter-component intra prediction.
2. The image encoding device according to claim 1, It is characterized in that The first component is a luminance component, The second component is a color difference component.
3. The image encoding device according to claim 1 or 2, It is characterized in that The candidate generator generates a candidate for the orthogonal transform type according to whether the position of the adjacent decoded pixel referred to in the inter-component intra prediction is only one of the top, bottom, left, and right of the block of the second component.
4. The image encoding device according to claim 1 or 2, It is characterized in that The inter-component intra-frame prediction unit performs the inter-component intra-frame prediction using a mode selected from a plurality of modes including a first mode and a second mode, The first mode is a mode for predicting the block of the second component with reference to the adjacent decoded pixels both above and to the left of the block of the second component, The second mode is a mode in which the block of the second component is predicted with reference to only the adjacent decoded pixels on the upper side or the left side of the block of the second component. When the first mode is selected, the candidate generation unit generates a first candidate consisting of one or more orthogonal transform types as a candidate for the orthogonal transform type; When the second mode is selected, the candidate generation unit generates a second candidate different from the first candidate as a candidate of the orthogonal transform type.
5. The image encoding device according to claim 4, It is characterized in that The second candidates include: horizontal direction candidates, which are composed of candidates of one or more orthogonal transformation types applied to the horizontal direction orthogonal transformation process; and vertical direction candidates, which are composed of candidates of one or more orthogonal transformation types applied to the vertical direction orthogonal transformation process. The horizontal direction candidate and the vertical direction candidate are at least partially different from each other.
6. Image decoding device, It is characterized in that The image decoding device comprises: an inter-component intra-frame prediction unit, which generates a prediction block of the second component by inter-component intra-frame prediction, wherein the inter-component intra-frame prediction predicts a block of the second component with reference to decoded pixels of the first component and decoded pixels of the second component as adjacent decoded pixels adjacent to a block of the second component to be decoded; a candidate generating unit that generates a candidate of an orthogonal transform type to be applied to an inverse orthogonal transform process for a transform coefficient of a second component corresponding to a prediction residual indicating an error of a prediction block of the second component relative to a block of the second component; and an inverse transform unit that performs an inverse orthogonal transform process on the transform coefficients of the second component using an orthogonal transform type selected from the candidates generated by the candidate generating unit, The candidate generation unit generates the candidate having an orthogonal transform type with an asymmetric impulse response based on the position of the adjacent decoded pixel referred to in the inter-component intra prediction.
7. The image decoding device according to claim 6, It is characterized in that The first component is a luminance component, The second component is a color difference component.
8. The image decoding device according to claim 6 or 7, It is characterized in that The candidate generator generates a candidate for the orthogonal transform type according to whether the position of the adjacent decoded pixel referred to in the inter-component intra prediction is only one of the top, bottom, left, and right of the block of the second component.
9. The image decoding device according to claim 6 or 7, It is characterized in that The inter-component intra-frame prediction unit performs the inter-component intra-frame prediction using a mode selected from a plurality of modes including a first mode and a second mode, The first mode is a mode for predicting the block of the second component with reference to the adjacent decoded pixels both above and to the left of the block of the second component, The second mode is a mode in which the block of the second component is predicted with reference to only the adjacent decoded pixels on the upper side or the left side of the block of the second component. When the first mode is selected, the candidate generation unit generates a first candidate consisting of one or more orthogonal transform types as a candidate for the orthogonal transform type; When the second mode is selected, the candidate generation unit generates a second candidate different from the first candidate as a candidate of the orthogonal transform type.
10. The image decoding device according to claim 9, It is characterized in that The second candidates include: horizontal direction candidates, which are composed of candidates of one or more orthogonal transformation types applied to the inverse orthogonal transformation process in the horizontal direction; and vertical direction candidates, which are composed of candidates of one or more orthogonal transformation types applied to the inverse orthogonal transformation process in the vertical direction. The horizontal direction candidate and the vertical direction candidate are at least partially different from each other.
11. A computer-readable storage medium storing a program, It is characterized in that When the program is executed by a computer, the computer is caused to function as the image encoding device according to any one of claims 1 to 5.
12. A computer-readable storage medium storing a program, It is characterized in that When the program is executed by a computer, the computer is caused to function as the image decoding device according to any one of claims 6 to 10.
Citation Information
Patent Citations
Intra-predictor, image coding device, image decoding device, and program
JP2018078409A
Capacitor insulation type power supply device
JP2018152988A
Image encoding method and image decoding method
AU2015201843A1
Image encoder, image decoder and program
JP2014036278A
Encoder, decoder and program
JP2017212554A
