Decoding and encoding methods

The intra-screen prediction method improves image coding efficiency by using intra-prediction mode mapping and entropy coding to reduce bit requirements, addressing the challenge of high data volume in high-resolution images.

JP2024128147AActive Publication Date: 2024-09-20DOLBY LABORATORIES LICENSING CORP
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2024114022
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2013-01-17
Filing Date
2024-07-17
Publication Date
2024-09-20
Estimated Expiration
2033-01-17

AI Technical Summary

Technical Problem

High-resolution and high-quality images result in increased data volume, leading to higher transmission and storage costs due to inefficient image compression techniques.

Method used

An intra-screen prediction method that improves image coding efficiency by using intra-prediction mode mapping and entropy coding to reduce the number of bits required for encoding and decoding intra-screen prediction mode information.

Benefits of technology

Enhances encoding efficiency by using short codewords for frequently occurring intra-prediction modes, thereby reducing the bit requirement for encoding and decoding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024128147000019
    Figure 2024128147000019
  • Figure 2024128147000020
    Figure 2024128147000020
  • Figure 2024128147000014
    Figure 2024128147000014
Patent Text Reader

Abstract

To provide an intra-frame prediction mode mapping method for improving decoding efficiency.SOLUTION: A decoding method decodes a syntax element of information on a candidate intra prediction mode when one of the candidate intra prediction modes for the current block is the same as the intra prediction mode, and decodes syntax elements of the remaining intra prediction modes when they are not the same. A prediction block is generated on the basis of the intra prediction mode of the current block, and a reconstructed block is generated on the basis of the prediction block. The remaining intra prediction mode information has a shorter codeword length of an index than the candidate intra prediction mode. The syntax element of the remaining intra prediction mode information is a value coded using a fixed 5 bits.SELECTED DRAWING: None
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an intra-frame prediction method and an image decoding device, and more particularly to an encoding / decoding method and an image decoding device. The present invention relates to a method and an apparatus for performing the same. [Background technology]

[0002] In recent years, HD (High Definition) images and UHD (Ultra High Definition) images have become There are various demands for high-resolution, high-quality images such as (high definition) images. The higher the resolution and quality of image data, the more difficult it becomes to use existing image data. The amount of data increases relatively compared to the existing wired or wireless broadband lines. When transmitting image data using a computer and storing it using an existing storage medium, the transmission costs and Storage costs will increase. This will occur as image data becomes higher resolution and higher quality. To solve such problems, highly efficient image compression techniques can be utilized.

[0003] As an image compression technique, the current picture is compressed by extracting the image data from the previous or next picture. Inter-frame prediction technology predicts pixel values ​​contained in an image, and uses pixel information from the current image to predict the current Intra-screen prediction technology predicts pixel values ​​contained in an image, and short codes are assigned to values ​​that appear frequently. Various techniques, such as entropy coding, which assigns longer codes to values ​​that occur less frequently, are used. There are techniques for effectively compressing image data using such image compression techniques, and the image data can be transmitted or received. can be stored. Summary of the Invention [Problem to be solved by the invention]

[0004] A first object of the present invention is to provide an intra-frame prediction mode mapping method for improving image coding efficiency. The purpose is to provide a method.

[0005] A second object of the present invention is to provide an intra-frame prediction mode mapping method for improving image coding efficiency. An object of the present invention is to provide an apparatus for carrying out the method. [Means for solving the problem]

[0006] In order to achieve the first object of the present invention, an intra prediction method according to one aspect of the present invention includes: One of multiple candidate intra prediction modes for the current block and the intra-frame prediction mode of the current block are the same, One of multiple candidate intra prediction modes for the current block If the intra prediction mode of the current block is not the same as the intra prediction mode of the current block, Decoding a syntax element that contains information about the intra prediction mode of the current block to derive the and determining the intra prediction mode of the current block by using the intra prediction Decoding a syntax element containing information about the mode may result in decoding a syntax element containing intra prediction mode information. The table is based on the intra prediction mode and the index of the intra prediction mode. In the table, the intra-frame prediction mode is a table that maps the frame information to the frame information. If the prediction mode is anar mode, the index is 0. If the prediction mode is DC mode, the index is If the prediction mode is directional, the index is determined according to the direction of the intra-prediction mode. The current block can be mapped to boxes 2 to 34. The syntax elements containing the information to be The information of the block is the remaining intra prediction modes excluding the multiple candidate intra prediction modes for the current block. The prediction mode information may indicate one of the intra-frame prediction modes. Multiple candidate intra prediction modes for a block are derived based on the neighboring blocks of the current block. Three different prediction modes are derived based on the selected intra prediction mode and the additional intra prediction mode. When the flag information is 1, the flag information and one of the candidate intra prediction modes of the current block based on the Indicates that the intra prediction mode is the same as that of the current block, and the flag information is 0. Based on the flag information, a plurality of candidate intra-frame prediction modes of the current block and the image of the current block are selected. It can be indicated that the intra prediction mode of the current block is not the same as the intra prediction mode. Decoding a syntax element that contains information about the intra prediction mode of the current block to derive the In the table, three intra-prediction modes are selected as candidate intra-prediction modes for the current block. The remaining 32 intra-picture prediction mode information is derived by excluding the 1 intra-picture prediction mode. A syntax element that contains the intra prediction mode information of the current block and the intra prediction mode of the current block. The remaining 32 intra-frame prediction mode information is mapped to syntax elements. The intra prediction mode of the current block is set to the intra prediction mode of the current block. It can include.

[0007] In order to achieve the second object of the present invention, an image decoding apparatus according to one aspect of the present invention comprises: One of multiple candidate intra prediction modes for the current block and flag information indicating whether the intra-frame prediction mode of the current block is the same as that of the current block. One of multiple candidate intra-frame prediction modes for the block and the current block If the intra prediction mode of the current block is not the same as the intra prediction mode of the previous block, An entropy decoder decodes and constructs syntax elements that contain information about the current block. One of the multiple candidate intra prediction modes and the current block If the intra prediction mode is not the same as the current block, the A prediction unit for deriving an intra-frame prediction mode, and the table includes an intra-frame prediction mode and an intra-frame prediction The table maps the image to the index information of the mode. If the prediction mode is planar, the index is 0. If the intra prediction mode is DC, the index is 1. If it is a directional intra prediction mode, the index is 1. If it is a directional intra prediction mode, the index is the direction of the intra prediction mode. The syntax elements can be mapped to indices 2 to 34 by The value is encoded using 5 bits, and the 5 bits of information are the One of the remaining intra-picture prediction mode information excluding the multiple candidate intra-picture prediction modes The information may indicate an intra prediction mode. The mode is an intra-frame prediction mode derived based on the neighboring blocks of the current block and an additional frame. There may be three different intra prediction modes derived based on the intra prediction mode. If the flag information is 1, the current block candidate screen is displayed based on the flag information. One of the candidate intra prediction modes and the intra prediction mode of the current block If the flag information is 0, the current block is The multiple candidate intra-prediction modes of the block are not the same as the intra-prediction mode of the current block. The prediction unit can select a number of candidate images for the current block in the table. As the intra-prediction mode, the remaining 32 intra-prediction modes are The remaining 32 intra-frame prediction mode information and the intra-frame prediction mode of the current block are calculated. The remaining 32 pieces of intra-frame prediction mode information are mapped to the syntax elements including the information to be used. One intra prediction mode mapped to the syntax element is used as the intra prediction mode of the current block. This can be realized by setting Effect of the Invention

[0008] As described above, according to the intra prediction method and the image decoding device according to the embodiment of the present invention, In addition, the intra-frame prediction mode information is encoded and decoded using a short number of bits, resulting in a high-speed image coding system. This can improve the encoding efficiency. [Brief description of the drawings]

[0009] [Figure 1] 1 is a block diagram illustrating an encoding device according to an embodiment of the present invention. [Diagram 2] FIG. 2 is a block diagram illustrating a decoder according to an embodiment of the present invention. [Diagram 3] 1 is a flowchart illustrating a method for decoding an intra-frame prediction mode of a current predictor according to an embodiment of the present invention. [Figure 4] 1 is a conceptual diagram illustrating a method for encoding an intra-frame prediction mode according to an embodiment of the present invention. [Diagram 5] FIG. 2 is a conceptual diagram illustrating a method for decoding an intra-frame prediction mode according to an embodiment of the present invention. [Figure 6] FIG. 13 is a conceptual diagram showing a case where a code number mapping table according to an embodiment of the present invention is not used. [Figure 7]1 illustrates non-directional intra prediction modes and directional intra prediction modes when using 35 intra prediction modes according to an embodiment of the present invention. [Figure 8] 1 illustrates non-directional intra prediction modes and directional intra prediction modes when using 19 intra prediction modes according to an embodiment of the present invention. [Figure 9] 1 illustrates non-directional intra prediction modes and directional intra prediction modes when using 11 intra prediction modes according to an embodiment of the present invention. [Figure 10] 1 is a conceptual diagram illustrating a code number mapping method and a codeword mapping method excluding MPM according to an embodiment of the present invention. [Figure 11] 1 is a conceptual diagram showing a part of an image encoding device and an image decoding device that perform encoding and decoding in an intra-screen prediction mode according to an embodiment of the present invention. [Figure 12] 1 is a conceptual diagram showing a part of an image encoding device and an image decoding device that perform encoding and decoding in an intra-screen prediction mode according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] The components disclosed in the embodiments and drawings of the present invention are different from each other in the characteristics of the image encoding device. Each component is shown as an independent part to show its characteristic function. This does not imply that the Software is made as a single piece of hardware or software. , each component is arranged so as to be included separately in each component for convenience of explanation. At least two of the components are combined to form one component. Alternatively, one component may be divided into a plurality of components to perform the functions. The embodiments in which each component is integrated and separated do not depart from the essence of the present invention. As long as such is not included in the scope of the present invention.

[0011] In addition, some of the components disclosed in the present invention perform essential functions in the present invention. It is not a required component, but merely an optional component to improve performance. The invention is not limited to the components used merely to improve performance, but may be used to achieve the essence of the invention. It can be implemented by including only the essential components, and is a choice used solely for performance enhancement. A structure including only the essential components, excluding the essential components, is also included within the scope of the present invention.

[0012] FIG. 1 is a block diagram showing an encoding device according to an embodiment of the present invention.

[0013] As shown in FIG. 1, the encoding device includes a division unit 100, a prediction unit 110, and an intra-frame prediction unit 103. , an inter-picture prediction unit 106, a transform unit 115, a quantization unit 120, a reordering unit 125, and an entropy The encoder 130, the inverse quantizer 135, the inverse transformer 140, the filter 145, and the memory 1 It can have 50.

[0014] The encoding device is realized by an image encoding method described in the following embodiments of the present invention. However, some of the components may be operated in a different way to reduce the complexity of the encoder. For example, the prediction unit may not use intra-frame prediction for fast real-time coding. In order to perform real-time coding, all intra-frame prediction modes are used. Instead of using a method for selecting the optimal intra-picture coding method based on the number of intra-picture predictions, The prediction modes are used to select one of them as the final intra prediction mode. As yet another example, a method for selecting a frame by performing intra prediction or inter prediction may be used. When performing the above, it is possible to restrict the type of prediction block to be used.

[0015] The unit of blocks processed by the encoding device is the coding unit for performing encoding and the prediction unit for performing prediction. The coding unit is called a CU (Coding Unit). The prediction unit is PU (Prediction Unit), and the transformation unit is TU (Transformation Unit). The term "sform unit" can be used to express the concept of "sform unit."

[0016] In the division unit 100, one image (picture) is divided into a plurality of coding blocks, a prediction block, , and a combination of transformation blocks, and then, as a given criterion (e.g., a cost function), Select one combination of coding block, prediction block, and transformation block from For example, to divide an image into coding units, Recursive trees such as QuadTree Structures In the following, in the embodiment of the present invention, the meaning of the coding block is as follows: Not only in the sense of a block that encodes, but also in the sense of a block that decodes It can be used.

[0017] A prediction block can be a unit for performing intra-frame prediction or inter-frame prediction. The blocks may be square blocks such as 2N x 2N or N x N. Using DIP (Short Distance Intra Prediction) The block for performing inter prediction may have a rectangular shape. Prediction blocks of square shape such as 2Nx2N, NxN or square shape with the same shape 2N×N, N×2N, or asymmetric AMP (Asymetr There is a prediction block division method using the ic motion partitioning (ICMP). The conversion method in the conversion unit 115 may vary depending on the form of the prediction block.

[0018] The prediction unit 110 includes an intra prediction unit 103 that performs intra prediction and an inter prediction unit 104 that performs inter prediction. and a prediction unit 106. It may be determined whether to perform intra-frame prediction. The processing unit in which prediction is performed and the prediction method are determined. For example, when intra-frame prediction is performed, the prediction mode may differ from the processing block unit. The prediction code is determined based on the predicted block, and the prediction process is performed based on the transformation block. The residual between the generated predicted block and the original block can be calculated. The difference value (residual block) can be input to the transform unit 115. The prediction mode information, motion vector information, etc. used are entropy coded together with the residual values. The signal can be encoded by the signal processor 130 and then transmitted to the decoder.

[0019] When using PCM (Pulse Coded Modulation) encoding mode In this case, the original block is directly encoded and decoded without performing prediction via the prediction unit 110. It is also possible to transmit the signal to a decoding unit.

[0020] In the intra prediction unit 103, the prediction unit 104 predicts the current block (the block to be predicted) and the surrounding blocks Based on the reference pixels, an intra-predicted block can be generated. In order to calculate the optimal intra prediction mode for the current block, the intra prediction mode is The blocks are generated using multiple intra-frame prediction modes, and then One predicted block can be selected and used as the predicted block for the current block. In the intra-frame prediction method, the intra-frame prediction mode uses reference pixel information according to the prediction direction. A directional prediction mode uses directional information when making predictions, and a non-directional mode does not use directional information when making predictions. A mode for predicting luminance information and a mode for predicting chrominance information can be provided. In order to predict color difference information, intra prediction is used to predict luminance information. Either mode information or predicted luminance signal information can be utilized.

[0021] The current block for which intra prediction is performed using one intra prediction mode is The current block is based on the intra-frame prediction mode information used when the surrounding blocks perform intra-frame prediction. The intra prediction mode of the current block is predicted, and the intra prediction mode information of the current block is encoded. In other words, the intra-frame prediction mode of the current block can be used to predict the The prediction mode can be predicted from the intra-frame prediction mode of the prediction block to be predicted. As a method for predicting the intra-frame prediction mode of the current block using the mode information, the following is used: Such a method can be used.

[0022] 1) The intra prediction mode of the current block is the same as the intra prediction mode of the neighboring block. If the current block is a frame, a certain flag information is encoded to determine the intra prediction mode of the current block and the intra prediction mode of the neighboring blocks. In addition, information that the intra prediction mode is the same as the intra prediction mode can be transmitted.

[0023] 2) If the intra prediction mode of the current block and the intra prediction mode of the neighboring block are different, If different, the intra-frame prediction mode of the current block is used to encode the prediction mode information of the current block. The measurement mode information can be entropy coded.

[0024] In 1) and 2), the intra prediction mode of the current block is used to encode the The intra prediction modes of the surrounding blocks are defined as the term candidate intra prediction modes. Used.

[0025] When performing the above methods 1) and 2), if the intra-frame prediction mode of the surrounding blocks cannot be used, If no neighboring blocks exist (e.g., there are no neighboring blocks or the neighboring blocks perform inter prediction), In this case, the intra prediction mode of the current block is set to a specific intra prediction mode value. It can be set as a candidate intra prediction mode value for prediction.

[0026] The intra prediction unit 103 predicts the current block based on reference pixels around the current block, which are pixel information within the current image. Based on the pixel information, an intra-predicted block can be generated. The edge block is a block that has undergone inter-prediction, and the reference pixel is a block that has undergone inter-prediction. In this case, the pixel in question can be used to The pixels of the surrounding blocks that have been intra-predicted are used as reference pixels. The current block can be intra-predicted, i.e., without reference pixels available. In this case, other pixels can be used in place of the unused reference pixels.

[0027] A prediction block can contain multiple transform blocks. , when the size of the prediction block and the size of the transformation block are the same, Based on the pixel on the left, the pixel on the right, and the pixel on the top Intra prediction can be performed on the predicted block. However, when intra prediction is performed, The size of the prediction block is different from the size of the transformation block, and multiple If the transformation block is included, the reference pixel determined based on the transformation block is used. Intra-frame prediction can be performed using the

[0028] Also, one coding block may be divided into multiple prediction blocks, but the coding block Only in the minimum coding block corresponding to the smallest block size, one coding block is generated. Intra prediction is performed using an NxN partition in which the frame is divided into four square prediction blocks. It is possible.

[0029] The intra-frame prediction method uses MDIS (Mode Descriptor Differential Inference) for reference pixels depending on the intra-frame prediction mode. After applying the endent intra smoothing filter, the predicted block The type of MDIS filter applied to the reference pixel can be varied. An additional filter applied to the predicted block in a picture after intra prediction has been performed. The MDIS filter, which is a filter for the reference pixel, calculates the pixel size in the image generated after the prediction is made. It can be used to reduce the discrepancy between the predicted block and the MD When performing IS filtering, the reference pixel and the pixel are selected according to the direction of the intra-frame prediction mode. Various filtering is performed on some columns in the predicted block in a plane. It is possible to do so.

[0030] According to an embodiment of the present invention, when performing intra prediction according to the size of the current block, The number of available intra prediction modes may vary. The number of intra prediction modes available depending on the size of the current block. Therefore, when performing intra prediction on the current block, The size of the block is determined, and the image that can be used by performing intra-image prediction is An intra prediction mode may be determined.

[0031] The inter prediction unit 106 predicts at least one of a previous image and a subsequent image of the current image. It can perform prediction by referring to the block information contained in one image. 106 may include a reference image interpolation unit, a motion prediction unit, and a motion compensation unit.

[0032] The reference image interpolation unit receives reference image information from the memory 150 and interpolates integer pixels in the reference image. For luminance pixels, it is possible to generate pixel information of less than 1000 pixels. To generate the following pixel information, a DCT-based 8-tab interpolation filter with different filter coefficients is used. A DCT-based Interpolation Filter can be used. In the case of color difference signals, the filter is used to generate pixel information of integer pixels or less in 1 / 8 pixel units. DCT-based 4-tab interpolation filter with different filter coefficients A poling filter may be used.

[0033] The inter-picture prediction unit 106 performs motion prediction based on the reference picture interpolated by the reference picture interpolation unit. As a method for calculating motion vectors, FBMA (Full Frame Transformation) search-based Block Matching Algorithm), T SS (Three Step Search), NTS (New Three-Step) Various methods can be used, such as the Motion Vector Search Algorithm. has half or quarter pixel motion vector values ​​based on the interpolated pixels. The inter prediction unit 106 performs one of various inter prediction methods. The current block can be predicted by applying the inter-frame prediction method. For example, the Skip method, the Merge method, and the Advanced Multimedia Privacy Policy (AMVP) Various methods, such as the NC Motion Vector Prediction (NCVP) method may be used.

[0034] The predicted block generated by the prediction unit 110 (intra-frame predicted block or inter-frame predicted block) The residual is the difference between the predicted block and the original block. A residual block may be generated that contains the residual information.

[0035] The residual block may be input to a transform unit 115. The transform unit 115 transforms the original block The residual block, which contains the residual value information between the predicted block and the (Discrete Cosine Transform) or DST(Discrete It can be transformed using a transformation method such as the sine transform. Whether to apply DCT or DST to transform the residual block depends on the residual Intra-frame prediction mode information of the predicted block used to generate the block and the predicted block That is, the transform unit may determine the size of the prediction block based on the size information of the prediction block. The conversion method can be applied differently depending on the size of and prediction method for .

[0036] The quantization unit 120 can quantize the value converted to the frequency domain by the conversion unit 115. The quantization factor can vary depending on the block or on the importance of the image. The values ​​calculated by the quantization unit 120 are provided to the inverse quantization unit 135 and the reordering unit 125. can.

[0037] The reordering unit 125 may perform reordering of coefficient values ​​for the quantized residual values. The reordering unit 125 performs a coefficient scanning method. The method converts two-dimensional block-type coefficients into one-dimensional vector form. For example, For example, the reordering unit 125 uses a zig-zag scan method. Then, it scans from the DC coefficients to the high frequency coefficients and converts them into a one-dimensional vector form. The size of the transformation block and the intra-frame prediction mode can be used to change the zigzag effect. As an alternative to the row-scan method, a vertical scan method is used, which scans two-dimensional block-type coefficients in the column direction. Scanning method: A horizontal scanning method is used to scan two-dimensional block-type coefficients in the row direction. That is, zigzag can be generated depending on the size of the transform block and the intra-frame prediction mode. One of the scanning methods, vertical scanning and horizontal scanning, is used. The Board can decide whether or not to approve the application.

[0038] The entropy coding unit 130 performs entropy coding based on the value calculated by the reordering unit 125. Entropy coding can be performed using, for example, the Exponential Golomb method. onential Golomb), CAVLC(Context-Adaptive Variable Length Coding), CABAC(Context-Ad Various coding schemes such as Adaptive Binary Arithmetic Coding An encryption method can be used.

[0039] The entropy coding unit 130 receives the coding block from the reordering unit 125 and the prediction unit 110. Residual value coefficient information and block type information, prediction mode information, division unit information, prediction block block information and transmission unit information, motion vector information, reference frame information, block interpolation information, It receives various information, such as filtering information, and generates entropy based on a predetermined encoding method. In addition, the entropy coding unit 130 can perform the reordering unit 125. The coefficient values ​​of the coding unit input from can be entropy coded.

[0040] The entropy coding unit 130 performs HEB (High Efficiency Block Coder) coding using CABAC. Integrity Binarization) method or CABAC bypass coding The coding is performed by using the CAVLC coefficient binarization method. Entropy coding can be performed using the Binarization method. do.

[0041] The entropy coding unit 130 performs binarization on the intra-frame prediction mode information to obtain the current The entropy coding unit 13 can code the intra-frame prediction mode information of the block. 0 may include a codeword mapping unit for performing such a binarization operation. Depending on the size of the prediction block used for intra-picture prediction, binarization can be performed in various ways. The codeword mapping unit uses a codeword mapping table to perform the binary conversion calculation. or a codeword mapping table is pre-stored. In yet another embodiment, the entropy coding unit 130 may A code number mapping unit performs code word mapping and a code word mapping unit performs code word mapping. The intra prediction mode information of the current block can be expressed using the coding part. The code number mapping unit and the code word mapping unit are provided with a code number mapping table and a code A word mapping table can be generated or stored.

[0042] The inverse quantization unit 135 and the inverse transformation unit 140 inversely quantize the value quantized by the quantization unit 120. The inverse quantization unit 135 and the inverse transformation unit 140 perform inverse transformation of the values ​​transformed by the transformation unit 115. The residual value (Residual) generated in the prediction unit 110 is processed by a motion estimation unit, a motion A reconstructed block is obtained by combining the predicted block predicted by the compensation unit and the intra prediction unit. (Reconstructed Block) can be generated.

[0043] The filter unit 145 includes a deblocking filter, an offset correction unit, and an ALF (Adaptive Latch). The filter may include at least one of the following:

[0044] The deblocking filter removes blockade caused by the boundaries between blocks in the reconstructed image. In order to decide whether to perform deblocking, the block distortion can be removed. Based on the pixels contained in some columns or rows contained in the block, It is determined whether to apply a deblocking filter to a block. When applying a filter, the stronger the deblocking filtering strength required, the stronger the filter ( Apply a Strong Filter or a Weak Filter. A deblocking filter can also be applied to remove vertical filtering and watermarks. When flat filtering is performed, horizontal filtering and vertical filtering are performed in parallel. Row processing can be performed.

[0045] The offset correction part calculates the original pixel-by-pixel difference for the deblocked image. The offset between the image and the target object can be corrected. To do this, the pixels in the image are divided into a certain number of regions, and the regions to be offset are Determine how to apply an offset to the region or consider the edge information of each pixel. A method of applying an offset by

[0046] ALF (Adaptive Loop Filter) is a filtered restoration. Filtering can be done based on the value of comparing the image with the original image. The pixels are divided into at least one group, and then the You can determine one filter and filter each group individually. AL Information regarding whether F is applied is provided for each coding unit (CU). The size and coefficients of the ALF applied by each block may be varied. The ALF may have a variety of forms, and the filters it contains may be The number of coefficients in the ALF can also be changed. Filter coefficient information, ALF On / Off information, filter type information) are stored in the bitstream. The parameter may be transmitted in the form of a parameter set.

[0047] The memory 150 stores the reconstructed blocks or images calculated through the filter unit 145. When performing inter-frame prediction, the stored reconstruction block or image is 110.

[0048] FIG. 2 is a block diagram illustrating a decoder according to an embodiment of the present invention.

[0049] As shown in FIG. 2, the decoder includes an entropy decoding unit 210, a reordering unit 215, an inverse The image processing apparatus includes a digitalization unit 220, an inverse transformation unit 225, a prediction unit 230, a filter unit 235, and a memory 240. It may be possible to do so.

[0050] When a bitstream is input from the encoder, the input bitstream is encoded. The data may be decoded in the reverse order to that of the encoder.

[0051] The entropy decoding unit 210 is an entropy coding unit of the encoder. Entropy decoding can be done by reversing the procedure used to entropy decryption. Among the information decoded by the decoding unit 210, the information for generating a prediction block is 30, the residual value entropy-decoded by the entropy decoding unit is The information may be input to 215.

[0052] The entropy decoding unit 210 also uses CABAC in the same manner as the entropy coding unit. Among the HTB methods that utilize the HEB or CAVLC coefficient coding methods, at least Another method can be used to perform the inverse transformation.

[0053] The entropy decoding unit 210 performs entropy decoding on the intra-frame prediction and inter-frame prediction performed by the encoder. The entropy decoding unit can decode the associated information. A codeword map to generate the codeword received as A codeword mapping section may be included to include a mapping table. The code mapping table can be pre-stored or generated adaptively. When using a code number mapping table, the code number mapping table is used to perform code number mapping. A domain number mapping unit may further be provided.

[0054] The reordering unit 215 reorders the bits entropy decoded by the entropy decoding unit 210. The reordering can be done based on the way the stream was reordered in the encoding unit. The coefficients expressed in the Torx format are restored to coefficients in a two-dimensional block format and rearranged. The reordering part provides information related to the coefficient scanning performed in the coding part. and scanning the image in the reverse order based on the scanning order performed by the encoding unit. Thus, realignment can be performed.

[0055] The inverse quantization unit 220 uses the quantization parameters provided by the encoder and the realigned blocks. Inverse quantization can be performed based on the coefficient values ​​of

[0056] The inverse transform unit 225 performs DCT and For DST, an inverse DCT and an inverse DST can be performed. The inverse transform is determined by the encoder. In the transform part of the encoder, the DCT and DST are performed based on the predicted transmission unit. It is selectively performed according to multiple pieces of information such as the measurement method, the size of the current block, and the prediction direction. The inverse transform unit 225 of the decoder may perform the following conversion based on the conversion information performed by the transform unit of the encoder: The inverse transformation can be performed.

[0057] When performing a transformation, it is possible to perform the transformation based on a coding block that is not a transformation block. Cut.

[0058] The prediction unit 230 receives prediction block generation related information from the entropy decoding unit 210. based on the information and previously decoded block or image information provided from memory 240. A prediction block can be generated using the above method.

[0059] As mentioned above, when performing intra prediction as in the encoder, the predicted block If the size of the prediction block is the same as the size of the transformation block, the pixels to the left of the prediction block are The pixel in the top left corner, the pixel in the top right corner, and the pixel in the top left corner are used to predict the block. When performing intra prediction, the transform block is not included in the prediction block. In this case, intra prediction can be performed using reference pixels based on the transform block. Also, as mentioned above, N × N partitioning is used only for the minimum size coding block. Intra prediction may be used to achieve this.

[0060] The prediction unit 230 may include a prediction unit discrimination unit, an inter-picture prediction unit, and an intra-picture prediction unit. The prediction unit discrimination unit determines the prediction unit information input from the entropy decoding unit, the intra-picture prediction It receives various information such as prediction mode information for the measurement method, motion prediction related information for the inter-frame prediction method, etc. Then, the prediction block is classified into the current coding block and whether the prediction block is an inter-picture prediction block or not. In either case, it is possible to determine whether or not to perform intra-frame prediction. The current prediction block is generated by using the information necessary for inter-frame prediction of the current prediction block provided by At least one image before or after the current image contains Based on the obtained information, inter prediction can be performed on the current prediction block.

[0061] In order to perform inter-frame prediction, the coding block is used as a reference, and the The motion prediction method for the predicted block is skip mode, merge mode, etc. Merge Mode, AMVP Mode, or It is possible to determine whether or not there is a problem.

[0062] The intra prediction unit can generate a prediction block based on pixel information in the current image. If the predicted block is an intra-predicted block, the Intra-picture prediction can be performed based on the intra-picture prediction mode information of the predicted block. The intra-picture prediction unit may include an MDIS filter, a reference pixel interpolation unit, and a DC filter. The MDIS filter is a part that performs filtering on the reference pixels of the current block. The filter is applied according to the intra-prediction mode of the current prediction block. The prediction mode and MDIS filter of the prediction block provided by the encoder can be used. Using this information, MDIS filtering may be performed on the reference pixels of the current block. If the prediction mode of the current block is a mode that does not perform MDIS filtering, The S filter may not be applied. Also, like the encoder, it generates the prediction block in the same way. After this, further filtering may be performed together with the reference pixels.

[0063] The reference pixel interpolation unit is configured to set a prediction mode of the prediction block based on pixel values ​​obtained by interpolating the reference pixels. In the case of a predicted block that performs intra-screen prediction, the reference pixels are interpolated to obtain an integer value or less in pixel units. Reference pixels can be generated. If the prediction mode of the current prediction block does not interpolate reference pixels, In the case of a prediction mode that generates a prediction block in the D The C filter is used to filter out the current block if the prediction mode is DC mode. A prediction block can be generated by:

[0064] The reconstructed block or image may be provided to a filter unit 235. 235 may include a deblocking filter, an offset correction unit, and an ALF.

[0065] Whether the encoder applied a deblocking filter to the block or image. Information about the deblocking filter and, if a deblocking filter was applied, whether a strong filter was applied or not can receive information about whether a weak filter was applied. The deblocking filter uses the deblocking filter related information provided by the encoder. Then, the decoder can perform deblocking filtering on the block. As with the encoder, first, vertical deblocking filtering and horizontal deblocking filtering are performed. In the overlapping area, vertical deblocking and watermark filtering are performed. At least one of horizontal deblocking and vertical deblocking that has not been performed before may be performed. Blocking filtering or horizontal deblocking filtering is performed in parallel with vertical deblocking. Even if blocking filtering and horizontal deblocking filtering are performed in the overlapping area, Through this deblocking filtering process, This allows for parallel processing of the data.

[0066] The offset correction unit detects the type and offset of the offset correction applied to the image during encoding. It is possible to perform offset correction on the restored image based on bit value information, etc.

[0067] ALF (adaptive loop filter) is a filter that is used after filtering. Filtering can be done based on the comparison between the restored image and the original image. The coding is performed based on the ALF applicability information and ALF coefficient information provided by the encoder. Such ALF information is available for a particular parameter set. The method may be provided in a package.

[0068] The memory 240 stores the reconstructed image or block and converts it to a reference image or block. It is possible to make the image available as a text file and provide the restored image to the output section. This can be done.

[0069] As mentioned above, in the following embodiments of the present invention, for convenience of explanation, a coding unit Although the term coding unit is used as the coding block, The block may be a block that performs not only encoding but also decoding. The intra prediction method described in FIG. 3 to FIG. 12 is the same as that described in FIG. Such an encoder and decoder can be implemented according to the functions of the present invention. falls within the scope of the right.

[0070] The intra-picture prediction mode of the current prediction block is predicted from the intra-picture prediction modes of the surrounding blocks. Such a prediction method for the intra-frame prediction mode is called MPM (Most Probable Multiplier). The intra prediction mode of the blocks to the left and above the current block is called the intra prediction mode. A first MPM and a second MPM are determined based on a code or a frequently used intra-frame prediction mode. The intra prediction mode of the current block is set to the first MPM and the second MPM. If the prediction mode is the same as at least one of the prediction modes, the intra prediction mode of the current block is determined to be the same as the intra prediction mode of the current block. The prev_i ntra_pred_flag" and the first MP via the "mpm_idx" information M, which of the second MPMs is an intra-frame prediction mode and the intra-frame prediction mode of the current prediction block If the current block's intra prediction mode is the same as the current block's intra prediction mode, If the intra prediction mode of the current block is not the same as that of the MPM, The information to be used is encoded in the "rem_intra_luma_pred_mode" information. It is possible.

[0071] FIG. 3 illustrates a method for decoding an intra-prediction mode of a current block according to an embodiment of the present invention. FIG.

[0072] As shown in FIG. 3, in order to decode the intra-frame prediction mode information of the current block, The "prev_intra_pred_flag" information can be decoded (step Top S300).

[0073] The decoded "prev_intra_pred_flag" information is either 1 or 0. It is then determined whether or not the transfer is possible (step S310).

[0074] In the embodiment of the present invention, when the "prev_intra_pred_flag" information is 1, If the MPM is the same as the intra-prediction mode of the current block, If the "_intra_pred_flag" information is 0, the MPM and the current block screen It is judged that the intra prediction mode information is different, but "prev_intra_pred_flag Other binarization methods for the information or other methods of representing the information may be used.

[0075] If the current block is in the screen via "prev_intra_pred_flag", If it is determined that the prediction mode and the intra-frame prediction mode of the MPM are the same, "mpm_i dx" is decoded to determine whether the intra prediction mode of the current block is the first MPM or the second MPM. It is possible to obtain information regarding whether the selected intra-frame prediction mode is the same as the selected intra-frame prediction mode. (Step S320). If "prev_intra_pred_flag" is currently If it is determined that the intra prediction mode of the block is not the same as the intra prediction mode of the MPM, In this case, the intra prediction mode of the current block is the remaining mode information 'rem_intra _luma_pred_mode" information is decoded to obtain the intra prediction mode information for the current block. The information can be obtained (step S330).

[0076] To encode and decode the "rem_intra_luma_pred_mode" information For this purpose, the codeword information mapped to the intra prediction mode can be used. The following table 1 shows the exponential arithmetic, which is one of the methods for binarizing intra-frame prediction mode information. The figure shows the encoding method.

[0077] TIFF2024128147000001.tif69169

[0078] As shown in Table 1, the code number (codeNum ) can be mapped with a shorter codeword. If you map a short codeword onto the information you want to share, you can convert the same information into a shorter bit stream. This increases the coding and decoding efficiency.

[0079] The following Table 2 lists the order of intra-frame prediction modes according to an embodiment of the present invention. Table 2 can also be written as Table 3.

[0080] TIFF2024128147000002.tif63169

[0081] TIFF2024128147000003.tif45169

[0082] Table 4 below shows a mapping between intra prediction modes and codewords according to an embodiment of the present invention. The code words in Table 4 were set arbitrarily. Other codewords may be used to select the current intra prediction mode without departing from the essence of the present invention. It is possible to map information related to the

[0083] TIFF2024128147000004.tif54169

[0084] As shown in Table 4, the mapping between intra prediction modes and codewords according to an embodiment of the present invention is In our coding scheme, we map short codewords to frequently occurring intra prediction modes, The more frequently occurring intra-frame prediction modes are made to have shorter codewords. Cut.

[0085] Hereinafter, based on the order generated in the embodiment of the present invention, the shortest or earliest mapping is performed. The codeword to be processed is defined as the first codeword, and then the second codeword is defined as the , the third codeword, the fourth codeword, the nth codeword, etc. That is, the length of the nth codeword is shorter than the length of the n+1th codeword. The length of the nth codeword may be equal to or less than the length of the n+1th codeword. (where n is an integer) and may not be longer than

[0086] When coding is performed using an intra-frame prediction method, the non-directional intra-frame prediction mode is used. The planar and DC modes, which are the most common modes, are frequently used. The intra-picture prediction mode is used relatively infrequently. Short codewords are mapped to directional intra prediction modes, and non-directional intra prediction modes are mapped to A codeword longer than the codeword mapped to the prediction mode is used as the directional intra prediction mode. By making the image encoded and decoded, the efficiency of encoding and decoding the image can be improved. This can be done.

[0087] Tables 5 and 6 show different binary encoding methods according to the intra-frame prediction mode in the embodiment of the present invention. 1 is a table showing how to do this.

[0088] TIFF2024128147000005.tif50169

[0089] TIFF2024128147000006.tif60169

[0090] Table 5 shows the case where 19 modes are used as intra prediction modes. Table 6 shows the intra-frame prediction modes when 35 modes are used as intra-frame prediction modes. This shows the binary method for representing it.

[0091] As shown in Tables 5 and 6, a binary code for expressing the intra-frame prediction mode of the current block is The encoding methods are unary code and fixed length. As shown in Table 5, when the intra prediction mode is 0 or 1, In this case, the prefix using the unary code is fixed to 0. Fixed length to distinguish between intra prediction modes 0 and 1. In addition, when the intra-frame prediction mode is 2 to 5, The prefix using ary code is fixed at 10, and intra prediction modes 2 to 5 are divided. In order to achieve this, the fixed length can be expressed in 2 bits. In the formula, the codeword and intraframe prediction are calculated using unary code and fixed length. In this way, the intra-frame prediction mode information can be mapped. The information can be expressed in binary.

[0092] In the cases of Tables 5 and 6, as in Table 2, the smaller the intra-frame prediction mode number, the greater the degree of binarization. Therefore, the method of generating short code words can be used. According to the embodiment, the intra prediction modes that occur frequently are used for the intra prediction modes with small numbers. By placing the code, the information can be expressed with fewer bits, improving the coding efficiency. can be increased.

[0093] FIG. 4 is a conceptual diagram illustrating a method for encoding an intra-frame prediction mode according to an embodiment of the present invention. be.

[0094] As shown in FIG. 4, according to an embodiment of the present invention, when encoding an intra prediction mode, Using the codeNum mapping table, It can be used.

[0095] Unlike the embodiment of Table 5 or Table 6 described above, the code number mapping table ( When using the deNum mapping table, any intra prediction mode If so, the determined intra-frame prediction mode, which is the t-th in the code number mapping table, is By swapping the (t-1)th intra-frame prediction mode with the (t-1)th intra-frame prediction mode, By increasing the rank of the code number mapping table of the new intra-frame prediction mode, If the intra prediction mode is the intra prediction mode with a high occurrence frequency, a smaller number of codes As a result, a short codeword is mapped to that code number. That is, the code number ranking for the t-th intra-frame prediction mode is raised. The rearranged and reordered code number mapping table is used to determine the intra-picture prediction for the next prediction block. As shown in Figure 4, the intra-frame prediction mode is 2", and the code number "2" that is mapped to the second intra-frame prediction mode is The second code word is read from the code word mapping table and The codeword ("1000") that is mapped to the number is used as the result of the second intra-frame prediction mode. The code number mapping table is displayed on the second screen. Swap the intra prediction mode with the first intra prediction mode located immediately above to get 2 The code number for the th intra-frame prediction mode is "1", and for the 1st intra-frame prediction mode is "2". The code number for the second part will be revised to "2". The code number mapping table is used for intra-prediction mode coding of the next predicted block. In still another embodiment, the occurrence frequency of the t-th and (t-1)-th intra-frame prediction modes is Based on the frequency, it is determined whether or not to swap the t-th and (t-1)-th intra-frame prediction modes. That is, the occurrence frequency of the t-th intra prediction mode is set to the (t-1)-th intra prediction mode. If the occurrence frequency of the t-th and (t-1)-th intra prediction modes is greater than the occurrence frequency of the t-th and (t-1)-th intra prediction modes, After swapping, the rearranged code number mapping table is Conversely, the tth intra prediction mode can be used to perform intra prediction for If the occurrence frequency of the (t-1)th intra-frame prediction mode is smaller than the occurrence frequency of the (t-1)th intra-frame prediction mode, The current code number mapping is done without swapping between the two intra-frame prediction modes. The table can be used when making intra-prediction for the next predicted block. In order to prevent the occurrence frequency for all intra-frame prediction modes from increasing infinitely, To achieve this, it is possible to periodically reduce the occurrence frequency for all intra-frame prediction modes by the same ratio. In addition to the swapping process for the intra-frame prediction mode based on the frequency of the present embodiment, Other steps (e.g., determining the codeword) may be performed in the same manner as in the previous embodiment (directly without using the frequency count). It may be the same as swapping.

[0096] For convenience of explanation, in FIG. 4, the intra-frame prediction mode number and code number mapping table is shown. In this embodiment, the intra prediction mode number and the code number are assumed to be the same. In other embodiments, however, the intra prediction mode number and the code number are assumed to be the same. An initial code number mapping table for mapping the code number is determined in advance, and the intra-frame prediction is performed. It is possible to map code numbers which are numbers different from mode numbers.

[0097] As shown in FIG. 4, when an arbitrary intra-frame prediction mode is determined, the intra-frame prediction mode is The code number may be mapped to a code number value in a code number mapping table. The code number value is mapped to a code word value via a code word mapping table. It may be queried.

[0098] FIG. 5 is a conceptual diagram illustrating a method for decoding an intra-frame prediction mode according to an embodiment of the present invention. be.

[0099] As shown in Figure 5, the decoder uses the same initial codeword mapping table as the encoder. and an initial code number mapping table. A code word is read, and a code word is obtained from the code word mapping table based on the code word. and obtaining a mapped code number value from the code number, and The measurement mode is obtained from the code number mapping table, and finally the screen of the current block is In the decoding process, the intra prediction mode can be determined in the same way as in the encoder. When the prediction mode is determined, the intra prediction mode is determined by a code number mapping table. It is possible to perform swapping.

[0100] When using the above method, the initial code number is used to prevent unnecessary swapping. The value of a mapping table is important because such a table can be used to can be reinitialized at any unit, such as a frame, to determine the characteristics of the current slice or frame. Swapping is performed after initialization to generate a code number mapping table that reflects the Therefore, the intra prediction mode and the code number value are mapped. When setting the code number mapping table, the frequently occurring intra-frame prediction mode value It is important to map smaller code number values ​​to the According to the, the more frequently the intra-frame prediction mode number occurs, the smaller the code number. As a result, the length of the codeword for the intra prediction mode is By shortening it, coding efficiency can be expected.

[0101] FIG. 6 shows different uses of the code number mapping table according to the embodiment of the present invention. FIG.

[0102] As shown in Fig. 6, the binary coding of the intra prediction mode is performed without using MPM. It is possible to perform hexadecimal encoding, i.e. without generating separate flag information for the MPM. Based on the intra-frame prediction mode information of the blocks on the left and above of the specific prediction block, A method for rearranging the code number mapping table can be used. For example, If the intra-frame prediction modes of the blocks on the left and top are 2 and 3, 2 and 3 are copied. The remaining intra-frame prediction modes are placed at the top of the mode number mapping table. A method for constructing a code number mapping table can be used. The intra-frame prediction mode of the block existing on the upper side is set to the upper Then, the remaining blocks are moved to the left and the top, excluding the intra-frame prediction modes of the blocks on the left and the top. The method of arranging the intra-picture prediction modes on the code number mapping table is used to A codeword corresponding to the intra prediction mode can be generated.

[0103] In the above-mentioned method of rearranging the code number mapping table, the picture of a specific prediction block The intra prediction mode is an intra prediction mode for a block located to the left and / or above a specific prediction block. It is assumed that there is a high possibility that the measurement mode is the same as at least one of the measurement modes. Therefore, the intra-frame prediction modes that occur relatively frequently are included in the code number mapping. By placing it above the mapping table, the above-mentioned rearrangement of the code number mapping table can be achieved. Here, the intra-frame prediction mode that occurs frequently is a specific prediction block. The prediction mode may be the intra prediction mode of the block on the left and / or top of the block. If the intra prediction mode that occurs frequently is located on the left side and the right side of a certain prediction block, If the prediction mode of the block is an intra-frame prediction mode of the block located on the upper side or the lower side, a relative rearrangement occurs. This reduces the probability of unnecessary rearrangement, and therefore prevents unnecessary rearrangement. Prediction mode is intra prediction of a block existing to the left and / or above a specific prediction block If not in the 1st mode, the screen of the block existing to the left and / or above the particular prediction block is The intra prediction mode is positioned at the top of the code number mapping table, and the remaining intra prediction modes are When rearranging the code number mapping table by postponing the code, the shorter code word In order to allocate the intra prediction mode, the intra prediction mode with the highest occurrence frequency is selected from the remaining intra prediction modes. The code numbers that occur more frequently should be mapped to relatively smaller codes. The higher intra-frame prediction mode is present to the left and / or above the particular predicted block. Regardless of whether it is the same as the intra prediction mode, a smaller code number can be assigned. This results in advantages in terms of compression performance and / or complexity.

[0104] In yet another embodiment, the MPM is used in binary coding of intra prediction modes. Binary encoding can be done, but without generating separate flag information for the MPM. Based on the intra-frame prediction mode information of the first MPM and the second MPM of a specific prediction block, The code word for the MPM is then rearranged using the method of rearranging the code number mapping table. For example, the first MPM and the second MPM intra prediction If the mode is 2 and 3, place 2 and 3 at the top of the code number mapping table. , how to construct the code number mapping table by postponing the remaining intra-frame prediction modes. The other processes can be used to the left and above a particular prediction block. Before the intra-frame prediction mode of the block to be processed is positioned at the top of the code number mapping table, It may be the same as the embodiment described above.

[0105] According to an embodiment of the present invention, the intra prediction mode as described above is A different number of intra prediction modes may be used depending on the size of the image.

[0106] Table 5 below shows the number of intra-frame prediction modes that can be used depending on the size of the prediction block. This is a table.

[0107] TIFF2024128147000007.tif55169

[0108] As shown in Table 7, the size of the prediction block is either 4×4 or 64×64. In this case, the number of intra prediction modes may be 11, 18, or 19. Intra prediction mode when block size is 16x16, 32x32, 64x64 The number of available items is 35.

[0109] The 35 intra-frame prediction modes are listed in Table 8 below, with the intra-frame prediction mode number and the corresponding It may have a name that corresponds to the

[0110] TIFF2024128147000008.tif108169

[0111] FIG. 7 shows a non-directional prediction method when using 35 intra-frame prediction modes according to an embodiment of the present invention. 1 illustrates an intra-prediction mode and a directional intra-prediction mode.

[0112] In the case where there are 35 intra-frame prediction modes for performing intra-frame prediction on a prediction block, In this case, Planar, DC, Ver+x (x is an integer between -8 and 8), Hor+x (x may be an integer from -7 to 8.

[0113] FIG. 8 illustrates a non-directional prediction method when using 19 intra-frame prediction modes according to an embodiment of the present invention. 1 illustrates an intra-prediction mode and a directional intra-prediction mode.

[0114] In the case where there are 19 intra-frame prediction modes for performing intra-frame prediction on a prediction block, In this case, planar, DC, Ver+2x (x is an integer between -4 and 4), Hor+2x (x is an integer between -3 and 4). That is, 19 intra-frame prediction modes Unlike the case of using 35 intra-frame prediction modes in FIG. To use a method of selecting only intra-frame prediction modes for angular motions that are multiples of 2 from can be done.

[0115] When using 18 intra-frame prediction modes, all the modes except for the 18th intra-frame prediction mode are used. It is possible to perform intra-screen prediction using intra-screen prediction modes from to 17. .

[0116] FIG. 9 shows a non-directional prediction mode when using 11 intra-frame prediction modes according to an embodiment of the present invention. 1 illustrates an intra-prediction mode and a directional intra-prediction mode.

[0117] In the case of 11 intra-frame prediction modes, planar, DC, Ver+4x (x is Hor+4x (x is an integer between -1 and 2). That is, the 11 intra-frame prediction modes are used in the case of FIG. Unlike the case of the 3D frame, the intra-frame prediction mode is for angular motions that are multiples of 4 from the vertical and horizontal directions. The 11 intra-frame prediction modes are shown in Figure 9. In order to generate 9 modes from mode 4 to mode 10, VER (mode 2) The space based on the 3rd mode (mode 1) and HOR (mode 3) is divided into four equal parts. Adding lanar (mode 0) and DC (mode 1), there are a total of 11 modes. It is possible.

[0118] As shown in Fig. 8 and Fig. 9, the intra prediction modes of 11 and 19 are 64 × 64 blocks. It can be used on a 4x4 or 4x4 block.

[0119] If the prediction block size is 64x64, the block is divided into smaller blocks (e.g. This means that there is no need to use a different pixel size (e.g. 32x32, 16x16, etc.) for the block in question. It can be determined that there is no significant change in the pixel values ​​of the black dots. When all 35 global modes are evaluated for a block, most of the in-screen predictions The predicted values ​​for the observation modes were similar, and the performance of each mode with similar directionality was Therefore, considering the complexity, it is not possible to evaluate all 35 modes. In terms of complexity, it is more effective to perform intra-frame prediction based on only some intra-frame prediction modes. Therefore, in the present invention, as shown in FIG. 8 and FIG. 9, 11 intra prediction modes, 18 intra prediction modes, 19 intra predictions Any one of the modes can be used for intra-frame prediction.

[0120] Even in the case of a 4x4 prediction block, the size of the prediction block is small, so 35 The predicted values ​​for each mode created as intra-frame prediction modes may be similar, and all 35 Rather than using all intra-frame prediction modes, we use prediction blocks of 64x64 size. Intra prediction may be performed using one of 18 or 19 intra prediction modes. .

[0121] As mentioned before, 11, 19 or 35 intra prediction modes are used, and the MPM mode If the number of codes is three, the code number mapping for the remaining modes other than MPM is By generating a coding table, the coding efficiency can be improved.

[0122] Hereinafter, the MPM used in the embodiment of the present invention is an intra-frame prediction mode of a current block. This is used as a general concept of a candidate intra-frame prediction mode for predicting the pixel value. A similar concept to MPRM (Most Probable Remaining Maximum ode) may be used and is within the scope of the present invention, but for the sake of convenience, MPM will be used. Disclosures will only be made about the above.

[0123] FIG. 10 shows the remaining (remaining) intra-frame prediction excluding the MPM according to the embodiment of the present invention. FIG. 2 is a conceptual diagram showing a method of mapping code numbers to modes.

[0124] As shown in FIG. 10, when the MPM is an intra-frame prediction mode number of 2, 4, or 5, the code In the number mapping table, the code numbers for the remaining intra prediction modes except for 2, 4, and 5 are In other words, when encoding in remaining mode, the MPM can perform code mapping. The corresponding intra-frame prediction mode is not selected, so it is not applicable to re-maining modes other than MPM. Code number values ​​can only be assigned by codeword mapping. A link table can be used to map the link to a codeword. Codewords are mapped only to the intra prediction modes that correspond to the main mode. This prevents unnecessary codewords from being wasted and improves coding efficiency. do.

[0125] Similarly, when performing a decoding operation, a code number is generated based on the input codeword. Except for the intra-frame prediction mode that corresponds to the MPM, the mapped code number mapping The intra-frame prediction mode information can be decoded using the decoding table.

[0126] FIG. 10 shows a case where 11 intra-frame prediction modes are used. Intra prediction mode is used to perform intra prediction for the predicted block, and three MPMs are used. When the remaining intra prediction modes are selected, the codewords are mapped to the eight remaining intra prediction modes. If the re-maining intra-frame prediction mode is expressed as a fixed length, the codeword length is 3 bits. Then, the codewords for the remaining eight intra prediction modes can be mapped.

[0127] The following Table 9 expresses the re-maining intra-frame prediction mode according to an embodiment of the present invention in fixed length. This is what was done.

[0128] TIFF2024128147000009.tif76169

[0129] As shown in Table 9, the code numbers are mapped to code words using fixed-length coding. obtain.

[0130] In this method, the intra-frame prediction modes are 11, 19, and 35, and the MPM If the number of remaining points is 3, the remaining mode will be 8, 16, or 32. The number of re-maining modes is an exponential power of 2, and the re-maining modes are fixed for each exponent bit. The table below shows the fixed length of the exponent bits depending on the number of remainders. This indicates the length of the codeword to indicate the remaining mode, if any.

[0131] TIFF2024128147000010.tif37169

[0132] As shown in Table 9, when the number of intra-frame prediction modes is 11 and the number of MPMs is 3, In this case, the codeword may use 3 bits to indicate the remaining mode. If the number of intra-frame prediction modes is 19 and the number of MPMs is 3, re-maining A 4-bit codeword can be used to indicate the mode. If the number of is 35 and the number of MPMs is 3, A codeword can use 5 bits, i.e., according to an embodiment of the present invention , the number of intra prediction modes of the current block corresponds to the remaining intra mode. The remaining modes may be generated by exponential powers of two of the number, i.e., each exponential bit In the above embodiment, it can be determined that the M The number of PMs is assumed to be 3. If the number of MPMs is changed, the image quality of the predicted block is The number of intra prediction modes used in intra prediction may vary.

[0133] FIG. 11 is a block diagram showing an image coding system for performing coding and decoding in an intra-frame prediction mode according to an embodiment of the present invention. FIG. 1 is a conceptual diagram showing a part of an image encoding device and an image decoding device.

[0134] Referring to the upper part of FIG. 11, a codeword mapping unit 1100 of the image encoding device The intra prediction mode number can be received to generate a codeword. In order to perform code word mapping, the code word mapping unit 1100 needs to The codeword mapping table may also be stored in the The codeword mapping unit may perform a binarization operation to generate the entropy. As described above, the intra prediction Among the modes, non-directional modes such as DC mode and planar mode, which occur frequently, A small intra prediction mode number can be assigned to the intra prediction mode, The smaller the code number, the shorter the codeword that is mapped. A mapping table can be generated.

[0135] As shown in the lower part of FIG. 11, the codeword mapping unit 1110 of the image decoding device The codeword is received, and the input codeword is converted into a codeword included in the codeword mapping unit. It can be generated as an intra prediction mode number based on the keyword mapping table. Cut.

[0136] FIG. 12 is a block diagram showing an image coding system for performing coding and decoding in an intra-frame prediction mode according to an embodiment of the present invention. FIG. 1 is a conceptual diagram showing a part of an image encoding device and an image decoding device.

[0137] As shown in the upper part of FIG. 12, a part of the image encoding device includes a code number mapping unit 120. 0 and a codeword mapping unit 1220. The code number mapping unit 1200 receives an intra-frame prediction mode number and outputs a code number. The codeword mapping unit 1220 receives the code number and maps the codeword The code number mapping and code word according to the above embodiment can be output. A mode mapping may be performed, and the more frequently the intra-frame prediction mode number occurs, the smaller the number. As mentioned above, the code number mapping is not possible except for the MPM. When using the mapping method, the code number mapping section Performing code number mapping for remaining intra-frame prediction modes excluding the intra-frame prediction mode can be done.

[0138] As shown in the lower part of FIG. 12, the image decoding apparatus includes a codeword mapping unit 1240 and The codeword mapping unit 1260 may include a codeword mapping unit 1270. 240 can calculate a code number based on an input code word, The number mapping unit 1260 receives the code number and calculates the intra-frame prediction mode number. The codeword mapping unit 1240 has a A codeword mapping table for the code number mapping unit 126 may be included. 0 is a code for calculating an intra-frame prediction mode number based on the received code number A codeword mapping table and a code number mapping table may be included. The code mapping portion can be pre-stored or adaptively generated.

[0139] Although the above description has been given with reference to the embodiments, those skilled in the art will recognize that the following patents are incorporated herein by reference: Various modifications of the present invention are contemplated without departing from the spirit and scope of the present invention as defined by the appended claims. It will be understood that the above may be modified or varied.

Claims

1. A decoding method for an intra prediction mode, comprising the steps of: Decoding flag information indicating whether one of the candidate intra prediction modes for the current block is the same as the intra prediction mode of the current block; If one of the candidate intra prediction modes for the current block is identical to the intra prediction mode of the current block, decoding a syntax element of information regarding the candidate intra prediction mode for the current block; If the candidate intra prediction mode for the current block and the intra prediction mode of the current block are not identical, decoding a syntax element of a remaining intra prediction mode of the current block, the syntax element including information about the intra prediction mode of the current block; generating a predicted block of the current block based on the intra prediction mode of the current block; generating a reconstruction block of the current block based on the prediction block; The intra prediction mode of the current block is mapped to index information of the intra prediction mode based on a table; When the intra-screen prediction mode is a planar mode, the intra-screen prediction mode is mapped to index 0. When the intra-screen prediction mode is a DC mode, the intra-screen prediction mode is mapped to index 1. When the intra-screen prediction mode is a directional intra-screen prediction mode, the intra-screen prediction mode is mapped to indexes 2 to 34 according to the directionality of the intra-screen prediction mode. a codeword length of the index of the candidate intra prediction mode for the current block is shorter than a codeword length of the index of the remaining intra prediction mode information; A decoding method, wherein the syntax elements of the remaining intra prediction mode information are values ​​coded using a fixed 5 bits.

2. An intra-frame prediction mode encoding method, comprising: determining and encoding flag information indicating whether one of the candidate intra prediction modes for the current block is the same as the intra prediction mode of the current block; If one of the candidate intra prediction modes for the current block is the same as the intra prediction mode of the current block, encoding a syntax element of information regarding the candidate intra prediction mode for the current block; If the candidate intra prediction mode for the current block and the intra prediction mode of the current block are not identical, encoding a syntax element of a remaining intra prediction mode of the current block, the syntax element including information about the intra prediction mode of the current block; generating a predicted block of the current block based on the intra prediction mode of the current block; generating a reconstruction block of the current block based on the prediction block; The intra prediction mode of the current block is mapped to index information of the intra prediction mode based on a table; When the intra-screen prediction mode is a planar mode, the intra-screen prediction mode is mapped to index 0. When the intra-screen prediction mode is a DC mode, the intra-screen prediction mode is mapped to index 1. When the intra-screen prediction mode is a directional intra-screen prediction mode, the intra-screen prediction mode is mapped to indexes 2 to 34 according to the directionality of the intra-screen prediction mode. a codeword length of the index of the candidate intra prediction mode for the current block is shorter than a codeword length of the index of the remaining intra prediction mode information; The encoding method, wherein the syntax elements of the remaining intra prediction mode information are values ​​encoded using a fixed 5 bits.

Citation Information

Patent Citations

  • Video decoding method

    JP2014197883A

  • Video decoding device

    JP2014526853A

  • Intra-picture prediction coding method

    US20050089235A1

  • Intra-mode video coding

    WO2013067334A2