Decoding device and program
By adapting binarization methods for the final significant coefficient coordinates based on intra prediction mode, the encoding and decoding devices enhance encoding efficiency, optimizing the representation of these coordinates.
Patent Information
- Application Number
- JP2023194983
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2023-11-16
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2039-12-06
AI Technical Summary
Conventional encoding methods do not efficiently control binarization for the final significant coefficient coordinates based on the intra prediction mode, leading to suboptimal encoding efficiency.
The encoding and decoding devices adaptively determine binarization methods for the final significant coefficient coordinates based on the intra prediction mode, using fixed and variable length binarization techniques to optimize the encoding process.
This approach improves the encoding efficiency by reducing the number of bits required to represent the final significant coefficient positions, enhancing the overall encoding process.
Smart Images

Figure 0007542709000007 
Figure 0007542709000002 
Figure 0007542709000001
Abstract
Description
[Technical field]
[0001] The present invention relates to a decoding device and a program. [Background technology]
[0002] In coding methods typified by HEVC (High Efficiency Video Coding), prediction residuals obtained from the difference between a predicted image by inter prediction or intra prediction and an original image generally tend to have energy concentrated in low-frequency components. Taking advantage of this property, the prediction residuals are decomposed (converted) into frequency components by a conversion process, thereby reducing entropy (see, for example, non-patent document 1).
[0003] The top left component of the transform coefficient obtained by performing transform processing on the prediction residual is a DC (Direct Current) component, with higher vertical frequency components moving downward and higher horizontal frequency components moving right. In order to stream output the prediction residual, the coding device entropy codes and transmits the positions and values of significant coefficients, which are significant components of the quantized transform coefficients. A significant coefficient is a transform coefficient that is not zero (a non-zero coefficient).
[0004] The encoding device serializes the transform coefficients in a block from high frequency to low frequency according to a scan order that indicates the encoding order, and entropy-encodes the serialized transform coefficients. At that time, the encoding device transmits a last significant coefficient coordinate (last position) that indicates the position of the last significant coefficient on the highest frequency side among the serialized transform coefficients, and efficiently encodes the positions and values of the significant coefficients from the last position to the DC component.
[0005] In HEVC, the scan order for binarizing transform coefficients is switched according to the intra-prediction mode. Specifically, the coding efficiency is improved by adaptively switching the scan order by utilizing the statistical bias of the distribution of prediction residuals according to the intra-prediction mode.
[0006] In addition, in HEVC, in entropy coding of the last position, two values (last_sig_coeff_x, last_sig_coeff_y) of X and Y, which are the coordinates (relative position based on the DC component) in the block of the last position, are separately entropy coded. Since prediction residuals generally tend to concentrate energy in low-frequency components, the last position is likely to occur in the upper left region of the transform coefficients. For this reason, when binarizing to transmit last_sig_coeff_x and last_sig_coeff_y, the last position is efficiently coded by allocating fewer bits to smaller values and more bits to larger values. [Prior art documents] [Non-patent literature]
[0007] [Non-Patent Document 1] Recommendation ITU-T H.265,(12 / 2016), “High efficiency video coding”, International Telecommunication Union DISCLOSURE OF THEINVENTION [Problem to be solved by the invention]
[0008] As described above, the distribution of prediction residuals is statistically biased depending on the intra prediction mode. In other words, the region where the transform coefficients are likely to have large values varies depending on the intra prediction mode. For example, when the intra prediction mode is a directional prediction mode close to vertical, the transform coefficients with large values are likely to appear at the top of the block.
[0009] Similarly, the position where the last position appears is also considered to change depending on the intra prediction mode. For example, when the intra prediction mode is a directional prediction mode close to vertical, the last position is likely to appear at the top of the block. However, in conventional coding methods, binarization for transmitting the last position is not controlled according to the intra prediction mode, which causes a problem of poor coding efficiency of the last position.
[0010] Therefore, an object of the present invention is to provide an encoding device, a decoding device, and a program that improve the efficiency of encoding the last significant coefficient coordinate (last position). [Means for solving the problem]
[0011] A decoding device according to a first aspect is a decoding device that performs decoding on a block-by-block basis that constitutes an image, and includes an intra prediction unit that generates a prediction block corresponding to a block to be decoded by intra prediction using decoded pixels surrounding the block to be decoded, an entropy decoding unit that outputs transform coefficients of the block to be decoded by decoding an encoded stream, an inverse quantization and inverse transform unit that performs inverse quantization processing and inverse transform processing on the transform coefficients output by the entropy decoding unit to reconstruct prediction residuals on a block-by-block basis, and a synthesis unit that synthesizes the prediction block and the reconstructed prediction residuals to reconstruct the block to be decoded, wherein the entropy decoding unit directly identifies one of two decoding methods for the transform coefficients from the syntax, without identifying the intra prediction mode from a syntax indicating an intra prediction mode to be used for the intra prediction. An encoding device according to one embodiment is an encoding device that performs encoding on a block-by-block basis that constitutes an image, and includes an intra prediction unit that generates a predicted block corresponding to a block to be encoded by intra prediction using decoded pixels surrounding the block to be encoded, a transform / quantization unit that performs transform processing and quantization processing on a block-by-block prediction residual that represents the difference between the block to be encoded and the predicted block, and an entropy encoding unit that encodes block-by-block transform coefficients output by the transform / quantization unit, wherein the entropy encoding unit has an encoding control unit that determines a binarization method to be applied to binarization of final significant coefficient coordinates that indicate the position of a final significant coefficient included in the transform coefficients, based on the intra prediction mode used for the intra prediction.
[0012] A decoding device according to one embodiment is a decoding device that performs decoding on a block-by-block basis that constitutes an image, and includes an intra prediction unit that generates a prediction block corresponding to a block to be decoded by intra prediction using decoded pixels surrounding the block to be decoded, an entropy decoding unit that outputs transform coefficients of the block to be decoded by decoding an encoded stream, an inverse quantization / inverse transform unit that performs inverse quantization processing and inverse transform processing on the transform coefficients output by the entropy decoding unit to reconstruct prediction residuals on a block-by-block basis, and a synthesis unit that synthesizes the prediction block and the reconstructed prediction residuals to reconstruct the block to be decoded, and the entropy decoding unit has a decoding control unit that identifies a binarization method applied to binarization of final significant coefficient coordinates indicating the position of a final significant coefficient included in the transform coefficients, based on an intra prediction mode used for the intra prediction.
[0013] A program according to an embodiment causes a computer to function as the encoding device described above.
[0014] A program according to one embodiment causes a computer to function as the above-described decoding device. Effect of the Invention
[0015] According to the present invention, it is possible to provide an encoding device, a decoding device, and a program that improve the efficiency of encoding the last significant coefficient coordinate (last position). [Brief description of the drawings]
[0016] [Figure 1] 1 is a diagram showing a configuration of an encoding device 1 according to an embodiment. [Diagram 2] FIG. 11 is a diagram showing intra prediction mode candidates according to the embodiment. [Diagram 3] FIG. 2 is a diagram illustrating a configuration of an entropy coding unit according to the embodiment. [Figure 4] FIG. 11 is a diagram illustrating an example of the operation of a serialization unit according to the embodiment. [Diagram 5]FIG. 11 is a diagram illustrating an example of the operation of a serialization unit according to the embodiment. [Figure 6] 5 is a diagram illustrating the operation of an encoding control unit and a decoding control unit according to the embodiment. FIG. [Figure 7] FIG. 11 is a diagram showing association information according to the embodiment. [Figure 8] FIG. 13 is a diagram showing the number of bits required to express coordinate values. [Figure 9] FIG. 2 is a diagram illustrating a configuration of a decoding device according to an embodiment. [Figure 10] FIG. 2 is a diagram illustrating a configuration of an entropy decoding unit according to the embodiment. [Figure 11] FIG. 11 is a diagram for explaining another embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0017] An encoding device and a decoding device according to an embodiment will be described with reference to the drawings. The encoding device and the decoding device according to the embodiment respectively encode and decode moving images as represented by MPEG. In the following description of the drawings, the same or similar parts are denoted by the same or similar reference numerals.
[0018] <Encoding device> The encoding device according to this embodiment will be described.
[0019] (Structure of the Encoding Device) First, the configuration of the encoding device according to this embodiment will be described. Fig. 1 is a diagram showing the configuration of an encoding device 1 according to this embodiment.
[0020] As shown in FIG. 1, the encoding device 1 includes a block division unit 100, a subtraction unit 110, a transformation and quantization unit 120, an entropy encoding unit 130, an inverse quantization and inverse transform unit 140, a synthesis unit 150, a memory 160, and a prediction unit 170.
[0021] The block division unit 100 divides an original image, which is an input image in units of frames (or pictures) constituting a moving image, into a plurality of image blocks, and outputs the image blocks obtained by division to the subtraction unit 110. The size of the image block is, for example, 32×32 pixels, 16×16 pixels, 8×8 pixels, or 4×4 pixels. The shape of the image block is not limited to a square, but may be a rectangle (non-square). The image block is the unit by which the encoding device 1 performs encoding (i.e., the block to be encoded) and is the unit by which the decoding device performs decoding (i.e., the block to be decoded). Such an image block may be called a CU (Coding Unit).
[0022] For example, the block division unit 100 outputs luminance blocks and chrominance blocks by performing block division on the luminance signal and the chrominance signal that constitute an image. The division may be independently controlled for the luminance signal and the chrominance signal. When there is no particular distinction between the luminance block and the chrominance block, they are simply called the block to be coded.
[0023] The subtraction unit 110 calculates a prediction residual representing a difference (error) between a current block to be coded output from the block division unit 100 and a prediction block obtained by predicting the current block to be coded by the prediction unit 170. Specifically, the subtraction unit 110 calculates the prediction residual by subtracting each pixel value of the prediction block from each pixel value of the block, and outputs the calculated prediction residual to the transformation / quantization unit 120.
[0024] The transform / quantization unit 120 performs transform processing and quantization processing on a block-by-block basis. The transform / quantization unit 120 includes a transform unit 121 and a quantization unit 122.
[0025] The transform unit 121 performs a transform process on the prediction residual output from the subtraction unit 110 to calculate a transform coefficient, and outputs the calculated transform coefficient to the quantization unit 122. The transform process refers to, for example, a discrete cosine transform (DCT), a discrete sine transform (DST), a Karhunen-Loeb transform (KLT), etc. However, the transform process may include a transform skip that adjusts a pixel domain signal by scaling or the like without converting it into a frequency domain signal. The transform unit 121 outputs information regarding the transform process to be applied to the encoding target block to the entropy coding unit 130.
[0026] The quantization unit 122 quantizes the transform coefficients output from the transform unit 121 using a quantization parameter (Qp) and a quantization matrix, and outputs the quantized transform coefficients to the entropy coding unit 130 and the inverse quantization / inverse transform unit 140.
[0027] The entropy coding unit 130 performs entropy coding on the transform coefficients output from the quantization unit 122, performs data compression to generate coded data (bit stream), and outputs the coded data to the outside of the coding device 1. For the entropy coding, Huffman codes, CABAC (Context-based Adaptive Binary Arithmetic Coding), etc. can be used. Specifically, the entropy coding unit 130 reads out the transform coefficients arranged two-dimensionally in a predetermined scan order, and performs coding on a sub-block basis.
[0028] In addition to scanning and encoding such transform coefficients, the entropy encoding unit 130 also encodes information relating to the transform processing output from the transform unit 121 and information relating to the prediction processing output from the prediction unit 170.
[0029] The inverse quantization and inverse transform unit 140 performs inverse quantization processing and inverse transform processing on a block-by-block basis. The inverse quantization and inverse transform unit 140 includes an inverse quantization unit 141 and an inverse transform unit 142.
[0030] 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 restores the transform coefficients by inverse quantizing the transform coefficients output from the quantization unit 122 using a quantization parameter (Qp) and a quantization matrix, and outputs the restored transform coefficients to the inverse transform unit 142.
[0031] The inverse transform unit 142 performs an inverse transform process corresponding to the transform process performed by the transform unit 121. For example, if the transform unit 121 performs a discrete cosine transform, the inverse transform unit 142 performs an inverse discrete cosine transform. The inverse transform unit 142 performs an inverse transform process on the transform coefficients output from the inverse quantization unit 141 to restore a prediction residual, and outputs the restored prediction residual, which is the restored prediction residual, to the synthesis unit 150. Output to.
[0032] The synthesis unit 150 synthesizes, on a pixel-by-pixel basis, the reconstructed prediction residual output from the inverse transform unit 142 with the predicted block output from the prediction unit 170. The synthesis unit 150 adds each pixel value of the reconstructed prediction residual to each pixel value of the predicted block to decode (reconstruct) the block to be coded, and outputs the decoded block to the memory 160. Note that the decoded block may also be called a reconstructed block.
[0033] The memory 160 stores the decoded blocks output from the synthesis unit 150, and accumulates the decoded blocks as decoded images on a frame-by-frame basis. The memory 160 outputs the stored decoded blocks or decoded images to the prediction unit 170. Note that a loop filter may be provided between the synthesis unit 150 and the memory 160.
[0034] The prediction unit 170 performs prediction processing on a block-by-block basis. The prediction unit 170 includes an inter prediction unit 171, an intra prediction unit 172, and a switching unit 173.
[0035] The inter prediction unit 171 performs inter prediction using correlation between frames. Specifically, the inter prediction unit 171 uses a decoded image stored in the memory 160 as a reference image to calculate a motion vector by a method such as block matching, predicts a target block for inter prediction to generate an inter prediction block, and outputs the generated inter prediction block to the switching unit 173. Here, the inter prediction unit 171 selects an optimal inter prediction method from inter prediction using multiple reference images (typically, bi-prediction) and inter prediction using one reference image (unidirectional prediction), and performs inter prediction using the selected inter prediction method. The inter prediction unit 171 outputs information related to inter prediction (motion vector, etc.) to the entropy coding unit 130.
[0036] The intra prediction unit 172 performs intra prediction using spatial correlation within a frame. Specifically, the intra prediction unit 172 generates an intra prediction block by referring to decoded pixels around a target block of intra prediction among decoded images stored in the memory 160, and outputs the generated intra prediction block to the switching unit 173. The intra prediction unit 172 selects an intra prediction mode to be applied to a target block of intra prediction from among a plurality of intra prediction modes, and predicts the target block using the selected intra prediction mode. The intra prediction unit 172 outputs an intra prediction mode syntax indicating the selected intra prediction mode to the entropy coding unit 130.
[0037] The intra prediction mode syntax includes, for example, intra_luma_mpm_flag, intra_luma_not_planar_flag, intra_luma_mpm_idx, and intra_luma_mpm_remainder.
[0038] The intra_luma_mpm_flag is a flag indicating whether the intra prediction mode used for intra prediction is included in multiple preferred intra prediction modes (hereinafter referred to as "MPM modes"). When intra_luma_mpm_flag is "1", it indicates that the intra prediction mode is included in the MPM mode. On the other hand, when intra_luma_mpm_flag is "0", it indicates that the intra prediction mode is not included in the MPM mode, that is, the intra prediction mode is included in multiple non-preferred intra prediction modes (hereinafter referred to as "non-MPM modes").
[0039] The intra_luma_not_planar_flag is a flag indicating whether or not the intra prediction mode is the planar mode when the intra_luma_mpm_flag is "1". When lag is "1", it indicates that the intra prediction mode is not the planar mode. On the other hand, when intra_luma_not_planar_flag is "0", it indicates that the intra prediction mode is the planar mode.
[0040] Intra_luma_mpm_idx is an index indicating the number of the MPM of the intra prediction mode when intra_luma_not_planar_flag is "1." Note that intra_luma_mpm_idx indicates any one of the numbers from MPM1 to MPM5 using truncated unary encoding.
[0041] When intra_luma_mpm_flag is "0", intra_luma_mpm_remainder is a non-MPM mode number indicating any of the non-MPM intra prediction modes.
[0042] The switching unit 173 switches between the inter predicted block output from the inter prediction unit 171 and the intra predicted block output from the intra prediction unit 172, and outputs either the predicted block to the subtraction unit 110 and the synthesis unit 150.
[0043] Fig. 2 is a diagram showing candidates for intra prediction modes according to the present embodiment. As shown in Fig. 2, there are 67 candidates for intra prediction modes, from 0 to 66. The intra prediction mode mode "0" is planar prediction, the intra prediction mode mode "1" is DC prediction, and the intra prediction mode modes "2" to "66" are directional prediction.
[0044] In directional prediction, the direction of the arrow indicates the reference direction, the starting point of the arrow indicates the position of the pixel to be predicted, and the end point of the arrow indicates the position of the reference pixel used in predicting the pixel to be predicted. As reference directions parallel to the diagonal line passing through the upper right vertex and the lower left vertex of the block, there are mode "2", which is an intra prediction mode that references the lower left direction, and mode "66", which is an intra prediction mode that references the upper right direction, and mode numbers are assigned clockwise from mode "2" to mode "66" at predetermined angles. Note that modes "2" to "18" are prediction modes that reference only the reference pixels on the left side of the target block of intra prediction. On the other hand, modes "50" to "66" are prediction modes that reference only the reference pixels on the upper side of the target block of intra prediction.
[0045] In this way, the encoding device 1 according to this embodiment performs encoding on a block-by-block basis that constitutes an image. The encoding device 1 includes an intra prediction unit 172 that generates a predicted block corresponding to a block to be encoded by intra prediction using decoded pixels surrounding the block to be encoded, a transform / quantization unit 120 that performs transform processing and quantization processing on a block-by-block prediction residual that represents the difference between the block to be encoded and the predicted block, and an entropy encoding unit 130 that encodes the transform coefficients on a block-by-block basis output by the transform / quantization unit 120.
[0046] (Structure of the entropy coding unit) Next, a configuration of the entropy coding unit 130 according to this embodiment will be described below. Fig. 3 is a diagram showing the configuration of the entropy coding unit 130 according to this embodiment.
[0047] As shown in FIG. 3, the entropy encoding unit 130 includes a serializing unit 131, a binarizing unit 132, an encoding unit 133, and an encoding control unit 134.
[0048] The serialization unit 131 scans (serializes) the transform coefficients in a block in accordance with the scan order, and outputs the serialized transform coefficients to the binarization unit 132.
[0049] Fig. 4 and Fig. 5 are diagrams showing an example of the operation of the serialization unit 131 according to this embodiment. Fig. 4 and Fig. 5 show an example in which the size of the encoding target block is 8 × 8. Here, an example is shown in which scanning is performed in sub-block units of 4 × 4 units.
[0050] As shown in FIG. 4, serialization unit 131 scans the transform coefficients in a block from the highest frequency component toward the DC component by diagonal scanning.
[0051] As shown in FIG. 5, the serialization unit 131 generates a last significant coefficient coordinate (last position) indicating the position of the last significant coefficient on the highest frequency side among the serialized transform coefficients, and outputs the last position to the binarization unit 132. Specifically, the serialization unit 131 outputs the last position, which expresses the coordinates of the first significant coefficient in the scan order (i.e., the relative position based on the DC component) with two values of x and y (last_sig_coeff_x, last_sig_coeff_y), to the binarization unit 132. Here, last_sig_coeff_x is the X coordinate value, and last_sig_coeff_y is the Y coordinate value. In the example of FIG. 5, (last_sig_coeff_x, last_sig_coeff_y)=(6,5). Each of last_sig_coeff_x and last_sig_coeff_y is composed of a prefix part and a suffix part.
[0052] Furthermore, the serialization unit 131 generates various information (syntax elements) indicating the configuration of transform coefficients on a sub-block basis, and outputs the generated information to the binarization unit 132. For example, the serialization unit 131 outputs coded_sub_block_flag, which is a flag indicating whether or not there is a significant coefficient in the sub-block, to the binarization unit 132. In the example of Fig. 5, the serialization unit 131 outputs coded_sub_block_flag, which indicates that there is no significant coefficient in the lower left sub-block, to the binarization unit 132.
[0053] Furthermore, in this embodiment, the encoding control unit 134 determines a binarization method to be applied to binarization of the last position indicating the position of the last significant coefficient included in the transform coefficients, based on the intra prediction mode syntax output by the intra prediction unit 172. The encoding control unit 134 controls the binarization unit 132 to perform binarization using the determined binarization method.
[0054] FIG. 6 is a diagram showing the operation of the encoding control unit 134 according to this embodiment.
[0055] As shown in Fig. 6(a), when the intra prediction mode applied to the block to be coded indicates a vertical directional prediction mode, there is a high possibility that large transform coefficients and final significant coefficients are present at the top of the block. The substantially vertical directional prediction mode refers to a directional prediction mode within a certain range including the vertical prediction among the directional prediction modes shown in Fig. 2.
[0056] Among the directional prediction modes shown in FIG. 2, a directional prediction mode within a certain range including horizontal prediction is referred to as a substantially horizontal directional prediction mode.
[0057] In this embodiment, the encoding control unit 134 determines whether the prediction mode is a directional prediction mode in the approximately vertical direction, a directional prediction mode in the approximately horizontal direction, or another prediction mode, according to the intra prediction mode syntax indicating the intra prediction mode used for intra prediction of the encoding target block. Here, the encoding control unit 134 directly determines whether the prediction mode is a directional prediction mode in the approximately vertical direction, a directional prediction mode in the approximately horizontal direction, or another prediction mode, from the intra prediction mode syntax indicating the intra prediction mode, without specifying the intra prediction mode from the intra prediction mode syntax indicating the intra prediction mode.
[0058] Specifically, when intra_luma_mpm_flag indicates that the intra prediction mode used for intra prediction is included in non-MPM modes, i.e., when intra_luma_mpm_flag is "0", the encoding control unit 134 directly determines whether the intra prediction mode is an approximately vertical directional prediction mode, an approximately horizontal directional prediction mode, or another prediction mode from the intra prediction mode syntax indicating the intra prediction mode.
[0059] For example, when intra_luma_mpm_flag indicates that the intra prediction mode used for intra prediction is included in a non-MPM mode, the encoding control unit 134 uses association information that associates each non-MPM mode number with a group of intra prediction modes to determine whether the prediction mode is an approximately vertical directional prediction mode, an approximately horizontal directional prediction mode, or another prediction mode, depending on the non-MPM mode number (intra_luma_mpm_remainder) included in the intra prediction mode syntax indicating the intra prediction mode.
[0060] FIG. 7 is a diagram showing association information according to the present embodiment.
[0061] As shown in Fig. 7, 61 non-MPM modes other than the six MPM modes are numbered in ascending order of reference direction from the bottom left to the top right. Each non-MPM mode number is associated with a group of intra prediction modes.
[0062] Specifically, the non-MPM mode numbers are grouped into a first group to a third group. The first group is a group associated with a directional prediction mode, which is an intra-prediction mode whose prediction direction is closer to the horizontal direction than the vertical direction. The second group is a group associated with a directional prediction mode, which is an intra-prediction mode whose prediction direction is closer to the vertical direction than the horizontal direction. The third group is a group other than the first group and the second group.
[0063] 7, non-MPM mode numbers "9" to "20" correspond to group 1, non-MPM mode numbers "39" to "52" correspond to group 2, and other non-MPM mode numbers correspond to group 3. The association information associates the first group with a directional prediction mode in the approximately horizontal direction (group=1), the second group with a directional prediction mode in the approximately vertical direction (group=2), and the third group with the other prediction modes (group=0).
[0064] Here, the range is set so that, regardless of what intra prediction mode is selected as the MPM mode, non-MPM modes that are somewhat close in the horizontal or vertical direction are included in group=1 or group=2. Moreover, this range is not fixed to the example shown in Fig. 7, but is variable.
[0065] In addition, when intra_luma_mpm_flag is "1", and when intra_luma_mpm_flag is "0" (i.e., when intra_luma_mpm_flag indicates that the intra prediction mode used for intra prediction is included in the MPM modes), it is determined that group=0 (other prediction mode).
[0066] When intra_luma_mpm_flag indicates that the intra prediction mode is included in the non-MPM modes, the encoding control unit 134 can use a table (correspondence information) such as that shown in FIG. 7 to convert the non-MPM mode number (intra_luma_mpm_remainder) included in the intra prediction mode syntax to a scan order number (either "0", "1", or "2"), and can directly determine from the non-MPM mode number whether the prediction mode is an approximately horizontal directional prediction mode, an approximately vertical directional prediction mode, or some other prediction mode.
[0067] As shown in Figure 6 (a), when the intra prediction mode syntax applied to the block to be coded indicates a directional prediction mode in the approximately vertical direction, the coding control unit 134 applies a fixed-length binarization method to the X coordinate value (last_sig_coeff_x) that constitutes the last position, and applies a variable-length binarization method to the Y coordinate value (last_sig_coeff_y) that constitutes the last position.
[0068] Here, the fixed-length binarization method is a binarization method in which the number of bits after binarization is a predetermined number of bits. The fixed-length binarization method may be called fixed-length binarization. In the following, the coordinate value to which the fixed-length binarization method is applied is appropriately called the "P coordinate value".
[0069] On the other hand, the variable length binarization method is a binarization method in which the number of bits after binarization increases as the coordinate value increases. In other words, the variable length binarization method is a binarization method in which the number of bits after binarization decreases as the coordinate value decreases. The variable length binarization method may be truncated rice binarization. In the following, the coordinate value to which the variable length binarization method should be applied is appropriately referred to as the "Q coordinate value."
[0070] When the coordinate value is small, the variable length binarization method reduces the number of bits after binarization compared to the fixed length binarization method. In the case of Fig. 6(a), the last significant coefficient is likely to be at the top of the block, that is, the Y coordinate value is likely to be small, so by applying the variable length binarization method to the Y coordinate value (last_sig_coeff_y), the number of bits after binarization can be reduced.
[0071] On the other hand, when the coordinate value is large, the fixed length binarization method results in fewer bits after binarization than the variable length binarization method. In the case of FIG. 6(a), the last significant coefficient is likely to be located at the top of the block, but the X coordinate value may be large. For this reason, by applying the fixed length binarization method to the X coordinate value (last_sig_coeff_x), the number of bits after binarization can be reduced. However, when the block size is small, the coordinate value is small to begin with, so exceptionally, the variable length binarization method may be applied to the X coordinate value.
[0072] As shown in Fig. 6(b), when the intra prediction mode applied to the encoding target block indicates a directional prediction mode in the approximately horizontal direction, there is a high possibility that a large transform coefficient and a final significant coefficient are present on the left side of the block. As described above, the approximately horizontal directional prediction mode refers to a directional prediction mode within a certain range including the horizontal prediction among the directional prediction modes shown in Fig. 2.
[0073] Also, as shown in Figure 6 (b), when the intra prediction mode applied to the block to be encoded indicates a directional prediction mode in the approximately horizontal direction, the encoding control unit 134 applies a variable length binarization method to the X coordinate value (last_sig_coeff_x) that constitutes the last position, and applies a fixed length binarization method to the Y coordinate value (last_sig_coeff_y) that constitutes the last position.
[0074] As described above, when the coordinate value is small, the variable length binarization method reduces the number of bits after binarization compared to the fixed length binarization method. In the case of Fig. 6(b), the last significant coefficient is likely to be on the left side of the block, that is, the X coordinate value is likely to be small. Therefore, by applying the variable length binarization method to the X coordinate value (last_sig_coeff_x), the number of bits after binarization is reduced. The number of bits can be reduced.
[0075] On the other hand, when the coordinate value is large, the fixed length binarization method results in fewer bits after binarization than the variable length binarization method. In the case of FIG. 6(b), the last significant coefficient is likely to be on the left side of the block, but the Y coordinate value may be large. For this reason, by applying the fixed length binarization method to the Y coordinate value (last_sig_coeff_y), the number of bits after binarization can be reduced. However, when the block size is small, the coordinate value is small to begin with, so exceptionally, the variable length binarization method may be applied to the Y coordinate value.
[0076] As shown in Figure 6 (c), when the intra prediction mode syntax applied to the block to be encoded is an intra prediction mode syntax other than an approximately vertical directional prediction mode and an approximately horizontal directional prediction mode (i.e., when the encoding control unit 134 determines group = 0), there is a high probability that there are large transform coefficients and final significant coefficients in the upper left corner of the block.
[0077] In the case of FIG. 7(c), the encoding control unit 134 applies the variable length binarization method to both the X coordinate value (last_sig_coeff_x) and the Y coordinate value (last_sig_coeff_y) that constitute the last position.
[0078] As described above, when the coordinate value is small, the variable length binarization method reduces the number of bits after binarization compared to the fixed length binarization method. In the case of Fig. 7(c), since it is highly likely that both the X coordinate value and the Y coordinate value are small, the number of bits after binarization can be reduced by applying the variable length binarization method to both the X coordinate value (last_sig_coeff_x) and the Y coordinate value (last_sig_coeff_y).
[0079] 3, the binarization unit 132 converts the multi-level signal output by the serialization unit 131 into a binary signal, and outputs the binary signal to the encoding unit 133. The binarization unit 132 binarizes (binarizes) each of last_sig_coeff_x and last_sig_coeff_y in accordance with a binarization method determined by the encoding control unit 134.
[0080] The encoding unit 133 generates a coded stream by arithmetic coding the binary signal output by the binarization unit 132, and outputs the generated coded stream.
[0081] (Example of binarization) Next, a specific example of binarization according to this embodiment will be described.
[0082] First, as a comparative example of this embodiment, a binarization method of the last significant coefficient in the HEVC method will be described. In the HEVC method, the X coordinate value and the Y coordinate value of the last significant coefficient in a block are transmitted. The X coordinate value is transmitted separately as a prefix part, last_sig_coeff_x_prefix, and a suffix part, last_sig_coeff_x_suffix.
[0083] Here, the minimum value of last_sig_coeff_x_prefix is 0, the maximum value is (log2TrafoSize<<1)-1, and it is binarized by TR (Truncated Rice) (RiceParam=0). Here, "log2TrafoSize" is the logarithm of the side length of the block to the base 2. For example, if the width of the block size is 16, log2TrafoSize is 4, and the maximum value of last_sig_coeff_x_prefix to be transmitted is 7.
[0084] Here, TR with RiceParam=0 arranges "1"s for the number of values to be binarized, and if that value is less than the maximum value, binarization is performed by arranging N "0"s at the end. For example, if the maximum value is 7, binarizing 4 with TR(RiceParam=0) results in "11110", and binarizing 7 results in "1111111".
[0085] last_sig_coeff_x_suffix is not transmitted if last_sig_coeff_x_prefix<=3. If last_sig_coeff_x_prefix>3, the minimum value of last_sig_coeff_x_suffix transmitted is 0, the maximum value is (1<<((last_sig_coeff_x_prefix>>1)-1))-1, and it is binarized by FL (Fixed-Length). For example, if the block size is 16x16 and last_sig_coeff_x_prefix is 10, the maximum value of last_sig_coeff_x_suffix transmitted is 3.
[0086] Here, FL binarizes the value of the binarization target as a ceil(log2(maximum value of the binarization target + 1))-bit binary number. For example, when the maximum value is 7, binarizing 4 with FL results in "100", and binarizing 7 results in "111".
[0087] The X coordinate value is calculated as X=last_sig_coeff_x_prefix when last_sig_coeff_x_suffix is not transmitted, and as X=(1<<((last_sig_coeff_x_prefix>>1)-1)*(2+(last_sig_coeff_x_prefix & 1))+last_sig_coeff_x_suffix when last_sig_coeff_x_suffix is transmitted.
[0088] The same applies to the Y coordinate value, which is transmitted using last_sig_coeff_y_prefix and last_sig_coeff_y_suffix.
[0089] The next-generation encoding method, the VVC method, has rectangular blocks, so instead of the above log2TrafoSize, log2ZoTbWidth, which is the base 2 logarithm of the width of the block size, is used for the X coordinate value, and log2ZoTbHeight, which is the base 2 logarithm of the height of the block size, is used for the Y coordinate value.
[0090] As described above, the number of bits after binarization used to express the X and Y coordinate values of the final significant coefficient is smallest at the top left of the block and increases toward the right or bottom.
[0091] 8 is a diagram showing the number of bits required to express coordinate values, showing an example for a block size of 16×16.
[0092] As shown in Fig. 8(a), when the X-coordinate value of the last significant coefficient is in the region shown in white, only last_sig_coeff_x_prefix is transmitted, and last_sig_coeff_x_suffix is not transmitted. Therefore, this is the region in which the X-coordinate value can be expressed with the shortest number of bits after binarization.
[0093] As shown in FIG. 8(a), when the X coordinate value of the last significant coefficient is in the shaded area, last_sig_coeff_x_suffix is transmitted in addition to last_sig_coeff_x_prefix.
[0094] As shown in Fig. 8(a), when the X coordinate value of the last significant coefficient is in the shaded area, in addition to last_sig_coeff_x_prefix, last_sig_coeff_x_suffix is also transmitted, and the maximum value of last_sig_coeff_x_suffix is 3. Therefore, this is the area that requires the longest number of post-binarization bits to express the X coordinate value.
[0095] The same applies to the Y coordinate values, and each region is shown in FIG.
[0096] The binarization method of the comparative example does not consider the directionality of intra prediction, so the number of bits after binarization may increase. For example, in the case of a nearly vertical directional prediction mode (i.e., a directional prediction mode close to vertical), even though the final significant coefficient is highly likely to appear at the top of the block, if the X coordinate value is large, the number of bits required to express the X coordinate value increases.
[0097] For example, in the case of a nearly vertical directional prediction mode (i.e., a directional prediction mode close to vertical), the possibility that the final significant coefficient is at the position (X,Y)=(14,0) in the 16×16 block shown in Fig. 8 is higher than the possibility that the final significant coefficient is at the position (X,Y)=(0,3). However, the number of post-binarization bits required to express the final significant coefficient position is larger when the final significant coefficient is at the position (X,Y)=(14,0) than when the final significant coefficient is at the position (X,Y)=(0,3).
[0098] Specifically, when the X coordinate value “14” of (X,Y)=(14,0) is binarized, last_sig_coeff_x_prefix="1111111" and last_sig_coeff_x_suffix="10". When the Y coordinate value “0” is binarized, last_sig_coeff_y_prefix="0" and last_sig_coeff_y_suffix is not transmitted, so the total number of bits after binarization for the X and Y coordinate values is 10.
[0099] On the other hand, when the X coordinate value “0” of (X,Y)=(0,3) is binarized, last_sig_coeff_x_prefix="0" and last_sig_coeff_x_suffix is not transmitted, and when the Y coordinate value “3” is binarized, last_sig_coeff_y_prefix="1110" and last_sig_coeff_y_suffix is not transmitted, so the total number of bits after binarization for the X and Y coordinate values is 5.
[0100] Since the prefix is then arithmetically coded by the coding unit 133, the number of bits after binarization does not directly correlate to the length of the coded stream, but the fewer the number of bits before arithmetically coding, the shorter the coded stream generally tends to be. On the other hand, the suffix is coded by bypassing, so the number of bits after binarization and the number of bits after coding are the same.
[0101] Secondly, binarization according to this embodiment will be described. In the following specific example, the terms P coordinate value and Q coordinate value will be used instead of X coordinate value and Y coordinate value.
[0102] As described above, the P coordinate value is binarized using a fixed-length binarization method, so the number of bits after binarization changes little depending on the position. On the other hand, the Q coordinate value is binarized using a variable-length binarization method similar to HEVC, so the number of bits after binarization changes greatly depending on the position.
[0103] In the following, the length of the side of the block corresponding to the P coordinate value is defined as pSize, and the logarithm of pSize with base 2 is defined as log2pSize. The length of the side of the block corresponding to the Q coordinate value is defined as qSize, and the logarithm of qSize with base 2 is defined as log2qSize.
[0104] In this embodiment, when the intra prediction mode syntax is a directional prediction mode in the approximately vertical direction, a P coordinate value expression is used as the X coordinate value expression, and a Q coordinate value expression is used as the Y coordinate value expression. When the intra prediction mode syntax is a directional prediction mode in the approximately horizontal direction, a Q coordinate value expression is used as the X coordinate value expression, and a P coordinate value expression is used as the Y coordinate value expression. In other cases, the Q coordinate value expression is used for both the X coordinate value expression and the Y coordinate value expression (in this case, both the X coordinate value and the Y coordinate value are equivalent to the binarization method of HEVC).
[0105] For the P coordinate value, the entropy coding unit 130 transmits last_sig_coeff_p_suffix but does not transmit last_sig_coeff_p_prefix. Note that the maximum value of last_sig_coeff_p_suffix is pLength.
[0106] For the Q coordinate value, the entropy coding unit 130 transmits both last_sig_coeff_q_prefix and last_sig_coeff_q_suffix. The minimum value of last_sig_coeff_q_prefix is 0, and the maximum value is (log2qSize<<1)-1. Here, log2qSize is the logarithm to the base 2 of the side length of the block. For example, when the width of the transform block size is 16, log2qSize is 4, and the maximum value of last_sig_coeff_q_prefix to be transmitted is 7.
[0107] last_sig_coeff_q_suffix is not transmitted if last_sig_coeff_q_prefix<=3. If last_sig_coeff_q_prefix>3, the minimum value of last_sig_coeff_q_suffix to be transmitted is 0, and the maximum value is (1<<((last_sig_coeff_q_prefix>>1)-1))-1.
[0108] The Q coordinate value is calculated as Q=last_sig_coeff_q_prefix when last_sig_coeff_q_suffix is not transmitted, and as Q=(1<<((last_sig_coeff_q_prefix>>1)-1)*(2+(last_sig_coeff_q_prefix & 1))+last_sig_coeff_q_suffix when last_sig_coeff_q_suffix is transmitted.
[0109] In this embodiment, when (X,Y)=(14,0) and (X,Y)=(0,3) are binarized in a 16×16 block under the same conditions as above, the result is as follows: Specifically, in the case of a directional prediction mode in the approximately vertical direction, the P coordinate value expression is used as the X coordinate value expression, and the Q coordinate value expression is used as the Y coordinate value expression.
[0110] When the X coordinate value (P coordinate value) of (X,Y)=(14,0) is binarized, last_sig_coeff_x_prefix is not transmitted and last_sig_coeff_x_suffix="1110". When the Y coordinate value (Q coordinate value) of "0" is binarized, last_sig_coeff_y_prefix="0" and last_sig_coeff_y_suffix is not transmitted, so the total number of bits after binarization for the X coordinate value and Y coordinate value is 5 bits.
[0111] When the X coordinate value (P coordinate value) of (X,Y)=(0,3) is binarized as "0", last_sig_coeff_x_prefix is not transmitted and last_sig_coeff_x_suffix="0000". When the Y coordinate value (Q coordinate value) of "3" is binarized as "last_sig_coeff_y_prefix="1110" and last_sig_coeff_y_suffix is not transmitted, so the total number of bits after binarization for the X coordinate value and Y coordinate value is 8.
[0112] In the case of a directional prediction mode in the approximately vertical direction, the probability that the final significant coefficient is at the position (X,Y)=(14,0) is higher than the probability that the final significant coefficient is at the position (X,Y)=(0,3). Therefore, the entropy coding unit 130 according to this embodiment can reduce the number of bits after binarization more than in the comparative example.
[0113] However, in this embodiment, when the maximum value of the P coordinate value is significantly different from the maximum value of the Q coordinate value, that is, when the block has a vertically or horizontally elongated shape, the entropy coding unit 130 may also binarize and transmit the P coordinate value in a conventional representation (that is, a variable-length binarization method). "Significantly different" refers to a case where the larger of the P and Q coordinate values is, for example, twice or more the smaller of the two.
[0114] In addition, in this embodiment, if the maximum value of the P coordinate value is equal to or less than a predetermined value, the entropy coding unit 130 may also binarize and transmit the P coordinate value in a conventional representation (i.e., variable length binarization method). The predetermined value is, for example, 4.
[0115] <Decryption device> Next, the decoding device according to this embodiment will be described, focusing mainly on the differences from the above-mentioned encoding device 1.
[0116] (Configuration of the Decoding Device) Fig. 9 is a diagram showing the configuration of a decoding device 2 according to this embodiment. As shown in Fig. 9, the decoding device 2 includes an entropy decoding unit 200, an inverse quantization and inverse transform unit 210, a synthesis unit 220, a memory 230, and a prediction unit 240.
[0117] The entropy decoding unit 200 decodes the encoded stream generated by the encoding device 1. The entropy decoding unit 200 acquires information related to prediction processing and information related to transformation processing, outputs the information related to prediction processing to the prediction unit 240, and outputs the information related to transformation processing to the inverse quantization and inverse transform unit 210. The information related to prediction processing includes intra prediction mode syntax.
[0118] In the multi-value processing of the transform coefficients after the arithmetic decoding processing on the encoded data, the entropy decoding unit 200 performs a scan processing according to the scan order, and outputs the transform coefficients (specifically, the quantized transform coefficients) corresponding to the block to be decoded to the inverse quantization / inverse transform unit 210.
[0119] The inverse quantization and inverse transform unit 210 performs inverse quantization processing and inverse transform processing on a block-by-block basis. The inverse quantization and inverse transform unit 210 includes an inverse quantization unit 211 and an inverse transform unit 212.
[0120] The inverse quantization unit 211 performs an inverse quantization process corresponding to the quantization process performed by the quantization unit 122 of the encoding device 1. The inverse quantization unit 211 restores the transform coefficients of the block to be decoded by inverse quantizing the quantized transform coefficients output from the entropy decoding unit 200 using a quantization parameter (Qp) and a quantization matrix, and outputs the restored transform coefficients to the inverse transform unit 212.
[0121] The inverse transform unit 212 performs inverse transform processing corresponding to the transform processing performed by the transform unit 121 of the encoding device 1. The inverse transform unit 212 performs inverse transform processing on the transform coefficients output from the inverse quantization unit 211 to restore the prediction residual, and outputs the restored prediction residual (restored prediction residual) to the synthesis unit 220.
[0122] The synthesis unit 220 decodes (reconstructs) the original block by synthesizing the prediction residual output from the inverse transform unit 212 and the prediction block output from the prediction unit 240 on a pixel-by-pixel basis, and outputs the decoded block to the memory 230.
[0123] The memory 230 stores the decoded blocks output from the synthesis unit 220, and accumulates the decoded blocks as decoded images on a frame-by-frame basis. The memory 230 outputs the decoded blocks or the decoded images to the prediction unit 240. The memory 230 also outputs the decoded images on a frame-by-frame basis to the outside of the decoding device 2. Note that a loop filter may be provided between the synthesis unit 220 and the memory 230.
[0124] The prediction unit 240 performs prediction on a block-by-block basis. The prediction unit 240 includes an inter prediction unit 241, an intra prediction unit 242, and a switching unit 243.
[0125] The inter prediction unit 241 performs inter prediction using correlation between frames. Specifically, the inter prediction unit 241 predicts a target block of inter prediction using a decoded image stored in the memory 230 as a reference image based on information related to inter prediction (e.g., motion vector information) output from the entropy decoding unit 200 to generate an inter prediction block, and outputs the generated inter prediction block to the switching unit 243.
[0126] The intra prediction unit 242 performs intra prediction using spatial correlation within a frame. Specifically, the intra prediction unit 242 generates an intra prediction block by referring to decoded pixels around a target block for intra prediction among decoded images stored in the memory 230, using an intra prediction mode according to information on intra prediction (i.e., intra prediction mode syntax) output from the entropy decoding unit 200, and outputs the generated intra prediction block to the switching unit 243.
[0127] The switching unit 243 switches between the inter-predicted block output from the inter-prediction unit 241 and the intra-predicted block output from the intra-prediction unit 242 , and outputs either the predicted block to the synthesis unit 220 .
[0128] In this way, the decoding device 2 according to this embodiment performs decoding on a block-by-block basis that constitutes an image. The decoding device 2 includes an intra prediction unit 242 that generates a prediction block corresponding to a block to be decoded by intra prediction using decoded pixels around the block to be decoded, an entropy decoding unit 200 that outputs transform coefficients of the block to be decoded by decoding the encoded stream, an inverse quantization and inverse transform unit 210 that performs inverse quantization and inverse transform on the transform coefficients output by the entropy decoding unit to restore prediction residuals on a block-by-block basis, and a synthesis unit 220 that synthesizes the prediction block and the restored prediction residuals to restore the block to be decoded.
[0129] (Entropy Decoding Unit Configuration) Next, a description will be given of the configuration of the entropy decoding unit 200 according to this embodiment. Fig. 10 is a diagram showing the configuration of the entropy decoding unit 200 according to this embodiment.
[0130] As shown in FIG. 10, the entropy decoding unit 200 includes a decoding unit 201, a multi-value conversion unit 202, a deserialization unit 203, and a decoding control unit 204.
[0131] The decoding unit 201 parses the encoded stream and decodes a binary signal from the encoded stream. In this embodiment, the decoding unit 201 obtains an intra prediction mode syntax and outputs the intra prediction mode syntax to the decoding control unit 204.
[0132] Under the control of the decoding control unit 204, the multi-value conversion unit 202 converts the binary signal output by the decoding unit 201 into a multi-value signal, and outputs the multi-value signal to the deserialization unit 203. This restores the quantized transform coefficients. The multi-value conversion unit 202 also converts the binarized last position (last_sig_coeff_x, last_sig_coeff_y) into coordinate values, which are multi-value signals, and outputs the coordinate values.
[0133] The deserializer 203 deserializes the multi-level signal output by the multi-level converter 202 in accordance with the scan order, and outputs transform coefficients (quantized transform coefficients) in units of blocks to the inverse quantizer 211 .
[0134] The decoding control unit 204 identifies the binarization method applied to the binarization of the last position based on the intra prediction mode syntax indicating the intra prediction mode applied to the block to be decoded. The decoding control unit 204 controls the multi-value conversion unit 202 to perform multi-value conversion according to the identified binarization method.
[0135] In this embodiment, the decoding control unit 204 determines whether the prediction mode is a directional prediction mode in the approximately vertical direction, a directional prediction mode in the approximately horizontal direction, or another prediction mode according to the intra prediction mode syntax indicating the intra prediction mode used for intra prediction of the block to be decoded. Here, the decoding control unit 204 directly determines whether the prediction mode is a directional prediction mode in the approximately vertical direction, a directional prediction mode in the approximately horizontal direction, or another prediction mode from the intra prediction mode syntax indicating the intra prediction mode, without specifying the intra prediction mode from the intra prediction mode syntax. Such a direct determination operation is the same as the determination operation in the encoding control unit 134 described above.
[0136] As shown in Figure 6 (a), when the intra prediction mode syntax applied to the block to be decoded indicates a directional prediction mode in the approximately vertical direction, the decoding control unit 204 applies multi-value conversion corresponding to a fixed-length binarization method to the X coordinate value (last_sig_coeff_x) that constitutes the last position, and applies multi-value conversion corresponding to a variable-length binarization method to the Y coordinate value (last_sig_coeff_y) that constitutes the last position.
[0137] As shown in Figure 7 (b), when the intra prediction mode syntax applied to the block to be decoded indicates a directional prediction mode in the approximately horizontal direction, the decoding control unit 204 applies multi-value conversion corresponding to a variable length binarization method to the X coordinate value (last_sig_coeff_x) that constitutes the last position, and applies multi-value conversion corresponding to a fixed length binarization method to the Y coordinate value (last_sig_coeff_y) that constitutes the last position.
[0138] As shown in Figure 7 (c), when the intra prediction mode syntax applied to the block to be decoded is an intra prediction mode syntax other than an approximately vertical directional prediction mode and an approximately horizontal directional prediction mode, the decoding control unit 204 applies multi-value conversion corresponding to a variable length binarization method to both the X coordinate value (last_sig_coeff_x) and the Y coordinate value (last_sig_coeff_y) that constitute the last position.
[0139] <Actions and Effects> The entropy coding unit 130 according to this embodiment has a coding control unit 134 that determines the binarization method to be applied to the binarization of the last position indicating the position of the last significant coefficient included in the transform coefficients, based on the intra prediction mode syntax used for intra prediction.
[0140] In addition, the entropy decoding unit 200 according to this embodiment has a decoding control unit 204 that identifies the binarization method applied to the binarization of the last position indicating the position of the last significant coefficient included in the transform coefficients, based on the intra prediction mode syntax used for intra prediction.
[0141] In this way, by making it possible to control the binarization for transmitting the last position according to the intra-prediction mode syntax, it is possible to improve the efficiency of coding the last position.
[0142] <Example of change> In the above-described embodiment, an example has been described in which the encoding control unit 134 directly determines a binarization method from the syntax indicating the intra prediction mode without specifying the intra prediction mode from the syntax. Similarly, an example has been described in which the decoding control unit 204 directly specifies a binarization method from the syntax indicating the intra prediction mode without specifying the intra prediction mode from the syntax.
[0143] However, as a modification of the embodiment, the encoding control unit 134 may specify an intra prediction mode from the syntax indicating the intra prediction mode, and then determine a binarization method from the specified intra prediction mode. Similarly, as a modification of the embodiment, the decoding control unit 204 may specify an intra prediction mode from the syntax indicating the intra prediction mode, and then determine a binarization method from the specified intra prediction mode.
[0144] Therefore, "determining / specifying the binarization method based on the intra prediction mode" is intended to include both cases where the binarization method is determined / specified using the method of the embodiment described above, and where the binarization method is determined / specified using the method of the modified example of the embodiment.
[0145] <Other embodiments> As described above, in near-vertical intra prediction, it is considered that there is a high possibility that transform coefficients with large values will appear at the top of the block. However, as shown in FIG. 11, when moving away from the top of the block, the position with a high probability of appearance is considered to change to the left side of the block. The black area shown in FIG. 11 is an area where it is considered that transform coefficients with large values are likely to appear when near-vertical intra prediction is performed. In such a case, it is considered that efficiency can be improved by changing the representation of the P coordinate value according to the Q coordinate value.
[0146] Therefore, the entropy coding unit 130 transmits the Q coordinate value in the same manner as in the above-mentioned embodiment. On the other hand, for the P coordinate value, the entropy coding unit 130 changes the maximum value of last_coeff_p_suffix used to express the P coordinate value according to the Q coordinate value. Specifically, when the maximum value of last_coeff_p_suffix is 0, the entropy coding unit 130 does not transmit last_coeff_p_suffix. For example, when the Q coordinate value is N or less, the entropy coding unit 130 sets the maximum value of last_coeff_p_suffix to 0 when transmitting the P coordinate value, and does not transmit last_coeff_p_suffix. When the Q coordinate value is greater than N, the P coordinate value is transmitted in the same manner as in the conventional embodiment. A small value such as 0 or 1 is preferable for N. In this way, the entropy coding unit 130 (coding control unit 134) applies a variable length binarization method to the P coordinate value instead of a fixed length binarization method based on the Q coordinate value.
[0147] When the binarization method of the P coordinate value is changed according to the Q coordinate value, the entropy coding unit 130 transmits the Q coordinate value before transmitting the P coordinate value. For example, when the intra prediction mode applied to the encoding target block is a directional prediction mode in the approximately vertical direction, the entropy coding unit 130 sets the X coordinate value=the P coordinate value and the Y coordinate value=the Q coordinate value, and transmits the Y coordinate value first and the X coordinate value later. In other cases, the X coordinate value is transmitted first and the Y coordinate value is transmitted later as in the conventional case.
[0148] A program may be provided that causes a computer to execute each process performed by the encoding device 1. A program may be provided that causes a computer to execute each process performed by the decoding device 2. The program may be recorded in a computer-readable medium. Using a computer-readable medium, it is possible to install the program in a computer. Here, the computer-readable medium on which the program is recorded may be a non-transient recording medium. The non-transient recording medium is not particularly limited, and may be, for example, a recording medium such as a CD-ROM or a DVD-ROM.
[0149] The circuits for executing the processes performed by the encoding device 1 may be integrated, and the encoding device 1 may be configured as a semiconductor integrated circuit (chip set, SoC). The circuits for executing the processes performed by the decoding device 2 may be integrated, and the decoding device 2 may be configured as a semiconductor integrated circuit (chip set, SoC).
[0150] The above describes the embodiments in detail with reference to the drawings, but the specific configuration is not limited to that described above, and various design changes, etc. are possible without departing from the spirit of the invention. [Explanation of symbols]
[0151] 1: Encoding device 2: Decryption device 100: Block division section 110: Subtraction section 120: Transformation and quantization section 121: Conversion section 122: Quantization section 130: Entropy coding unit 131: Serialization section 132: Binarization section 133: Encoding section 134: Encoding control section 140: Inverse quantization and inverse transformation unit 141: Inverse quantization section 142: Inverse conversion section 150: Composite section 160:Memory 170: Prediction Department 171: Inter prediction section 172: Intra prediction unit 173: Switching section 200: Entropy decoding unit 201: Decryption unit 202: Multi-level conversion section 203: Deserialization part 204: Decoding control unit 210: Inverse quantization and inverse transformation unit 211: Inverse quantization section 212: Inverse conversion unit 220: Composite section 230: Memory 240: Prediction Department 241: Inter prediction unit 242: Intra prediction unit 243: Switching section
Claims
1. A decoding device that performs decoding on a block-by-block basis of an image, an intra prediction unit that generates a prediction block corresponding to a block to be decoded by intra prediction using decoded pixels surrounding the block to be decoded; An encoder that outputs transform coefficients of the block to be decoded by decoding the encoded stream. A trope decoding unit; an inverse quantization and inverse transform unit that performs an inverse quantization process and an inverse transform process on the transform coefficients output by the entropy decoding unit to restore prediction residuals in units of blocks; a synthesis unit that synthesizes the prediction block and the reconstructed prediction residual to reconstruct the current block, A decoding device characterized in that the entropy decoding unit directly identifies one of two decoding methods for the transform coefficients from a syntax indicating the intra prediction mode to be used for the intra prediction, without identifying the intra prediction mode from the syntax.
2. A program for causing a computer to function as the decoding device according to claim 1.
Citation Information
Patent Citations
Devices and methods for context reduction in last significant coefficient position coding
US20130202026A1
Method and apparatus for coding video and method and apparatus for decoding video accompanied with arithmetic coding
WO2013002555A2
