Image encoding device, image encoding method and program, image decoding device, image decoding method and program
The image encoding and decoding device addresses VVC's limitations by adaptively setting coefficient ranges, improving calculation accuracy and image quality while maintaining hardware costs, suitable for diverse bit depth applications.
Patent Information
- Application Number
- JP2020048201
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-03-18
- Publication Date
- 2024-08-20
- Estimated Expiration
- 2040-03-18
AI Technical Summary
VVC's limitations on coefficient values during encoding and decoding lead to reduced calculation accuracy and inadequate image quality, especially for high bit depth images, despite maintaining hardware implementation costs.
An image encoding and decoding device that adaptively determines the range of coefficient values through BDPCM processing, allowing flexible selection between fixed and bit depth-dependent ranges based on application requirements.
Enhances calculation accuracy and image quality while maintaining hardware costs, enabling efficient encoding and decoding processes for various bit depths.
Smart Images

Figure 0007536484000006 
Figure 0007536484000001 
Figure 0007536484000002
Abstract
Description
[Technical field]
[0001] The present invention relates to image coding. [Background technology]
[0002] The High Efficiency Video Coding (HEVC) coding method (hereinafter referred to as HEVC) is known as a coding method for compressing and recording moving images. In HEVC, a number of profiles are defined that define restrictions on coding techniques, and the Main 10 profile is compatible with images with a bit depth of 8 bits to 10 bits. In addition, in HEVC, profiles compatible with 12-bit and 16-bit images are defined in order to support images with even higher bit depths. Patent Document 1 discloses a coding technique compatible with an image coding method compatible with such high bit depths.
[0003] In recent years, activities have been started to internationally standardize a more efficient coding method as a successor to HEVC. JVET (Joint Video Experts Team) was established between ISO / IEC and ITU-T, and standardization is underway as the Versatile Video Coding (VVC) coding method (hereinafter referred to as VVC). In order to improve coding efficiency, in addition to the conventional orthogonal transform, a new technology is being considered for VVC that applies a secondary transform (LFNST, hereinafter referred to as low-frequency transform) to the low-frequency components of the coefficients after orthogonal transform (hereinafter referred to as orthogonal transform coefficients). [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2014-131172 A Summary of the Invention [Problem to be solved by the invention]
[0005] In VVC, the ease of implementation is improved by imposing restrictions on the values of the processing results in encoding processes such as orthogonal transformation and quantization. Specifically, the possible values of coefficients after quantization (hereinafter, referred to as quantization coefficients) are limited to -32768 to 32767, making it easier to implement the coding process of the coefficients and the inverse quantization process on the decoding side. As a result, it is believed that the hardware implementation cost of VVC will not increase significantly even when encoding images with high bit depth. On the other hand, the above-mentioned restrictions cause a problem that the accuracy of calculation decreases, especially for images with high bit depth, and image quality does not improve.
[0006] Therefore, the present invention has been made to solve the above-mentioned problems, and has an object to make it possible to adaptively determine the range of possible values of coefficient values in encoding or decoding processing. [Means for solving the problem]
[0007] In order to solve the above problems, an image coding device according to the present invention has, for example, the following configuration. Subblocks of A predicted image obtained by the prediction process for Sub-block a prediction means for generating a prediction error which is a difference between the prediction error and the first transform coefficient; a first transform means for performing an orthogonal transform process on the prediction error to generate a first transform coefficient; (Low frequency non separable transform) The image processing apparatus includes a second transforming means for performing a quantization process on the second transform coefficient to generate a second transform coefficient, a quantizing means for performing a quantization process on the second transform coefficient to generate a quantized coefficient, and an encoding means for encoding the quantized coefficient, and the encoding means is configured to encode at least a range of values that the second transform coefficient can take based on a bit depth determined by the bit depth. First A range or Independent of the bit depth Fixed Second Encode information indicating whether to include a range When the information indicates that the range of values that at least the second transform coefficient can take is the first range determined by the bit depth, the range of values obtained by BDPCM (Block-based Delta Pulse Code Modulation) processing is the first range determined by the bit depth, and when the information indicates that the range of values that at least the second transform coefficient can take is the fixed second range independent of the bit depth, the range of values obtained by BDPCM (Block-based Delta Pulse Code Modulation) processing is the second range. .
[0008] In order to solve the above problem, the image decoding device of the present invention has, for example, the following configuration. That is, the image decoding device is an image decoding device that decodes an image from a bit stream, and includes a decoding means that decodes quantized coefficients from the bit stream, an inverse quantization means that performs an inverse quantization process on the quantized coefficients to derive first transform coefficients, and an inverse LFNST means that performs an inverse quantization process on the first transform coefficients. (Low frequency non-separable transform) The decoding means includes a first transform means for performing an inverse orthogonal transform process to derive a second transform coefficient, and a second transform means for performing an inverse orthogonal transform process on the second transform coefficient to derive a prediction error, and the decoding means determines a range of values that at least the first transform coefficient can take based on a bit depth. First A range or Independent of the bit depth Fixed Second Decode information indicating whether the bitstream is within the range from the bitstream. When the information indicates that the range of values that at least the first transform coefficient can take is the first range determined by the bit depth, the range of values obtained by BDPCM (Block-based Delta Pulse Code Modulation) processing is the first range determined by the bit depth, and when the information indicates that the range of values that at least the first transform coefficient can take is the fixed second range independent of the bit depth, the range of values obtained by BDPCM (Block-based Delta Pulse Code Modulation) processing is the second range. . Effect of the Invention
[0011] According to the present invention, it is possible to adaptively determine the range of possible values of coefficient values in encoding or decoding processing. [Brief description of the drawings]
[0012] [Figure 1] FIG. 1 is a block diagram illustrating the configuration of an image encoding device. [Diagram 2] FIG. 2 is a block diagram illustrating the configuration of an image decoding device. [Diagram 3] 4 is a flowchart showing an image encoding process in the image encoding device. [Figure 4] 13 is a flowchart showing an image decoding process in the image decoding device. [Diagram 5] FIG. 2 is a diagram illustrating a computer hardware configuration. [Figure 6] 1 is a diagram showing an example of a bitstream structure generated by an encoding device and decoded by a decoding device. [Figure 7] FIG. 13 is a diagram illustrating an example of sub-block division. [Figure 8] 11 is a diagram showing coefficient range information, the relationship between the bit depth of an image and the range of coefficients that can be taken. FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] Hereinafter, the embodiments will be described in detail with reference to the accompanying drawings. Note that the configurations shown in the following embodiments are merely examples and are not limited to the configurations shown in the drawings.
[0014] (Embodiment 1) Although the embodiments include multiple features, not all of these multiple features are essential to the invention, and multiple features may be combined in any manner. Furthermore, in the accompanying drawings, the same reference numerals are used to designate the same or similar components, and redundant explanations will be omitted.
[0015] 1 is a block diagram of an image coding device 100 according to this embodiment. The image coding device 100 has a control unit 150 which controls the entire device. The control unit 150 has a CPU, a ROM which stores programs executed by the CPU, and a RAM which is used as a work area for the CPU. The image coding device 100 also has an input terminal 101, a block division unit 102, a coefficient range information generation unit 103, a prediction unit 104, a transformation and quantization unit 105, an inverse quantization and inverse transformation unit 106, an image reproduction unit 107, a frame memory 108, an in-loop filter unit 109, a coding unit 110, an integrated coding unit 111, and an output terminal 112.
[0016] An input terminal 101 inputs image data to be coded on a frame-by-frame basis. The image data is acquired from an imaging device that captures an image, or a file server or storage medium that stores image data to be coded, and the type of image data is not important. An output terminal 112 outputs the coded data to a destination device, and the destination device may be a storage medium, a file server, or the like, and the type of image data is not important.
[0017] The block division unit 102 divides an input frame (picture) image into a plurality of basic blocks, and sequentially outputs each of the blocks as a basic block to the downstream prediction unit 104. As an example, the basic block may be a block of 128×128 pixels, or a block of 64×64 pixels or 32×32 pixels. An even smaller block may also be used as the basic block. The basic block may be, for example, a coding tree unit or a coding unit. A basic block may be any unit that can be further divided into sub-blocks.
[0018] The coefficient range information generation unit 103 generates coefficient range information that indicates the range of possible values of coefficient values that are the result of each encoding process described below, and outputs the coefficient range information to the downstream transform / quantization unit 105, inverse quantization / inverse transform unit 106, and integrated encoding unit 111.
[0019] The prediction unit 104 determines subblock division for image data in units of basic blocks. At this time, the prediction unit 104 determines whether or not to divide the basic block into subblocks, and if so, how to divide it. If not divided into subblocks, the subblocks will have the same size as the basic block. The subblocks may be square or may be rectangular other than a square.
[0020] Then, the prediction unit 104 performs intra-frame prediction or inter-frame prediction on a sub-block basis, generating predicted image data on a sub-block basis. At this time, the prediction unit 104 selects a prediction method to be performed on a certain sub-block from intra-prediction, inter-prediction, or a combination of intra-prediction and inter-prediction, performs the selected prediction, and generates predicted image data for the sub-block.
[0021] Furthermore, the prediction unit 104 calculates and outputs a prediction error in pixel units for each subblock from the input image data and predicted image data. For example, the prediction unit 104 calculates the difference between each pixel value of the image data of the subblock and each pixel value of the predicted image data generated by predicting the subblock, and calculates it as a prediction error.
[0022] The prediction unit 104 also outputs information necessary for prediction, such as information indicating subblock division (a division state of a basic block into subblocks) (information indicating how a basic block is divided into subblocks) together with the prediction error. The prediction unit 104 also outputs information such as a prediction mode and a motion vector used in predicting the subblock together with the prediction error. Hereinafter, the information necessary for prediction is referred to as prediction information.
[0023] The transform / quantization unit 105 performs orthogonal transform on the prediction error input from the prediction unit 104 in units of subblocks to obtain orthogonal transform coefficients representing each frequency component of the prediction error. The transform / quantization unit 105 also determines whether or not to perform low-frequency transform on the low-frequency parts of the orthogonal transform coefficients, and generates the information as low-frequency transform information. That is, the low-frequency transform information is information indicating whether or not to perform low-frequency transform on the low-frequency parts of the orthogonal transform coefficients. When performing low-frequency transform on the subblock, the transform / quantization unit 105 performs low-frequency transform processing on the low-frequency components of the obtained orthogonal transform coefficients to obtain low-frequency transform coefficients, and further quantizes the low-frequency transform coefficients to obtain residual coefficients (quantized orthogonal transform coefficients). On the other hand, when not performing low-frequency transform on the subblock, the transform / quantization unit 105 quantizes the orthogonal transform coefficients to obtain residual coefficients. The low-frequency transform refers to a low-frequency non-separable transform (LFNST) process, which is a process of transforming orthogonal transform coefficients to regenerate (derive) low-frequency transform coefficients.
[0024] The inverse quantization and inverse transform unit 106 receives the residual coefficients and low-frequency transform information from the transform and quantization unit 105, and inversely quantizes the residual coefficients to reproduce the transform coefficients. At this time, the inverse quantization and inverse transform unit 106 reproduces the transform coefficients for the residual coefficients received from the transform and quantization unit 105, using a quantization matrix and a quantization parameter. The process of reproducing (deriving) the transform coefficients from the residual coefficients using the quantization matrix and the quantization parameter is referred to as inverse quantization. Note that the quantization matrix does not necessarily have to be used in the inverse quantization process. In particular, if the quantization matrix is not used in the quantization process of the transform and quantization unit 105, the quantization matrix is not used in the inverse quantization process of the inverse quantization and inverse transform unit 106. Furthermore, whether or not to apply the quantization matrix may be determined depending on whether or not the low-frequency transform has been performed on the subblock. For example, if a low-frequency transform has been performed on the subblock, the dequantization is performed without using a quantization matrix, and if not, the dequantization is performed using a quantization matrix.
[0025] Furthermore, the inverse quantization and inverse transform unit 106 determines whether or not the sub-block has been subjected to low-frequency transform based on the input low-frequency transform information. If the sub-block has been subjected to low-frequency transform, the inverse quantization and inverse transform unit 106 performs inverse low-frequency transform processing on transform coefficients (low-frequency transform coefficients) obtained by inverse quantizing the residual coefficients to reproduce orthogonal transform coefficients, and further performs inverse orthogonal transform on the orthogonal transform coefficients to reproduce prediction errors. On the other hand, if the sub-block has not been subjected to low-frequency transform, the inverse quantization and inverse transform unit 106 performs inverse orthogonal transform on transform coefficients (orthogonal transform coefficients) obtained by inverse quantizing the residual coefficients to reproduce prediction errors. Note that the inverse low-frequency transform processing refers to an inverse LFNST process, which is a process of transforming low-frequency transform coefficients to reproduce (derive) orthogonal transform coefficients.
[0026] The image reproduction unit 107 generates predicted image data by appropriately referring to the frame memory 108 based on the prediction information output from the prediction unit 104. The image reproduction unit 107 generates reconstructed image data (reconstructed picture) by adding the prediction error input from the inverse quantization and inverse transform unit 106 to this predicted image data, and stores the reconstructed image data in the frame memory 108.
[0027] The in-loop filter 109 performs in-loop filtering such as deblocking filtering and sample adaptive offset on the reconstructed image stored in the frame memory 108, and stores the image data after the filtering processing in the frame memory 108 again.
[0028] The encoding unit 110 encodes the residual coefficients and low-frequency transform information output from the transform / quantization unit 105 and the prediction information output from the prediction unit 104 to generate coded data, and outputs the coded data to the integrated encoding unit 111.
[0029] The integrated coding unit 111 codes the coefficient range information from the coefficient range information generation unit 103 to generate a coefficient range information code. Then, it generates header code data including the coefficient range information code. Then, the integrated coding unit 111 appends the code data output from the coding unit 110 to the header code data to form a bit stream. Then, the integrated coding unit 111 outputs the formed bit stream via an output terminal 112.
[0030] Here, the image encoding operation in the image encoding device will be described in more detail below. In this embodiment, 16-bit moving image data is input from the input terminal 101 in frame units, but still image data for one frame may be input. For the sake of explanation, this embodiment will be described assuming that the block division unit 101 divides the image data input from the input terminal into basic blocks of 8×8 pixels. The basic block here is, for example, a coding tree unit. As an example, a coding tree unit with a size of 8×8 pixels will be described, but other sizes may also be used. For example, the size may be any of 32×32 pixels to 128×128 pixels.
[0031] Prior to encoding an image, the range of possible values of coefficients in the encoding process of this embodiment is determined.
[0032] The coefficient range information generating unit 103 generates coefficient range information indicating whether the range of values that the coefficients can take in the encoding process is variable depending on the bit depth of the input image, or whether the range is fixed regardless of the bit depth. Hereinafter, the former, in which the range of values that the coefficients can take in the encoding process is variable depending on the bit depth of the image, is referred to as a high-precision coefficient range, and the latter, in which the range is fixed regardless of the bit depth of the image, is referred to as a fixed coefficient range. In this embodiment, when the former high-precision coefficient range is selected, the coefficient range information is 1, and when the latter fixed coefficient range is selected, the coefficient range information is 0. However, the combination of the selected coefficient range and the coefficient range information is not limited to these. In addition, the method of determining the coefficient range information is not particularly limited, and may be determined prior to the encoding process assuming an application to be used by this encoding device and a corresponding decoding device, or may be selected by a user. For example, when it is assumed that the image encoding device 100 of this embodiment is used in an application that places the highest priority on image quality and emphasizes calculation accuracy, the coefficient range information is set to 1, and otherwise it is set to 0. The generated coefficient range information is output to the integrated coding unit 111, the transform / quantization unit 105, and the inverse quantization / inverse transform unit .
[0033] The integrated coding unit 111 generates a coefficient range information code by coding the coefficient range information input from the coefficient range information generating unit 103, and integrates the generated code with header information required for coding image data.
[0034] Next, the image data is coded. One frame of image data input from an input terminal 101 is supplied to a block division unit .
[0035] The block division unit 102 divides the input image data of one frame into a plurality of basic blocks, and outputs the image data in units of basic blocks to the prediction unit 104. In this embodiment, image data in units of basic blocks of 8×8 pixels is supplied to the prediction unit 104.
[0036] The prediction unit 104 performs prediction processing on the image data in units of basic blocks input from the block division unit 102. Specifically, the prediction unit 104 determines subblock division for dividing the basic block into smaller subblocks, and further determines a prediction mode such as intra prediction or inter prediction for each subblock. Intra prediction generates predicted pixels for the block to be coded using coded pixels located spatially around the block to be coded, and also generates an intra prediction mode indicating an intra prediction method such as horizontal prediction, vertical prediction, or DC prediction. Inter prediction generates predicted pixels for the block to be coded using coded pixels of a frame temporally different from the block to be coded, and also generates motion information indicating a reference frame, a motion vector, and the like.
[0037] The subblock division method will be described with reference to FIG. 7. The bold frames of blocks 700 to 705 in FIG. 7(a) to (f) are the same size as the basic block, 8×8 pixels. Each square in the bold frame represents a subblock. FIG. 7(b) shows an example of conventional square subblock division, in which a basic block 701 of 8×8 pixels is divided into four subblocks of 4×4 pixels. Meanwhile, FIG. 7(c) to (f) show an example of rectangular subblock division. FIG. 7(c) shows that a basic block 702 is divided into two subblocks (longitudinally) of 4×8 pixels. FIG. 7(d) shows that a basic block 703 is divided into two subblocks (longitudinally) of 8×4 pixels. In FIG. 7(e) and (f), basic blocks 704 and 705 are divided into three rectangular subblocks at a ratio of 1:2:1, although the division method is different. In this way, not only square but also rectangular subblocks are used for coding processing.
[0038] In this embodiment, only the basic block of 8×8 pixels is used, which is not divided into sub-blocks, as shown in Fig. 7(a), but the sub-block division method is not limited to this. Quad-tree division as shown in Fig. 7(b), ternary tree division as shown in Fig. 7(e) and (f), or binary tree division as shown in Fig. 7(c) and Fig. 7(d) may also be used.
[0039] The prediction unit 104 generates predicted image data from the determined prediction mode and the encoded area stored in the frame memory 108, calculates a prediction error in pixel units from the input image data and the predicted image data, and outputs the error to the transformation and quantization unit 105. The prediction unit 104 also outputs information such as sub-block division and prediction mode as prediction information to the encoding unit 110 and image reproduction unit 107.
[0040] The transform / quantization unit 105 first inputs the coefficient range information from the coefficient range generation unit 103 and determines the range of values that the coefficients can take in the transform process and the quantization process. In this embodiment, the transform / quantization unit 105 determines the range of values that the coefficients can take as the results of each operation, such as one-dimensional orthogonal transform in each horizontal and vertical direction, secondary transform in which further transform is performed on the coefficients after the orthogonal transform, and quantization, based on the table shown in FIG. 8. However, the combination of the coefficient range information and the range of values that the coefficients can take as the results of each operation is not limited to these. In this embodiment, since the bit depth of the input image is 16, the range of values is -32768 to 32767 or -8388608 to 8388607 according to the coefficient range information. There is no particular limitation on the process when each operation result falls outside the above range, but the result can be placed within the above range by clipping or bit shifting.
[0041] Next, the transform / quantization unit 105 performs orthogonal transform / quantization on the prediction error input from the prediction unit 104 based on the above-mentioned coefficient range, and generates residual coefficients. Specifically, the transform / quantization unit 105 first performs orthogonal transform processing corresponding to the size of the subblock on the prediction error to generate orthogonal transform coefficients. Next, the transform / quantization unit 105 determines whether or not to perform low-frequency transform on the low-frequency part of the orthogonal transform coefficients, generates the information as low-frequency transform information, and outputs it to the inverse quantization / inverse transform unit 106 and the encoding unit 110. There are no particular limitations on the method of determining the low-frequency transform information, but low-frequency transform can be further performed when the orthogonal transform coefficients are concentrated in low-frequency components and further improvement in compression efficiency can be expected by performing low-frequency transform. If it is decided to perform low-frequency transform, the transform / quantization unit 105 performs low-frequency transform on the low-frequency parts of the orthogonal transform coefficients to generate low-frequency transform coefficients, while treating the high-frequency components that have not been subjected to low-frequency transform as being 0 regardless of the values of the orthogonal transform coefficients. Then, if the transform / quantization unit 105 has performed low-frequency transform, it quantizes the low-frequency transform coefficients to generate residual coefficients. On the other hand, if the transform / quantization unit 105 has not performed low-frequency transform, it quantizes the orthogonal transform coefficients to generate residual coefficients.
[0042] Similarly to the transform / quantization unit 105, the inverse quantization / inverse transform unit 106 first inputs coefficient range information from the coefficient range generation unit 103 and determines the range of values that the coefficients can take in the inverse quantization process and the inverse transform process. In this embodiment, similar to the transform / quantization unit 105, the inverse quantization / inverse transform unit 106 determines the range of values that the coefficients can take as the results of each operation, such as the inverse quantization process, the inverse low frequency transform process for the low frequency components, and the one-dimensional inverse orthogonal transform process in the vertical and horizontal directions, based on the table shown in Fig. 8. In this embodiment, similar to the transform / quantization unit 105, since the bit depth of the input image is 16, the range is -32768 to 32767 or -8388608 to 8388607 according to the coefficient range information.
[0043] Next, the inverse quantization and inverse transform unit 106 reproduces the transform coefficients by inverse quantizing the residual coefficients input from the transform and quantization unit 105 based on the above-mentioned coefficient range. The inverse quantization and inverse transform unit 106 also determines whether or not the sub-block has been subjected to low-frequency transform based on the low-frequency transform information input from the transform and quantization unit 105. If the sub-block has been subjected to low-frequency transform, the inverse quantization and inverse transform unit 106 performs inverse low-frequency transform processing on the transform coefficients to reproduce the orthogonal transform coefficients, and further performs inverse orthogonal transform on the orthogonal transform coefficients to reproduce the prediction error. On the other hand, if the sub-block has not been subjected to low-frequency transform, the inverse quantization and inverse transform unit 106 performs inverse orthogonal transform on the transform coefficients to reproduce the prediction error. The prediction error thus reproduced is output to the image reproduction unit 107.
[0044] y=Clip3(CoeffMin,CoeffMax,((ΣlowFreqTransMatrix[j]×x)+64)>>7) …(1) (Here, Clip3(a,b,c) indicates the process of clipping the value c at the minimum value a and the maximum value b, and ">>" indicates a bit shift to the right.) The above formula (1) is one of the calculation formulas used in the inverse low-frequency transform process in the inverse quantization and inverse transform unit 106 of this embodiment. Here, CoeffMin in formula (1) corresponds to the minimum coefficient value in FIG. 8, and CoeffMax in formula (1) corresponds to the maximum coefficient value in FIG. 8. In this embodiment, since the bit depth of the input image is 16 bits, the values of CoeffMin and CoeffMax in formula (1) are determined based on the coefficient range information. When the coefficient range information is 0, that is, when a fixed coefficient range is selected, CoeffMin is −32768 and CoeffMax is 32767, and the output value can be expressed in signed 16 bits. In this case, 16-bit addition and multiplication instructions can be used in the subsequent encoding process, which has the advantage that the implementation cost is not high. On the other hand, when the coefficient range information is 1, that is, when a high-precision coefficient range is selected, CoeffMin is −8388608 and CoeffMax is 8388607. In this case, since the output value cannot be expressed in signed 16 bits, the implementation cost for the subsequent encoding process will be high, but it will be possible to realize encoding process with high calculation accuracy suitable for high bit depth such as 16 bits. As a result, it has the effect of improving compression efficiency and image quality when the bit stream of the encoding result is decoded.
[0045] The image reproduction unit 107 appropriately refers to the frame memory 108 and reproduces a predicted image based on the prediction information input from the prediction unit 104. The image reproduction unit 107 then generates reproduced image data based on the reproduced predicted image and the prediction error reproduced by the inverse quantization and inverse transform unit 106, and stores the reproduced image data in the frame memory 108.
[0046] The in-loop filter unit 109 reads out the reproduced image data from the frame memory 108, and performs in-loop filtering such as deblocking filtering. Then, the in-loop filter unit 109 stores the filtered image data back in the frame memory 108.
[0047] The coding unit 110 performs entropy coding on the residual coefficients and low-frequency transform information for each subblock generated by the transform / quantization unit 105, and the prediction information input from the prediction unit 104, to generate coded data. There is no particular specification as to the entropy coding method, but Golomb coding, arithmetic coding, Huffman coding, etc. can be used. The coding unit 110 outputs the generated coded data to the integrated coding unit 111.
[0048] The integrated coding unit 111 multiplexes the coded data of the header described above and the coded data input from the coding unit 110 to form a bit stream. Then, the integrated coding unit 111 outputs the formed bit stream from an output terminal 112 to the outside (such as a storage medium or a network).
[0049] Fig. 6(a) shows an example of the data structure of a bit stream output in this embodiment. The sequence header includes a coefficient range information code. However, the position where the code is coded is not limited to this, and it is of course possible to code the code in a picture header part as shown in Fig. 6(b) or in a header part spanning multiple pictures.
[0050] FIG. 3 is a flowchart showing the encoding process for one frame performed by the control unit 150 in the image encoding device 100 according to the embodiment.
[0051] First, prior to encoding of an image, in S301, the control unit 150 controls the coefficient range information generating unit 103 to generate coefficient range information.
[0052] In S302, the control unit 150 controls the integrated coding unit 111 to code the coefficient range information generated in S301 and generate a coefficient range information code.
[0053] In S303, the control unit 150 controls the integration encoding unit 111 to encode and output header information necessary for encoding image data together with the generated coefficient range information code.
[0054] In S304, the control unit 150 controls the block dividing unit 102 to divide the input image in units of frames into units of basic blocks.
[0055] In S305, the control unit 150 controls the prediction unit 104 to execute a prediction process on the basic block unit image data generated in S304, and generate prediction information such as sub-block division information and a prediction mode, and predicted image data. Furthermore, the control unit 150 controls the prediction unit 104 to calculate a prediction error from the input image data and predicted image data.
[0056] In S306, the control unit 150 controls the transform / quantization unit 105 to determine the coefficient range in the encoding process of this step based on the coefficient range information generated in S301. For example, when the coefficient range information is 1, the control unit 150 determines the coefficient range in the encoding process of this step as a high-precision coefficient range, and when the coefficient range information is 0, the control unit 150 determines the coefficient range in the encoding process of this step as a fixed coefficient range. Next, the control unit 150 controls the transform / quantization unit 105 to perform an orthogonal transform on the prediction error calculated in S305 to generate an orthogonal transform coefficient. Then, the control unit 150 controls the transform / quantization unit 105 to determine whether or not to perform a low-frequency transform on the orthogonal transform coefficient generated in the subblock, and to generate the information as low-frequency transform information. When it is determined to perform a low-frequency transform, the control unit 150 controls the transform / quantization unit 105 to perform a low-frequency transform on the low-frequency components of the orthogonal transform coefficients, and then quantizes them to generate a residual coefficient. On the other hand, when it is determined not to perform low-frequency transform, the control unit 150 controls the transform / quantization unit 105 to quantize the orthogonal transform coefficients and generate residual coefficients.
[0057] In S307, the control unit 150 controls the inverse quantization and inverse transform unit 106 to determine the coefficient range in the encoding process of this step based on the coefficient range information generated in S301. For example, when the coefficient range information is 1, the control unit 150 determines the coefficient range in the encoding process of this step as a high-precision coefficient range, and when the coefficient range information is 0, the control unit 150 determines the coefficient range in the encoding process of this step as a fixed coefficient range. Next, the control unit 150 controls the inverse quantization and inverse transform unit 106 to perform inverse quantization on the residual coefficients generated in S306, thereby reproducing the transform coefficients. Next, the control unit 150 controls the inverse quantization and inverse transform unit 106 to determine whether or not low-frequency transform has been performed on the sub-block based on the low-frequency transform information generated in S306. If the sub-block has been subjected to low-frequency transform, the control unit 150 controls the inverse quantization and inverse transform unit 106 to perform inverse low-frequency transform processing on the transform coefficients to reproduce the orthogonal transform coefficients, and further to perform inverse orthogonal transform on the orthogonal transform coefficients to reproduce the prediction error. On the other hand, if the sub-block has not been subjected to low-frequency transform, the control unit 150 controls the inverse quantization and inverse transform unit 106 to perform inverse orthogonal transform on the transform coefficients to reproduce the prediction error.
[0058] In S308, the control unit 150 controls the image reproduction unit 107 to reproduce a predicted image based on the prediction information generated in S305, reproduce image data from the reproduced predicted image and the prediction error generated in S307, and store the image data in the frame memory 108.
[0059] In S309, the control unit 150 controls the encoding unit 110 to encode the prediction information generated in S305 and the residual coefficients and low-frequency transform information generated in S306, and generate encoded data. The encoding unit 110 outputs the generated encoded data to the integrated encoding unit 111. The integrated encoding unit 111 positions the encoded data from the encoding unit 110 so that it follows the previously generated header, and outputs it.
[0060] In S310, the control unit 150 determines whether or not the coding of all basic blocks in the frame of interest has been completed. If the control unit 150 determines that the coding has been completed, the process proceeds to S311, and if the control unit 150 determines that there are basic blocks remaining that have not been coded, the process returns to S304 and coding continues for the next basic block.
[0061] In S311, the control unit 150 controls the in-loop filter unit 109 to perform in-loop filter processing on the image data reproduced in S308, generate a filtered image, and then terminate the processing.
[0062] With the above configuration and operation, particularly in S302, by encoding the coefficient range information, it is possible to generate a bitstream that allows switching between encoding processes with different calculation accuracy and implementation costs according to the required specifications of the application.
[0063] In this embodiment, the coefficient range has been described as a range of values that the coefficient resulting from the transform process or quantization process can take, but it may be used as a range of values that the coefficient resulting from other encoding processes can take. For example, in VVC, a technology called BDPCM (Block-based Delta Pulse Code Modulation) is adopted mainly to improve compression efficiency during lossless encoding. BDPCM is a method in which, instead of encoding residual coefficients obtained by performing transform and quantization on prediction errors, a quantized coefficient is generated by performing only quantization without performing transform on the prediction errors, and the difference value between the quantized coefficient and the adjacent quantized coefficient to the left or above is encoded. Here, the coefficient range may be applied to this difference value. As a result, whether the range of values that the coefficient to be encoded can take is a fixed coefficient range or a high-precision coefficient range is determined regardless of whether BDPCM is applied, so that by implementing an encoding unit that supports only one of the ranges, it is possible to reduce implementation costs.
[0064] In addition, in this embodiment, for example, when the bit depth of the input image is 8 bits, it is also possible to omit the coefficient range information code. This is because the minimum coefficient value and the maximum coefficient value are equal regardless of the coefficient range information, and this makes it possible to reduce redundant codes. The bit depth of the input image for which the coding of the coefficient range information can be omitted is not limited to 8 bits, and in other embodiments, it is possible to omit the coding of the coefficient range information when the minimum coefficient value and the maximum coefficient value are equal regardless of the coefficient range information.
[0065] 2 is a block diagram of an image decoding device 200 according to an embodiment, which decodes encoded image data generated by the image encoding device 100. The configuration and operation related to the decoding process will be described below with reference to the diagram.
[0066] The image decoding device 200 has a control unit 250 which controls the entire device. The control unit 250 has a CPU, a ROM which stores programs executed by the CPU, and a RAM which is used as a work area for the CPU. The image decoding device 200 also has an input terminal 201, a separation decoding unit 202, a decoding unit 203, an inverse quantization and inverse transform unit 204, an image reproduction unit 205, a frame memory 206, an in-loop filter unit 207, an output terminal 208, and a coefficient range information decoding unit 209.
[0067] An input terminal 201 is used to input an encoded bit stream. The input source may be, for example, a storage medium that stores an encoded stream, but may also be input from a network, and the type of input source is not important.
[0068] The separation decoding unit 202 separates the bit stream into information related to the decoding process and coded data related to the coefficients, and decodes the coded data present in the header part of the bit stream. The separation decoding unit 202 of this embodiment separates the coefficient range information code and outputs it to a coefficient range information decoding unit 209. The separation decoding unit 202 also outputs the coded data of the image to a decoding unit 203.
[0069] The coefficient range information decoding unit 209 reproduces the coefficient range information by decoding the coefficient range information code supplied from the separation decoding unit 202, and outputs the reproduced coefficient range information to the inverse quantization and inverse transform unit 204 at the subsequent stage.
[0070] The decoding unit 203 decodes the coded image data output from the separate decoding unit 202, and reproduces the residual coefficients, the low-frequency transform information, and the prediction information.
[0071] The inverse quantization and inverse transform unit 204 performs inverse quantization on the residual coefficients, similarly to the inverse quantization and inverse transform unit 106 in FIG. 1, to reproduce the transform coefficients, which are the coefficients after inverse quantization. The inverse quantization and inverse transform unit 204 also uses the low-frequency transform information to determine whether or not the sub-block has been subjected to low-frequency transform. If the sub-block has been subjected to low-frequency transform, the inverse quantization and inverse transform unit 204 performs inverse low-frequency transform processing on the low-frequency transform coefficients to reproduce the orthogonal transform coefficients. The inverse quantization and inverse transform unit 204 further performs inverse orthogonal transform on the orthogonal transform coefficients or transform coefficients to reproduce the prediction error. On the other hand, if the sub-block has not been subjected to low-frequency transform, the inverse quantization and inverse transform unit 204 performs inverse orthogonal transform on the orthogonal transform coefficients to reproduce the prediction error.
[0072] The image reproduction unit 205 generates predicted image data based on the input prediction information by appropriately referring to the frame memory 206. The image reproduction unit 205 then generates reproduced image data from this predicted image data and the prediction error reproduced by the inverse quantization and inverse transform unit 204, and stores the reproduced image data in the frame memory 206.
[0073] Similar to in-loop filter unit 109 in FIG. 1, in-loop filter unit 207 performs in-loop filter processing such as deblocking filtering on the reproduced image data stored in frame memory 206 , and stores the processed image data back in frame memory 206 .
[0074] The output terminal 208 sequentially outputs the frame images stored in the frame memory 206 to the outside. The output destination is generally a display device, but may be other devices.
[0075] The operation of the image decoding device 200 according to the above embodiment will now be described in more detail. In this embodiment, the encoded bit stream is input in units of frames.
[0076] 2, a bit stream for one frame input from an input terminal 201 is supplied to a separation decoding unit 202. The separation decoding unit 202 separates the bit stream into information related to decoding processing and coded data related to coefficients, and decodes the coded data present in the header part of the bit stream. The separation decoding unit 202 then supplies the coefficient range information code contained in the header part to a coefficient range information decoding unit 209, and supplies coded data of image data to a decoding unit 203. Specifically, the separation decoding unit 202 first extracts the coefficient range information code from the sequence header of the bit stream shown in FIG. 6(a), and outputs it to the coefficient range information decoding unit 209. Next, it extracts coded data for each basic block of picture data, and outputs it to the decoding unit 203.
[0077] The coefficient range information decoding unit 209 decodes the coefficient range information code input from the separation decoding unit 202 to obtain coefficient range information. As with the encoding side, when the coefficient range information is 1, a high precision coefficient range is used, and when the coefficient range information is 0, a fixed coefficient range is used. The coefficient range information is output to the inverse quantization and inverse transform unit 204. In this embodiment, since a 16-bit image is input on the encoding side and a 16-bit image is output on the decoding side, when the coefficient range information is 0, the range is -32768 to 32767, and when the coefficient range information is 1, the range is -8388608 to 8388607.
[0078] The decoding unit 203 decodes the coded data supplied from the separation decoding unit 202, reproduces the prediction information, and further reproduces the residual coefficients and low-frequency transform information. First, the decoding unit 203 reproduces the prediction information and obtains the prediction mode used in the sub-block. The decoding unit 203 outputs the reproduced residual coefficients and low-frequency transform information to the inverse quantization and inverse transform unit 204, and outputs the reproduced prediction information to the image reproduction unit 205.
[0079] The inverse quantization and inverse transform unit 204 performs inverse quantization on the input residual coefficients based on the above-mentioned coefficient range to generate transform coefficients. Then, the inverse quantization and inverse transform unit 204 determines whether or not low-frequency transform has been performed on the sub-block based on the input low-frequency transform information. If low-frequency transform has been performed on the sub-block, the inverse quantization and inverse transform unit 204 performs low-frequency transform processing on the transform coefficients to regenerate orthogonal transform coefficients, and further performs inverse orthogonal transform on the orthogonal transform coefficients to regenerate prediction errors. On the other hand, if low-frequency transform has not been performed on the sub-block, the inverse quantization and inverse transform unit 204 performs inverse orthogonal transform on the transform coefficients to regenerate prediction errors. The prediction errors thus regenerated are output to the image reproduction unit 205.
[0080] The image reproduction unit 205 appropriately refers to the frame memory 206 based on the prediction information input from the decoding unit 203, and reproduces a predicted image. The image reproduction unit 205 of this embodiment uses intra prediction or inter prediction, similar to the prediction unit 104 on the encoding side. The specific prediction process is similar to that of the prediction unit 104 on the encoding side, and therefore description thereof will be omitted. The image reproduction unit 205 reproduces image data from this predicted image and the prediction error input from the inverse quantization and inverse transform unit 204, and stores the image data in the frame memory 206. The stored image data is used as a reference when making predictions.
[0081] The in-loop filter unit 207, like the in-loop filter unit 109 on the encoding side, reads out a reconstructed image from the frame memory 206 and performs in-loop filtering such as deblocking filtering. Then, the in-loop filter unit 207 stores the filtered image back in the frame memory 206.
[0082] The reproduced image stored in the frame memory 206 is finally output from an output terminal 208 to an external device (typically a display device).
[0083] FIG. 4 is a flowchart showing the decoding process of the control unit 205 in the image decoding device 200 according to the embodiment.
[0084] First, in S401, the control unit 250 controls the separation decoding unit 202 to separate the bit stream into information related to the decoding process and coded data related to the coefficients, and decodes the coded data of the header part. More specifically, the separation decoding unit 202 supplies the coefficient range information code to the coefficient range information decoding unit 209, and supplies the coded data of the image to the decoding unit 203.
[0085] In S402, the control unit 250 controls the coefficient range information decoding unit 209 to decode the coefficient range information code reproduced in S401. The specific operation of the coefficient range information decoding unit 209 here has already been described, so a description thereof will be omitted.
[0086] In S403, the control unit 250 controls the decoding unit 203 to decode the coded data separated in S401, reproduce the prediction information, and reproduce the residual coefficients and low-frequency transform information.
[0087] In S404, the control unit 250 controls the inverse quantization and inverse transform unit 204 to determine the coefficient range in the decoding process of this step based on the coefficient range information decoded in S402. For example, when the coefficient range information is 1, the control unit 150 determines the coefficient range in the decoding process of this step as a high-precision coefficient range, and when the coefficient range information is 0, the control unit 250 determines the coefficient range in the decoding process of this step as a fixed coefficient range. Next, the control unit 250 controls the inverse quantization and inverse transform unit 204 to perform inverse quantization on the residual coefficients reproduced in S403 to generate transform coefficients. In addition, the control unit 250 controls the inverse quantization and inverse transform unit 204 to determine whether or not low-frequency transform has been performed on the sub-block based on the low-frequency transform information reproduced in S403. If the sub-block has been subjected to low-frequency transform, the control unit 250 controls the inverse quantization and inverse transform unit 204 to perform inverse low-frequency transform processing on the transform coefficients to reproduce the orthogonal transform coefficients, and further to perform inverse orthogonal transform on the orthogonal transform coefficients to reproduce the prediction error. On the other hand, if the sub-block has not been subjected to low-frequency transform, the control unit 250 controls the inverse quantization and inverse transform unit 204 to perform inverse orthogonal transform on the transform coefficients to reproduce the prediction error.
[0088] In S405, the control unit 250 controls the image reproduction unit 205 to reproduce an image based on the prediction information generated in S403. Specifically, the image reproduction unit 205 reproduces a predicted image by referring to the frame memory 206 based on the prediction information. At this time, the image reproduction unit 205 uses intra prediction or inter prediction, similar to S305 on the encoding side. Then, the image reproduction unit 205 reproduces image data from the reproduced predicted image and the prediction error generated in S404, and stores the reproduced image data in the frame memory 206.
[0089] In S406, the control unit 250 determines whether the decoding of all basic blocks in the frame of interest has been completed. If the decoding has been completed, the process proceeds to S407. If an uncoded basic block remains, the process returns to S403 to decode the next basic block.
[0090] In S407, the control unit 250 controls the in-loop filter unit 207 to perform in-loop filter processing on the image data reproduced in S405, generate a filtered image, and then terminate the processing.
[0091] With the above configuration and operation, it is possible to decode the encoded bitstream generated by the image encoding device 100 described above, i.e., a bitstream that enables switching between decoding processes with different computational accuracy and implementation costs depending on the required specifications of the application.
[0092] In this embodiment, the coefficient range has been described as the range of possible values of coefficients resulting from inverse quantization processing or inverse transform processing, but it may also be used as the range of possible values of coefficients resulting from other decoding processing. For example, this coefficient range may be applied in BDPCM processing, as on the encoding side.
[0093] dz[x][y]=Clip3(CoeffMin,CoeffMax, dz[x-1][y]+dz[x][y]) …(2) (where Clip3(a,b,c) indicates the process of clipping the value c at the minimum value a and the maximum value b.) The above formula (2) is one of the calculation formulas used in the decoding process of BDPCM, and in reproducing the quantized coefficient dz[x][y], a difference value is added to the quantized coefficient dz[x-1][y] adjacent to the left, and clipping is performed in the coefficient range. As with formula (1), CoeffMin and CoeffMax in formula (2) correspond to the minimum and maximum coefficient values in FIG. 8. When the coefficient range information is 0, that is, when a fixed coefficient range is used, the quantized coefficient dz[x][y] output from formula (2) ranges from -32768 to 32767 and can be expressed in signed 16 bits. In this case, 16-bit multiplication and addition instructions can be used in the inverse quantization process, which is the subsequent decoding process, and this has the advantage of reducing the implementation cost. On the other hand, when the coefficient range information is 1, that is, when a high-precision coefficient range is selected, the implementation cost of the subsequent decoding processes such as the inverse quantization process is high, but a decoding process with high calculation precision can be realized. As a result, the bit stream generated by increasing the compression efficiency on the encoding side can be decoded with higher image quality.
[0094] Each processing unit of the image encoding device 100 and the image decoding device 200 in the above-mentioned embodiment has been described as being configured with hardware. However, the processing performed by each processing unit shown in these figures may be configured with a computer program.
[0095] FIG. 5 is a block diagram showing an example of the hardware configuration of a computer applicable to the image encoding device 100 and the image decoding device 200 according to the above embodiments.
[0096] The CPU 501 controls the entire computer using computer programs and data stored in the RAM 502 and ROM 503, and executes each of the processes described above as being performed by the image encoding device 100 or the image decoding device 200 according to the above-mentioned embodiment. That is, the CPU 501 functions as each of the processing units shown in FIG. 1 and FIG. 2.
[0097] The RAM 502 has an area for temporarily storing data acquired from the outside via an external storage device 506 and an I / F (interface) 507. The RAM 502 is also used as a work area used when the CPU 501 executes various processes. The RAM 502 can be allocated as a frame memory, for example, or can provide various other areas as appropriate.
[0098] The ROM 503 stores setting data for the computer, a boot program, etc. The operation unit 504 is composed of a keyboard, a mouse, etc., and can be operated by a user of the computer to input various instructions to the CPU 501. The display unit 505 displays the results of processing by the CPU 501. The display unit 505 is composed of, for example, a liquid crystal display.
[0099] The external storage device 506 is a large-capacity information storage device, such as a hard disk drive. The external storage device 506 stores an OS (operating system) and computer programs (application programs) for causing the CPU 501 to realize the functions of each unit shown in Figures 1 and 2. Furthermore, the external storage device 506 may store each image data to be processed.
[0100] Computer programs and data stored in the external storage device 506 are loaded into the RAM 502 as appropriate under the control of the CPU 501, and become the subject of processing by the CPU 501. A network such as a LAN or the Internet, and other devices such as a projector or display device can be connected to the I / F 507, and the computer can obtain and transmit various information via this I / F 507. Reference numeral 508 denotes a bus that connects the above-mentioned components.
[0101] In the above configuration, when the device is powered on, the CPU 501 executes a boot program stored in the ROM 503, and loads the OS stored in the external storage device 506 into the RAM 502 and executes it. Then, under the control of the OS, the CPU 501 loads an application program related to encoding or decoding from the external storage device 506 into the RAM 502 and executes it. As a result, the CPU 501 functions as each processing unit in Fig. 1 or Fig. 2, and the device functions as an image encoding device or an image decoding device.
[0102] (Other Examples) The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that implements one or more of the functions. [Explanation of symbols]
[0103] 100 Image encoding device 101 Input terminal 102 Block division section 103 Coefficient range information generator 104 Prediction Department 105 Transformation and Quantization Section 106 Inverse quantization and inverse transformation unit 107 Image playback unit 108 Frame Memory 109 In-loop filter section 110 Encoding section 111 Integrated coding unit 112 Output terminal 200 Image Decoding Device 201 Input terminal 202 Separate Decoding Unit 203 Decoding section 204 Inverse quantization and inverse transformation section 205 Image playback unit 206 Frame Memory 207 In-loop filter section 208 Output terminal 209 Coefficient range information decoding unit
Claims
1. a prediction means for generating a prediction error, which is a difference between a predicted image obtained by a prediction process for a sub-block of an input image and the sub-block; a first transform means for performing an orthogonal transform process on the prediction error to generate a first transform coefficient; a second transform means for performing a low frequency non-separable transform (LFNST) process on the first transform coefficients to generate second transform coefficients; quantization means for performing a quantization process on the second transform coefficients to generate quantized coefficients; and encoding means for encoding the quantized coefficients, The encoding means encodes information indicating whether a range of values that at least the second transform coefficient can take is a first range determined by a bit depth or a fixed second range that is independent of the bit depth; when the information indicates that a range of values that at least the second transform coefficient can take is the first range determined by the bit depth, a range of values obtained by a block-based delta pulse code modulation (BDPCM) process is the first range determined by the bit depth; When the information indicates that the range of values that at least the second transform coefficient can take is a fixed second range that is independent of the bit depth, the range of values obtained by BDPCM (Block-based Delta Pulse Code Modulation) processing is the second range.
2. A decision is made as to whether to use a quantization matrix; 2. The image encoding device according to claim 1, wherein when the LFNST process is applied, it is determined that a quantization matrix is not used.
3. The BDPCM (Block-based Delta Pulse Code Modulation) process is a process for deriving a difference between adjacent quantization coefficients among quantization coefficients generated by quantization of a prediction error, which is a difference between a predicted image obtained by a prediction process for a certain subblock of an input image and the certain subblock, 2. The image encoding device according to claim 1, wherein the value obtained by the block-based delta pulse code modulation (BDPCM) process is a difference value of the quantization coefficients.
4. The image encoding device according to claim 1 , wherein when the bit depth is 8, the first range and the second range are the same.
5. An image decoding device that decodes an image from a bitstream, comprising: decoding means for decoding quantized coefficients from the bitstream; an inverse quantization means for performing an inverse quantization process on the quantized coefficients to derive first transform coefficients; a first transform means for performing an inverse low frequency non-separable transform (LFNST) process on the first transform coefficients to derive second transform coefficients; a second transform means for performing an inverse orthogonal transform process on the second transform coefficients to derive a prediction error; The decoding means decodes, from the bit stream, information indicating whether a range of values that at least the first transform coefficient can take is a first range determined by a bit depth or a fixed second range that is independent of the bit depth; when the information indicates that a range of values that at least the first transform coefficient can take is the first range determined by the bit depth, a range of values obtained by a block-based delta pulse code modulation (BDPCM) process is the first range determined by the bit depth; When the information indicates that the range of values that at least the first transform coefficient can take is the fixed second range that is independent of the bit depth, the range of values obtained by BDPCM (Block-based Delta Pulse Code Modulation) processing is the second range.
6. A determination is made as to whether a quantization matrix is to be used in the inverse quantization process; The image decoding device according to claim 5 , wherein when the LFNST process is applied, it is determined that the quantization matrix is not used.
7. 6. The image decoding device according to claim 5, wherein the BDPCM (Block-based Delta Pulse Code Modulation) process is a process of adding a difference value to a quantized coefficient adjacent to a left of a certain quantized coefficient in order to reproduce the certain quantized coefficient.
8. When the information indicates that a range of values that at least the first transform coefficient can take is the first range determined by the bit depth, a range of values of the second transform coefficient derived by an inverse low frequency non-separable transform (LFNST) process is the first range determined by the bit depth; 6. The image decoding device according to claim 5, wherein when the information indicates that a range of values that at least the first transform coefficient can take is the fixed second range that is independent of the bit depth, a range of values of the second transform coefficient derived by an inverse low frequency non-separable transform (LFNST) process is the second range.
9. The image decoding device according to claim 5 , wherein when the bit depth is 8, the first range and the second range are the same.
10. a prediction step of generating a prediction error, which is a difference between a predicted image obtained by a prediction process for a sub-block of an input image and the sub-block; a first transform step of performing an orthogonal transform process on the prediction error to generate first transform coefficients; a second transform step of performing a low frequency non separable transform (LFNST) process on the first transform coefficients to generate second transform coefficients; a quantization step of performing a quantization process on the second transform coefficients to generate quantized coefficients; and an encoding step of encoding the quantized coefficients, In the encoding step, information indicating whether a range of values that at least the second transform coefficient can take is a first range determined by a bit depth or a fixed second range that is independent of the bit depth is encoded; when the information indicates that a range of values that at least the second transform coefficient can take is the first range determined by the bit depth, a range of values obtained by a block-based delta pulse code modulation (BDPCM) process is the first range determined by the bit depth; When the information indicates that a range of values that at least the second transform coefficient can take is a fixed second range that is independent of the bit depth, a range of values obtained by BDPCM (Block-based Delta Pulse Code Modulation) processing is the second range.
11. 1. An image decoding method for decoding an image from a bitstream, comprising: a decoding step of decoding quantized coefficients from the bitstream; an inverse quantization step of performing an inverse quantization process on the quantized coefficients to derive first transform coefficients; a first transform step of performing an inverse low frequency non-separable transform (LFNST) process on the first transform coefficients to derive second transform coefficients; a second transform step of performing an inverse orthogonal transform process on the second transform coefficients to derive a prediction error; In the decoding step, information indicating whether a range of values that at least the first transform coefficient can take is a first range determined by a bit depth or a fixed second range that is independent of the bit depth is decoded from the bit stream; when the information indicates that a range of values that at least the first transform coefficient can take is the first range determined by the bit depth, a range of values obtained by a block-based delta pulse code modulation (BDPCM) process is the first range determined by the bit depth; When the information indicates that a range of values that at least the first transform coefficient can take is a fixed second range that is independent of the bit depth, a range of values obtained by BDPCM (Block-based Delta Pulse Code Modulation) processing is the second range.
Citation Information
Patent Citations
Image encoder, image encoding method and program, image decoder, image decoding method and program
JP2014131172A
Data Encoding and Decoding
JP2016519514A
Image processing device and method
WO2017195666A1
