Method for coding image on basis of intra prediction using MPM list and apparatus therefor
Patent Information
- Application Number
- CA3125109
- Authority / Receiving Office
- CA · CA
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-03-23
- Filing Date
- 2020-03-23
- Publication Date
- 2026-08-18
- Estimated Expiration
- 2040-03-23
Abstract
Description
CA 03125109 2021-06-25 METHOD FOR CODING IMAGE ON BASIS OF INTRA PREDICTION USING MPM LIST AND APPARATUS THEREFOR BACKGROUND OF THE DISCLOSURE 5 Field of the Disclosure [1] The present disclosure relates to an image coding technology, and more particularly, to an image coding method and apparatus based on intra prediction using a most probable mode (MPM) list in an image coding system. Related Art 10 [2] Recently, the demand for high resolution, high quality image / video such as 4K, 8K or more Ultra High Definition (UHD) image / video is increasing in various fields. As the image / video resolution or quality becomes higher, relatively more amount of information or bits are transmitted than for conventional image / video data. Therefore, if image / video data are transmitted via a medium such as an existing wired / wireless 15 broadband line or stored in a legacy storage medium, costs for transmission and storage are readily increased. [3] Moreover, interests and demand are growing for virtual reality (VR) and artificial reality (AR) contents, and immersive media such as hologram; and broadcasting of images / videos exhibiting image / video characteristics different from those of an actual 20 image / video, such as game images / videos, are also growing. 25 [4] Therefore, a highly efficient image / video compression technique is required to effectively compress and transmit, store, or play high resolution, high quality images / videos showing various characteristics as described above. SUMMARY 1 Date Re9ue / Date Received 2021-06-25 88672699 [5] An object of the present disclosure is to provide a method and an apparatus for enhancing image coding efficiency. [6] Another object of the present disclosure is to provide a method and an apparatus for enhancing the efficiency of intra prediction. 5 [7] Still another object of the present disclosure is to provide a method and an apparatus for performing image coding based on intra prediction using an MPM list for a current block. [8] Yet another object of the present disclosure is to provide a method and an apparatus for performing intra prediction based on an MPM list based on planar flag information representing whether to determine an intra prediction mode for a current block as a planar mode. 10 [9] Still yet another object of the present disclosure is to provide a method and an apparatus for configuring an MPM list for a current block.
[10] A further object of the present disclosure is to provide a method and an apparatus for coding an MPMindex.
[11] According to an aspect of the present invention, there is provided an image decoding method 15 performed by a decoding apparatus, comprising: receiving intra prediction information comprising most probable mode (MPM) flag information related to whether to derive an intra prediction mode for a current block based on MPM candidates for the current block, planar flag information related to whether to determine the intra prediction mode for the current block as a planar mode, and MPM index information related to one of 5 MPM candidates other than the planar mode among the MPM candidates 20 for the current block; deriving the intra prediction mode for the current block based on at least one of a value of the MPM flag information, a value of the planar flag information, and a value of the MPM index information; deriving a predicted block for the current block based on the intra prediction mode for the current block; and generating a reconstructed picture based on the predicted block, wherein the MPM flag information is parsed in a coding unit syntax for the current block, wherein based on the value 25 of the MPM flag information being equal to 1, the planar flag information is parsed in the coding unit syntax, wherein based on the value of the planar flag information representing that the intra prediction mode for the current block is not the planar mode, the MPM index information is parsed in the coding unit syntax, and wherein the planar flag information is signaled after the MPM flag information and before the MPM index information. 2 Date Re9ue / Date Received 2023-11-10 88672699 [lla] According to another aspect of the present invention, there is provided an image encoding method performed by an encoding apparatus, comprising: deriving an intra prediction mode for a current block; generating most probable mode (MPM) flag information, planar flag information and MPM index information based on the derived intra prediction mode, wherein the MPM flag information is related to 5 whether the intra prediction mode for the current block is derived based on MPM candidates for the current block, the planar flag information is related to whether to determine the intra prediction mode for the current block as a planar mode, and the MPM index information is related to one of 5 MPM candidates other than the planar mode among the MPM candidates for the current block; and encoding image information comprising the MPM flag information, the planar flag information and the MPM 10 index information, wherein a coding unit syntax is configured that the MPM flag information is parsed in the coding unit syntax for the current block, wherein the coding unit syntax is configured that based on a value of the MPM flag information being equal to 1, the planar flag information is to be parsed in the coding unit syntax, wherein the coding unit syntax is configured that based on a value of the planar flag information representing that the intra prediction mode for the current block is not the planar mode, 15 the MPM index information is to be parsed in the coding unit syntax, and wherein the planar flag information is signaled after the MPM flag information and before the MPM index information. [llb] According to another aspect of the present invention, there is provided a computer-readable storage medium storing a bitstream of encoded image information generated by the image encoding method described above. 20 [llc] According to another aspect of the present invention, there is provided a transmission method of data for an image, comprising: obtaining a bitstream for the image, wherein the bitstream is generated based on deriving an intra prediction mode for a current block, generating most probable mode (MPM) flag information, planar flag information and MPM index information based on the derived intra prediction mode, wherein the MPM flag information is related to whether the intra prediction mode for 25 the current block is derived based on MPM candidates for the current block, the planar flag information is related to whether to determine the intra prediction mode for the current block as a planar mode, and the MPM index information is related to one of 5 MPM candidates other than the planar mode among the MPM candidates for the current block, and encoding image information comprising the MPM flag information, the planar flag information and the MPM index information; and transmitting the data 30 comprising the bitstream, wherein a coding unit syntax is configured that the MPM flag information is parsed in the coding unit syntax for the current block, wherein the coding unit syntax is configured that 2a Date Re9ue / Date Received 2023-11-10 88672699 based on a value of the MPM flag information being equal to 1, the planar flag information is to be parsed in the coding unit syntax, wherein the coding unit syntax is configured that based on a value of the planar flag information representing that the intra prediction mode for the current block is not the planar mode, the MPM index information is to be parsed in the coding unit syntax, and wherein the 5 planar flag information is signaled after the MPM flag information and before the MPM index information.
[12] An exemplary embodiment of the present disclosure provides an image decoding method performed by a decoding apparatus. The image decoding method includes receiving intra prediction information including at least one of most probable mode (MPM) flag information representing whether 10 to derive an intra prediction mode for a current block based on MPM candidates for the current block or planar flag information representing whether to determine the intra prediction mode for the current block as a planar mode, deriving the intra prediction mode for the current block based on the MPM flag information and the planar flag information, deriving a predicted block for the current block based on the intra prediction mode for the current block, and generating a reconstructed picture based on the predicted 15 block, and based on the MPM flag information representing that the intra prediction mode for the current block is derived 2b Date Re9ue / Date Received 2023-11-10 CA 03125109 2021-06-25 88672699 based on the MPM candidates, the planar flag information is included in the intra prediction information. [12a] In an exemplary embodiment, the deriving of the intra prediction mode for the current block may include deriving the intra prediction mode for the current block as the 5 planar mode, based on the planar flag information representing that the intra prediction mode for the current block is derived as the planar mode.
[13] In an exemplary embodiment, the intra prediction information may further include MPM index information related to one of the MPM candidates other than the planar mode among the MPM candidates for the current block. Based on the planar flag information 10 representing that the intra prediction mode for the current block is not derived as the planar mode, the MPM index information may be included in the intra prediction information. The intra prediction mode for the current block may be derived based on the MPM index information. [14) In an exemplary embodiment, a total number of MPM candidates other than the 15 planar mode among the MPM candidates for the current block may be equal to 5. [lS] In an exemplary embodiment, the MPM index information may represent a 0th MPM candidate, a 1st MPM candidate, a 2nd MPM candidate, a 3rd MPM candidate, or a 4th MPM candidate which is included in the MPM candidates other than the planar mode among the MPM candidates for the current block. Based on a case where an intra 20 prediction mode of a left neighboring block of the current block and an intra prediction mode of a top neighboring block of the current block are the same and the intra prediction mode of the left neighboring block is larger than an intra DC mode, an intra prediction mode for the 0th MPM candidate may be the intra prediction mode of the left neighboring block of the current block, an intra prediction mode for the 1st MPM candidate may be 25 2+((the intra prediction mode of the left neighboring block of the current block+6 l )¾64 ), and an intra prediction mode for the 2nd MPM candidate may be 2+((the intra prediction 3 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 mode of the left neighboring block of the current block-I )o / o64).
[16] In an exemplary embodiment, the MPM index information may represent a 0th MPM candidate, a 1st MPM candidate, a 2nd MPM candidate, a 3rd MPM candidate, or a 4th MPM candidate which is included in the MPM candidates other than the planar mode 5 among the MPM candidates for the current block. Based on a case where an intra prediction mode of a left neighboring block of the current block and an intra prediction mode of a top neighboring block of the current block are not the same, the intra prediction mode of the left neighboring block is smaller than or equal to an intra DC mode, and the intra prediction mode of the top neighboring block is smaller than or equal to the intra DC 10 mode, the intra prediction mode for the 0th MPM candidate may be the intra DC mode, the intra prediction mode for the 1st MPM candidate may be a 50th intra prediction mode, the intra prediction mode for the 2nd MPM candidate may be a 18th intra prediction mode, the intra prediction mode for the 3rd MPM candidate may be a 46th intra prediction mode, and the intra prediction mode for the 4th MPM candidate may be a 54th intra prediction 15 mode.
[17] In an exemplary embodiment, the MPM index infonnation may be based on a truncated rice (TR) binarization process.
[18] In an exemplary embodiment, cMax representing a maximum value of the MPM index information may be equal to 4. 20
[19] Another exemplary embodiment of the present disclosure provides a decoding apparatus which perfonns image decoding. The decoding apparatus includes an entropy decoder which receives intra prediction information including at least one of most probable mode (MPM) flag information representing whether to derive an intra prediction mode for a current block based on most probable mode (MPM) candidates for the current 25 block or planar flag information representing whether to determine the intra prediction mode for the current block as a planar mode, a predictor which derives the intra prediction 4 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 mode for the current block based on the MPM flag information and the planar flag information, and derives a predicted block for the current block based on the intra prediction mode for the current block, and an adder which generates a reconstructed picture based on the predicted block, and based on the MPM flag information representing 5 that the intra prediction mode for the current block is derived based on the MPM candidates, the planar flag information is included in the intra prediction infonnation.
[20] In an exemplary embodiment, the predictor may derive the intra prediction mode for the current block as the planar mode, based on the planar flag information representing that the intra prediction mode for the current block is derived as the planar mode. 10
[21] In an exemplary embodiment, the intra prediction information may further include MPM index information related to one of the MPM candidates other than the planar mode among the MPM candidates for the current block. Based on the planar flag information representing that the intra prediction mode for the current block is not derived as the planar mode, the MPM index information may be included in the intra prediction information, 15 and the intra prediction mode for the current block may be derived based on the MPM index information.
[22] In an exemplary embodiment, a total number of MPM candidates other than the planar mode among the MPM candidates for the current block may be equal to 5.
[23] In an exemplary embodiment, the MPM index information may represent a 0th 20 MPM candidate, a 1st MPM candidate, a 2nd MPM candidate, a 3rd MPM candidate, or a 4th MPM candidate which is included in the MPM candidates other than the planar mode among the MPM candidates for the current block. Based on a case where an intra prediction mode of a left neighboring block of the CU1Tent block and an intra prediction mode of a top neighboring block of the current block are the same and the intra prediction 25 mode of the left neighboring block is larger than an intra DC mode, an intra prediction mode for the 0th MPM candidate may be the intra prediction mode of the left neighboring 5 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 block of the current block, an intra prediction mode for the 1st MPM candidate may be 2+((the intra prediction mode of the left neighboring block of the current block+61)%64), and an intra prediction mode for the 2nd MPM candidate may be 2+((the intra prediction mode of the left neighboring block of the current block-1)%64). 5
[24] In an exemplary embodiment, the MPM index information may represent a 0th MPM candidate, a 1st MPM candidate, a 2nd MPM candidate, a 3rd MPM candidate, or a 4th MPM candidate which is included in the MPM candidates other than the planar mode among the MPM candidates for the current block. Based on a case where an intra prediction mode of a left neighboring block of the current block and an intra prediction 10 mode of a top neighboring block of the current block are not the same, the intra prediction mode of the left neighboring block is smaller than or equal to an intra DC mode, and the intra prediction mode of the top neighboring block is smaller than or equal to the intra DC mode, the intra prediction mode for the 0th MPM candidate may be the intra DC mode, the intra prediction mode for the 1st MPM candidate may be a 50th MPM intra prediction 15 mode, the intra prediction mode for the 2nd MPM candidate may be a 18th intra prediction mode, the intra prediction mode for the 3rd MPM candidate may be a 46th intra prediction mode, and the intra prediction mode for the 4th MPM candidate may be a 54th intra prediction mode.
[25] In an exemplary embodiment, the MPM index information may be based on a 20 tnmcated rice (TR) binarization process.
[26] In an exemplary embodiment, cMax representing a maximum value of the MPM index information may be equal to 4.
[27] Still another exemplary embodiment of the present disclosure provides an encoding method performed by an encoding apparatus. The image encoding method 25 includes deriving an intra prediction mode for a current block, generating most probable mode (MPM) flag information representing whether to derive the intra prediction mode 6 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 for the current block based on most probable mode (MPM) candidates for the current block, generating the planar flag information, based on the MPM representing that the MPM flag information is related to planar flag information representing whether to determine the intra prediction mode for the current block as a planar mode, and encoding image 5 information including at least one of the MPM flag information or the planar flag information.
[28] In an exemplary embodiment, based on the case where the intra prediction mode for the current block is derived as the planar mode, the planar flag information may represent that the intra prediction mode for the current block is derived as the planar mode. 10
[29] In an exemplary embodiment, the intra prediction information may further include MPM index information related to one of the MPM candidates other than the planar mode among the MPM candidates for the current block. The image encoding method may further include generating the MPM index information, based on a case where the intra prediction mode for the current block is not derived as the planar mode. 15
[30] In an exemplary embodiment, a total number of MPM candidates other than the planar mode among the MPM candidates for the current block may be equal to 5.
[31] In an exemplary embodiment, the MPM index information may represent a 0th MPM candidate, a 1st MPM candidate, a 2nd MPM candidate, a 3rd MPM candidate, or a 4th MPM candidate which is included in the MPM candidates other than the planar mode 20 among the MPM candidates for the current block. Based on a case where an intra prediction mode of a left neighboring block of the current block and an intra prediction mode of a top neighboring block of the current block are the same and the intra prediction mode of the left neighboring block is larger than an intra DC mode, an intra prediction mode for the 0th MPM candidate may be the intra prediction mode of the left neighboring 25 block of the current block, an intra prediction mode for the 1st MPM candidate may be 2+((the intra prediction mode of the left neighboring block of the current block+61 )%64 ), 7 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 and an intra prediction mode for the 2nd MPM candidate may be 2+( ( the intra prediction mode of the left neighboring block of the current block-1)%64).
[32] In an exemplary embodiment, the MPM index information may represent a 0th MPM candidate, a 1st MPM candidate, a 2nd MPM candidate, a 3rd MPM candidate, or 5 a 4th MPM candidate which is included in the MPM candidates other than the planar mode among the MPM candidates for the current block. Based on a case where an intra prediction mode of a left neighboring block of the current block and an intra prediction mode of a top neighboring block of the current block are not the same, the intra prediction mode of the left neighboring block is smaller than or equal to an intra DC mode, and the 10 intra prediction mode of the top neighboring block is smaller than or equal to the intra DC mode, the intra prediction mode for the 0th MPM candidate may be the intra DC mode, the intra prediction mode for the 1st MPM candidate may be a 50th intra prediction mode, the intra prediction mode for the 2nd MPM candidate may be a 18th intra prediction mode, the intra prediction mode for the 3rd MPM candidate may be a 46th intra prediction mode, 15 and the intra prediction mode for the 4th MPM candidate may be a 54th intra prediction mode.
[33] In an exemplary embodiment, the MPM index information may be based on a truncated rice (TR) binarization process.
[34] In an exemplary embodiment, cMax representing a maximum value of the MPM 20 index information may be equal to 4.
[35] Yet another exemplary embodiment of the present disclosure provides an encoding apparatus which performs image encoding_ The encoding apparatus includes a predictor which derives an intra prediction mode for a current block, and an entropy encoder which generates most probable mode (MPM) flag information representing 25 whether to derive the intra prediction mode for the current block based on most probable mode (MPM) candidates for the current block, generates planar flag information, based 8 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 on the MPM representing that the MPM flag information is related to the planar flag information representing whether to determine the intra prediction mode for the current block as a planar mode, and encodes image information including at least one of the MPM flag information or the planar flag information. 5
[36] In an exemplary embodiment, based on the case where the intra prediction mode for the current block is derived as the planar mode, the planar :flag information may represent that the intra prediction mode for the current block is derived as the planar mode.
[37] 1n an exemplary embodiment, the intra prediction information may further include MPM index information related to one of the MPM candidates other than the planar mode 10 among the MPM candidates for the current block. The encoding apparatus may generate the MPM index information, based on a case where the intra prediction mode for the current block is not derived as the planar mode.
[38] 1n an exemplary embodiment, a total number of MPM candidates other than the planar mode among the MPM candidates for the current block may be equal to 5. 15
[39] 1n an exemplary embodiment, the MPM index information may represent a 0th MPM candidate, a 1st MPM candidate, a 2nd MPM candidate, a 3rd MPM candidate, or a 4th MPM candidate which is included in the MPM candidates other than the planar mode among the MPM candidates for the current block. Based on a case where an intra prediction mode of a left neighboring block of the current block and an intra prediction 20 mode of a top neighboring block of the current block are the same and the intra prediction mode of the left neighboring block is larger than an intra DC mode, an intra prediction mode for the 0th MPM candidate may be the intra prediction mode of the left neighboring block of the current block, an intra prediction mode for the 1st MPM candidate may be 2+((the intra prediction mode of the left neighboring block of the current block+61 )%64), 25 and an intra prediction mode for the 2nd MPM candidate may be 2+((the intra prediction mode of the left neighboring block of the current block-1 )%64). 9 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25
[40] 1n an exemplary embodiment, the MPM index infonnation may represent a 0th MPM candidate, a 1st MPM candidate, a 2nd MPM candidate, a 3rd MPM candidate, or a 4d:t MPM candidate which is included in the MPM candidates other than the planar mode among the MPM candidates for the current block Based on a case where an intra 5 prediction mode of a left neighboring block of the current block and an intra prediction mode of a top neighboring block of the current block are not the same, the intra prediction mode of the left neighboring block is smaller than or equal to an intra DC mode, and the intra prediction mode of the top neighboring block is smaller than or equal to the intra DC mode, the intra prediction mode for the 0th MPM candidate may be the intra DC mode, 10 the intra prediction mode for the 1st MPM candidate may be a 50th intra prediction mode, the intra prediction mode for the 2nd MPM candidate may be a 18th intra prediction mode, the intra prediction mode for the 3rd MPM candidate may be a 46th intra prediction mode, and the intra prediction mode for the 4th MPM candidate may be a 54th intra prediction mode. 15
[41] 1n an exemplmy embodiment, the MPM index information may be based on a truncated rice (TR) binarization process, and cMax representing a maximum value of the MPM index information may be equal to 4.
[42] Still yet another exemplary embodiment of the present disclosure provides a decoder readable storage medium which stores information on instructions which cause a 20 video decoding apparatus to perform decoding methods according to some exemplary embodiments.
[43] A further exemplary embodiment of the present disclosure provides a computer readable storage medium including encoded information which causes a decoding apparatus to perform an image decoding method. The image decoding method includes 25 receiving intra prediction information including at least one of most probable mode (MPM) flag information representing whether to derive an intra prediction mode for a current Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 block based on most probable mode (MPM) candidates for the current block or planar flag information representing whether to determine the intra prediction mode for the current block as a planar mode, deriving the intra prediction mode for the current block based on the MPM flag information and the planar flag information, deriving a predicted block for 5 the current block based on the intra prediction mode for the current block. and generating a reconstructed picture based on the predicted block, and based on the MPM flag information representing that the intra prediction mode for the current block is derived based on the MPM candidates, the planar flag information is included in the intra prediction information. 10 [ 44] In an exemplary embodiment, the intra prediction information may further include MPM index information related to one of the MPM candidates other than the planar mode among the MPM candidates for the current block. Based on the planar flag information representing that the intra prediction mode for the current block is not derived as the planar mode, the MPM index information may be included in the intra prediction information, 15 and the intra prediction mode for the current block may be derived based on the MPM index information.
[45] In an exemplary embodiment, a total number of MPM candidates other than the planar mode among the MPM candidates for the current block may be equal to 5.
[46] In an exemplary embodiment, the MPM index information may represent a 0th 20 MPM candidate, a 1st MPM candidate, a 2nd MPM candidate, a 3rd MPM candidate, or a 4th MPM candidate which is included in the MPM candidates other than the planar mode among the MPM candidates for the current block. Based on a case where an intra prediction mode of a left neighboring block of the current block and an intra prediction mode of a top neighboring block of the current block are the same and the intra prediction 25 mode of the left neighboring block is larger than an intra DC mode, an intra prediction mode for the 0th MPM candidate may be the intra prediction mode of the left neighboring 11 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 block of the current block, an intra prediction mode for the 1st MPM candidate may be 2+((the intra prediction mode of the left neighboring block of the current block+61)%64), and an intra prediction mode for the 2nd MPM candidate may be 2+((the intra prediction mode of the left neighboring block of the current block-1)%64). 5
[47] In an exemplary embodiment, the MPM index information may represent a 0th MPM candidate, a 1st MPM candidate, a 2nd MPM candidate, a 3rd MPM candidate, or a 4th MPM candidate which is included in the MPM candidates other than the planar mode among the MPM candidates for the current block. Based on a case where an intra prediction mode of a left neighboring block of the current block and an intra prediction 10 mode of a top neighboring block of the current block are not the same, the intra prediction mode of the left neighboring block is smaller than or equal to an intra DC mode, and the intra prediction mode of the top neighboring block is smaller than or equal to the intra DC mode, the intra prediction mode for the 0th MPM candidate may be the intra DC mode, the intra prediction mode for the 1st MPM candidate may be a 50th intra prediction mode, 15 theintrapredictionmodeforthe 2ndMPMcandidatemay bea 18th intra prediction mode, the intra prediction mode for the 3rd MPM candidate may be a 46th intra prediction mode, and the intra prediction mode for the 4th MPM candidate may be a 54th intra prediction mode. [ 48] In an exemplary embodiment, the MPM index information may be based on a 20 truncated rice (TR) binarization process. [ 49] In an exemplary embodiment, cMax representing a maximum value of the MPM index information may be equal to 4. [50) According to the present disclosure, it is possible to enhance overall image / video compression efficiency. 25
[51] According to the present disclosure, it is possible to enhance the efficiency of intra prediction. 12 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25
[52] According to the present disclosme, it is possible to efficiently perform intra prediction based on an MPM list.
[53] According to the present disclosure, it is possible to enhance image coding efficiency based on intra prediction using an MPM list for a current block. 5
[54] According to the present disclosure, it is possible to enhance the efficiency of intra prediction based on an MPM list based on planar flag information representing whether to determine an intra prediction mode for a current block as a planar mode.
[55] According to the present disclosure, it is possible to efficiently configure an MPM list for a current block. 10
[56] According to the present disclosure, it is possible to efficiently code an MPM index. BRIEF DESCRIPTION OF THE DRAWINGS
[57] FIG. 1 schematically represents an example of a video / image coding system to which the present disclosure may be applied. 15
[58] FIG. 2 is a diagram schematically illustrating a configuration of a video / image encoding apparatus to which the present disclosure may be applied.
[59] FIG. 3 is a diagram schematically illustrating a configuration of a video / image decoding apparatus to which the present disclosure may be applied.
[60] FIGS. 4A and 4B are diagrams illustrating an example of an image encoding 20 method performed by an encoding apparatus according to an exemplary embodiment and an example of an image decoding method performed by a decoding apparatus according to an exemplary embodiment.. [61) FIG. 5 is a flowchart illustrating an intra prediction method according to an exemplary embodiment. 25
[62] FIG. 6 is a diagram illustrating an example of directional intra prediction modes. [63) FIG. 7 is a diagram for explaining a configuration of an MPM list according to an 13 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 exemplmy embodiment. [64) FIG. 8 is a diagram for explaining a configuration of an MPM list according to another exemplary embodiment.
[65] FIG. 9 is a flowchart illustrating an MPM prediction method according to an 5 exemplary embodiment.
[66] FIG. 10 is a flowchart illustrating an MPM prediction method according to another exemplary embodiment.
[67] FIG. 11 is a flowchart illustrating an operation of the encoding apparatus according to an exemplary embodiment. 10
[68] FIG. 12 is a block diagram illustrating a configuration of the encoding apparatus according to an exemplary embodiment. [69) FIG. 13 is a flowchart illustrating an operation of the decoding apparatus according to an exemplary embodiment. [70) FIG. 14 is a block diagram illustrating a configuration of the decoding apparatus 15 according to an exemplary embodiment
[71] FIG. 15 is a diagram illustrating an example of a content streaming system to which the disclosure of the present document may be applied DESCRIPTION OF EXEMPLARY EMBODIMENTS [72) While the present disclosure may be susceptible to various modifications and 20 include various embodiments, specific embodiments thereof have been shown in the drawings by way of example and will now be described in detail. However, this is not intended to limit the present disclosure to the specific embodiments disclosed herein_ The terminology used herein is just for the pmpose of describing specific embodiments, and is not used with intent to limit technical idea of the present disclosure. The singular forms 25 may include the plural forms unless the context clearly indicates otherwise. The terms such as "comprise", "include", and the like are intended to indicate that features, numbers, 14 Date Re9ue / Date Received 2021-06-25 88672699 steps. operations, elements, components, or combinations thereof written in the following description exist, and thus should not he understood as that the possibility of existence or addition of one or more different features, numbers, steps, operations, elements, components, or combinations thereof is excluded in advance. 5
[73] Meanwhile, respective configurations on the drawings described in the present disclosure are independently described for convenience of description as to characteristic functions different from each other, hut do not mean that the configurations are embodied by separate hardware or software. For example, two or more configurations may be combined to form a single configuration, and one configuration may be divided into plural configurations. The embodiment having each component 10 formed by the integration and / or the dividing will fall into the scope of the patent right of the present disclosure as long as it does not depart from the essence of the present disclosure. [7 4] Hereinafter, preferred embodiments of the present disclosure will be explained in more detail, referring to the attached drawings. Hereinafter, the same reference signs are used for the same components on the drawings, and repeated descriptions for the same components may be omitted. 15 [75) FIG. 1 illustrates an example of a video / image coding system to which the present disclosure may be applied. [76) Referring to FIG. 1, a video / image coding system 100 may include a first apparatus (source device) 103 and a second apparatus (reception device) 105. The source device 103 may transmit encoded video / image information or data to the reception device 105 through a digital storage medium or 20 network in the form of a file or streaming.
[77] The source device 103 may include a video source 107, an encoding apparatus 109, and a transmitter 11 I. The receiving device 105 may include a receiver 113, a decoding apparatus 115, and a renderer 117. The encoding apparatus 109 may be called a video / image encoding apparatus, and the decoding apparatus 115 may be called a video / image decoding apparatus. The transmitter 111 may be 25 included in the encoding apparatus 109. The receiver 113 may be included in the decoding apparatus 115. The renderer 117 may include a display (not shown), and the display may be configured as a separate device or an external component.
[78] The video source 107 may acquire video / image through a process for capturing, synthesizing, or generating the video / image. The video source 107 may include a video / image capture device and / or a 15 Date Regue / Date Received 2022-12-20 88672699 video / image generating device. The video / image capture device may include, for example, one or more cameras, video / image archives including previously captured video / images, and the like. The video / image generating device may include, for example, computers, tablets and smartphones, and may (electronically) generate video / images. For example, a virtual video / image may be generated through a 5 computer or the like. In this case, the video / image capturing process may be replaced by a process for generating related data.
[79] The encoding apparatus 109 may encode input video / image. The encoding apparatus 109 may perform a series of procedures such as prediction, transform, and quantization for compression and coding efficiency. The encoded data ( encoded video / image information) may be output in the form of a 10 bitstream.
[80] The transmitter 111 may transmit the encoded image / image information or data output in the form of a bitstream to the receiver 113 of the receiving device 105 through a digital storage medium or a network in the form of a file or streaming. The digital storage medium may include various storage mediums such as USB, SD, CD, DVD, Blu-ray®, HDD, SSD, and the like. The transmitter 111 may 15 include an element for generating a media file through a predetermined file format and may include an element for transmission through a broadcast / communication network. The receiver 113 may receive / extract the bitstream and transmit the received bitstream to the decoding apparatus 115. [81) The decoding apparatus 115 may decode the video / image by performing a series of procedures such as dequantization, inverse transform, and prediction corresponding to the operation of the encoding 20 apparatusl09.
[82] The renderer may render the decoded video / image. The rendered video / image may be displayed through the display.
[83] FIG. 2 illustrates a structure of a video / image encoding apparatus to which the present disclosure may be applied. In what follows, a video encoding apparatus may include an image encoding 25 apparatus.
[84] Referring to FIG. 2, the encoding apparatus 200 includes an image partitioner 210, a predictor 220, a residual processor 230, and an entropy encoder 240, an adder 250, a filter 260, and a memory 270. The predictor 220 may include an inter predictor 221 and an intra predictor 222. The residual processor 16 Date Regue / Date Received 2022-12-20 88672699 230 may include a transformer 232, a quantizer 233, a dequantizer 234, and an inverse transformer 235. The residual processor 230 may further include a subtractor 231. The adder 250 may be called a reconfigureor or a reconstructed block generator. The image partitioner 210, the predictor 220, the residual processor 230, the entropy encoder 240, the adder 250, and the filter 260 may be configured by 5 at least one hardware component (for example, an encoder chipset or processor) according to an exemplary embodiment In addition, the memory 270 may include a decoded picture buffer (DPB) or may be configured by a digital storage medium. The hardware component may further include the memory 270 as an internal / external component.
[85] The image partitioner 210 may partition an input image (or a picture or a :frame) input to the 10 encoding apparatus 200 into one or more processors. For example, the processor may be called a coding unit (CU). In this case, the coding unit may be recursively partitioned according to a quad-tree binarytree ternary-tree (QTBTTT) structure from a coding tree unit (CTU) or a largest coding unit (LCU). For example, one coding unit may be partitioned into a plurality of coding units of a deeper depth based on a quad tree structure, a binary tree structure, and / or a ternary structure. In this case, for 17 Date Regue / Date Received 2022-12-20 CA 03125109 2021-06-25 example, the quad tree structure may be applied first and the binary tree structure and / or ternary structure may be applied later. Alternatively, the binary tree structure may be applied first. The coding procedure according to the present disclosme may be performed based on the final coding unit that is no longer partitioned. In this case, the largest coding 5 unit may be used as the final coding unit based on coding efficiency according to image characteristics, or if necessary, the coding unit may be recursively partitioned into coding units of deeper depth and a coding unit having an optimal size may be used as the final coding unit. Here, the coding procedure may include a procedure of prediction, transform, and reconstructed, which will be described later. As another example, the processor may 10 further include a predictor (PU) or a transform unit (TU). In this case, the predictor and the transform unit may be split or partitioned from the aforementioned final coding unit. The predictor may be a unit of sample prediction, and the transform unit may be a unit for deriving a transform coefficient and / or a unit for deriving a residual signal from the transform coefficient. 15
[86] The unit may be used interchangeably with terms such as block or area in some cases. In a general case, an MxN block may represent a set of samples or transform coefficients composed of M columns and N rows. A sample may generally represent a pixel or a value of a pixel, may represent only a pixel / pixel value of a luma component or represent only a pixel / pixel value of a chroma component. A sample may be used as a 20 term corresponding to one picture (or image) for a pixel or a pel.
[87] In the encoding apparatus 200, a prediction signal (predicted block, prediction sample array) output from the inter predictor 221 or the intra predictor 222 is subtracted from an input image signal (original block, original sample array) to generate a residual signal residual block, residual sample array), and the generated residual signal is 25 transmitted to the transformer 232. In this case, as shown, a unit for subtracting a prediction signal (predicted block, prediction sample array) from the input image signal 18 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 ( original block, original sample array) in the encoder 200 may be called a subtractor 231. The predictor may perform prediction on a block to be processed (hereinafter, referred to as a current block) and generate a predicted block including prediction samples for the current block. The predictor may determine whether intra prediction or inter prediction is 5 applied on a current block or CU basis. As described later in the description of each prediction mode, the predictor may generate various information related to prediction, such as prediction mode information, and transmit the generated information to the entropy encoder 240. The information on the prediction may be encoded in the entropy encoder 240 and output: in the form of a bitstream. 10
[88] The intra predictor 222 may predict the current block by referring to the samples in the current picture. The referred samples may be located in the neighborhood of the current block or may be located apart according to the prediction mode. In the intra prediction, prediction modes may include a plurality of non-directional modes and a plurality of directional modes. The non-directional mode may include, for example, a DC 15 mode and a planar mode. The directional mode may include, for example, 33 directional prediction modes or 65 directional prediction modes according to the degree of detail of the prediction direction_ However, this is merely an example, more or less directional prediction modes may be used depending on a setting. The intra predictor 222 may determine the prediction mode applied to the current block by using a prediction mode 20 applied to a neighboring block.
[89] The inter predictor 221 may derive a predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on a reference picture. Here, in order to reduce the amount of motion information transmitted in the inter prediction mode, the motion information may be predicted in units of blocks, subblocks, 25 or samples based on correlation of motion information between the neighboring block and the current block. The motion information may include a motion vector and a reference 19 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 picture index. The motion information may further include inter prediction direction (LO prediction, L 1 prediction, Bi prediction, etc.) information. In the case of inter prediction, the neighboring block may include a spatial neighboring block present in the current picture and a temporal neighboring block present in the reference picture. The reference 5 picture including the reference block and the reference picture including the temporal neighboring block may be the same or different. The temporal neighboring block may be called a collocated reference block, a co-located CU (colCU), and the like, and the reference picture including the temporal neighboring block may be called a collocated picture (colPic). For example, the inter predictor 221 may configure a motion information 10 candidate list based on neighboring blocks and generate information indicating which candidate is used to derive a motion vector and / or a reference picture index of the current block. Interpredictionmay be performed based on various prediction modes. For example, in the case of a skip mode and a merge mode, the inter predictor 221 may use motion information of the neighboring block as motion information of the current block. In the 15 skip mode, unlike the merge mode, the residual signal may not be transmitted. 1n the case of the motion vector prediction (MVP) mode, the motion vector of the neighboring block may be used as a motion vector predictor and the motion vector of the current block may be indicated by signaling a motion vector difference.
[90] The predictor 220 may generate a prediction signal based on various prediction 20 methods described below. For example, the predictor may not only apply intra prediction or inter prediction to predict one block but also simultaneously apply both intra prediction and inter prediction. This may be called combined inter and intra prediction (CIIP)_ In addition, the predictor may be based on an intra block copy (IBC) prediction mode or a palette mode for prediction of a block. The IBC prediction mode or palette mode may be 25 used for content image / video coding of a game or the like, for example, screen content coding (SCC). The IBC basically performs prediction in the current picture but may be 20 Date Re9ue / Date Received 2021-06-25 88672699 performed similarly to inter prediction in that a reference block is derived in the current picture. That is. the IBC may use at least one of the inter prediction techniques described in this document. The palette mode may be considered as an example of intra coding or intra prediction. When the palette mode is applied, a sample value within a picture may be signaled based on information on the palette table and 5 the palette index. [91) The prediction signal generated by the predictor (including the inter predictor 221 and / or the intra predictor 222) may be used to generate a reconstructed signal or to generate a residual signal. The transformer 232 may generate transform coefficients by applying a transform technique to the residual signal. For example, the transform technique may include at least one of a discrete cosine transform 10 (DCT). a discrete sine transform (DST), a Karhunen-Loeve Transform (KL1). a graph~based transform (GBT), or a conditionally non-linear transform (CNT). Here, the GBT means transform obtained from a graph when relationship information between pixels is represented by the graph. The CNT refers to transform generated based on a prediction signal generated using all previously reconstmcted pixels. In addition, the transform process may be applied to square pixel blocks having the same size or may be 15 applied to blocks having a variable size rather than square. [92) The quantizer 233 may quantize the transform coefficients and transmit them to the entropy encoder 240 and the entropy encoder 240 may encode the quantized signal (information on the quantized transform coefficients) and output a bitstream 243. The information on the quantized transform coefficients may be referred to as residual information. The quantizer 233 may rearrange block type 20 quantized transform coefficients into a one~dimensional vector form based on a coefficient scanning order and generate infom1ation on the quantized transform coefficients based on the quantized transform coefficients in the one-dimensional vector form. Information on transform coefficients may be generated The entropy encoder 240 may perform various encoding methods such as, for example. exponential Golomb, context-adaptive variable length coding (CA VLC). context-adaptive binary 25 arithmetic coding (CABAC), and the like. The entropy encoder 240 may encode information necessary for video / image reconstructed other than quantized transform coefficients (for example, values of syntax elements, etc.) together or separately. Encoded information (for example, encoded video / image information) may be transmitted or stored in units of NALs (network abstraction layer) in the form of a bitstream 243. The video / image information may further include information on various parameter sets 30 such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). In addition, the video / image information may further include 21 Date Regue / Date Received 2022-12-20 88672699 general constraint information. In this document, information and / or syntax elements transmitted / signaled from the encoding apparatus to the decoding apparatus may be included in video / picture information. The video / image information may be encoded through the above-described encoding procedure and included in the bitstream 243. The bitstream 243 may be transmitted over a 5 network or may be stored in a digital storage medium. The network may include a broadcasting network and / or a communication network, and the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray®, HDD, SSD, and the like. A transmitter (not shown) transmitting a signal output from the entropy encoder 240 and / or a storage unit (not shown) storing the signal may be included as internal / external element of the encoding apparatus 200, and alternatively, the transmitter 10 may be included in the entropy encoder 240.
[93] The quantized transform coefficients output ftom the quantizer 233 may be used to generate a prediction signal. For example, the residual signal (residual block or residual samples) may be reconstructed by applying dequanti7.ation and inverse transform to the quantized transform coefficients through the dequantizer 234 and the inverse transformer 235. The adder 250 adds the reconstructed 15 residual signal to the prediction signal output from the inter predictor 221 or the intra predictor 222 to generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array). If there is no residual for the block to be processed, such as a case where the skip mode is applied, the predicted block may be used as the reconstructed block. The adder 250 may be called a reconfigureor or a reconstructed block generator. The generated reconstructed signal may be used for intra prediction of a 20 next block to be processed in the current picture and may be used for inter prediction of a next picture through filtering as described below.
[94] Meanwhile, luma mapping with chroma scaling (LMCS) may be applied during picture encoding and / or reconstructed 22 Date Regue / Date Received 2022-12-20 88672699
[95] The filter 260 may improve subjective / objective image quality by applying filtering to the reconstructed signal. For example, the filter 260 may generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture and store the modified reconstructed picture in the memory 270, specifically, a DPB of the memory 270. The various filtering methods may 5 include, for example, deblocking filtering, a sample adaptive offset, an adaptive loop filter, a bilateral filter, and the like. The filter 260 may generate various information related to the filtering and transmit the generated information to the entropy encoder 240 as described later in the description of each filtering method. The information related to the filtering may be encoded by the entropy encoder 240 and output in the form of a bitstream 243. 10
[96] The modified reconstructed picture transmitted to the memory 270 may be used as the reference picture in the inter predictor 221. When the inter prediction is applied through the encoding apparatus, prediction mismatch between the encoding apparatus 200 and the decoding apparatus may be avoided and encoding efficiency may be improved.
[97] The DPB of the memory 270 DPB may store the modified reconstructed picture for use as a 15 reference picture in the inter predictor 221. The memory 270 may store the motion information of the block from which the motion information in the current picture is derived (or encoded) and / or the motion information of the blocks in the picture that have already been reconstructed. The stored motion information may be transmitted to the inter predictor 221 and used as the motion information of the spatial neighboring block or the motion information of the temporal neighboring block. The memory 270 20 may store reconstructed samples of reconstructed blocks in the current picture and may transfer the reconstructed samples to the intra predictor 222. 23 Date Regue / Date Received 2022-12-20 88672699
[98] FIG. 3 illustrates a structure of a video / image decoding apparatus to which the present disclosure may be applied.
[99] Referring to FIG. 3, the decoding apparatus 300 may include an entropy decoder 310, a residual processor 320, a predictor 330, an adder 340, a filter 350, a memory 360_ The predictor 330 may include 5 an inter predictor 331 and an intra predictor 332. The residual processor 320 may include a dequantizer 321 and an inverse transformer 321. The entropy decoder 310, the residual processor 320, the predictor 330, the adder 340, and the filter 350 may be configured by a hardware component (for example, a decoder chipset or a processor) according to an exemplary embodiment. In addition, the memory 360 may include a decoded picture buffer (DPB) or may be configured by a digital storage medium. The 10 hardware component may further include the memory 360 as an internal / external component.
[100] When a bitstream 343 including video / image information is input, the decoding apparatus 300 may reconfigure an image corresponding to a process in which the video / image information is processed in the encoding apparatus of FIG. 2. For example, the decoding apparatus 300 may derive units / blocks based on block partition related information obtained from the bitstream 343_ The decoding apparatus 15 300 may perform decoding using a processor applied in the encoding apparatus. Thus, the processor of decoding may be a coding unit, for example, and the coding unit may be partitioned according to a quad tree structme, binary tree structure and / or ternary tree structure from the coding tree unit or the largest coding unit. One or more transform units may be derived from the coding unit. The reconstructed image signal decoded and output through the decoding apparatus 300 may be reproduced through a reproducing 20 apparatus. 24 Date Regue / Date Received 2022-12-20 88672699 [101) The decoding apparatus 300 may receive a signal output from the encoding apparatus of FIG. 2 in the form of a bitstream, and the received signal may be decoded through the entropy decoder 310. For example, the entropy decoder 310 may parse the bitstream to derive information (for example, video / image information) necessary for image reconstructed (or picture reconstructed). The video / image 5 information may further include information on various parameter sets such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). In addition, the video / image information may further include general constraint information. The decoding apparatus may further decode picture based on the information on the parameter set and / or the general constraint information. Signaled / received information and / or syntax elements described later in 10 this document may be decoded may decode the decoding procedure and obtained from the bitstream. For example, the entropy decoder 310 decodes the information in the bitstream based on a coding method such as exponential Golomb coding, CA VLC, or CABAC, and output syntax elements required for image reconstructed and quantized values of transform coefficients for residual. More specifically, the CABAC entropy decoding method may receive a bin corresponding to each syntax element in the 15 bitstream, determine a context model using a decoding target syntax element information, decoding information of a decoding target block or information of a symbol / bin decoded in a previous stage, and perform an arithmetic decoding on the bin by predicting a probability of occurrence of a bin according to the determined context model, and generate a symbol corresponding to the value of each syntax element. In this case, the CABAC entropy decoding method may update the context model by using the 20 information of the decoded symbol / bin for a context model of a next 25 Date Regue / Date Received 2022-12-20 CA 03125109 2021-06-25 symbol / bin after determining the context model The information related to the prediction among the information decoded by the entropy decoder 310 may be provided to the predictor (the inter predictor 332 and the intra predictor 331), and the residual value on which the entropy decoding was performed in the entropy decoder 310, that is, the 5 quantized transform coefficients and related parameter information, may be input to the residual processor 320. The residual processor 320 may derive the residual signal (the residual block, the residual samples, the residual sample array). In addition, information on filtering among infonnation decoded by the entropy decoder 310 may be provided to the :filter 350. Meanwhile, a receiver (not shown) for receiving a signal output from the 10 encoding apparatus may be further configured as an internal / external element of the decoding apparatus 300, or the receiver may be a component of the entropy decoder 310. Meanwhile, the decoding apparatus according to this document may be ref erred to as a video / image / picture decoding apparatus, and the decoding apparatus may be classified into an information decoder (video / image / picture information decoder) and a sample 15 decoder (video / image / picture sample decoder). The information decoder may include the entropy decoder 310, and the sample decoder may include at least one of the dequantizer 321, the inverse transfonner 322, the adder 340, the filter 350, the memory 360, the inter predictor 332, and the intra predictor 331.
[102] The dequantizer 321 may dequantize the quantized transform coefficients and 20 output the transform coefficients. The dequantizer 321 may rearrange the quantized transform coefficients in the form of a two-dimensional block form. In this case, the rearrangement may be perfonned based on the coefficient scanning order performed in the encoding apparatus. The dequantizer 321 may perform dequantization on the quantized transform coefficients by using a quantization parameter (for example, 25 quantization step size information) and obtain transform coefficients.
[103] The inverse transformer 322 inversely transforms the transform coefficients to 26 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 obtain a residual signal (residual block, residual sample array).
[104] The predictor may perform prediction on the current block and generate a predicted block including prediction samples for the current block. The predictor may determine whether intra prediction or inter prediction is applied to the current block based 5 on the information on the prediction output from the entropy decoder 310 and may determine a specific intra / inter prediction mode.
[105] The predictor 320 may generate a prediction signal based on various prediction methods described below. For example, the predictor may not only apply intra prediction or inter prediction to predict one block but also simultaneously apply intra prediction and 10 interprediction. This may be called combined inter and intra prediction (CIIP). Inaddition, the predictor may be based on an intra block copy (IBC) prediction mode or a palette mode for prediction of a block The IBC prediction mode or palette mode may be used for content image / video coding of a game or the like, for example, screen content coding (SCC). The IBC basically performs prediction in the current picture but may be performed 15 similarly to inter prediction in that a reference block is derived in the current picture. That is, the IBC may use at least one of the inter prediction techniques described in this document. The palette mode may be considered as an example of intra coding or intra prediction. When the palette mode is applied, a sample value within a picture may be signaled based on information on the palette table and the palette index. 20
[106] The intra predictor 331 may predict the current block by referring to 1he samples in the current picture. The referred samples may be located in the neighborhood of the current block or may be located apart according to the prediction mode. In the intra prediction, prediction modes may include a plurality of non-directional modes and a plurality of directional modes. The intra predictor 331 may determine the prediction mode 25 applied to the current block by using a prediction mode applied to a neighboring block. [107) The inter predictor 332 may derive a predicted block for the current block based 27 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 on a reference block (reference sample array) specified by a motion vector on a reference picture. In this case, in order to reduce the amount of motion information transmitted in the inter prediction mode, motion information may be predicted in units of blocks, subblocks, or samples based on correlation of motion information between the 5 neighboring block and the current block. The motion infonnation may include a motion vector and a reference picture index. The motion information may further include inter prediction direction (LO prediction, LI prediction, Bi prediction, etc.) information. In the case of inter prediction, the neighboring block may include a spatial neighboring block present in the current picture and a temporal neighboring block present in the reference 10 picture. For example, the inter predictor 332 may configure a motion information candidate list based on neighboring blocks and derive a motion vector of the current block and / or a reference picture index based on the received candidate selection information. Inter prediction may be performed based on various prediction modes, and the information on the prediction may include information indicating a mode of inter prediction for the 15 current block.
[108] The adder 340 may generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the obtained residual signal to the prediction signal (predicted block, predicted sample array) output from the predictor (including the inter predictor 332 and / or the intra predictor 331 ). If there is no residual for 20 the block to be processed, such as when the skip mode is applied, the predicted block may be used as the reconstructed block.
[109] The adder 340 may be called reconfigureor or a reconstructed block generator. The generated reconstructed signal may be used for intra prediction of a next block to be processed in the current picture, may be output through filtering as described below, or 25 may be used for inter prediction of a next picture. [110) Meanwhile, luma mapping with chroma scaling (LMCS) may be applied in the 28 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 picture decoding process.
[111] The filter 350 may improve subjective / objective image quality by applying filtering to the reconstructed signal For example, the filter 350 may generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture 5 and store the modified reconstructed picture in the memory 360, specifically, a DPB of the memory 360. The various filtering methods may include, for example, deblocking filtering, a sample adaptive offset, an adaptive loop filter, a bilateral filter, and the like.
[112] The (modified) reconstructed picture stored in the DPB of the memory 360 may be used as a reference picture in the inter predictor 332. The memory 360 may store the 10 motion information of the block from which the motion information in the current picture is derived ( or decoded) and / or the motion information of the blocks in the picture that have already been reconstructed. The stored motion information may be transmitted to the inter predictor 260 so as to be utilized as the motion information of the spatial neighboring block or the motion information of the temporal neighboring block. The memory 360 may 15 store reconstructed samples of reconstructed blocks in the current picture and transfer the reconstructed samples to the intra predictor 331.
[113] In the present disclosure, the embodiments described in the filter 260, the inter predictor 221, and the intra predictor 222 of the encoding apparatus 200 may be the same as or respectively applied to correspond to the filter 350, the inter predictor 332, and the 20 intra predictor 331 of the decoding apparatus 300. The same may also apply to the unit 3 32 and the intra predictor 331.
[114] As described above, in performing video coding, prediction is performed to enhance compression efficiency. Accordingly, a predicted block including prediction samples for a current block, which is a block to be coded, may be generated Here, the 25 predicted block includes prediction samples in a spatial domain (or pixel domain). The predicted block is derived equally from an encoding apparatus and a decoding apparatus, 29 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 and the encoding apparatus may signal information about 1he residual (residual information) between the original block and the predicted block, rather than an original sample value of the original block itself to the decoding apparatus, thereby enhancing image coding efficiency. The decoding apparatus may derive a residual block including 5 residual samples based on the residual information. generate a reconstructed block including reconstructed samples by combining the residual block and the predicted block, and generate a reconstructed picture including the reconstructed blocks.
[115] The residual information may be generated through a transform and quantization procedure. For example, the encoding apparatus may signal the related residual 10 information (through 1he bitstream) to the decoding apparatus by deriving the residual block between the original block and the predicted block, deriving transform coefficients by perfonning a transform procedure for residual samples (residual sample array) included in the residual block, and deriving quantized transform coefficients by performing a quantization procedure for the transform coefficients. Here, the residual information may 15 include information, such as value information, location information, a transform technique, a transform kernel, and quantization parameters, of the quantized transform coefficients. The decoding apparatus may perform a dequantization / inverse transform procedure based on the residual information and derive the residual samples (or residual blocks). The decoding apparatus may generate a reconstructed picture based on the 20 predicted block and the residual block. The encoding apparatus may also derive the residual bock by dequantizing / inverse transforming the quantized transform coefficients for reference for inter prediction of a next picture, and generate the reconstructed picture based on the derived residual block.
[116] FIGS. 4A and 4B are diagrams illustrating an example of an image encoding 25 method performed by an encoding apparatus according to an exemplary embodiment and an example of an image decoding method performed by a decoding apparatus according 30 Date Re9ue / Date Received 2021-06-25 88672699 to an exemplary embodiment.
[117] FIG. 4A illustrates an example of an image encoding method performed by a video encoding apparatus 400. Referring to FIG. 4A, in this example, the video encoding apparatus includes a block partitioning unit 401, an intra / inter prediction unit 403, a transform quantization unit 405, and an entropy 5 coding unit 407. The image encoding method may include block partitioning, intra / inter prediction, transform, quantizatio~ and entropy encoding processes. For example, the current picture may be split into a plurality of blocks, a predicted block of the current block may be generated through intra / inter prediction, and the residual block of the current block may be generated by subtracting the predicted block from an input block of the current block. Thereafter, a coefficient block of the current block, that 10 is, the transform coefficients, may be generated through the transform for the residual block. The transform coefficients may be quantized and entropy encoded and stored in a bitstream 409.
[118] FIG. 4B illustrates an example of an image decoding method performed by a decoding apparatus 411. Referring to FIG. 4B, in this example, the video decoding apparatus includes an entropy decoding unit 413 configured to receive a bitstream 414, an intra / inter prediction unit 415, and an 15 inverse transform, inverse quantization unit 417. The image decoding method may include entropy decoding, dequantization, inverse transform, and intra / inter prediction processes. For example, the decoding apparatus may perform an inverse process for the encoding method. Specifically, quantized transform coefficients may be acquired through entropy decoding for the bitstream, and the coefficient block of the current block, that is, the transform coefficients, may be acquired through a dequantization 20 process for the quantized transform coefficients. The residual block of the current block may be derived through the inverse transform for the transform coefficients, and the reconstructed block of the current block may be derived by adding the predicted block of the current block derived through the intra / inter prediction and the residual block.
[119] FIG. 5 is a flowchart illustrating an intra prediction method according to an exemplary 25 embodiment.
[120] As illustrated in FIG. 5, the intra prediction method according to an exemplary embodiment may include the following three steps. That is, the intra prediction method according to an exemplary embodiment may include configuring a reference sample 503, predicting a sample 505, and performing a post-filtering 507. In the predicting of the sample, the intra prediction method according to the 31 Date Regue / Date Received 2022-12-20 88672699 exemplary embodiment may use known neighboring reference samples and intra prediction mode to perform the prediction for unknown samples.
[121] FIG. 6 is a diagram illustrating an example of directional intra prediction modes.
[122] When the intra prediction is applied to the current block, the encoding apparatus and / or the 5 decoding apparatus according to an exemplary embodiment may derive an intra prediction mode for the current block, and derive prediction samples for the current block based on the intra prediction mode. That is, the encoding apparatus and / or the decoding apparatus may derive the prediction samples for the current block by applying a directional intra prediction mode or a non-directional intra prediction mode based on the neighboring reference samples of the current block. 10 [123) In an example, the intra prediction modes may include two non-directional (or non-angular) intra prediction modes and 65 directional (or angular) intra prediction modes. The non-directional intra prediction modes may include a 0th planar intra prediction mode and a first DC intra prediction mode, and the directional intra prediction modes may include 65 intra prediction modes including second to 66th intra prediction modes. The intra prediction based on the 65 directional intra prediction modes may 15 be applied to blocks of all sizes, and may be applied to all of a luma component and a chroma component. However, this is only illustrative, and configurations of the intra prediction modes may be different.
[124] Alternatively, the intra prediction mode may include two non-directional intra prediction modes and 129 directional intra prediction modes. The non-directional intra prediction modes may include a 20 planar intra prediction mode and a DC intra prediction mode, and the directional intra prediction modes may include the second to 130th intra prediction modes. [12S] Meanwhile, the intra prediction mode may further include a cross-component linear model (CCLM) mode for the chroma sample in addition to the aforementioned intra prediction modes. The CCLM mode may be classified into LT_CCLM, L_CCLM, and T_CCLM depending upon whether to 25 consider the left samples, to consider the upper samples, or to consider both for deriving LM parameters, and may be applied only to the chroma component. [126) The intra prediction mode may be indexed, for example, as expressed in Table 1 below. 32 Date Regue / Date Received 2022-12-20 88672699 [127) Table 1 Intra prediction mode Associated name 0 INTRA- PLANAR 1 INTRA_DC 2_.66 INTRA- ANGULAR2 . .INTRA ANGULAR66 81..83 INTRA_LT_CCL~ INTRA_L_CCLM, INTRA_T_ CCLM [128) Meanwhile, the intra prediction type (or an additional intra prediction mode or the like) may include at least one among the aforementioned LIP (Linear interpolation intra prediction), PDPC (Position dependent intra prediction combination), MRL, and ISP. The intra prediction type may be 5 indicated based on the intra prediction type information, and the intra prediction type information may be implemented in various forms. In an example, the intra prediction type information may include intra prediction type index information indicating one of the intra prediction types. In another example, the intra prediction type information may include at least one among reference sample line information (for example, intra_luma_ref_idx) representing whether the MRL is applied to the current block and if 10 applied, which reference sample line is used, ISP flag information (for example, intra_sub_partitions_mode_flag) representing whether the ISP is applied to the current block, ISP type information (for example, intra_subpartitions_split_flag) 33 Date Regue / Date Received 2022-12-20 CA 03125109 2021-06-25 indicating that sub-partitions indicate the split type if the ISP is applied, flag information representing whether the PDPC is applied, and flag information representing whether the LIP is applied. [129) Referring to FIG. 6, an intra prediction mode which has horizontal directionality 5 and an intra prediction mode which has vertical directionality may be distinguished from each other based on the 34th intra prediction mode which has a left upward diagonal prediction direction. The H and Vin FIG. 6 refer to the horizontal directionality and the vertical directionality, respectively, and numbers from-32 to 32 represent displacements in units of 1 / 32 on a sample grid position. The second to 33th intra prediction modes have 10 the horizontal directionality, and the 34th to 66th intra prediction modes have the vertical directionality. The 18th intra prediction mode and the 50th intra prediction mode represent a horizontal intra prediction mode and a vertical intra prediction mode, respectively, and the second intra prediction mode may be referred to as a left downward diagonal intra prediction mode, the 34th intra prediction mode may be referred to as a left upward 15 diagonal intra prediction mode, and the 66th intra prediction mode may be referred to as a right upward diagonal intra prediction mode.
[130] Generally, when the block for the image is split, the current block to be coded and the neighboring blocks have similar image characteristics. Accordingly, there is a high probability that the current block and the neighboring blocks have the same or similar intra 20 prediction modes. Accordingly, the encoder may use the intra prediction mode of the neighboring block to encode the intra prediction mode of the current block.
[131] In a more specific example, the decoding apparatus may derive the most probable mode (MPM) list based on the intra prediction mode and additional candidate modes of a neighboring block (for example, a left neighboring block and / or an upper neighboring 25 block) of the current block, select one of the MPM candidates within the derived MPM list based on the received MPM index, or select one of the remaining intra prediction 34 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 modes not included in the MPM candidates based on the remaining intra prediction mode information. The MPM list may also be represented as an intra prediction mode candidate list, and may also be represented as a candModeList [132) The encoding apparatus (or encoder) may confirm or derive a prediction mode of 5 a neighboring block if the neighboring block is intra coded. For example, the prediction mode of the current block may be determined based on the prediction mode of the left neighboring block and the prediction mode of the upper neighboring block, and at this time, the prediction mode of the corresponding neighboring block may be determined as the most probable mode (MPM). The determination of the MPM may also be expressed 10 as listing up the most probable mode (MPM) candidates (or MPM list). [133) The encoding apparatus may confirm whether the prediction mode of the left neighboring block and the prediction mode of the upper neighboring block are the same. An initial MPM list may be formed by performing a pruning process for the intra prediction modes of the two adjacent blocks. 15
[134] If the prediction mode of the left neighboring block and the prediction mode of the upper neighboring block are not the same, the first MPM may be set as the prediction mode of the left neighboring block, the second MPM may be set as the prediction mode of the upper neighboring block, and the third MPM may be set as any one of an intra planar mode, an intra DC mode, or an intra vertical mode (50th intra prediction mode). 20 Specifically, when the intra prediction modes of the two neighboring blocks are different from each other, the two intra prediction modes may be set as the MPM, and after the pruning check by the MPMs, one of the default intra modes may be added to the MPM list. Here, the default intra modes may include an intra planar mode, an intra DC mode, and / or an intra vertical mode (50th intra prediction mode). 25 [135) In an example, the MPM list may include 3 MPM candidates, 5 candidates, or 6 MPM candidates. For example, the MPM list may include candidates which are derived 35 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 based on the intra prediction mode of the neighboring block, the derived intra prediction mode, and / or the default intra prediction mode. The encoding apparatus / decoding apparatus may search for the neighboring blocks of the current block according to a specific order, and derive the intra prediction mode of the neighboring blocks as the MPM 5 candidates in the derived order. For example, the neighboring blocks may include a left neighboring block, an upper neighboring block. a lower left neighboring block. an upper right neighboring block. and an upper left neighboring block.
[136] 1n an example, the MPM list including three MPM candidates may be configured, and the three MPM candidates may be derived based on the intra prediction modes of a 10 neighboring block (F) and a neighboring block (G). A MPM prediction method based on the neighboring blocks for the current block including the neighboring block (F) and the neighboring block (G) may be, for example, illustrated in FIG. 7 below.
[137] FIG. 7 is a diagram for explaining a configuration of an MPM list according to an exemplary embodiment. 15
[138] Referring to FIG. 7, neighboring blocks of the current block may include a neighboring block (A), a neighboring block (B), a neighboring block (C), a neighboring block (D), a neighboring block (E), a neighboring block (F), and / or a neighboring block (G).
[139] Here, the neighboring block (A) may represent the neighboring block which is 20 positioned in the top-left of the top-left sample position of the current block, the neighboring block (B) may represent the neighboring block which is positioned at the top of the top-right sample position of the current block, the neighboring block (C) may represent the neighboring block which is positioned at the top-right of the top-right sample position of the current block. the neighboring block (D) may represent the neighboring 25 block which is positioned at the left end of the bottom-left sample position of the current block, the neighboring block (E) may represent the neighboring block which is positioned 36 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 at the bottom-left of the bottom-left sample position of the current block, the neighboring block (G) may represent the neighboring block which is positioned at the top of the topleft sample position of the current block, and the neighboring block (F) may represent the neighboring block which is positioned at the left end of the top-left sample position of the 5 current block.
[140] Further, for example, if the size of the current block is WxH, the x component of the top-left sample position of the current block is 0, and they component thereof is 0, the neighboring block (A) may be a block including a sample of (-1, -1) coordinates, the neighboring block (B) may be a block including a sample of (W-1, -1) coordinates, the 10 neighboring block (C) may be a block including a sample of (W, -1) coordinates, the neighboring block (D) may be a block including a sample of (-1, H-1) coordinates, the neighboring block (E) may be a block including a sample of (-1, H) coordinates, the neighboring block (F) may be a block including a sample of (-1, 0) coordinates, and the neighboring block (G) may be a block including a sample of (0, -1) coordinates. 15
[141] 1n an exemplary embodiment, three MPM candidates may be derived based on the intra prediction mode of the neighboring block (F) and the intra prediction mode of the neighboring block (G). For example, the intra prediction mode of the neighboring block (F) and the intra prediction mode of the neighboring block (G) may be derived. Meanwhile, in the following three cases, the intra prediction mode of the neighboring 20 block (F) or the intra prediction mode of the neighboring block (G) may be derived as a DC intra prediction mode. That is, if the neighboring block (F) or the neighboring block (G) is not available, if the neighboring block (F) or the neighboring block (G) is not coded in the intra prediction mode (if the neighboring block (F) or the neighboring block (G) is not the intra coded block), or if the neighboring block (F) or the neighboring block (G) is 25 out of the current coding tree unit, the intra prediction mode of the neighboring block (F) or the intra prediction mode of the neighboring block (G) may be derived as a DC intra 37 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 prediction mode_
[142] If the intra prediction mode of the neighboring block (F) or the intra prediction mode of the neighboring block (G) is determined, the three MPM candidates may be derived, for example, based on Table 2 below. 5 [143) Table 2 if (intra mode ofF and G are equal) { if (intra mode ofF < intra mode 2) { MPMlistl} else {MPMJist2} } else { if (Neither intra mode ofF nor G are intra mode Planar) } { MPMlist3} else if (intra mode of (F+G) <intra mode 2) { MPMJist4} else {MPM1ist5}
[144] Table 2 may exemplarily represent pseudo codes configuring the MPM list. [145) Referring to Table 2, it may be determined whether the intra prediction mode of the neighboring block (F) and the intra prediction mode of the neighboring block (G) are the same. 10 [146) If the intra prediction mode of the neighboring block (F) and the intra prediction 38 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 mode of the neighboring block (G) are the same and the mode number of the intra prediction mode of the neighboring block (F) is smaller than 2, the MPM list of the current block may be derived as a MPM list 1 (MPM listl ). That is, if the intra prediction mode of the neighboring block (F) and the intra prediction mode of the neighboring block (G) 5 are the same and the intra prediction mode of the neighboring block (F) is the 0th intra prediction mode or the :first intra prediction mode, the MPM list of the current block may be derived as the MPM list 1. Here, the MPM list 1 may represent an MPM list composed of MPM candidates {F, F-1, F+ I}_ The F may represent the intra prediction mode of the neighboring block (F). the F-1 may represent the intra prediction mode in which a value 10 obtained by subtracting 1 from the mode number of the intra prediction mode of the neighboring block (F) is a mode number, and the F+l may represent the intra prediction mode in which a value obtained by adding 1 to the mode number of the intra prediction mode of the neighboring block (F) is a mode number. For example, if the intra prediction mode of the neighboring block (F) is an Nth intra prediction mode, the MPM list 1 may 15 be configured as the MPM list including the Nth intra prediction mode, an N-lth intra prediction mode, and an N +Ith intra prediction mode as the MPM candidates.
[147] Further, if the intra prediction mode of the neighboring block (F) and the intra prediction mode of the neighboring block (G) are the same, and the mode number of the intra prediction mode of the neighboring block (F) is not smaller than 2, the MPM list of 20 the current block may be derived as an MPM list 2.
[148] Further, if the intra prediction mode of the neighboring block (F) and the intra prediction mode of the neighboring block (G) are not the same, and the intra prediction mode of the neighboring block. (F) and the intra prediction mode of the neighboring block (G) are not planar intra prediction modes, the MPM list of the current block may be 25 derived as an MPM list 3. [149) Further, if the intra prediction mode of the neighboring block (F) and the intra 39 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 prediction mode of the neighboring block (G) are not the same and the sum of the mode number of the intra prediction mode of the neighboring block (F) and the mode number of the intra prediction mode of the neighboring block (G) is smaller than 2, the MPM list of the current block may be derived as an MPM list 4. 5
[150] Further, if the intra prediction mode of the neighboring block (F) and the intra prediction mode of the neighboring block ( G) are not the same, at least one of the intra prediction mode of the neighboring block (F) and the intra prediction mode of the neighboring block ( G) is the planar intra prediction mode, and the sum of the mode number of the intra prediction mode of the neighboring block (F) and the mode number of the intra 10 prediction mode of the neighboring block (G) is not smaller than 2, the MPM list of the current block may be derived as an MPM list 5. [151) Meanwhile, as the number of intra prediction modes increases, the number of MPM candidates needs to increase. Accordingly, the number of MPM candidates may vary according to the number of intra prediction modes. Generally, as the number of intra 15 prediction modes increases, the number of MPM candidates may increase. However, the number ofMPM candidates does not always increase when the number of intra prediction modes increases. For example, if there are 35 intra prediction modes or 67 intra prediction modes, there may have various MPM candidates such as 3, 4, 5, and 6 according to the design. 20
[152] For example, the encoder / decoder may also configure an MPM list including 6 MPMs. Default intra modes, neighboring intra modes and derived intra modes may be considered to configure the MPM list.
[153] In an example, for the neighboring intra modes, two neighboring blocks, that is, the left neighboring block (A) and the top neighboring block (B). In order to generate an 25 MPM list including the 6 MPMs, an initialized default MPM list based on Table 3 below may be considered. 40 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25
[154] Table 3 Default 6 MPM modes= {A,Planar (0) or DC (1), Vertical (50), HOR(18), VER- 4 (46), VER+ 4 (54)} After that 6 MPM modes are updated perfotming pnming process for two neighboring intra modes. If two neighboring modes are the same each other and the neighboring mode is greater than DC (1) mode, 6 MPM modes are to include three default modes (A. Planar, DC) and three derived modes which are obtained by adding predefmed offset values to the neighboring mode and performing modu1ar operation. Otherwise, if two neighboring modes are different, two neighboring modes are assigned to first two MPM modes and the rest four MPM modes are derived from default modes and neighboring modes. During 6 MPM list generation process, pnming is used to remove duplicated modes so that only unique modes can be included into the MPM list. For entropy coding of the 61 non-MPM modes, a Truncated Binary Code (TBC) is used. [lSS] In another example, the order of configuring the 6 MPM candidates may be the order of the neighboring block (D). the neighboring block (B), the planar intra prediction mode, the DC intra prediction mode, the neighboring block (E), the neighboring block (C), 5 and the neighboring block (A). That is, the intra prediction mode may be derived, as the MPM candidates, in the order of the intra prediction mode of the neighboring block (D), the intra prediction mode of the neighboring block (B), the planar intra prediction mode, the DC intra prediction mode, the intra prediction mode of the neighboring block (E), the intra prediction mode of the neighboring block (C), and the intra prediction mode of the 10 neighboring block (A). and may not be derived as the MPM candidates if the 6 MPM candidates are the same as the already derived intra prediction mode. [156) Further, if the MPM list does not include the maximmn nmnber of MPM candidates, that is, if the number of derived MPM candidates is smaller than the maximum number of candidates, the directional intra prediction mode adjacent to the derived MPM 15 candidate and a predefined default intra prediction mode may be considered as MPM 41 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 candidates, and the pruning check process may be performed together. Here, the directional intra prediction mode adjacent to the MPM candidate may represent an intra prediction mode having a mode number adjacent to that of the MPM candidate. The aforementioned neighboring block search and continuous pruning check have an 5 advantage of reducing a bit transmission rate, but may increase the number of hardware operation cycles for the configuration of the MPM list of each block. As the worst scenario, a 3840x2160 4K image may be divided into 4x4 sized blocks for the intra prediction, and the increased number of hardware operating cycles for each 4x4 sized block may be considered important for throughput. Meanwhile, if the neighboring block coded by the 10 inter prediction of the current block knows the intra prediction mode of the neighboring block, the intra prediction mode of the neighboring block may be used to configure the MPM list.
[157] As described above, the current block to be coded and the neighboring block may generally have similar image characteristics, and thus, there is a high probability that the 15 current block and the neighboring block have the same or similar intra prediction modess, such that the MPM list of the current block may be determined to derive the intra prediction mode applied to the current block. However, when 67 intra prediction modes are used for the intra prediction, an MPM list including 3 MPM candidates may not be sufficient to represent diversity of multiple intra prediction modes. Further, a method for 20 configuring a list of 6 MPMs including the neighboring block search process and the pruning check process may be disadvantageous in complexity and throughput. In the present disclosure, various methods which derive the intra prediction mode for the current block based on the MPM prediction will be described later.
[158] FIG. 8 is a diagram for explaining a configuration of an MPM list according to 25 another exemplary embodiment.
[159] Referring to FIG. 8, in an exemplary embodiment, the left neighboring block 42 Date Re9ue / Date Received 2021-06-25 88672699 (which may be represented as LEFT) Al and the top neighboring block (which may be represented as ABOVE) Bl may be used as expressed in Table 4 below for generating the MPM list. The algorithm is as follows. The non-MPM coding may be based on a truncated binary code.
[160] Table 4 Determine LEFT and ABOVE intra modes Set MPM as MPM_ordering_0 If (LEFT==ABOVE) If (LEFT>=DC_idx), then set MPM as MPM_ordering_l Else if (LEFT>DC_idx and ABOVE>DC_idx), then set MPM as MPM_ordering_2 Else if (LEFT+ABOVE> DC_idx). then set MPM as MPM_ordering_3 5 [161) FIG. 9 is a flowchart illustrating an MPM prediction method according to an exemplary embodiment. [162) The present disclosure uses specific terms or sentences for defining specific information or concept. For example, a specific intra prediction mode which may be determined as the intra prediction mode for the current block without the MPM index information in a luma intra coding process is referred 10 to as a "significant mode", an index indicating one of the MPM candidates included in the MPM list is referred to as an "MPM index,,, a flag indicating whether to apply the luma intra coding is referred to as an "integrated MPM flag", and the remaining intra prediction modes other than the MPM candidates when the MPM prediction is not applied is referred to as "non-MPM modes". However, the "significant mode" may be replaced with various terms such as a significant_mode, a default mode, and a candidate 15 mode, the "MPM index" may be replaced with probable_mode_index, mpm_idx, intra_luma_mpm_idx, or the like, the "integrated MPM flag" may be replaced with unified_probable_mode_flag, MPM flag, intra_luma_mpm_flag, or the like, and the "non-MPM modes" may be replaced with various terms such 43 Date Regue / Date Received 2022-12-20 88672699 as non-MPM modes, non_probable_modes, remaining intra prediction modes, and MPM remaining prediction modes, such that in construing specific terms or sentences used to define specific information or concept in the present specification through the specification, the construction should not be limited to the name, and it is necessary to construe the specific terms and sentences by paying attention to various 5 operations, functions, and effects according to the content of the term. [163) In an example, the significant mode may be an intra planar mode.
[164] In an exemplary embodiment, a unified luma intra coding and a signaling may be performed. In the luma intra coding, at least one significant luma intra mode may be signaled fir~ and then an MPM list may be configured based on the remaining intra modes to select the best mode among the MPM 10 candidates included in die MPM list.
[165] Referring to Figure 9, first, it may be determined (S901) whether an MRL or an ISP has been used. When the MRL or the ISP is used, a value of the unified_probable_mode_flag may be determined as 1 (S903). If the MRL or the ISP is not used, the unified_probable_mode_flag may be parsed (S905).
[166] If the value of the unified_probable_mode_flag is 0, the non_probable_mode_index may be 15 parsed (S9O7). If the value of the unified_probable_mode_flag is 1, the significant_mode_flag may be parsed (S909). When the value of the significant_mode_flag is 1, the intra prediction mode for the current block may be determined as a significant mode (S911) (for example, intra planar mode), and when the value of the significant_mode_flag is 0, the probable_mode_index may be parsed (S913). [167_) FIG. 10 is a flowchart illustrating an MPM prediction method according to another exemplary 20 embodiment.
[168] In FIG. 10, the intra prediction performed based on one integrated method (or algorithm) without depending on whether the intra prediction based on the multi-reference line (MRL) or the prediction based on the intra sub partition (ISP) is applied is referred to as an "'unified luma intra mode coding". However. the "integrated luma intra mode coding" may be replaced with various terms such as 25 an integrated luma intra mode, an integrated intra prediction, integrated MPM, an integrated MPM prediction. a unified_probable_mode, an integrated intra coding, and an integrated luma intra coding.
[169] A specific method for deriving an integrated luma intra mode according to an exemplary embodiment is as follows. 44 Date Regue / Date Received 2022-12-20 88672699 [170) First, the unified_probable_mode_flag may be parsed (SlO0l). When the value of the unified_probable_mode_flag is 0, the non_probable_mode_index may be parsed (S1003), and when the value of the unified_probable_mode_flag is 1, the significant_mode_flag may be parsed (S1005). When the value of the significant_mode_flag is 1, the intra prediction mode for the current block may be 5 determined as a significant mode (S1007) (for example, intra planar mode), and when the value of the significant_mode_flag is 0, the probable_mode_index may be parsed (S1009).
[171] Alternatively, a specific method for deriving the integrated luma intra mode according to an exemplary embodiment may be expressed in Table 5 below.
[172] Table 5 Step 1. Parse unified_probable_mode_flag or unified_probable_mode_flag is previously assigned with certain value. If unified _probable_ mode_ flag equals to 1, it specifies the unified probable intra mode is used for current intra coding unit ( CU). And then step 1.1 is perfonned Otherwise, unified_probable_mode_flag equals to 0, it specifies that the unified probable intra mode is not used. Instead, non_probable_mode is used for current intra CU. And then step 1.2 is performed. Step 1.1 Parse significant_mode_flag. 45 Date Regue / Date Received 2022-12-20 CA 03125109 2021-06-25 If significant_ mode_ flag equaJs to 1, it specifies that one significant intra mode is used for current intra coding unit (CU). And then step 1.1.1 is performed. Otherwise, significant_ mode_ flag equals to 0, it specifies that the significant intra mode is not used. Instead, one of the probable mode in the probable list is used for current intra CU. And then step 1.1.2 is performed Step 1.1.1 pre-defmed one significant mode is assigned to predModelntra indicates that the one specific significant mode is used for current intra CU. Step 1.1.2 Parse probable_mode_index. probable_mode_index is parsed to indicated that one of probable mode list is used for current intra CU. Detailed conslruction of probable mode list is described in following Table 6. Step 1.2 Parse non__probable_mode_idx non_probable_mode_idx parsed to indicated that one of the non probable mode list is used for current intra CU
[173] A method for configuring an MPM list according to an exemplary embodiment is proposed. A list of the MPM modes having a k length may be configured. In an example, the k is equal to 5, and 5 conditions may be used when 5 different MPM lists are configured. A block (B) of FIG. 7 may be represented as A, and a block (D) may be represented as L. 5 For example, the method for configuring the MPM list according to the present exemplary embodiment may be expressed in Table 6 below.
[174] Table 6 1. Check condition 1 whe1her Land A are the same. If condition 1 meets, then go to step 2.1, otherwise go to step 2.2. L A 2. Date Re9ue / Date Received 2021-06-25 (condition 1) 46 CA 03125109 2021-06-25 2. 1 In this case, L and A are the same. Check condition 2 whether L is bigger than DC _idx which impJies that L and A are both angu1ar modes. If condition 2 meets, then go to step 5.1, otherwise go to step 5.2. L>DC_idx ( condition 2) 2.2 In this case, L and A are different. Check condition 3 whether L or A is bigger than DC idx, implies that at least one of the L and A is angular mode. If condition 3 meets, then go to step 3 L>DC_idxor A>DC_idx ( condition 3) 3. The following applies. maxAB=max (L, A) which takes the bigger value between L and A. minAB=min(L,A) which bikes 1he smaller value between L and A checks condition 4 whether both L and A are bigger than DC idx which implies that both ofL and A are angu]ar modes. If condition 4 meets, then go to step 4. 1, otherwise go to step 42. L>DC_idxand A>DC_idx (condition4) 4. 4.1 In this case, bo1h L and A are angular modes. Check condition 5 whether 1he difference between Land A is equal or less than 62 and equal or larger than 2. If condition 5 meets, then go to step 5.3, otherwise go to step 5.4. The variable diff.=maxAB-minAB diff <=62 AND diff >=2 (condition 5) 4.2 In this case, only one ofL and A is angular modes. go to step 5.5 5. Construct the whole probable mode list 5.1 Construct list 1. mpm[O] =L mpm[l]=L-1 mpm[2] =L+l Date Re9ue / Date Received 2021-06-25 47 mpm[3] = DC idx mpm[4] =L-2 5_2 Construct list 2 mpm[l]=DC_idx mpm[2] =Vertical_idx mpm[3] =Horizontal_idx mpm[4] =Vertical_idx-4 mpm[5] = Vertical_idx+4 5.3 Construct list 3 mpm[O]=L mpm[l]=A mpm[2] =DCjdx mpm[3] =maxAB-1 mpm.[4] = maxAB+ 1 5_4 Constructlist4 mpm[O]=L mpm[l]=A mpm[2] =DC_idx mpm[3] =maxAB-2 mpm[4] =maxAB+2 5.5 Construct list 5 mpm[O]= maxAB mpm[l]=DC_idx mpm[2] =maxAB-1 mpm[3] =maxAB+l Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 48 CA 03125109 2021-06-25 mpm[4] =maxAB-2 In step 5, intra angular mode+ 1, intra angular mode-I and intra angular mode-2 are not simple ma1hematically adding or subtracting values. In some cased, by subtracting and adding angular modes, one may become non-angular mode which break the consistency of neighbor intra mode or one may exceed the maximum available intra mode index. For instance, intra angular mode minus 1 would results intra mode I which is DC index. Plus one to intra angular mode 66 would results 67 which exceeds 1he maximum available intra mode 66. Hence, adding and subtracting bounded using modular arithmetic ( denoted as o / o) as below. - Intra mode -1 is (Intra mode +61)%64+2 - Intra mode + 1 is (Intra mode -1 )%64+2 • Intra mode -2 is (Intra mode +60)o / 'o64+2 - Intra mode + 2 is (Intra mode)%64+2
[175] Meanwhile, an exemplary embodiment is not limited to performing the integrated luma intra coding only when the integrated MPM flag is signaled and the value of the signaled MPM flag is 1. For example, even without signaling the integrated MPM flag, the decoding apparatus according to an exemplary embodiment may perform the 5 integrated luma intra coding.
[176] In an exemplary embodiment, integrated intra prediction signaling and intra mode signaling may be combined with the configuration of the MPM list, and the non-MPM list may be configured. The present exemplary embodiment may be based on the coding unit syntax of Table 7 below. 10
[177] Table 7 49 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 coding_unit( xO, yO, ch Width, cbHeight, treeType) { Descriptor ... if(treeType= = SINGLE_TREE 11 treeType = = DUAL_TREE_LUMA) { jf(( yO % CtbSizeY) > 0) intra_luma_ref_idx[ xO ][ yO] ae(v) jf (intra_luma_ref_idx[ xO U yO l = = 0 && ( cbWidth <=MaxTbSizeY 11 cbHeight <= MaxTbSizeY) && ( cbWidth * cbHejght > MinTbSizeY * MinTbSizeY )) intra_subpartitions_mode_ffag[ xO ][ yO] ae(v) if( intra_subpartitions_mode_flag[ xO ][ yO] = = 1 && cbWidth <=MaxTbSizeY && cbHejght <= MaxTbSizeY) intra_subpartitions_split_flag[ xO ][ yO] ae(v) if( intra_lumaJef_idx[ xO ][ yO] = = 0 && intra_subpartitions_mode_tlag[ xO ][ yO] = = 0) intra_luma_mpm_flag[ xO ][ yO] ae(v) if( intra_luma_mpm_flag[xO ][ yO]) intra_planar flag[ xO ][ yO ] ae(v) if (intra_pla:nar_flag=O) intra_luma_mpm_idx[ xO ][ yO] ae(v) else intra_luma_mpm_remainder[ xO ][ yO] ae(v) } ... 50 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 }
[178] The coding unit syntax of Table 7 may be based on. for example. the semantics of Table 8 below_ [179) Table 8 intra_lama_mpm_Rag[ xO ][ yO ], intra_planar_Rag[ xO ][ yO ], intra_lama_mpm_idx[ xO ][ yO ] and intra_lama_mpm_remainder[ xO ][ yO ] specify the intra prediction mode for luma samples. The array indices xO, yO specify the location ( xO , yO) of the top-left luma sample of the considered coding block relative to the top-left luma sample of the picture. When intra_luma_mpm_flag[ xO ][ yO] is equal to 1, the intra_planar_flag is parsed. When intra_p1anar_flag is equal to 1, it specifies that the the variable IntraPredModeY[ xCb ][ yCb] is equal to lNTRA_PLANAR. When intra_planar_flag is equal to 0, the intra prediction mode is inferred from a neighbouring intra-predicted coding unit according to clause 8.4.2. Whenintra_luma_mpm_flagf xO ][ yO] is not present, it is inferred to be equal to 1.
[180] In an example, the decoding process for the coding unit which is coded in the intra 5 prediction mode may be based on the algorithm (or specification) of Table 9 below.
[181] Table 9 8-4.1 General decoding process for coding units coded in intra prediction mode - If pcm_flag[ xCb ] [ yCb ] is equal to 0, the following applies: 1. If intra_planar_flag[xO][ yO] equal to 1, IntraPredModeY[xCb ][yCb] is equal to INfRA_PLANAR. 2. Overwise, the derivation process for the lnma intra prediction mode as specified in clause 8.4.2 is invoked with the luma location ( xCb, yCb ), the width of the cUtTent coding block in luma samples ch Width and the height of the current coding block in lnma samples cbHeight as input. The output is IntraPredMode Y[ xCb ][ yCb ] specifying the luma intra prediciton mode. 51 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 With the derivation oflntraPredModeY[ xCb ][ yCb J in the previous steps, the general decoding process for intra blocks as specified in clause 8.4.4.1 is invoked with the luma location { xCb, yCb ), th.e tree type tree Type, the variable nTbW set equal to cb Width, the variable nTbH set equal to cbHeight, the variable pred.Modelntm set equal to IntraPred.ModeY[ xCb ][ yCb ], and the variable cl dx set equal to O as inputs, and the output is a modified reconstructed picture before inloop filtering. <syntax elements and associated binarizations> Syntax Syntax element structure Process coding_ unit( ) intra_planar_flag[ ][] FL cMax= 1 <Assignment of ctxlnc to syntax elements with context coded bins> Case I Binarization Input parameters binldx Syntax element 0 1 2 3 4 intm_planar_flag[ ][ ] 0 na na na na Case II >= na The assignment of ctxlnc is specified as follows with condL and condA specified in for the syntax element intra_planar_flag[ xO ][ yO] ctxlnc = (condL && availableL) II (conA && availableA) or ctxlnc = {condL && availableL) && (conA &&availableA) condL = PLANAR '! 1 : 0 condA = PLANAR '! 1 : 0 5 availableL specifying the availability of the block located directly to the left of the cu 52 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 rrent block. availableA specifying the availability of the block located directly to the left of the cu rrent block. binldx Syntax element 0 1 2 3 4 >= intra_planar_flag( ][ ] 0, 1 na na na na na Case III The assignment of ctxlnc is specified as follows with condL and condA specified in for the syntax element in1ra_planar_flag[ xO ][ yO] ctxlnc = (condL && avaiJableL) + (conA && availableA) condL = PLANAR ? 1 : 0 condA = PLANAR '! I : 0 5 availableL specifying the availability of the block located directly to the left of the cu rrent block. availableA specifying the availability of the block located directly to the left of the cu n:ent block. binldx Syntax element 0 1 2 3 4 >= 5 intra_planar_flag[ ][ ] 0, 1,2 na na na na na 53 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 The above embodiment (case I, case II, and case III) is just only one practical example, the number of context models may be atbitrarily determined.
[182] In an example, the process for deriving the luma intra prediction mode may be based on the algorithm (or specification) of Table 10 below. [183) Table 10 8.4.2 Derivation process for luma intra prediction mode Derivation process for l■ma intra prediction mode Input to this process are: - a luma location ( xCb , yCb ) specifying the 1op-left sample of the current luma coding block relative 1o the top-left luma sample of the current picture, - a variable cbWidth specifying the widthof1he current coding block in luma samples, - a variable cbHeight specifying the height of the current coding block in luma samples. In this process, the luma intra prediction mode IntraPredMode Y[ xCb ][ yCb] is derived. Table 8-1 specifies the value for the intra prediction mode IntraPredMode Y[ xCb ] [ yCb ] and the associated names. 54 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 Table 8-1-Specif°K:ation of intra prediction mode and associated names Intra prediction mode Associated name 0 INTRA_PLANAR 1 INTRA DC 2 .. 66 INTRA_ANGULAR2 . .INTRA_ANGULAR66 8L83 INTRA_LT _ CCLM, INTRA _L CCLM, INTRA_ T CCLM NOTE- : The intra prediction modes INTRA_L T CCLM, INTRA_L_ CCLM and INTRA_ T CCLM are only applicable to chroma components. IntraPredModeY[ xCb ][ yCb] is derived by the following ordered steps: 1. The neighbouring locations ( xNbA, y NbA ) and ( xNbB, yNbB ) are set equal to ( xCb -1, yCb + cbHeight - 1 ) and ( xCb + cbWidth- I, yCb - 1 ), respectively. 2. For X beingreplaced by either A or B, 1hevariables candlntraPredModeX are derived as follows: - The availability derivation process for a block as specified in clause 6.4.X [Ed. (BB): Neighbouring blocks availability checking process tbd] is invoked with 1he location ( xCurr, yCurr) set equal to ( xCb, yCb) and the neighbouring location (xNbY, yNbY) set equal to ( xNbX, yNbX ) as inputs, and the output is assigned to availablfor example, - The candidate intra prediction mode candlntraPrcdModcX is derived as follows: -If one or more of the following conditions are 1rue, candlntraPredModeX is set equal to JNTRA_PLANAR. The variable availableX is equal to FALSE. - CuPredMode[ xNbX ][ yNbX] is not equal to MODE_INTRA 55 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 - pcm_flag[ xNbX ][ yNbX] is equal to 1. - X is equal to B and yCb - 1 is smaller than (( yCb » CtbLog2Size Y) « CtbLog2Size Y ). -Otherwise, candln1raPredModeX is set equal to IntraPredModeY[ xNbX ][ yNbX]. 3. The candModeList[ x] with x = 0 .. 4 is derived as follows: -If candlntraPredModeB is equal to candlntraPredModeA and candlntraPredModeA is greater thanINTRA_DC, candModeList[ x] withx = 0 .. 4 is derived as follows: cand.ModeListl O J = candlntraPredModeA candModeList[ 1 ] = 2 + ( ( candlntraPredModeA + 61 ) % 64 ) candModeList[ 2] = 2 + ( ( candlntraPredModeA - I ) % 64 ) cand.ModeList[ 3 ] = INTRA_DC candModeList[ 4 ] = 2 + ( ( candlntraPredModeA + 60 ) % 64 ) (8-10) (8--12) (8-13) (8-11) (8-14) -Otherwise if candlntraPredModeB is not equal to candlntraPredModeA and candlntraPredModeA or candlntraPredModeB is greater than INTRA_DC, the following applies: -The variables minAB and maxAB are derived as follows: minAB = Min( candlntraPredModeA, candlntraPredModeB ) maxAB = Max( candlntraPredModeA, candlntraPredModeB ) (8-24) (8--25) -If candlntraPredModeA and candlntraPredModeB are both greater than INTRA_ DC, candModeList[ x ] with x = 0 .. 4 is derived as follows: 56 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 candModeListr 0 1 = candlntraPredModeA (8-27) candModeList[ 1 ] = candlntraPredModeB candModeList[ 2 ] = INTRA_DC (8-29) - IfmaxAB- minAB is in the range of2 to 62, inclusive, the following applies: candModeList[ 3 ] = 2 + ( ( maxAB + 61 ) % 64 ) candModeList[ 4] = 2 + ( ( maxAB - 1 ) % 64) - Otherwise, the following applies: candModeList[ 3 ] = 2 + ( ( maxAB + 60) % 64) candModeList[ 4] = 2 + ( ( maxAB) % 64) (8-30) (8-31) (8-32) (8-33) -Otherwise (candlntraPredModeA or candlntraPredModeB is greater than INTRA....:DC), candModeList[ x] wi1h x = 0--4 is derived as follows: candModeList[ 0 ) = ma:xAB candModeList[ I]= INTRA_DC candModeList[ 2] = 2 + ( ( ma:xAB + 61 ) % 64 ) candModeList[ 3 ] = 2 + ( ( m.axAB - 1 ) % 64 ) candModeList[ 4] = 2 + ( ( ma:xAB + 60 ) % 64) -Otherwise, the following applies: candModeList[ 0] = INTRA_DC (8-71) 57 Date Re9ue / Date Received 2021-06-25 (8-65) (8-66) (8-66) (8-67) (8-68) CA 03125109 2021-06-25 candModeListr 11 = INTRA_ANGULAR50 candModeList[ 2] = INTRA_ANGULAR18 candModeList[ 3 ] = INTRA_ANGULAR46 candModeList[ 4] = INTRA _ANGULAR54 (8-81) 4. IntraPredMode Y[ xCb ][ yCb ] is derived by applying the following procedure: (8-72) (8-73) (8-74) (8-75) - Ifintra_luma_mpm_flag[xCb ][ yCb] is equal to 1, thelntraPredModeY[ xCb ][ yCb] is set equal to candModeList[ intra_luma_mpm_idx[ xCb ][ yCb]]. - Otherwise. IntraPredModeY[ xCb ][ yCb] is derived by applying the following ordered steps: 1. When candModeList[ i ] is greater than candModeList[ j ] for i = 0 . .4 and for each i, j = ( i + 1 ) .. 5, both values are swapped as follows: ( candModeList[ i ]. candModeList[ j ] ) = Swap( candModeList[ i ], candModeList[ j ] ) (8-94) 2. IntraPredModeY[ xCb ][ yCb] is derived by the following ordered steps: i. IntraPredModeY[ xCb ][ yCb] is set equal to intra luma mpm remainder[ xCb ] [ yCb ]. ii. For i equal to Oto 5, inclusive, when IntraPredM:odeY[ xCb ][ yCb] is greater than or equal to candModeList[ i ], the value oflntraPredModeY[ xCb ][ yCb] is incremented by one. 58 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 The variable IntraPredMode Y[ x ][ y ] with x = xCb .. xCb + ch Width - 1 and y = yCb .. yCb + cbHeight- 1 is set to be equal to IntraPredModeY[ xCb ][ yCb].
[184] In an example, the decoding process for the intra blocks may be based on the algorithm (or specification) of Table 11 below.
[185] Table 11 8.4.4.1 General decoding process for intra blocks - Forx:Partidx = O .. nurnPartsX -1 and yPartidx = O .. numPartsY -1, the following applies: The general intra sample prediction process as specified in clause 8.4.4.2.1 is invoked with the location ( xThCmp, yTbCmp ) set equal to ( xTbO + n W * xPartidx, yTbO + nH * y Partldx ), the intra prediction mode predModelntra, the transfonn block width nTb Wand height nTbH set equal to nW and nH, the coding block width nCb Wand height nCbH set equal to nTb Wand nTbH, and the variable cldx as inputs, and the output is an (nTbW)x(nTbH) array predSamples.
[186] In an example, the intra sample prediction may be based on the algorithm (or 5 specification) ofTable 12 below.
[187] Table 12 8.4.4.2.1 General intra sample prediction The intra sample prediction process according to predModelntra applies as follows: - If predModelntra is equal to INTRA_PLANAR, the corresponding intra prediction mode process specified in clause 8.4.4.2.5 is invoked with the transfonn block width nTbW, and the transform block height nTbH, the intra prediction reference line index refldx, and the reference sample array p as inputs, and the output is the predicted sample array predSamples. - Otherwise, if predModeintra is equal to INTRA_ DC, the corresponding intra prediction mode process specified in clause 8.4.4.2.6 is invoked with th.e transfonn block width nThW, the transfonn block 59 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 height nThH, 1he intra prediction reference line index refldx, and the reference sample array p as inputs, and the output is the predicted sample array predSamples. - Otherwise, if predModelntrn is equal to INTRA_ LT_ CCLM, INTRA_ L CCLM or INTRA_T_CCLM, the corresponding intra prediction mode process specified in clause 8.4.4.2.8 is invoked with 1he intra prediction mode predModeintra, the sample location ( xTbC, yTbC) set equal to ( xTbCmp, yTbCmp ), the transfonn blockwidthnTb Wand height nTbH, and the reference sample array pas inputs, and 1he output is the predicted sample array predSamples. - Otherwise, the corresponding intra prediction mode process specified in clause 8.4.4.2.7 is invoked with the intra prediction mode predModelntra, the intra prediction reference line index refldx, 1he transfmm block width nTb W, the transform block height nTbH, the reference sample width retW, the reference sample height refH, 1he coding block width nCb W and height nCbH, the colour component index cldx, and the reference sample array p as inputs, and the modified intra prediction mode predModelntra and the predicted sample array predSamples as outputs.
[188] In an example, the intra planar mode, the intra DC mode, and the like may be based on 1he algorithm (or specification) of Table 13 below. [189) Table 13 8.4.4.2.5 Specification ofINTRA_PLANAR intra prediction mode SpecificatiDn ofINTRA PLANAR intra prediction mode Inputs to 1his process are: - a variable nTbW specifying the transform block width, - a variable nTbH specifying the transfonn block height, 60 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 - a variable refldx specifying the intra prediction reference line index. - the neighbouring samples p[ x ][ y ], with x = -1-refldx, y = -1-refldx .. nTbH and x = -refldx .. nTbW, y = -1-refldx. Outputs of this process are the predicted samples predSamples( x ][ y ], with x = 0 .. nTbW -1, y = O .. nTbH - 1. The variabJes nW and nH are derived as follows: nW=Max(nTbW. 2) (8-116) nH=Max(nTbH,2) The values of the predictionsamplespredSamples[ x ][ y ], withx == O .. nTbW-1 and y = O.. nTbH-1, are derived as follows:predV[ x ][ y] = ( ( nH-1-y) * p[ x ][-1 -refldx] +(y+ 1 )*p[-1-refldx][nTbH]) «Log2(nW) (8-118) predH[ x ](y J = ( (nW-1-x) * p[-1-refldx][ y] +(x + 1) * p[ nTbW ][-1- refldx] ) « Log2 ( nil ) (8-119) (8-117) predSamples[ x ][ y] = ( predV[ x ][ y] + predH[ x ][ y] +nW * nH ) >> (Log2 ( nW )+ Log2 ( nH)+ 1) (8-120) 8.4.4.2.6 Specification ofINTRA_DC intra prediction mode Inputs to this process are: 61 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 - a variable nTbW specifying the transform block width, - a variable nTbH specifying the transfonn block height, - a variable refldx specifying the intra prediction reference line index, - the neighbouring samples p[x][y], with x=-1-refldx, y=-1-refidx .. nTbH-l and x = -refldx .. nTb W - I , y = -I -refldx. Outputs of this process are the predicted samples predSamples[ x ][ y ], with x = 0.,nTbW -1, y = O .. nTbH - 1. The values of the prediction samples predSamples[ x ][ y ], with x .. 0 .. nTb W - 1, y = 0 .. nTbH - 1, are derived by the following ordered steps: 1. A variable de Val is derived as follows: - When nTbW is equal to nTbH: dcVal = (r:1!:-1 p[x)[-1- refldx] + r;?!:- 1p[-1- refldx][y'] +nTbW) » (Log2(nTbW) + 1) (8-121) - When nTbW is greater than nTbH: dcVal = (r:1!:-1 p[x)[-1-refldx] + (nTbW » 1)) » Log2(nTbW) - When nTbW is smaller than nTbH: dcVal = (r;~-1 p[-1-refldx][y] + (nTbH » t)) » Log2(nTbH) 2. The prediction samples predSamples[x] [y] are derived as follows: predSamples[ x][y] =dcVal, withx =O .. nTbW- l,y=0 .. nTbH-1 (8-124) (8-122) (8-123) [190) In an example, a process for transforming scaled transfonn coefficients and the 62 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 like may be based on the algorithm (or specification) of Table 14 below.
[191] Table 14 8.7.4.1 Transform process for scaled transform coefficients Table 8-15-Specification oftrTypeHor and trTypeVer depending on predModelntra predModelntra trTypeHor trTypeVer IN1RA_pLANAR. INTRA_ANGULAR3 l, (nTbW>=4 && (nTbH>=4 && IN1RA_ANGULAR32, nTbW<=l6) ? nTbH<= 16) ? INTRA_ANGULAR34, 1 0 1 0 IN1RA _ ANGULAR36, IN1RA_ANGULAR37 IN1RA_OC, IN1RA_ANGULAR33, 0 0 INTRA_ANGULAR35 IN1RA_ANGULAR2, INTRA_ANGULAR4, ... JNTRA_ANGULAR28, (nTbW>=4 && IN1RA_ANGULAR30, nTbW<=l6) ? 0 INTRA_ANGULAR39, 1 0 INTRA_ANGULAR41, ... ,INTRA_ANGULAR63, IN1RA_ANGULAR65 63 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 IN1RA_ANGULAR3, INTRA_ANGULARS, ... , INTRA_ANGULAR27, ( nTbH>=4 && IN1RA _ ANGULAR29, 0 nTbH<= 16) ? INTRA_ANGULAR38, 1 0 INTRA_ANGULAR40, ... ,INTRA_ANGULAR64, INTRA_ANGULAR66 Table 9-5 - Assocmtion of ctxldxOffset and syntax elements for each initialization Type in the initialization process initType Syntax structure Syntax element ctxTable 0 1 2 coding_ tree_ unit( ) a1f_ctb_flag[ ][][] Table 9-6 0 9 18 ... coding_tmit( ) cu_skip_flag[ ][] 0 3 pred_mode_ibc_flag pred _mode_ flag intra_lumaJef_idxl Jl J intra_ subpartitions_mode flag intra_subpartition_split_flag intra_luma_mpm_flag[ ][] intra_planar_tlag[ ][] intra_chroma_pred_mode[ ][] merge_flag( ][ ] 64 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 inter _pred idc[ xO ][ yO ] inter_affine_flag[ ][] cu_affine_type_flag[ ][ ] ref_idx_IO[ ][] mvp_lO_flag[ ][] ref_idx_ll[ ][] mvp_ll_flag[][] avmr_flag[ ][] amvr_precision_flag[ ][] gbi_idx[ ] [ ] cu_cbf cu_ sbt_ flag cu_sbt_quad_flag cu_sbt_horizontal_flag cu sbt_pos flag Table 9.9-Syntaxelements and associated binarizations Syntax Syntax element Binarization structure Process Input parameters coding_unit( ) cu_skip_flag[ ][] FL cMax= 1 pred_mode_ibc_flag FL cMax= 1 pred_mode_flag FL cMax= 1 pcm_tlag[ ][] FL cMax= 1 intra_luma_ref_idx[ ][ J TR cMax = 2, cRiceParam = 0 intra_subpartitions_mode_tlag FL cMax= 1 intra_subpartition_split_flag FL cMax= 1 intra_luma_mpm_flag[ ][ ] FL cMax= 1 intra_planar_tlag[ ][ ] FL cMax=l 65 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 intra_ luma mpm idx[ ][ ] TR cMax = 4, cRiceParam = 0 intra_lwna_mpm_remainder[ ][ ] TB cMa:x=60 intra_chroma_pred_mode[][) 9.5.3.8 . merge_ flag[ ][ ] FL cMax= 1 inter_pred_idc[ xO ][ yO] 9.5.3.9 cbWidth, cbHeight inter_affine_tlag[ ][] FL cMax= 1 cu_affine_type_flag[][] FL cMax= 1 re(..idx_JO[ ][ ] TR cMax = NumRefldxActive[ 0] -1, cRiceParam = 0 mvp_lO_flag[][] FL cMax= 1 ref_idx_Il[ ][] TR cMax = NumRefldxActive[ 1 ] - 1, cRiceParam = 0 mvp_ll_flag[ ][] FL cMax= 1 avmr_flag[ ][] FL cMax= 1 amvr_precision_flag[ ][] FL cMa:x= 1 gbi_idx[ ][] TR cMax = NoBackwardPredFlag ? 4: 2 cu_cbf FL cMax= 1 cu_sbt_flag FL cMa:x= 1 cu_sbt_quad_flag FL cMax= 1 cu_sbt_horizontal_flag FL cMax= 1 cu_ sbt_pos flag FL cMax= 1
[192] In an example, an example of assigning ctxlnc to syntax elements including context coded bins may be based on Table 15 below.
[193] Table 15 ltialdx Synlu element 0 1 2 3 4 >= 5 intrll;J111na_ret_idxr 11 l 0 1 na na na na mtra_subp~litions_mode_flag 0 na na na na na intra _subpartition split_ flag 0 na na na na na mtra_luma_mpm_flag[ l J 0 na na na na na 66 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 binldx Syntax element 0 1 2 3 4 >- s intra _planar_ flag[ l [ l intra luma ref idx!=O? 2: na na na na na - - (intra_subpartitions_mode_flag? 0: 1) intra_luma_mpm_idx[ ][] bypass bypass bypass bypass bypass na intra_luma_mpm_remainder[ I[] bypass bypass bypass bypass bypass bypass intra_chroma_pred_mode[ ][] 0 bypass bypass na na na sps_cclm_enabled_flag w-O
[194] Referring to Table 7, it may be confirmed that the intra_planar _ flag is decoded based on the decoding result that the value of the intra_luma_mpm_flag is 1. The intra_luma_mpm_flag may represent an example of an MPM flag, and the intra planar_ flag may represent an example of a planar flag. 5 [195) Referring to (8-10), (8-12), and (8-13) of Table 10, it may be confirmed that among the MPM candidates included in the MPM list, candModeList [O] is determined as candlntraPredModeA representing the intra prediction mode for the left neighboring block of the current block, candModeList [l] is determined as 2+((candlntraPredModeA+61)%64), and candModeList [2] is determined as 10 2+((candlntraPredModeA-1)% 64). [196) Referring to Table 14, it may be confirmed that cMax representing the maximum value of the intra_luma_mpm_idx is determined as 4.
[197] An exemplary embodiment proposes a method for performing the integrated MPM prediction. and a method for coding and / or signaling information about related intra 15 prediction modes. Further, an exemplaiy embodiment proposes a method for deriving a transform kernel. According to an exemplary embodiment, the coding unit syntax expressed in Tables 16 to 24 below may be configured / encoded and signaled to the 67 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 decoding apparatus, and the decoding apparatus may derive the intra prediction mode for the current block (CU) based on the cocling unit syntax and the MPM list.
[198] For example, according to the present exemplary embocliment, the planar mode may be included in the MPM list as a candidate mode, and when the value of the MPM 5 flag is 1, the planar flag (intra_planar_flag) may be first signaled to inclicate whether the planar mode is used as the intra precliction mode of the current block. If the value of the planar flag is 0, the MPM index (intra_luma_mpm_idx) may be signaled to indicate one of the remaining MPM candidates other than the planar mode_ At this time, in an example, the MPM list inclucling the remaining candidates other than the planar mode may be 10 referred to as a modified MPM list_ [199) If the total number of MPM candidates including the planar mode is 6, the total number of candidates in the modified MPM list other than the planar mode may be equal to 5, and in this case, the values of the MPM index may be O to 4. That is, the maximum value of the MPM index may be set as 4. At this time, the maximum value of the MPM 15 index may be represented as cMax of the MPM index.. The bin of the planar flag may be regular-coded based on a context model as described later in Tables 16 to 24, and as described later in Tables 16 to 24, ctxlnc for indicating the context model i) may use only one specific value (for example, 0), ii) may be variably derived based on whether the left neighboring block is available and / or whether the top neighboring block is available and 20 the value of the planar flag (if available), or iii) may also have the value variably determined depending on whether the MRL or the ISP is applied. Further, the present exemplary embodiment may derive a transfonn kernel (vertical transform kernel / horizontal transform kernel) for the current block based on the size and / or intra prediction type / mode of the current block. For example, as described later in Tables 16 to 25 24, if the ISP is not applied to the current block or is not available, the transform kernel (vertical transform kernel / horizontal transform kernel) may be derived as a value of 1 or 68 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 0 further with reference to the size of the current block.
[200] According to the present exemplary embodiment, if the MRL intra prediction is applied ( that is, if the MRL index is larger than 0), the planar mode or the DC mode may be applied to the current block, and if the ISP intra prediction is also applied, the planar 5 mode or the DC mode may be applied to the current block. Accordingly, the MPM list may be configured based on the integrated MPM prediction without depending upon whether the MRL, the ISP, or the like is applied Tables 16 to 24 are as follows, and the details of Tables 16 to 24 will be readily understood by those skilled in the art.
[201] Table 16 below expresses an example of the coding unit syntax. 10
[202] Table 16 coding_unit( xO, yO, cbWidth, cbHeight, treeType) { Descriptor ... if( treeType = = SINGLE_TREE 11 treeType = = DUAL_TREE_LUMA) { if( ( yO % CtbSizeY) > 0) intra_luma_ref_idx[ xO ][ yO] ae(v) if (intra_luma_ref_idx[ xO ][ yO] = = 0 && ( cbWidth <= MaxTbSi:leY 11 cbHeight <= MaxTbSi:leY) && ( cbWidth * cbHeight > MinTbSizeY * MinTbSizeY )) intra_subpartitions_mode_flag[ xO ][yo] ae(v) if( intra_subpartitions_mode_tlag[ xO ][ yO] = = 1 && ch Width <= MaxTbSize Y && cbHeight <= MaxTbSize Y ) intra_subpartitions_split_Dag[ xO ][ yO] ae(v) if( intra_luma_ref_idx[ xO ][ yO] == 0 && in1ra_subpartitions_mode flag[ xO ][ yO ] = = 0 ) 69 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 intra_luma_mpm_flag[ xO ][ yO] ae(v) if( intra_luma_mpm_flag[ xO ] [ yO] ) intra_planar_flag[xO][yO] ae(v) if (intra_planar_flag=O) intra_luma_mpm_idx[ xO ][ yO] ae(v) Else intra_luma_mpm_remainder[ xO ][ yO] ae(v) } ·-- }
[203] The coding unit syntax of Table 16 may be based on, for example, the semantics of Table 17 below.
[204] Table 17 intra_luaa_mpm_flag[ xO ][ yO ], intra_planar_flag[ xO ][ yO ], intra_luma_mpm_idx[ xO ] [ yO] and intra_luma_mpm_remainder[ xO ][ yO ] specify the intra prediction mode for luma samples. The array indices xO, yO specify the location ( xO , yO ) of the topleft luma sample of the considered coding block relative to the top-left luma sample of the picture. When in1ra luma _ mpm _ flag[ xO ][ yO] is equal to 1, th.e in1ra _planar_ flag is parsed_ When intra_planar_flag is equal to 1, it specifies that the the variable IntraPredModeY[ xCb ][ yCb] is equal to INTRA_PLANAR. When inlra_planar_flag is equal to 0, the intra prediction mode is inferred from a neighbouring intra-predicted coding unit according to clause 8.4.2. When in1ra_luma_mpm_flag[ xO ][ yO] is not present, it is inferred to be equal to 1.
[205] 1n an example, a decoding process for the coding units which are coded in the 5 intra prediction mode may be based on the algorithm (or specification) of Table 18 below. 70 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25
[206] Table 18 8.4.1 General decoding process for coding units coded in intra prediction mode - If pcm_ flag[ xCb ] [ yCb ] is equal to 0, the following applies: 1. If intra_planar_ftag[ x0 ][ y0] equal to 1, IntraPredModeY[ xCb ][ yCb] is equal to INTRA PLANAR 2. Overwise, the derivation process for the luma intra prediction mode as specified in clause 8.4.2 is invoked with 1he luma location ( xCb, yCb ), the width of 1he current coding block in luma samples cb Width and the height of the current coding block in luma samples cbHeight as input. The output is IntraPredModeY[ xCb ][ yCb] specifying the luma intra prediciton mode. With the derivation oflntraPredModeY[ xCb ][ yCb] in the previous steps, the general decoding process for intra blocks as specified in clause 8.4.4.1 is invoked with the luma location ( xCb,yCb ). the tree type treeType. the variable nTbW set equal to cbWidth, the variablenTbH set equal 1o cbHeight, the variable predModelntra set equal to lntraPredModeY[ xCb ][ yCb ], and the variable cl dx set equal to O as inputs, and the output is a modified reconstructed picture before inloop filtering. <syn1ax elements and associated binariz.ations> Syntax structure coding_ unit( ) Syntax element intra_planar_fiag[ ][] Binarlzation Process Input parameters FL cMax= 1 <Assignment of ctxlnc to syntax elements with context coded bins> Case I binldx Syntax element 0 1 2 3 4 intra_planar_flag( ][ ] 0 na na na na 71 Date Re9ue / Date Received 2021-06-25 >= s na CA 03125109 2021-06-25 Case II The assignment of ctxlnc is specified as follows with condL and condA specified in for the syntax element in1ra_planar_flag[ xO ][ yO] ctxlnc = (condL && availableL) II (conA && availableA) or ctxlnc = (condL && availableL) && (conA &&availableA) condL = PLANAR '! I : 0 condA = PLANAR ? 1 : 0 - availableL specifying 1he availabilify of the block located direct1y to the left of the cu :rrent block. availableA specifying the availabilify of the block located directly to the left of the cu :rrent block. binldx Syntax element 0 1 2 3 4 >= intra planar_ flag[][ ] 0,1 na na na na na CaseIII The assignment of ctxlnc is specified as follows with condL and condA specified in for the syntax element imra_planar_flag[ xO ][ yO] ctxlnc == (condL && availableL) + (conA && availableA) condL =PLANAR'! I : 0 condA = PLANAR ? 1 : 0 72 Date Re9ue / Date Received 2021-06-25 s CA 03125109 2021-06-25 availableL specifying 1he availability of 1he block located directly to 1he left of the cu rrent block. availableA specifying 1he availability of 1he block located directly to 1he left of the cu :rrent block. binldx Syntax element 0 l 2 3 4 >= 5 intrn_planar_flag[ ][] 0, 1,2 na na na na na The above embodiment (case I, case II, and case III) is just only one practical example, the number of context models may be atbitrarily determined. [207) In an example, a derivation process for the tu.ma intra prediction modemay be based on the algorithm (or specification) of Table 19 below. [208) Table 19 8.4.2 Derivation process for luma intra prediction mode Derivation process for l■ma intra prediction mode Input to this process are: - a luma location ( xCb • yCb ) specifying the top-left sample of the current luma coding block relative to the top-leftluma sample of the current picture, - a variable ch Width specifying the width of 1he current coding block in luma samples, - a variable cbHeight specifying the height of the current coding block in luma samples. In 1his process, the luma intra prediction mode IntraPredModeY[ xCb ][ yCb] is derived. 73 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 Table 8-1 specifies the value for the intra prediction mode IntraPredMode Y[ xCb ] [ yCb ] and the associated names. Table 8-1-Specif"tcation of intra prediction mode and associated names Intra prediction mode Associated name 0 INTRA_pLANAR 1 INTRA_DC 2 .. 66 INTRA_ANGULAR2 . .INTRA_ANGULAR66 81 .. 83 INTRA_LT_CCLM, INTRA_L_CCLM, INTRA_T_CCLM NOTE-: The intra prediction modes INTRA_ LT_ CCLM, INTRA_ L CCLM and INTRA_T_CCLM are only applicable to chroma components. IntraPredMode Y[ xCb ][ yCb ] is derived by the following ordered sreps: 1. The neighbouring locations ( xNbA, yNbA) and ( xNbB, yNbB ) are set equal to ( xCb - 1, yCb + cbHeight - 1 ) and ( xCb + ch Width - 1, yCb- 1 ), respectively. 2. For X being replaced by either A or B, the variables candlntraPredModeX are derived as follows: The availability derivation process for a block as specified in clause 6.4.X (Ed. (BB): Neighbouring blocks availability checking process tbd] is invoked with the location ( xCurr, yCurr) set equal to ( xCb, yCb ) and the neighbouring location ( xNb Y, yNb Y) set equal to ( xNbX, yNbX ) as inputs, and the output is assigned to availablfor example, The candidate intra prediction mode candlntraPredModeX is derived as follows: 74 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 -If one or more of the following conditions are true, candlntraPredModeX is set equal to INTRA_PLANAR - The variable availableX is equal to FALSE. - CuPredMode[ xNbX ][ yNbX] is not equal to MODE_INTRA - pcm_flag[ xNbX ][ yNbX] is equal to 1. - X is equal to B and yCb - 1 is smaller than ( ( yCb >> CtbLog2Size Y) « CtbLog2Size Y ). -Otherwise, candlntraPredModeX is set equal to IntraPredModeY[ xNbX ][ yNbX], 3. The candModeList[ x] with x = 0..4 is derived as follows: -If candln1raPredModeB is equal to candlntraPredModeA and candlntraPredModeA is greater than INTRA_DC, candModeList[ x ] with x = 0 . .4 is derived as follows: candModeList[ 0 ] = candln1raPredModeA (8-10) candModeList[ 1 ] = 2 + ( ( candlntraPredModeA + 61 ) % 64 ) (8-12) candModeList[ 2] = 2 + ( ( candlntraPredModeA - I ) % 64 ) (8-13) candModeList[ 3] =INTRA_DC candModeList[ 4 ] = 2 + ( ( candlntraPredModeA + 60 ) % 64 ) (8-14) -Otherwise if candlntraPredModeB is not equal to candlntraPredModeA and candlntraPredModeA or candlntraPredModeB is greater than INTRA_DC, the following applies: -The variables minAB and max.AB are derived as follows: 75 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 minAB = Min( candlntraPredModeA, candlntraPredModeB ) (8-24) maxAB = Max( candlntraPredModeA, candlntraPredModeB ) (8-25) -If candlntraPredModeA and candlntraPredModeB are both greater than INTRA_DC, candModeList[ x] wi1h x = 0--4 is derived as follows: candModeList[ 0 ] = candlntraPredModeA (8-27) candModeList[ 1 ] = candlntraPredModeB candModeList[ 2 ] = INTRA_DC (8-29) - IfmaxAB - minAB is in the range of2 to 62, inclusive, the following applies: candModeList[ 3 ] = 2 + ( ( maxAB + 61 ) % 64) (8-30) candModeList[ 4 ] = 2 + ( ( maxAB - 1 ) % 64 ) (8-31) - Otherwise, the foJlowing applies: candModeList[ 3 ] = 2 + ( ( maxAB + 60) % 64) (8-32) candModeList[ 4] = 2 + ( ( maxAB ) % 64) (8-33) -O1herwise (candlntraPredModeA or candlntraPredModeB is greater than INTRA_DC), candModeList[ x ] with x = 0 .. 4 is derived as follows: candModeList[ 0] = maxAB (8-65) candModeList[ 1] = INTRA_DC (8-66) candModeList[ 2] = 2 + ( ( maxAB + 61 ) % 64) (8-66) 76 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 candModeList[ 3 ] = 2 + ( ( maxAB - I ) % 64) candModeList[ 4] = 2 + ( ( maxAB + 60 ) % 64 ) --Otherwise, the following applies: candModeList[ 0] = INTRA_ DC (8-71) candModeList[ 1 ] =INTRA_ ANGULAR50 candModeList[ 2] = INTRA_ANGULAR18 candModeList[ 3 ] = INTRA_ANGULAR46 candModeList[ 4] =INTRA_ ANGULAR54 (8-81) 4. ln1raPredMode Y[ xCb ][ yCb ] is derived by applying the following procedure: (8-67) (8-68) (8-72) (8-73) (8-74) (8-75) - Ifintra_luma_mpm_flag[xCb ][ yCb] is equal to 1, thelntraPredModeY[ xCb ][ yCb] is set equal to candModeList[ intra_luma_mpm_idx[ xCb ][ yCb ] ]. - Otherwise. IntraPredModeY[ xCb ][ yCb] is derived by applying the following ordered steps: 1. When candModeList[ i ] is greater than candModeList[ j ] for i = 0..4 and for each i, j = ( i + 1 ) .. 5, both values are swapped as follows: 77 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 ( candModeListr i l. cand.ModeListr j l ) = Swap( cand.ModeListr i l, candModeList[ j ] ) (8-94) 2. IntraPredModeY[ xCb ][ yCb] is derived by 1he following ordered steps: i. IntraPredModeY[ xCb ][ yCb] is set equal to intra_luma _mpm remainder[ xCb ] [ yCb ]. ii. For i equal to Oto 5, inclusive, when IntraPredModeY[ xCb ][ yCb] is greater than or equal to cand.ModeList[ i ], 1he value oflntraPredModeY[ xCb ][ yCb] is incremented by one. The variable IntraPredMode Y[ x ][ y ] with x = xCb .. xCb + ch Width - 1 and y =yCb .. yCb + cbHeight-1 is set to be equal to IntraPredModeY[ xCb ][ yCb ].
[209] In an example, a process for decoding the intra blocks may be based on the algorithm (or specification) of Table 20 below.
[210] Table 20 8.4.4.1 General decoding process for intra blocks - For xPartldx = O.. numPartsX - I and yPartldx = O.. numPartsY - 1, 1he following applies: The general intra sample prediction process as specified in clause 8.4.4.2.1 is invoked with the location ( xThCmp, yTbCmp ) set equal to ( xTbO + n W * xParlldx, yTbO + riH * y Parlldx ), 1he intra prediction mode predModelntra, the transform block width nTb Wand height nTbH set equal to nW and nH, the coding block width nCb Wand height nCbH set equal to nTb Wand nThH, and the variable cldx as inputs, and the output is an {nTbW)x(nTbH) array predSamples. [211) In an example, the intra sample prediction may be based on the algorithm (or 5 specification) of Table 21 below. r2121 Table 21 Date Re9ue / Date Received 2021-06-25 78 CA 03125109 2021-06-25 8.4.4.2.1 General intra sample prediction The intra sample prediction process according to predModelntra applies as follows: - If predModelntra is equal to INTRA_PLANAR, the corresponding intra prediction mode process specified in clause 8.4.4.2.5 is invoked with the transform block width nTbW, and the transform block height nTbH, the intra prediction reference line index refldx, and the reference sample array p as inputs, and the output is the predicted sample array predSamples. - Otherwise, if predModefutra is equal to INTRA_ DC, the corresponding intra prediction mode process specified in clause 8.4.4.2.6 is invoked with the transfonn block width nTbW, the transfonn block height nTbH, the intra prediction reference line index refldx, and the reference sample array p as inputs, and the output is the predicted sample array predSamples. - Otherwise, if predModelntra is equal to INTRA_ LT_ CCLM, INTRA L CCLM or INTRA_T_CCLM, the corresponding intra prediction mode process specified in clause 8.4.4.2.8 is invoked with the intra prediction mode predModelntra, the sample location ( xTbC, yTbC) set equal to ( xTbCmp, yTbCmp ), the transform blockwidthnTb Wand heightnTbH, and the reference sample array pas inputs, and the output is the predicted sample array predSamples. - Otherwise, the corresponding intra prediction mode process specified in clause 8.4.4.2.7 is invoked with the intra prediction mode predModelntra, the intra prediction reference line index retldx, the transfonn block width nTb W, the transform block height nTbH, the reference sample width refW, the reference sample height retH, the coding block width nCb W and height nCbH, the colour component index cldx, and the reference sample array p as inputs, and the modified intra prediction mode predModelntra and the predicted sample array predSamples as outputs.
[213] In an example, the intra planar mode, the intra DC mode, and the like may be based on the algorithm (or specification) of Table 22 below.
[214] Table 22 79 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 8.4.4.2.5 Specification of INTRA _FLANAR intra prediction mode Specification ofINTRA PLANAR intra prediction Dlode Inputs to this process are: - a variable nTbW specifying 1lie transform block width, - a variable nTbH specifying 1lie transfom1 block height, - a variable refldx specifying 1he intra prediction reference line index, - the neighbouring samples p[ x ][ y ], with x = -1-refldx, y = -1-refldx .. nThH and x = -refldx .. nTh W, y = -1-refldx. Outputs of this process are the predicted samples predSamples[ x ][ y ], with x = 0 .. nThW -1, y = O .. nThH - 1. The variables nW and nH are derived as follows: nW = Max( nThW, 2) (8-116) nH = Max( nThH, 2) The values of the predictionsamplespredSamples[ x ][ y ], withx = 0 .. nThW-1 and y = O .. nTbH-1, are derived as follows:predV[ x ][ y] = ( ( nH-1 -y) * p[ x ][ -1 -retldx] + ( y + 1 ) * p[ -1-refldx][ nTbH]) «Log2 (nW) (8-118) 80 Date Re9ue / Date Received 2021-06-25 (8-117) CA 03125109 2021-06-25 predH[x ][y] = ( (nW -1 -x) * p[-1-refldx][y] +(x + 1) * p[ nTbW][-1- refldx) ) « Log2 ( nH ) (8-119) predSamples[ x ][ y] = ( predV[ x ][ y] + predH[ x ][ y] + nW * nH ) » (Log2 ( nW) + Log2 ( nH)+ 1) (8-120) 8.4.4.2.6 Specification ofINTRA_DC intra prediction mode Inputs to this process are: - a variable nTbW specifying the transform block width, - a variable nTbH specifying the transform block height, - a variable retldx specifying the intra prediction reference line index, - the neighbouring samples p [ x ][ y ], with x = -1-refl dx, y = -1-refldx...n TbH - 1 and x =-refldx .. nTbW-1, y =-1-refldx. Outputs of this process are the predicted samples predSamples[ x ][ y ], withx = O .. nTbW -1, y = O .. nTbH - 1. The values of the prediction samples predSamples[ x ](y ], withx = 0 . .nTbW-1, y = 0 .. nTbH - 1, are derived by the following ordered steps: 1. A variable de Val is derived as follows: - When nTbW is equal to nTbH: 81 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 dcVal = o::J!:'- 1 p[x1[-1-refldx] + I:;f!~-1 p[-1-refldx][y'] +nTbW) » (Log2(nTbW) + 1) (8--121) - When nTbW is greater than nTbH: dcVal = (t:J!!- 1 p[x'][-1-refldx] +(nTbW » 1)) » Log2(nTbW) - When nTbW is smaller than nTbH: dcVal = (t;'f!!-1 p(-1- refldx][y'] + (nTbH » 1)) » Log2(nTbH) 2. The prediction samples predSamples[x] [y] are derived as follows: predSamples[ x ][ y] = dcVal, with x = 0 .. nTbW- 1, y = 0,, nTbH -1 (8-124) (8-122) (8-123)
[215] In an example, a process for transforming scaled transform coefficients and the like may be based on the algorithm (or specification) of Table 23 below.
[216] Table 23 8.7.4.1 Transform process for scaled transform coefficients Inputs to this process are: - a luma location ( xTb Y, yTb Y) specifying the top-left sample of the current luma transfonn block relative to the top-left luma sample of the current picture, - a variable nTbW specifying the wid1h of the current transfonn block, - a variable 11TbH specifying the height of the cunent transfonn block, - a variable cldx specifying the colour component of the cm:rent block, 82 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 - an (nTb W)x(nTbH) array d[ x ][ y ) of scaled transfo:nn coefficients with x = O .. nTb W - I, y = o .. nTbH - l, Ou1put offlris process is the (nTbW)x(nTbH) array r[ x)[ y] of residual samples wit.bx= O .. nTbW-1, y = 0 .. nTbH - 1. The variable implicitMtsEnabled is derived as follows: - If sps_mts_enabled_flag is eqnal to 1 and one of the following conditions is true, implicitMtsEnabled is set equal to 1: - IntraSubPartitionsSplitType is not equal to ISP _NO _SPLIT cu_sbt_flagis eqml to 1 and Max( nTbW, nTbH) is smaller1han or equal to 32 - sps_explicit_mts_intra_enabled_flag and sps_explicit_mts_inter_enabled_flag are both equal to Oand CuPredMode[ xTbY ][yTbY] isequal toMODE_INTRA - Otherwise, implicitMtsEnabled is set equal to 0. The variable trTypeHor specifying the horizontal transfo:nn kernel and the variable trTypeVer specifying the vertical transfo:nn kernel are derived as follows: - If cldx is greater than 0, trTypeHor and trType Ver are set equal to 0. - Otherwise, if implicitMtsEnabled is equal to 1, the following applies: If ln1raSubPartitionsSplitType is not equal to ISP NO SPLIT or (sps_explicit_mts_intra_enabled_flag and sps_explicit_mts_inter_enabled_flag are equal to 0), trTypeHor and trTypeVer are derived as follows - trTypeHor=(nTbW>=4 && nTbW¢::16 )?1:0 (8-1028) - trTypeVer=(nTbH>=4 && nTbH<=l6 )?I :0 (8-1029) 83 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 Otherwise, if cu _sbt_flag is equal to 1, trTypeHor and trTypeVer are specified in Table 8-14 depending on cu_sbt_horizontal_flag and cu_sbt__pos_flag. Table 9-5 -Association of ctxldx.Offset and syntax elements for each initialization Type in the initialization. prncess initType Syntax structure Syntax element ctxTable 0 1 2 coding_ tree_ uni1( ) aJf_ctb_flag[ ][][] Table 9-6 0 9 18 ... coding_mrit() cu_skip_flag[ )[] 0 3 pred_mode_ibc_flag pred _mode_ flag intra_lumaJef_idx[ ][] intra_subpartitions_mode_flag intra_ sub partition_ split_ flag intra_luma_mpm_flag[ ][] intra__planar_flag[ ][] intra_chroma__pred_mode[][] merge_flag[ ][] inter__pred_idc[ x0 ][ y0 ] inter_affine_flag[ ][] cu_affme_type_flag[ ][ ] ref_idx_lO[ ][] mvp_l0_flag[][] ref_idx_ll[ ][] 84 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 mvp_ll_flag[][] avmr_flag[ ][] amvr_precision_flag[ ][ ] gbi_idx[ ][] cu_cbf cu_sbt_flag cu_sbt_quad_flag cu_sbt_horizontal_flag cu_sbt_pos_tlag Table 9.9 - Syntax elements and associated binarizations Syntax Syntax element Binarization structure Process Input parameters coding_unit( ) cu_skip_f1ag[ ][] FL cMax= 1 pred _ mode ibc _ flag FL cMax= 1 pred_mode_tlag FL cMax= 1 pcm_flag[ ][] FL cMax= 1 intra_ luma ref_idx[ ][] TR cMax = 2, cRiceParam = 0 intra_subpartitions_mode_tlag FL cMax= 1 intra_subpartition_split_flag FL cMax= 1 intra_luma_mpm_flag[ ][] FL cMax= 1 intra_planar_tlag[ ][] FL cMax=l intra_luma_mpm_idx[ ][ ] TR cMax = 4, cRiceParam = 0 intra_luma_mpm_remainder[ ][] TB cMax=60 intra_chroma_pred_mode[ ][] 9.5.3.8 - merge_flag[ ][] FL cMax= 1 inter_pred_idc[ xO ][ yO] 9.5.3.9 cb Wid1h, cbHeight inter_affine_tlag[ ][] FL cMax= 1 85 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 cu_ affine_ type_ flag[ 1l l FL cMax= 1 ref_idxJ0[ ][] TR cMax = NumRetldxActive[ 0 ] - 1, cRiceParam = 0 mvp_lO_flag[ ][] FL cMax= 1 ref_idx_ll[ ][] TR cMax = NumRetldxActive[ I ] - 1, cRiceParam = 0 mvp_ll_flag[][] FL cMax= 1 avmr_flag[ ][] FL cMax= 1 amvr_precision_flag[ ][] FL cMax= 1 gbi_idx[ ][] TR cMax = NoBackwardPredFJag ? 4: 2 cu_cbf FL cMax= 1 cu_sbt_flag FL cMax= 1 cu sbt_quad _ flag FL cMax= 1 cu_sbt_horizontal_Oag FL cMax= 1 cu_sbt_pos_Oag FL cMax= l
[217] In an example, an example of assigning ctxinc to syntax elements including context coded bins may be based on Table 24 below.
[218] Table 24 binldx Sy11tuelement 0 1 l 3 4 >= 5 intra_luma_re(_idx[ ][ I 0 1 na 11a na na intra_tmbpartitioos_mode_flag 0 na na 11a na na intra subpartitioo _split_ flag 0 na na na na na intra_luma_mpm_fl.ag[ I[) 0 na na na na na intra_JJlanar_flag[ ][] intra _luma_ ref_idx!=-0? 2: ua na na na na (intra_subpartitions_mode_fl.ag? 0: 1) intra_luma_mpm_idx[ ][) bypass bypass bypass bypass bypass na 86 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 binldx Syntax element 0 I % 3 4 >= 5 intra_ luma _ mpm _remainder[ ][ ] bypass bypass bypass bypass bypass bypass intra_cliroma_pred_mode[ ][] 0 bypass bypass na na na sps_ccliu_enabled_flag = = 0 [219) An exemplary embodiment proposes a method for performing the integrated MPM prediction and a method for coding and / or signaling the information about related intra prediction modes. Further, an exemplary embodiment proposes a method for deriving a transfonn kernel. According to an exemplary embodiment, the coding unit syntax 5 expressed in Tables 16 to 24 may be configured / encoded and signaled to the decoding apparatus, and the decoding apparatus may derive the intra prediction mode for the cWTent block (CU) based on the coding unit syntax and the MPM list.
[220] For example, according to the present exemplary embodiment, the MPM list may include the planar mode as a candidate mode, and if the value of the MPM flag is 1, the 10 planar flag (intra _planar_ flag) may be first signaled to indicate whether the planar mode is used as the intra prediction mode of the cWTent block. If the value of the planar flag is 0, th.e MPM index (intra_luma_mpm_idx) may be signaled to indicate one of the remaining MPM candidates other than the planar mode. At this time, in one example, the MPM list including the remaining candidates other than the planar mode may be referred 15 to as a modified MPM list. [221) If a total number of MPM candidates including the planar mode is 6, the total number of candidates in the modified MPM list other th.an th.e planar mode may be equal to 5, and in this case, the values of the MPM index may be Oto 4. That is, the maximum value of th.e MPM index may be set as 4. At th.is time, the maximum value of the MPM 20 index may be represented as cMAX of the MPM index. The bin of the planar flag may be regular-coded based on a context model as described later in Tables 25 to 33, and as 87 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 described later in Tables 25 to 33, ctxlnc for indicating the context model i) may use only one specific value (for example, 0), ii) may be variably derived based on whether the left neighboring block and / or the top neighboring block are available and the value of the planar flag (if available), or iii) may also have the value variably determined depending 5 on whether the MRL or the ISP is applied. Further, according to the present exemplary embodiment, a transfonn kernel (vertical transform kerne1 / horizontal transform kernel) for the current block may be derived based on the size and / or intra prediction type / mode of the current block. For example, as described later in Tables 25 to 33 below, if the ISP is not applied to the current block or is not available, the transform kernel (vertical 10 transform kernel / horizontal transform kernel) may be derived as a value of 1 or O further with reference to the size of the current block. [222) According to the present exemplary embodiment, the MPM list may be configured based on the integrated MPM prediction without depending upon whether the MRL, the ISP, or the like is applied. Tables 25 to 33 are as follows, and the details of 15 Tables 25 to 33 will be easily understood by those skilled in die art.
[223] Table 25 below expresses an example of the coding unit syntax.
[224] Table 25 coding_unit( xO, yO, cbWidth, cbHeight, treeType) { ... if( treeType = = SINGLE_TREE 11 treeType = = DUAL_TREE_LUMA) { if( ( yO % CtbSizeY) > 0) intra_luma_ref_idx[ xO ][ yO ] if (intra_luma_ref_idx[ xO ][ yO] = = 0 && ( cb Width<= MaxTbSizeY 11 cbHeight <= MaxTbSizeY) && ( cbWidth * cbHcight > MinTbSizcY * MinTbSizcY )) 88 Date Re9ue / Date Received 2021-06-25 Descriptor ae(v) CA 03125109 2021-06-25 intra_subpartitions_mode_flag[ xO ][ yO] ae(v) if( intra_subpartitions_mode_flag[ xO ][ yO] = = 1 && cb Width <= MaxTbSize Y && cbHeight<=MaxTbSizeY) intra_subpartitlons_split_flag[ xO ][ yO] ae(v) if(intra_luma_ref_idx[xO ][ yO] ==O && intra_subpartitions_mode_flag[ xO ][ yO] = = 0) intra_luma_mpm_flag[ xO ][ yO] ae(v) if( intra_luma_mpm_flag[ xO] [ yO ]) { if(intra_luma_ref_idx[xO ][ yO] = = 0) intra__planar_flag[ xO ][ yO] ae(v) if (intra J1anar _ flag=O) intra_Juma_1npm_idx[ xO ][ yO ] ae(v) } Else intra_luma_mpm_remainder[ xO ][ yO] ae(v) } ... }
[225] The coding unit syntax of Table 25 may be based on, for example, the semantics of Table 26 below.
[226] Table 26 intn_luma_mpm_flag[ xO ][ yO], intra_JJlanar_flag[ xO ][ yO ], intn_luma_mpm_idx[ xO ][ yO] and intra_luma_1npm_remainder[ xO ][ yO ] specify the intra prediction mode for luma samples. The 89 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 array indices xO, yO specify the location ( xO , yO) of 1he top-left luma sample of the considered coding block relative to 1he top-left luma sample of the picture. When intra_luma_mpm_flag[ xO ] [ yO ] is equal to 1, 1he intra __planar_ flag is parsed When intra __p1anar _ flag is equal to 1, it specifies that the 1he variable IntraPredModeY[ xCb ][ yCb ] is equal to INTRA_PLANAR. When intra__planar_flag is equal to 0, the intra prediction mode is inferred from a neighbouring intra-predicted coding unit according to clause 8.4.2. When intra_luma_mpm_tlag[ xO ][ yO ] is not present, it is inferred to be equal to 1.
[227] In an example, a process for decoding the coding unit which is coded in the intra prediction mode may be based on the algorithm (or specification) of Table 27 below.
[228] Table 27 8.4.1 General decoding process for coding units coded in intra prediction mode - If pcm_ flag[ xCb ] [ yCb ] is equal to 0, the following applies: 1. If intra_planar_Dag( xO ][ yO] equal to 1, IntraPredModeY[ xCb ][ yCb] is equal to INTRA PLANAR 2. Overwise, the derivation process for the luma intra prediction mode as specified in clause 8.4.2 is invoked with the luma location ( xCb, yCb ), the width of the cmTent coding block in lwna samples cb Width and the height of the current coding block in luma samples cbHeight as input. The output is IntraPredModeY[ xCb ][ yCb ] specifying the luma intra prediciton mode. With the derivation oflntraPredModeY[ xCb ][ yCb] in the previous steps, the general decoding process for intra blocks as specified in clause 8.4.4.1 is invoked with the luma location ( xCb, yCb ), the tree type treeType, 1he variable nTb W set equal to cb Width, the variable nTbH set equal to cbHeight, the variable predModelntra set equal to IntraPredModeY[ xCb ][ yCb ], and the variable cl dx set equal to O as inputs, and the output is a modified reconstmcted picture before inloop filtering. 90 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 <syntax elements and associated binarizations> Syntax Syntax element Binariiafion structure Process Input parameters coding_ unit( ) intra_planar_flag[ ][] FL cMax= 1 <Assignment of cixinc to syntax elements with context coded bins> Case I binldx Syntax element 0 l 2 3 4 >= intm_planar_flag[ ][] 0 na na na na na Case II The assignment of ctxlnc is specified as follows with condL and condA specified in for the syntax element in1ra_planar_flag[ xO ][ yO] ctxlnc = (condL && avai1ableL) II (conA && availableA) or ctxlnc = (condL && availableL) && (conA &&availableA) condL = PLANAR '! 1 : 0 condA = PLANAR ? 1 : 0 s availableL specifying the availabili1y of the block located directly to the left of the cu rrent block. availableA specifying the availabili1y of the block located directly to the left of the cu rrent block. 91 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 binldx Syntax element 0 1 2 3 4 >= s intra _planar_ flag[][] 0,1 na na na na na CaseIII The assignment of c1xlnc is specified as follows with condL and condA specified in for the syntax element in1ra_planar_flag[ xO ][ yO] c1xlnc = (condL && availableL) + (conA && availableA) - condL =PLANAR? 1 : 0 - oondA = PLANAR ? 1 : 0 - availableL specifying 1he availability of the block located directly to the left of the cu rrent block. - availableA specifying 1he availability of the block located directly to 1he left of the cu rrent block. binldx Syntax element 0 1 2 3 4 >= s intra_planar_flag[ ][] 0, 1,2 na na na na na The above embodiment (case I, case II, and case III) is just only one practical example, 1he number of cmitext models may be aibitrarily determined, [229) In an example. a process for decoding the luma intra prediction mode may be based on 1he algorithm (or specification) of Table 28 below_ [230) Table 28 92 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 8.4.2 Derivation process for luma intra prediction mode Derivation process for 111111a intra prediction mode Input to this process are: - a luma location ( xCb , yCb ) specifying the top-left sample of the current luma coding block relative to the top-left luma sample of the current picture, - a variable cbWidth specifying the width of 1he current coding block in luma samples, - a variable cbHeight specifying the height of1he current coding block in luma samples. In this process, the luma intra prediction mode IntraPredModeY[ xCb ][ yCb] is derived. Table 8-1 specifies the value for the intra prediction mode IntraPredMode Y[ xCb ] [ yCb ] and the associated names. Table 8-1-Specif"ICation of intra prediction mode and associated nlllD.es Intra prediction mode Associated name 0 INTRA_PLANAR 1 INTRA_DC 2 .. 66 INTRA_ANGULAR2 . .INTRA_ANGULAR66 81..83 INTRA_L T_CCLM, INTRA_L_ CCLM, INTRA_T_ CCLM NOTE- : The intra prediction modes INTRA_L T_CCLM, INTRA_L_ CCLM and INTRA_T _CCLM are only applicable to chroma components. IntraPredMode Y[ xCb ][ yCb ] is derived by the following ordered steps: 93 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 1. The neighbouring locations ( xNbA. yNbA) and ( xNbB, yNbB) are set equal to ( xCb - l, yCb + cbHeight - 1 ) and ( xCb + cbWidth- 1, yCb - 1 ), respectively. 2. For X being rep1aced by either A or B, the variables candlntraPred.ModeX are derived as folJows: The availability derivation process for a block as specified in clause 6.4.X [Ed. (BB): Neighbouring blocks availability checking process tbd] is invoked with the location ( xCurr, yCurr) set equal to ( xCb, yCb ) and the neighbouring location ( xNb Y, yNb Y) set equal to ( xNbX, yNbX) as inputs, and the output is assigned to availablfor example, The candidate intra prediction mode candlntraPredModeX is derived as follows: -If one or more of the folJowing conditions are true, candlntraPredModeX is set equal to INTRA PLANAR. The variable availableX is equal to FALSE. - CuPredMode[ xNbX ][ y NbX J is not equal to MODE_INTRA - pcm_flag[ xNbX ][ yNbX] is equal to 1. - X is equal to B and yCb - I is smaller than (( yCb » CtbLog2SizeY) « CtbLog2SizeY ). -Otherwise, candlntraPredModeX is set equal to IntraPredModeY[ xNbX ][ yNbX]. 3. The candModeList[ x ] with x = 0 .. 4 is derived as follows: -If candlntraPredModeB is equal to candlntraPredModeA and candlntraPredModeA is greater than INTRA_DC, candModeList[ x ] with x = 0 .. 4 is derived as follows: candModeList[ 0 ] = candlntraPredModeA (8-10) 94 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 candModeList[ 1 ] = 2 + ( ( candintraPredModeA + 61 ) % 64 ) (8-12) candModeList[ 2] = 2 + ( ( candintraPredModeA-1 ) % 64) (8-13) candModeList[ 3] =INTRA_DC (8-11) candModeList[ 4 ] = 2 + ( ( candintraPredModeA + 60 ) % 64 ) (8-14) --Otherwise if candlntraPredModeB is not equal to candlntraPredModeA and candlntraPredModeA or candlntraPredModeB is greater than INTRA_ DC, the following applies: - The variables minAB and maxAB are derived as follows: minAB = Min( candlntraPredModeA, candlntraPredModeB ) (8-24) maxAB = Max( candlntraPredModeA, candlntraPredModeB ) (8-25) -If candln1raPredModeA and candlntraPredModeB are both greater than INTRA_ DC, candModeList[ x ] with x = 0 . .4 is derived as follows: candModeList[ 0 ] = candlntraPredModeA (8-27) candModeList[ 1 ] = candlntraPredModeB candModeList[ 2] = INTRA_DC {8-29) - IfmaxAB - minAB is in the range of2 to 62, inclusive, the following applies: candModeList[ 3 ] = 2 + ( ( maxAB + 61 ) % 64) (8-30) candModeList[ 4] = 2 + ( ( maxAB - 1 ) % 64) (8-31) - Otherwise, the following applies: 95 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 candModeListf 3 1 = 2 + ( ( max.AB + 60 ) % 64 ) (8-32) candModeList[ 4] = 2 + ( (max.AB) % 64) {8-33) -Otherwise (candintraPredModeA or candlntraPredModeB is greater thanINTRA_DC), candModeList[ x] wi1h x = 0--4 is derived as follows: candModeList[ 0] = maxAB candModeList[ I ] = INTRA_OC candModeList[ 2] = 2 + ( ( maxAB + 61 ) % 64 ) candModeList[ 3 ] = 2 + ( ( maxAB - 1 ) % 64 ) candModeList[ 4] = 2 + ( ( maxAB + 60 ) % 64 ) -Otherwise, the following applies: candModeList[ 0] = INTRA_DC (8-71) candModeList[ 1 ] = INTRA_ANGULARS0 candModeList[ 2] =INTRA_ ANGULAR18 candModeList[ 3 ] = INTRA_ANGULAR46 candModeList[ 4] = INTRA_ANGULAR54 (8-81) 96 Date Re9ue / Date Received 2021-06-25 (8-65) (8-66) {8-66) (8-67) (8-68) (8-72) (8-73) (8-74) (8-75) CA 03125109 2021-06-25 4. IntraPredMode Y[ xCb ][ yCb ] is derived by applying the following procedure: - Ifintra_luma_mpm_flag[ xCb ][ yCb] is equal to 1, the IntraPredModeY[ xCb ][ yCb] is set equal 1o candModeList[ intra_luma_mpm_idx[xCb ][ yCb] ]. - Otherwise, IntraPredModeY[ xCb ][ yCb] is derived by applying the following ordered steps: 1. When candModeList[ i ] is greater than candModeList[ j ] for i = 0..4 and for each i, j =( i + I ) .. 5, both values are swapped as follows: ( candModeList[ i ], candModeList[ j ] ) = Swap( candModeList[ i ], candModeList[j]) 2. lntraPredModeY[ xCb ][ yCb J is derived by the following ordered steps: i IntraPredModeY[ xCb ][ yCb] is set equal intra_luma_mpm_remainder[ xCb ][ yCb]. (8-94) to ii. For i equal to Oto 5, inclusive, when IntraPredModeY[ xCb ][ yCb] is greater than or equal to candModeList[ i ], the value of IntraPredModeY[ xCb ][ yCb] is incremented by one. ThevariableintraPredModeY[ x][y] with x=xCb .. xCb +cbWidth-1 and y = yCb .. yCb + cbHeight - 1 is set to be equal to IntraPredMode Y[ xCb ][ yCb].
[231] In an example, a process for decoding the intra blocks may be based on the algorithm (or specification) of Table 29 below. [232) Table 29 8.4.4.1 General decoding process for intra blocks 97 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 - For xPartldx = O.. numPartsX - 1 and yPartidx =0 .. nwnPartsY - 1, the following applies: The general intra sample prediction process as specified in clause 8.4_42.1 is invoked with the location ( xTbCmp, yTbCmp ) set equal to ( xTbO + nW * xPartidx, yTbO + nH * yPartldx ), the intra prediction mode predModelntra, the transfonn block width nTbW and height nTbH set equal to nW and nH, the coding block width nCb Wand height nCbH set equal to nTb Wand nTbH, and the variable cldx as inputs, and the output is an (nTbW)x(nTbH) may predSamples.
[233] In an example, the intra sample prediction may be based on the algorithm ( or specification) of Table 30 below.
[234] Table 30 8.4.4.2.1 General intra sample prediction The intra sample prediction process according to predModeln1ra applies as follows: - If predModelntra is equal to INTRA_PLANAR, the corresponding intra prediction mode process specified in c1ause 8_4_4.2 .5 is invoked with the transform block widthn Tb W, and the transform block height nTbH, the intra prediction reference line index refldx, and the reference sample array pas inputs, and the output is the predicted sample array predSamples. - Otherwise, ifpredModelntra is equal to INTRA_DC, the corresponding intra prediction mode process specified in clause 8.4.4.2.6 is invoked with the transfonn block width nTbW, the transform block height nTbH, the intra prediction reference line index refldx, and the reference sample array p as inputs, and the output is the predicted sample array predSamples. - Otherwise, if pred.Modelntra is equal to INTRA_LT_CCLM, lNTRA_L_CCLM or INTRA_T_CCLM, the corresponding intra prediction mode process specified in clause 8.4.4.2.8 is invoked with the intra prediction mode predModeln1ra, the sample locaticm ( xTbC, yTbC) set equal 98 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 to ( xTbCmp, yThCmp ), the 1rnnsfonn blockwidthnTh Wand heightnTbH, and the reference sample array p as inputs, and the output is the predicted sample array predSamples. Otherwise, the corresponding intra prediction mode process specified in clause 8.4.42.7 is in vokcd with the intra prediction mode prcdModclntra, the intra prediction reference line indc x refldx, the 1ransfonn block wid1h nTbW, the transfonn block height nTbH, the reference sample width refW, the reference sample height refH, the coding block width nCbW and he ight nCbH, the colour component index cldx, and the reference sample array p as inputs, a nd the modified intra prediction mode predModelntra and the predicted sample array predSa mples as outputs.
[235] 1n an example, the intra planar mode, the intra DC mode, and the like may be based on the algorithm (or specification) of Table 31 below.
[236] Table 31 8.4.4.2.5 Specification oflNTRA_PLANAR intra prediction mode SpedficatiDn ofINTM PLANAR intra prediction mode Inputs to this process are: - a variable nTbW specifying the transform block width, - a variable nTbH specifying the transfonn block height, - a variable re:Odx specifying the intra prediction reference line index, - the neighbouring samples p( x] [ y ], with x = -1-refldx, y = -1-refldx .. nTbH and x = -refldx .. nTbW, y = -1-refldx. 99 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 Ou1puts of this process are the predicted samples predSamples[ x J[ y ], withx = O,,nTbW-1, y = 0 .. nToH -1. The variables n W and nH are derived as follows: nW=Max(nToW,2) (8-116) nH =Max( nToH, 2) The values of the prediction samples predSamples[ x ][ y ], with x = 0 .. nTbW-1 and y = O .. nTbH - 1, are derived as follows:pred.V[ x ][ y] = ( ( nH -1 - y) * p[ x ][ -1 -refldx] + (y + 1) * p[ -1-refldx][ nTbH]) «Log2 ( nW) (8-118) predH[ x ][y] = ( (nW- 1 -x) * p[-1-refldx][y] +(x + 1) * p[ nTbW][-1- refldx] ) « Log2 ( nH ) (8-119) (8-117) predSamples[x ][y]= (predV[ x][y] +predH[x][ y ]+nW* nH) » (Log2 (nW)+Log2 (nH)+l) (8-120) 8.4A.2.6 Specification ofINTRA_DC intra prediction mode Inputs to this process are: - a variable nTbW specifying the transform block width, - a variable nTbH specifying the transfonn block height, - a variable refldx specifying the intra prediction reference line index, 100 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 - the neighbouring samples p [ x ][ y ] , with x = -1-refldx, y = -1-refldx..nTbH - 1 and x = -retldx .. nTb W - 1 , y = -1-retldx, Ou1puts of this process are the predicted samples predSamples[ x ][ y ], withx = O .. nTbW - I, y = 0 .. nTbH - 1. The values of the prediction samples predSamples[ x ][y ], withx = O .. nTbW -1, y = O .. nTbH - 1, are derived by the following ordered steps: L A variable de Val is derived as follows: - When nTbW is equal to nTbH: dcVal = (:E!1!:'- 1 p[x'][-1-refldx] + r;r!f1 p[-1-refldx][y'] +nTbW) » (Log2(nTbW) + 1) (8-121) - When nTbW is greater than nTbH: dcVal = (I:!1!:- 1 p[x'][-t-refldx] +(nTbW» 1)) » Log2(nTbW) - When nTbW is smaller than nTbH: dcVal = (I:~~!-1 p[-1- refldx][y'] + (nTbH » 1)) » Log2(nTbH) 2. The prediction samples predSamples[x] [y] are derived as follows: predSamples[ x ][ y] = dcVal, with x = 0 .. nTbW- 1, y = 0,, nTbH -1 (8-124) (8-122) (8-123)
[237] In an example, a process for transforming the scaled transform coefficients and the like may be based on the algorithm (or specification) of Table 32 below. [238) Table 32 8.7.4.1 Transform process for scaled transform coefficients 101 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 Inputs to this process are: - a luma location ( xTb Y, yTb Y) specifying the top-left sample of the current luma transfonn block relative to the top-left luma sample of the current picture, - a variable nTbW specifying the width of the current transfonn block, - a variable nTbH specifying the height of the current transtorm block, - a variable cldx specifying the colour component of the current block, - an (11Tb W)x(nTbH) array d[ x ][ y ] of scaled transform coefficients with x = 0 .. nTb W - 1, y = o .. nTbH-1. Output of this process is the (nTbW)x(nTbH) array r[ x][ y] of residual samples withx = O . .nTbW-1, y=O .. nTbH-1. The variable implicitMtsEnabled is derived as foJlows: - If sps _ mts enabled_ flag is equal to 1 and one of the following conditions is true, implicitMtsEnabled is set equal to 1: - IntraSubPartitionsSplitType is not equal to ISP_ NO_ SPLIT - cu_sbt_flag is equal to 1 and Max( nTbW, nTbH ) is smaller than or equal to 32 - sps_explicit_mts_intra_enabled_flag and sps_explicit_mts_inter_enabled_flag are both equal to 0 and CuPred.Mode[ xTbY ][ yTbY] is equal to MODE_INTRA - Otherwise, implici1MtsEnabled is set equal to 0. The variable trTypeHor specifying the horizontal transform kernel and the var.iable tr'fypeVer specifying the vertical transform kernel are derived as follows: - If cldx is greater than 0, trTypeHor and trType Ver are set equal to 0. 102 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 - Otherwise, ifimplicitMtsEnabled is equal to 1, the following applies: - If lntraSubPartitionsSplitType is not equal to ISP_NO_SPLIT or (sps_explicit_mts_intra_enabled_flag and sps_explicit_mts_inter_enabled_flag are equal to 0), trTypeHor and trTypeVer are derived as follows - trTypeHor = ( nTbW >= 4 && nTbW<= 16 ) ? 1: 0 (8-1028) - trTypeVer = ( nTbH >= 4 && nTbH<= 16 ) ? 1: 0 (8-1029) Otherwise, if cu_sbt_flag is equal to 1, trTypeHor and 1rTypeVer are specified in Table 8-14 depending on cu_ sbt_ horizontal_ flag and cu_ sbt_pos _ flag_ Table 9-5 -Association of ctxldxOffset and syntax elements for each initialization Type in the inilializatimi process initType Syntax structure Syntax element ctxTable 0 1 2 coding_1ree _unit( ) atf_ctb_flag[ ][ ][] Table9-6 0 9 18 ·-- coding_unit() cu_skip_flag[ ][] 0 3 pred _mode_ ibc _ flag pred_mode_flag intra_luma_ref_idx[ )[ ] intra_ sub partitions_ mode_ flag intra _subpartition_split_flag intra_luma_mpm_flag[ ][] 103 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 intra _planar_ flag[][] intra_chroma_pred_mode[ ][] merge_flag[ ][] inter_pred_idc[ xO ][ yO] inter_affine_flag[ ][] cu_affine_type_flag[ ][] ref_idx_IO[ ][] mvp_lO_flag[ ][] ref_idx_ll[ ][] mvp_ll_flag[][] avmr_flag[ ][] amvr_precision_flag[ ][] gbi_idx[ ][] cu_cbf cu _sbt_ flag cu_sbt_quad_flag cu_sbt_horizontal_flag cu _sbt_pos _ flag Table 9.9 - Syntax elements and associated binarizations Syntax Syntax element Binarization structare Process Input parameters coding_unit() cu_skip_flag[ ][] FL cMax= 1 pred_mode_ibc_flag FL cMax= 1 pred_mode_flag FL cMax= 1 pcm_tlag[ ][] FL cMax= 1 intra_lwna_ref_idx[ ][ J TR cMax = 2, cRicePar.un = 0 intra_subpartitions_mode_flag FL cMax= 1 104 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 intra_subparlition_split_flag FL cMax= 1 intra_lwna_mpm_flag[ ][ ] FL cMa:x= 1 intra_planar_flag[ ][] FL cMax=l intra_lmna_mpm_idx[ ][] TR cMax = 4, cRiceParam = 0 intra_lwna_mpm_remainder[ ][ ] TB cMax=60 intra_chroma_pred_mode[ ][] 9.5.3.8 . merge_ flag[ ][ ] FL cMax= 1 inter_pred_idc[ xO ][ yO] 9.5.3.9 cb Width, cbHeight inter_affine_flag[ ][] FL cMa:x= 1 cu __ affine_type_flag[][] FL cMa:x= 1 ref_idx_lO[ ][ ] TR cMax = NumRefldxActive[ 0] -1, cRiceParam = 0 mvp_lO_flag[ ][] FL cMax= 1 ref_idx_ll[ ][] TR cMax = NumRefldxActive[ 1 ] -1, cRiceParam = 0 mvp_ll_flag[][] FL cMax= 1 avmr_flag[ ][] FL cMa:x= 1 amvr_precision_flag( ][] FL cMa:x= 1 gbi_idx[ ][] TR cMax = NoBackwardPredFJag ? 4: 2 cu_cbf FL cMax= 1 cu_sbt_flag FL cMax= 1 cu_sbt_quad _ flag FL cMa:x= 1 cu_sbt_horizontal_flag FL cMax= 1 cu_ sbt_pos flag FL cMax= 1 [239) In an example, an example of assigning ctx.Inc to syntax elements including the context coded bins may be based on Table 33 below.
[240] Table 33 I 9.5.4.2.hfVVC ... , 105 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 Tuble 9-lS- Assignment of ctxlnc to syntax elements with context coded bins binldx Syntax element >= 0 1 2 3 4 5 inb:a_luma_ref_idx[ ][] 0 1 na na na na inb:a_subpartitions_mode_fla 0 na na na na na g intra_subpartition_split_flag 0 na na na na na inb:a_luma_mpm_flag[ ][] 0 na na na na na inb:a_planar_flag[ ][] intra lmna ref idx!=O ? 2: na na na na na - - (intra_subpartitions_mode_fl ag? 0: 1) intra_luma_mpm_idx[ ][] bypass bypas bypas bypas bypas na s s s s inb:a_luma_mpm_remainder[ bypass bypas bypas bypas bypas bypas ][] s s s s s inb:a chroma _pred _ mode[ J[ 0 bypas bypas na na na ] s s sps_cclm_enabled_flag == 0 [241) Referring to Table 25, it may be confirmed that the intra__planar_flag is checked based on the check result that the value of the intra_luma_ref_idx is 0. The intra_luma_ref _idx may represent an example of the multi-reference line (MRL) index, and the intra__planar_flag may represent an example of the planar flag. 5
[242] Referring to Table 27, it may be con-finned that the value of the context index (ctxlnc or ctxldx) for a bin related to intra__planar_flag is O or 1. That is, it may be 106 Date Re9ue / Date Received 2021-06-25 88672699 confirmed that the value of the context index for the bin related to the intra_planar_flag may be one of two different integers.
[243] Referring to Table 33, it may be confirmed that the context index. for the bin related to the intra_planar_flag 1s based on the value of the intra_subpartitions_mode_flag_ The 5 intra_subpartitions_mode_flag may represent an example of an ISP flag indicating whether the intra sub partition (ISP) mode is applied to the current block.
[244] FIG. 11 is a flowchart illustrating an operation of the encoding apparatus according to an exemplary embodiment, and FIG. 12 is a block diagram illustrating a configuration of an encoding apparatus according to an exemplary embodiment. 10 [245) The encoding apparatus according to FIGS. 11 and 12 may perform operations corresponding to the decoding apparatus according to FIGS. 13 and 14. Accordingly, the operations of the decoding apparatus to be described later with reference to FIGS. 13 and 14 may also be applied to the encoding apparatus according to FIGS. 11 and 12.
[246] Each step illustrated in FIG. 11 may be performed by the encoding apparatus 200 illustrated in 15 FIG. 2. Further, the operations according to Sll0O and S1110 are based on some of the contents described with reference to FIGS. 4 to 10_ Accordingly, detailed descriptions which overlap with those described above with reference to FIGS. 2 and 4 to 10 will be omitted or simplified.
[247] As illustrated in FIG_ 12, the encoding apparatus 200 according to an exemplary embodiment may include a predictor 220 and an entropy encoder 240. However, in some cases, all of the components 20 illustrated in FIG. 12 may not be essential components of the encoding apparatus, and the encoding apparatus 200 may be implemented by more or less components than the components illustrated in FIG. 12.
[248] ht the encoding apparatus 200 according to an exemplary embodiment, the predictor 220 and the entropy encoder 240 may be implemented as separate chips, or at least two components may also be 25 implemented through one chip_ 107 Date Regue / Date Received 2022-12-20 CA 03125109 2021-06-25
[249] The encoding apparatus according to an exemplary embodiment may generate at least one of MPM flag information representing whether to encode the intra prediction mode based on the MPM candidates for the current block or planar flag information representing whether to determine the intra prediction mode for the current block as the 5 planar mode, based on the intra prediction mode for the current block (S1100).
[250] For example, the encoding apparatus may derive an intra prediction mode for the current block, generate MPM flag information representing whether to encode the intra prediction mode based on MPM candidates for the current block, and generate the planar flag information based on the MPM representing that the MPM flag information is related 10 to the planar flag infonnation representing whether to determine the intra prediction mode for the cmrent block as the planar mode. [251) The encoding apparatus according to an exemplary embodiment may encode image infonnation including at least one of the MPM flag information or the planar flag infonnation (S 1110). More specifically, the entropy encoder 240 of the encoding 15 apparatus may encode image information including at least one of the MPM flag infonnation or the planar flag information.
[252] In an exemplary embodiment, based on the case where the intra prediction mode for the cmrent block is derived as the planar mode, the planar flag information may represent that the intra prediction mode for the cmrent block is derived as the planar mode. 20
[253] In an exemplary embodiment, the intra prediction information may further include MPM index information related to one of the MPM candidates other than the planar mode among the MPM candidates for the current block.. The image encoding method may further include generating the MPM index information based on a case where the intra prediction mode for the current block is not derived as the planar mode. 25 [254) In an exemplary embodiment, the total number of MPM candidates other than the planar mode among the MPM candidates for the cmrent block may be equal to 5. 108 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25
[255] 1n an exemplary embodiment, the MPM index information includes a 0th MPM candidate, a 1st MPM candidate, a 2nd MPM candidate, a 3rd MPM candidate, or a 4th MPM candidate which is included in the MPM candidates other than the planar mode among the MPM candidates for the current block. Based on a case where the intra 5 prediction mode of the left neighboring block of the current block and the intra prediction mode of the top neighboring block of the current block are the same and the intra prediction mode of the left neighboring block is greater than the intra DC mode, the intra prediction mode for the 0th MPM candidate may be the intra prediction mode of the left neighboring block of the current block, the intra prediction mode for the 1st MPM 10 candidate may be 2+((intra prediction mode of the left neighboring block of the current block+61) %64), and the intra prediction mode for the 2nd MPM candidate may be 2+((intra prediction mode of the left neighboring block of the current block-I) %64 ). [256) 1n an exemplary embodiment, the MPM index information may represent the 0th MPM candidate, the 1st MPM candidate, the 2nd MPM candidate, the 3rd MPM candidate, 15 or the 4th MPM candidate which is included in the MPM candidates other than the planar mode among the MPM candidates for the current block. Based o.n a case where the intra prediction mode of the left neighboring block of the current block and the intra prediction mode of the top neighboring block of the current block are not the same and the intra prediction mode of the left neighboring block is smaller than or equal to the intra DC mode, 20 and the intra prediction mode of the top neighboring block is smaller than or equal to the intra DC mode, the intra prediction mode for the 0th MPM candidate may be the intra DC mode, the intra prediction mode for the 1st MPM candidate may be a 50th intra prediction mode, the intra prediction mode for the 2nd MPM candidate may be a 18th intra prediction mode, the intra prediction mode for the 3rd MPM candidate may be a 46th intra prediction 25 mode, and the intra prediction mode for the 4th MPM candidate may be a 54th intra prediction mode. 109 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25
[257] 1n an exemplaiy embodiment, the MPM index information may be based on a truncated rice (TR) binarization process.
[258] 1n an exemplary embodiment, the cMax representing the maximum value of the MPM index information may be equal to 4. 5
[259] According to the encoding apparatus and the method for operating the encoding apparatus illustrated in FIGS. 11 and 12, the encoding apparatus may generate at least one of the MPM flag information representing whether to encode the intra prediction mode based on MPM candidates for the current block or the planar flag information representing whether to determine 1he intra prediction mode for the current block as 1he planar mode 10 based on the intra prediction mode for the current block (S1100), and encode the image information including at least one of 1he MPM flag information or 1he planar flag information (Slll0).
[260] That is, the present disclosure may enhance image coding efficiency based on intra prediction using the MPM list for the current block. Alternatively, the present 15 disclosure may enhance the efficiency of the intra prediction based on the MPM list based on the planar flag information representing whe1her to determine the intra prediction mode for the current block as the planar mode. Alternatively, the present disclosure may efficiently configure 1he MPM list for the current block. Alternatively, 1he present disclosure may efficiently code the MPM index. 20
[261] FIG. 13 is a flowchart illustrating an operation of the decoding apparatus according to an exemplary embodiment, and FIG. 14 is a block diagram illustrating a configuration of the decoding apparatus according to an exemplacy embodiment. [262) Each step illustrated in FIG. 13 may be performed by the decoding apparatus 300 illustrated in FIG. 3. Accordingly, detailed descriptions which overlap with the 25 aforementioned contents will be omitted or simplified
[263] As illustrated in FIG. 14, the decoding apparatus according to an exemplary 110 Date Re9ue / Date Received 2021-06-25 88672699 embodiment may include the entropy decoder 310, the predictor 330, and the adder 340. However, in some cases, all of the components illustrated in FIG. 14 may not be essential components of the decoding apparatus, and the decoding apparatus may be implemented by more or less components than the components illustrated in FIG. 14. 5
[264] In the decoding apparatus 300 according to an exemplary embodiment, the entropy decoder 310, the predictor 330, and the adder 340 may be implemented as separate chips, respectively, or at least two or more components may also be implemented through one chip.
[265] The decoding apparatus 300 according to an exemplary embodiment may receive the intra prediction information including at least one of the MPM flag information representing whether to 10 derive the intra prediction mode for the current block based on the most probable mode (MPM) candidates for the current block or the planar flag information representing whether to determine the intra prediction mode for the current block as the planar mode most probable mode (S1300). [266) In an example, the intra prediction information may be included in the coding unit syntax.
[267] In an example, the MPM flag information may be represented as intra_luma_mpm_flag, and 15 the planar flag information may be represented as intra_luma_not__planar_flag. If the value of the intra_luma_not__planar_flag is 1, it may be determined that the intra prediction mode for the current block is not the planar mode, and if the value of the intra_Juma-'not__planar_flag is 0, it may be determined that the intra prediction mode for the current block is the planar mode. [268) In another example, the planar flag information may also be represented as 20 intra_luma_planar_flag or intra_planar_flag. If the value of the intra_luma__planar_flag is 1, it may be determined that the intra prediction mode for the current block is the planar mode, and if the value of the intra_luma_planar_flag is 0, it may be determined that the 111 Date Regue / Date Received 2022-12-20 CA 03125109 2021-06-25 intra prediction mode for the current block is not the planar mode_ [269) In an example, the decoding apparatus may determine that the value of the MPM flag information is related to decoding the planar flag information, based on the determination that the value of the MPM flag information is 1. That is, the decoding 5 apparatus may decode the planar flag infonnation based on the determination that the value of the MPM flag information is 1. [270) The decoding apparatus according to an exemplary embodiment may derive the intra prediction mode for the current block based on the MPM flag information and the planar flag information (S1310). 10
[271] The decoding apparatus according to an exemplary embodiment may derive a predicted block for the current block based on the intra prediction mode for the current block (S 1320).
[272] The decoding apparatus according to an exemplary embodiment may generate a reconstructed picture based on the predicted block (S1330). 15
[273] 1n an exemplary embodiment, the planar flag inf onnation may be included in the intra prediction information, based on the case where the MPM flag information represents that the intra prediction mode for the current block is derived based on the MPM candidates.
[274] In an exemplary embodiment, the deriving of the intra prediction mode for the 20 current block may include deriving the intra prediction mode for the current block as the planar mode, based on a case where the planar flag information represents that the intra prediction mode for the current block is derived as the planar mode_ [27S] In an exemplary embodiment, the intra prediction information may further include MPM index information related to one of the MPM candidates other than the planar mode 25 among the MPM candidates for the current block. The MPM index information may be included in the intra prediction infonnation based on a case where the planar flag 112 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 information represents that the intra prediction mode for the current block is not derived as the planar mode. The image decoding method is characterized in that the intra prediction mode for the current block is derived based on the MPM index information_ In an example, the decoding apparatus may check the MPM index information based on the 5 check result that the value of intra_luma_ not _planar_ flag is I.
[276] In an exemplary embodiment, the number of MPM candidates other than the planar mode among the MPM candidates for the current block may be equal to 5. In an example, the MPM candidates may include the 1st to 5th MPM candidates. The 1st MPM candidate may be related to an MPM index 0, the 2nd MPM candidate may be related to 10 an MPM index 1, the 3rd MPM candidate may be related to an MPM index 2, the 4th MPM candidate may be related to an MPM index 3, and the 5th MPM candidate may be related to an MPM index 4.
[277] In an exemplary embodiment, the MPM index information may represent the 0th MPM candidate, the 1st MPM candidate, the 2nd MPM candidate, the 3rd MPM candidate, 15 or the 4th MPM candidate which is included in the MPM candidates other than the planar mode among the MPM candidates for the current block. In an example, based on a case where the intra prediction mode of the left neighboring block of the current block is the same as the intra prediction mode of the top neighboring block of the current block, and the intra prediction mode of the left neighboring block is larger than the intra DC mode, 20 the intra prediction mode for the 0th MPM candidate may be the intra prediction mode of the left neighboring block of the current block, the intra prediction mode for the 1st MPM candidate may be 2+((the intra prediction of the left neighboring block of the current block)+61)%64), and the intra prediction mode for the 2nd MPM candidate may be 2+((the intra prediction mode of the left neighboring block of the currentblock-1)% 64). 25 [278) In an example, the MPM index information may be represented as intra_luma_mpm_idx, and the 0th MPM candidate to the 4th MPM candidate 113 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 corresponding to the MPM index O to the MPM index 4 may be represented as candModeList [O], candModeList [l], candModeList [2], candModeList [3], and candModeList [4], respectively. [279) In an example, if the intra prediction mode for the left neighboring block of the 5 current block is candlntraPredModeA, the intra prediction mode for the top neighboring block of the current block is candlntraPredModeB, candlntraPredModeA, and candlntraPredModeB are the same, and the candlntraPredModeA is larger than INTRA_ DC, the 0th MPM candidate, the 1st MPM candidate, and the 2ndMPM candidate among the MPM candidates configuring the MPM list may be determined as follows. 10
[280] Equation 1 [281) candModeList[ 0] = candlntraPredModeA
[282] candModeList[ I ] = 2 + ( ( candlntraPredModeA + 61 ) % 64 ) [283) candModeList[ 2) = 2 + ( ( candlntraPredModeA - 1 ) % 64 )
[284] In another example, based on a case where the intra prediction mode of the left 15 neighboring block of the current block and the intra prediction mode of the top neighboring block of the current block are not the same, the intra prediction mode of the left neighboring block is smaller than or equal to the intra DC mode, and the intra prediction mode of the top neighboring block is smaller than or equal to the intra DC mode, the intra prediction mode for the 0th MPM candidate may be the intra DC mode, the intra 20 prediction mode for the 1st MPM candidate may be the 50th intra prediction mode, the intra prediction mode for the 2nd MPM candidate may be the I 8th intra prediction mode, the intra prediction mode for the 3rd MPM candidate may be the 46th intra prediction mode, and the intra prediction mode for the 4th MPM candidate may be the 54th intra prediction mode. 25
[285] In an exemplary embodiment, the MPM index information may be based on a 114 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 truncated rice (TR) binarization process. [286) In an exempl.ary embodiment, cMax indicating the maximum value of the MPM index information may be equal to 4.
[287] According to the decoding apparatus and the method for operating the decoding 5 apparatus illustrated in FIGS. 13 and 14, the decoding apparatus may receive intra prediction information including at least one of MPM flag information representing whether to derive an intra prediction mode for the current block based on most probable mode (MPM) candidates for the current block or planar flag information representing whether to determine the intra prediction mode for the current block as a planar mode 10 (S1300), derive the intra prediction mode for the current block based on the MPM flag information and the planar flag information (S1310), derive a predicted block for the current block based on the intra prediction mode for the current block (S1320), and generate a reconstructed picture based on the predicted block (S 1330). At this time, based on a case where the MPM flag infonnation represents that the intra prediction mode for 15 the current block is derived based on the MPM candidates, the planar flag information may be included in the intra prediction information.
[288] That is, the present disclosure may enhance the efficiency of the intra prediction based on the MPM list based on the planar flag information representing whether to detennine the intra prediction mode for the current block as the planar mode. Alternatively, 20 the present disclosure may enhance the image coding efficiency by determining whether to signal the planar flag information based on the MRL index information. Alternatively, the present disclosure may efficiently configure the MPM list for the current block. Alternatively, the present disclosure may determine the value of the context index for the bin related to the planar flag information based on whether the ISP mode is applied to the 25 current block.
[289] In the aforementioned embodiments, while the methods are described based on 115 Date Re9ue / Date Received 2021-06-25 CA 03125109 2021-06-25 the flowcharts shown as a series of steps or blocks, the present disclosure is not limited to the order of steps, and a certain step may occur in a different order from or simultaneously with a step different from that described above. Further, those skilled in the art will understand that the steps shown in the flowchart are not exclusive, and other steps may be 5 included or one or more steps in the flowcharts may be deleted without affecting the scope of the present disclosure. [290) The aforementioned method according to the present disclosure may be implemented in the form of software, and the encoding apparatus and / or the decoding apparatus according to the present disclosure may be included in the apparatus for 10 performing image processing of, for example, a TV, a computer, a smartphone, a set-top box, a display device, and the like. [291) When the embodiments in the present disclosure are implemented in software, the aforementioned method may be implemented as a module (process, function, and the like) for perfonning the aforementioned function. The module may be stored in a memory, and 15 executed by a processor. The memory may be located inside or outside the processor, and may be coupled with the processor by various well-known means. The processor may include application-specific integrated circuits (ASICs), other chipsets, logic circuits, and / or data processing devices. The memory may include a read-only memory (ROM), a random access memory (RAM), a flash memory, a memory card, a storage medium and / or 20 other storage devices. That is, the embodiments described in the present disclosure may be performed by being implemented on a processor, a microprocessor, a controller, or a chip_ For example, the functional units illustrated in each drawing may be performed by being implemented on the computer, the processor, the microprocessor, the controller, or the chip. In this case, information for implementation (for example, infonnation on 25 instructions) or algorithm may be stored in a digital storage medium.
[292] Further, the decoding apparatus and the encoding apparatus to which the present 116 Date Re9ue / Date Received 2021-06-25 88672699 disclosure is applied may be included in a multimedia broadcast transceiver, a mobile communication terminal, a home cinema video device, a digital cinema video device, a surveillance camera, a video communication device, a real-time communication device such as video communication, a mobile streaming device, a storage medium, a camcorder, a Video on Demand (VoD) service provider, an Over 5 the top video (OTT video) device, an Internet streaming service provider, a three-dimensional (3D) video device, a virtual reality (VR) device, an augmented reality (AR) device, a video telephony video device, a transportation terminal (for example, vehicle (including autonomous vehicle) terminal, airplane terminal, ship terminal, or the like), and a medical video device, and the like, and may be used to process video signals or data signals. For example, the OTT video device may include a game console, a Blu- 10 ray® player, an Internet-connected TV, a home theater system, a smartphone, a tablet PC, a Digital Video Recorder (DVR), and the like.
[293] Further, the processing method to which the present disclosure is applied may be produced in the form of a program executed by a computer, and may be stored in a computer readable recording medium. The multimedia data having a data structure according to the present disclosure may also be 15 stored in the computer readable recording medium. The computer readable recording medium includes all kinds of storage devices and distributed storage devices in which computer readable data are stored. The computer readable recording medium may include, for example, a Blu-ray® Disc (BD), a Universal Serial Bus (USB), a ROM, a PROM, an EPROM, an EEPROM, a RA~ a CD-RO~ a magnetic tape, a floppy disk, and an optical data storage device. Further, the computer readable recording medium 20 includes media implemented in the form of a carrier wave (for example, transmission via the Internet). Further, the bitstream generated by the encoding method may be stored in the computer readable recording medium or transmitted through wired / wireless communication networks.
[294] Further, the embodiments of the present disclosure may be implemented as a computer program product by a program code, and the program code may be executed on the computer according to the 25 embodiments of the present disclosure. The program code may be stored on a computer readable carrier. [295) This document relates to video / image coding. For example, a method / embodiment disclosed in this document may be applied to a method disclosed in versatile video coding (VVC) standard, essential video coding (EVC) standard, AOMedia (Alliance for Open Media) Video 1 (AVl) standard, 2nd generation of audio video coding standard (A VS2) or next generation video / image coding standard ( e.g., 30 H.267, H.268, or the like). 117 Date Regue / Date Received 2022-12-20 88672699 [296) In this document, a variety of embodiments relating to video / image coding may be provided, and, unless specified to the contrary, the embodiments may be combined to each other and be performed. [297) In this document, a video may refer to a series of images over time. A picture generally refers to the unit representing one image at a particular time frame, and a slice / tile refers to the unit constituting 5 the picture in terms of coding. A slice / tile may include one or more coding tree units (CTUs). One picture may consist of one or more slices / tiles. One picture may consist of one or more tile groups. One tile group may include one or more tiles. A brick may represent a rectangular region of CTU rows within a tile in a picture. A tile may be partitioned into multiple bricks, each of which consisting of one or more CTU rows within the tile. A tile that is not partitioned into multiple bricks may be also referred to as a 10 brick. A brick scan is a specific sequential ordering of CTUs partitioning a picture in which the CTUs are ordered consecutively in CTU raster scan in a brick, bricks within a tile are ordered consecutively in a raster scan of 1he bricks of the tile, and tiles in a picture are ordered consecutively in a raster scan of the tiles of the picture. A tile is a rectangular region of CTUs within a particular tile column and a particular tile row in a picture. The tile column is a rectangular region of CTUs having a height equal to 15 the height of the picture and a width specified by syntax elements in the picture parameter 118 Date Regue / Date Received 2022-12-20 CA 03125109 2021-06-25 set The tile row is a rectangular region of CTUs having a height specified by syntax elements in the picture parameter set and a width equal to the width of the picture. A tile scan is a specified sequential ordering of CTUs partitioning a picture in which the CTIJs are ordered consecutively in CTU raster scan in a tile whereas tiles in a picture are ordered 5 consecutively in a raster scan of the tiles of the picture. A slice includes an integer number of bricks of a picture that may be exclusively contained in a single NAL mrit. A slice may consist of either a number of complete tiles or only a consecutive sequence of complete bricks of one tile. In this document, a tile group and a slice may be used interchangeably. For example, in this document, a tile group / tile group header may also be refe.rred to as a 10 slice / slice header. [298) A pixel or a pel may mean a smallest unit constituting one picture (or image). Also, 'sample' may be used as a term corresponding to a pixel. A sample may generally represent a pixel or a value of a pixel, and may represent only a pixel / pixel value of a luma component or only a pixel / pixel value of a chroma component. 15
[299] A wit may represent a basic unit of image processing. The unit may include at least one of a specific region of the picture and information related to the region. One unit may include one luma block and two chroma (ex. ch, er) blocks. The mrit may be used interchangeably with terms such as block or area in some cases. In a general case, an MxN block may include samples (or sample arrays) or a set (or array) of transform coefficients 20 ofM columns and N rows.
[300] In this document, the term" / " and"," should be interpreted to indicate "and / or." For instance, the expression "A / B'' may mean" A and / or B." Further, "A, B" may mean "A and / or B." Further, "A / B / C" may mean "at least one of A, B, and / or C." Also, "A / B / C" may mean "at least one of A, B, and / or C." 25 [301) Further, in the document, the term "or" should be interpreted to indicate "and / or." For instance, the expression "A or B" may comprise 1) only A, 2) only B, and / or 3) both 119 Date Re9ue / Date Received 2021-06-25 88672699 A and B. In other words, the term "or'' in this document should be interpreted to indicate "additionally or alternatively."
[302] FIG. 15 represents an example of a content streaming system 1500 to which the disclosure of the present document may be applied 5
[303] Referring to FIG. 15, the content streaming system 1500 to which the present disclosure is applied may largely include an encoding server 1501, a streaming seJVer 1503, a web server 1505, a media storage 1507, a user device (user equipment) 1513, and a multimedia input device 151 lA, 151 lB.
[304] The encoding server 1501 functions to compress to digital data the contents input from the multimedia input devices, such as the smart phone 1511A, the camera and / or camcorder 151 lB and the 10 like, to generate a bitstream, and to transmit it to the streaming server 1503. As another example, in a case where the smart phone, the camera, the camcorder or the like directly generates a bitstream, the encoding server 1501 may be omitted.
[305] The bitstream may be generated by an encoding method or a bitstream generation method to which the present disclosure is applied And the streaming server 1503 may temporarily store the 15 bitstream in a process for transmitting or receiving the bitstream.
[306] The streaming server 1503 transmits multimedia data to the user equipment 1513 based on a user's request through the web server 1505, which functions as an instrument that informs a user of what service there is. When the user requests a service which he or she wants, the web server 1505 transfers it to the streaming server 1503, and the streaming server transmits multimedia data to the user. In this 20 regard, the contents streaming system may include a separate control server, and in this case, the control server functions to control commands / responses between respective equipment in the content streaming system.
[307] The streaming server 1503 may receive contents from the media storage 1507 and / or the encoding server 1501. For example, in a case the contents are received from the encoding server, 1501 25 the contents may be received in real time. In this case, the streaming server 1503 may store the bitstream for a predetermined period of time to provide the streaming service smoothly.
[308] For example, the user equipment 1513 may include a game console 1515, a PC 1517, a set top box 1519, a smart phone 1521. In some embodiments, the user equipment may include a mobile phone, a 120 Date Regue / Date Received 2022-12-20 88672699 smart phone, a laptop computer, a digital broadcasting terminal, a personal digital assistant (PDA), a portable multimedia player (PMP), a navigation, a slate PC, a tablet PC, an ultrabook, a wearable device (e.g., a watch-type terminal (smart watch), a glass-type terminal (smart glass), a head mounted display (HMD)), a digital TV, a desktop computer, a digital sig11age or the like. 5
[309] Each of servers in the contents streaming system may be operated as a distributed server, and in this case, data received by each server may be distributedly processed. 121 Date Regue / Date Received 2022-12-20
Claims
88672699 CLAIMS:
1. An image decoding method performed by a decoding apparatus, comprising: receiving intra prediction information comprising most probable mode (MPM) flag information related to whether to derive an intra prediction mode for a current block based on MPM candidates for 5 the current block, planar flag information related to whether to determine the intra prediction mode for the current block as a planar mode, and MPM index information related to one of 5 MPM candidates other than the planar mode among the MPM candidates for the current block; deriving the intra prediction mode for the current block based on at least one of a value of the MPM flag information, a value of the planar flag information, and a value of the MPM index 10 information; 15 deriving a predicted block for the current block based on the intra prediction mode for the current block; and generating a reconstructed picture based on the predicted block, wherein the MPM flag information is parsed in a coding unit syntax for the current block, wherein based on the value of the MPM flag information being equal to 1, the planar flag information is parsed in the coding unit syntax, wherein based on the value of the planar flag information representing that the intra prediction mode for the current block is not the planar mode, the MPM index information is parsed in the coding unit syntax, and 20 wherein the planar flag information is signaled after the MPM flag information and before the MPM index information.
2. The image decoding method of claim 1, wherein the MPM index information represents a 0th MPM candidate, a 1st MPM candidate, a 2nd MPM candidate, a 3rd MPM candidate, or a 4th MPM 25 candidate which is comprised in the 5 MPM candidates other than the planar mode among the MPM candidates for the current block, and wherein based on a case where a mode value of an intra prediction mode of a left neighboring block of the current block and a mode value of an intra prediction mode of a top neighboring block of the current block are the same and the mode value of the intra prediction mode of the left neighboring 30 block is larger than a mode value of an intra DC mode, a mode value of an intra prediction mode for the 0th MPM candidate is equal to the mode value of the intra prediction mode of the left neighboring block 122 Date Re9ue / Date Received 2023-11-10 88672699 of the current block, a mode value of an intra prediction mode for the 1st MPM candidate is equal to 2+((the mode value of the intra prediction mode of the left neighboring block of the current block+6 l )%64 ), and a mode value of an intra prediction mode for the 2nd MPM candidate is equal to 2+((the mode value of the intra prediction mode of the left neighboring block of the current 5 block-I )%64).
3. The image decoding method of claim 1, wherein the MPM index information is based on a truncated rice (TR) binarization process, and cMax representing a maximum value of the MPM index information is equal to 4.
4. An image encoding method performed by an encoding apparatus, comprising: deriving an intra prediction mode for a current block; generating most probable mode (MPM) flag information, planar flag information and MPM index information based on the derived intra prediction mode, wherein the MPM flag information is 15 related to whether the intra prediction mode for the current block is derived based on MPM candidates for the current block, the planar flag information is related to whether to determine the intra prediction mode for the current block as a planar mode, and the MPM index information is related to one of 5 MPM candidates other than the planar mode among the MPM candidates for the current block; and encoding image information comprising the MPM flag information, the planar flag information 20 and the MPM index information, 25 30 wherein a coding unit syntax is configured that the MPM flag information is parsed in the coding unit syntax for the current block, wherein the coding unit syntax is configured that based on a value of the MPM flag information being equal to 1, the planar flag information is to be parsed in the coding unit syntax, wherein the coding unit syntax is configured that based on a value of the planar flag information representing that the intra prediction mode for the current block is not the planar mode, the MPM index information is to be parsed in the coding unit syntax, and wherein the planar flag information is signaled after the MPM flag information and before the MPM index information.
5. The image encoding method of claim 4, wherein the MPM index information represents a 0th MPM candidate, a 1st MPM candidate, a 2nd MPM candidate, a 3rd MPM candidate, or a 4th MPM 123 Date Re9ue / Date Received 2023-11-10 88672699 candidate which is comprised in the 5 MPM candidates other than the planar mode among the MPM candidates for the current block, and wherein based on a case where a mode value of an intra prediction mode of a left neighboring block of the current block and a mode value of an intra prediction mode of a top neighboring block of 5 the current block are the same and the mode value of the intra prediction mode of the left neighboring block is larger than a mode value of an intra DC mode, a mode value of an intra prediction mode for the 0th MPM candidate is equal to the mode value of the intra prediction mode of the left neighboring block of the current block, a mode value of an intra prediction mode for the 1st MPM candidate is equal to 2+((the mode value of the intra prediction mode of the left neighboring block of the current 10 block+6 l )%64 ), and a mode value of an intra prediction mode for the 2nd MPM candidate is equal to 2+((the mode value of the intra prediction mode of the left neighboring block of the current blockl )%64).
6. The image encoding method of claim 4, wherein the MPM index information is based on a 15 truncated rice (TR) binarization process, and 20 cMax representing a maximum value of the MPM index information is equal to 4.
7. A computer-readable storage medium storing a bitstream of encoded image information generated by the image encoding method of claim 4.
8. A transmission method of data for an image, comprising: obtaining a bitstream for the image, wherein the bitstream is generated based on deriving an intra prediction mode for a current block, generating most probable mode (MPM) flag information, planar flag information and MPM index information based on the derived intra prediction mode, wherein the 25 MPM flag information is related to whether the intra prediction mode for the current block is derived based on MPM candidates for the current block, the planar flag information is related to whether to determine the intra prediction mode for the current block as a planar mode, and the MPM index information is related to one of 5 MPM candidates other than the planar mode among the MPM candidates for the current block, and encoding image information comprising the MPM flag information, 30 the planar flag information and the MPM index information; and transmitting the data comprising the bitstream, wherein a coding unit syntax is configured that the MPM flag information is parsed in the coding 124 Date Re9ue / Date Received 2023-11-10 88672699 unit syntax for the current block, wherein the coding unit syntax is configured that based on a value of the MPM flag information being equal to 1, the planar flag information is to be parsed in the coding unit syntax, wherein the coding unit syntax is configured that based on a value of the planar flag information 5 representing that the intra prediction mode for the current block is not the planar mode, the MPM index information is to be parsed in the coding unit syntax, and wherein the planar flag information is signaled after the MPM flag information and before the MPM index information. 125 Date Re9ue / Date Received 2023-11-10