WO2023132622A1 - Dimd 모드 기반 인트라 예측 방법 및 장치 - Google Patents
Dimd 모드 기반 인트라 예측 방법 및 장치 Download PDFInfo
- Publication number
- WO2023132622A1 WO2023132622A1 PCT/KR2023/000149 KR2023000149W WO2023132622A1 WO 2023132622 A1 WO2023132622 A1 WO 2023132622A1 KR 2023000149 W KR2023000149 W KR 2023000149W WO 2023132622 A1 WO2023132622 A1 WO 2023132622A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- information
- dimd
- timd
- current block
- mode
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 177
- 238000009795 derivation Methods 0.000 claims abstract description 45
- 239000011159 matrix material Substances 0.000 claims abstract description 21
- 230000005540 biological transmission Effects 0.000 claims description 10
- JMYHHWKXFCFDSK-UHFFFAOYSA-N 2-(2,4-dimethylphenyl)indene-1,3-dione Chemical compound CC1=CC(C)=CC=C1C1C(=O)C2=CC=CC=C2C1=O JMYHHWKXFCFDSK-UHFFFAOYSA-N 0.000 abstract 1
- 238000011084 recovery Methods 0.000 abstract 1
- 239000000523 sample Substances 0.000 description 73
- 238000001914 filtration Methods 0.000 description 45
- 239000013598 vector Substances 0.000 description 39
- 238000013139 quantization Methods 0.000 description 31
- 238000012545 processing Methods 0.000 description 24
- 230000000875 corresponding effect Effects 0.000 description 22
- 230000008569 process Effects 0.000 description 22
- 239000013074 reference sample Substances 0.000 description 18
- 241000023320 Luma <angiosperm> Species 0.000 description 13
- OSWPMRLSEDHDFF-UHFFFAOYSA-N methyl salicylate Chemical compound COC(=O)C1=CC=CC=C1O OSWPMRLSEDHDFF-UHFFFAOYSA-N 0.000 description 13
- 239000011449 brick Substances 0.000 description 12
- 208000037170 Delayed Emergence from Anesthesia Diseases 0.000 description 11
- 230000002123 temporal effect Effects 0.000 description 11
- 230000011664 signaling Effects 0.000 description 9
- 230000009466 transformation Effects 0.000 description 9
- 238000005192 partition Methods 0.000 description 7
- 230000002093 peripheral effect Effects 0.000 description 6
- PXFBZOLANLWPMH-UHFFFAOYSA-N 16-Epiaffinine Natural products C1C(C2=CC=CC=C2N2)=C2C(=O)CC2C(=CC)CN(C)C1C2CO PXFBZOLANLWPMH-UHFFFAOYSA-N 0.000 description 5
- 238000004891 communication Methods 0.000 description 5
- 230000006978 adaptation Effects 0.000 description 4
- 230000003044 adaptive effect Effects 0.000 description 4
- 238000006243 chemical reaction Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000014509 gene expression Effects 0.000 description 4
- 230000001131 transforming effect Effects 0.000 description 4
- 230000001419 dependent effect Effects 0.000 description 3
- 238000000638 solvent extraction Methods 0.000 description 3
- FZEIVUHEODGHML-UHFFFAOYSA-N 2-phenyl-3,6-dimethylmorpholine Chemical compound O1C(C)CNC(C)C1C1=CC=CC=C1 FZEIVUHEODGHML-UHFFFAOYSA-N 0.000 description 2
- 230000002146 bilateral effect Effects 0.000 description 2
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000004927 fusion Effects 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 238000012935 Averaging Methods 0.000 description 1
- 101100129500 Caenorhabditis elegans max-2 gene Proteins 0.000 description 1
- 240000007594 Oryza sativa Species 0.000 description 1
- 235000007164 Oryza sativa Nutrition 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000001010 compromised effect Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 230000001186 cumulative effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000006073 displacement reaction Methods 0.000 description 1
- 238000003708 edge detection Methods 0.000 description 1
- 238000003709 image segmentation Methods 0.000 description 1
- 238000002156 mixing Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000012805 post-processing Methods 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 235000009566 rice Nutrition 0.000 description 1
- 239000010454 slate Substances 0.000 description 1
- 239000004984 smart glass Substances 0.000 description 1
- 230000000153 supplemental effect Effects 0.000 description 1
- 230000002194 synthesizing effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/593—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/103—Selection of coding mode or of prediction mode
- H04N19/105—Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/103—Selection of coding mode or of prediction mode
- H04N19/11—Selection of coding mode or of prediction mode among a plurality of spatial predictive coding modes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/132—Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/17—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
- H04N19/176—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/70—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards
Definitions
- This document relates to image coding technology, and more particularly, to a method and apparatus for coding an intra prediction mode in an image coding system.
- a high-efficiency video/video coding technology is required to effectively compress, transmit, store, and reproduce high-resolution and high-quality video/video information having various characteristics as described above.
- DIMD Decoder Side Intra Mode Derivation
- TIMD Tempor-based Intra Mode Derivation
- an image decoding method performed by a decoding device includes receiving image information including at least one of Decoder Side Intra Mode Derivation (DIMD) related information and Template-based Intra Mode Derivation (TIMD) related information from a bitstream, the DIMD related information or the TIMD related Deriving an intra prediction mode for a current block based on at least one of information, generating prediction samples for the current block based on the intra prediction mode, and generating prediction samples based on the prediction samples for the current block.
- DIMD Decoder Side Intra Mode Derivation
- TIMD Template-based Intra Mode Derivation
- the image information includes Matrix-based Intra Prediction (MIP) flag information
- the DIMD-related information indicates whether a DIMD mode is applied to the current block.
- the TIMD related information includes TIMD flag information indicating whether the TIMD mode is applied to the current block
- the DIMD flag information or the TIMD flag information is parsed after the MIP flag information.
- an encoding method performed by an encoding device may include determining whether Decoder Side Intra Mode Derivation (DIMD) or Template-based Intra Mode Derivation (TIMD) is applied to a current block, DIMD-related information related to whether or not the DIMD is applied to the current block, or Generating TIMD-related information related to whether the TIMD is applied to the current block, generating prediction samples for the current block based on the DIMD or the TIMD applied to the current block, and the DIMD-related and encoding image information including at least one of information and the TIMD-related information, wherein the image information includes Matrix-based Intra Prediction (MIP) flag information, and the DIMD-related information includes DIMD in the current block.
- DIMD Decoder Side Intra Mode Derivation
- TIMD Template-based Intra Mode Derivation
- the TIMD related information includes TIMD flag information indicating whether a TIMD mode is applied to the current block, and the DIMD flag information or the TIMD flag information includes the MIP It is characterized in that it is signaled after the flag information.
- a computer-readable digital storage medium stores a bitstream generated by a specific method, and the specific method determines whether Decoder Side Intra Mode Derivation (DIMD) or Template-based Intra Mode Derivation (TIMD) is applied to the current block.
- DIMD Decoder Side Intra Mode Derivation
- TMD Template-based Intra Mode Derivation
- the DIMD or the TIMD is applied to the current block generating prediction samples for the current block based on the base and encoding image information including at least one of the DIMD-related information and the TIMD-related information, wherein the image information is MIP (Matrix-based Intra Prediction ) flag information, the DIMD related information includes DIMD flag information indicating whether the DIMD mode is applied to the current block, and the TIMD related information includes a TIMD flag indicating whether the TIMD mode is applied to the current block information, and the DIMD flag information or the TIMD flag information is signaled after the MIP flag information.
- MIP Microx-based Intra Prediction
- a method of transmitting data for an image obtains a bitstream for the video, and the bitstream determines whether Decoder Side Intra Mode Derivation (DIMD) or Template-based Intra Mode Derivation (TIMD) is applied to the current block.
- DIMD Decoder Side Intra Mode Derivation
- TMD Template-based Intra Mode Derivation
- DIMD-related information related to whether the DIMD is applied to the current block or TIMD-related information related to whether the TIMD is applied to the current block, wherein the DIMD or the TIMD is applied to the current block
- the image information includes Matrix-based Intra Prediction (MIP) flag information
- the DIMD related information includes DIMD flag information indicating whether a DIMD mode is applied to the current block.
- the TIMD related information includes TIMD flag information indicating whether the TIMD mode is applied to the current block, and the DIMD flag information or the TIMD flag information is signaled after the MIP flag information.
- FIG. 1 schematically shows an example of a video/image coding system that can be applied to the embodiments of this document.
- FIG. 2 is a diagram schematically illustrating the configuration of a video/image encoding apparatus applicable to embodiments of the present document.
- FIG. 3 is a diagram schematically illustrating the configuration of a video/image decoding apparatus applicable to embodiments of the present document.
- FIG. 5 illustrates an example of an image encoding method based on rough intra prediction to which embodiments of the present document are applicable.
- FIG. 6 schematically shows an intra prediction unit in an encoding device.
- FIG. 7 illustrates an example of an image decoding method based on rough intra prediction to which embodiments of the present document are applicable.
- FIG. 8 schematically shows an intra prediction unit in a decoding device.
- FIG. 9 exemplarily illustrates a schematic intra prediction procedure to which embodiments of the present document are applicable.
- FIG 10 illustrates an example of intra prediction modes to which embodiments of the present document are applicable.
- FIG. 11 shows a restored pixel template as an example.
- FIG. 13 and 14 schematically illustrate an example of a video/image encoding method and related components according to an embodiment of the present document.
- 15 and 16 schematically illustrate an example of a video/image decoding method and related components according to an embodiment of the present document.
- FIG 17 shows an example of a content streaming system to which the embodiments disclosed in this document can be applied.
- each component in the drawings described in this document is shown independently for convenience of description of different characteristic functions, and does not mean that each component is implemented as separate hardware or separate software.
- two or more of the components may be combined to form one component, or one component may be divided into a plurality of components.
- Embodiments in which each configuration is integrated and/or separated are also included in the scope of rights of this document as long as they do not deviate from the essence of this document.
- VVC Versatile Video Coding
- HEVC High Efficiency Video Coding
- EMC essential video coding
- This document is about video/image coding.
- the method/embodiment disclosed in this document is applicable to the VVC (versatile video coding) standard, EVC (essential video coding) standard, AV1 (AOMedia Video 1) standard, AVS2 (2nd generation of audio video coding standard) or next generation video/ It can be applied to a method disclosed in an image coding standard (ex. H.267 or H.268, etc.).
- a video may mean a set of a series of images over time.
- a picture generally means a unit representing one image in a specific time period, and a subpicture/slice/tile is a unit constituting a part of a picture in coding.
- a subpicture/slice/tile may include one or more coding tree units (CTUs).
- CTUs coding tree units
- One picture may be composed of one or more subpictures/slices/tiles.
- One picture may be composed of one or more tile groups.
- One tile group may include one or more tiles.
- a brick may represent a rectangular area of CTU rows within a tile in a picture.
- a tile may be partitioned into multiple bricks, and each brick may consist of one or more CTU rows within the tile.
- a tile that is not partitioned into multiple bricks may also be referred to as a brick.
- a brick scan can represent a specific sequential ordering of CTUs partitioning a picture, the CTUs can be ordered in a CTU raster scan within a brick, and the bricks in a tile can be sequentially ordered in a raster scan of the bricks in the tile. , and tiles in a picture can be successively aligned with a raster scan of the tiles of the picture.
- a subpicture may represent a rectangular region of one or more slices within a picture. That is, a subpicture may include one or more slices that collectively cover a rectangular area of the picture.
- a tile is a rectangular area of a specific tile column and CTUs within a specific tile column.
- the tile column is a rectangular region of CTUs, and the rectangular region has the same height as the height of the picture, and the width may be specified by syntax elements in a picture parameter set.
- the tile row is a rectangular region of CTUs, the rectangular region has a width specified by syntax elements in a picture parameter set, and a height may be equal to the height of the picture.
- a tile scan may represent a specific sequential ordering of CTUs partitioning a picture, the CTUs may be ordered sequentially with a CTU raster scan within a tile, and tiles within a picture may be sequentially ordered with a raster scan of the tiles of the picture.
- a slice may include an integer number of bricks of a picture, and the integer number of bricks may be included in one NAL unit.
- a slice may consist of multiple complete tiles, or may be a contiguous sequence of complete bricks of one tile.
- tile groups and slices can be used interchangeably.
- tile group/tile group header can be called slice/slice header.
- a pixel or pel may mean a minimum 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 pixel value, may represent only a pixel/pixel value of a luma component, or only a pixel/pixel value of a chroma component.
- a unit may represent a basic unit of image processing.
- a unit may include at least one of a specific region of a picture and information related to the region.
- One unit may include one luma block and two chroma (eg cb, cr) blocks. Unit may be used interchangeably with terms such as block or area depending on the case.
- an MxN block may include samples (or a sample array) or a set (or array) of transform coefficients consisting of M columns and N rows.
- a or B may mean “only A”, “only B” or “both A and B”.
- a or B in this document may be interpreted as “A and/or B”.
- A, B or C in this document means “only A”, “only B”, “only C”, or “any and all combinations of A, B and C ( any combination of A, B and C)”.
- a slash (/) or comma (comma) used in this document may mean “and/or”.
- A/B can mean “A and/or B”. Accordingly, “A/B” may mean “only A”, “only B”, or “both A and B”.
- A, B, C may mean “A, B or C”.
- At least one of A and B may mean “only A”, “only B”, or “both A and B”.
- the expression “at least one of A or B” or “at least one of A and/or B” means “at least one It can be interpreted the same as "A and B (at least one of A and B) of
- At least one of A, B and C means “only A”, “only B”, “only C”, or “A, B and C” It may mean “any combination of A, B and C”. Also, “at least one of A, B or C” or “at least one of A, B and/or C” means It can mean “at least one of A, B and C”.
- parentheses used in this document may mean “for example”. Specifically, when it is indicated as “prediction (intra prediction)”, “intra prediction” may be suggested as an example of “prediction”. In other words, “prediction” in this document is not limited to “intra prediction”, and “intra prediction” may be suggested as an example of “prediction”. Also, even when indicated as “prediction (ie, intra prediction)”, “intra prediction” may be suggested as an example of “prediction”.
- FIG. 1 schematically shows an example of a video/image coding system to which this document can be applied.
- a video/image coding system may include a source device and a receiving device.
- the source device may transmit encoded video/image information or data to a receiving device in a file or streaming form through a digital storage medium or network.
- the source device may include a video source, an encoding device, and a transmission unit.
- the receiving device may include a receiving unit, a decoding device, and a renderer.
- the encoding device may be referred to as a video/image encoding device, and the decoding device may be referred to as a video/image decoding device.
- a transmitter may be included in an encoding device.
- a receiver may be included in a decoding device.
- the renderer may include a display unit, and the display unit may be configured as a separate device or an external component.
- a video source may acquire video/images through a process of capturing, synthesizing, or generating video/images.
- a video source may include a video/image capture device and/or a video/image generation device.
- a video/image capture device may include, for example, one or more cameras, a video/image archive containing previously captured video/images, and the like.
- Video/image generating devices may include, for example, computers, tablets and smart phones, etc., and may (electronically) generate video/images.
- a virtual video/image may be generated through a computer or the like, and in this case, a video/image capture process may be replaced by a process of generating related data.
- An encoding device may encode an input video/picture.
- the encoding device may perform a series of procedures such as prediction, transformation, and quantization for compression and coding efficiency.
- Encoded data (encoded video/video information) may be output in the form of a bitstream.
- the transmission unit may transmit the encoded video/image information or data output in the form of a bit stream to the receiving unit of the receiving device in the form of a file or streaming through a digital storage medium or a network.
- Digital storage media may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, and SSD.
- the transmission unit may include an element for generating a media file through a predetermined file format, and may include an element for transmission through a broadcasting/communication network.
- the receiving unit may receive/extract the bitstream and transmit it to a decoding device.
- the decoding device may decode video/images by performing a series of procedures such as inverse quantization, inverse transformation, and prediction corresponding to operations of the encoding device.
- the renderer may render the decoded video/image.
- the rendered video/image may be displayed through the display unit.
- a video encoding device may include a video encoding device.
- the encoding device 200 includes an image partitioner 210, a predictor 220, a residual processor 230, an entropy encoder 240, It may include an adder 250, a filter 260, and a memory 270.
- the prediction unit 220 may include an inter prediction unit 221 and an intra prediction unit 222 .
- the residual processing unit 230 may include a transformer 232 , a quantizer 233 , a dequantizer 234 , and an inverse transformer 235 .
- the residual processing unit 230 may further include a subtractor 231 .
- the adder 250 may be called a reconstructor or a reconstructed block generator.
- the above-described image segmentation unit 210, prediction unit 220, residual processing unit 230, entropy encoding unit 240, adder 250, and filtering unit 260 may be one or more hardware components ( For example, it may be configured by an encoder chipset or processor). Also, the memory 270 may include a decoded picture buffer (DPB) and may be configured by a digital storage medium. The hardware component may further include a memory 270 as an internal/external component.
- DPB decoded picture buffer
- the image divider 210 may divide an input image (or picture or frame) input to the encoding device 200 into one or more processing units.
- the processing unit may be called a coding unit (CU).
- the coding unit may be partitioned recursively from a coding tree unit (CTU) or a largest coding unit (LCU) according to a quad-tree binary-tree ternary-tree (QTBTTT) structure.
- CTU coding tree unit
- LCU largest coding unit
- QTBTTT quad-tree binary-tree ternary-tree
- one coding unit may be divided into a plurality of coding units of deeper depth based on a quad tree structure, a binary tree structure, and/or a ternary structure.
- a quad tree structure may be applied first, and a binary tree structure and/or ternary structure may be applied later.
- a binary tree structure may be applied first.
- a coding procedure according to this document may be performed based on a final coding unit that is not further divided. In this case, based on the coding efficiency according to the image characteristics, the largest coding unit can be directly used as the final coding unit, or the coding unit is recursively divided into coding units of lower depth as needed to obtain an optimal A coding unit having a size of may be used as the final coding unit.
- the coding procedure may include procedures such as prediction, transformation, and reconstruction, which will be described later.
- the processing unit may further include a prediction unit (PU) or a transform unit (TU).
- the prediction unit and the transform unit may be divided or partitioned from the above-described final coding unit.
- the prediction unit may be a unit of sample prediction
- the transform unit may be a unit for deriving transform coefficients and/or a unit for deriving a residual signal from transform coefficients.
- an MxN block may represent a set of samples or transform coefficients consisting of M columns and N rows.
- a sample may generally represent a pixel or a pixel value, may represent only a pixel/pixel value of a luma component, or only a pixel/pixel value of a chroma component.
- a sample may be used as a term corresponding to one picture (or image) to a pixel or a pel.
- the subtraction unit 231 subtracts the prediction signal (predicted block, prediction samples, or prediction sample array) output from the prediction unit 220 from the input image signal (original block, original samples, or original sample array) to obtain a residual
- a signal residual block, residual samples, or residual sample array
- the prediction unit 220 may perform prediction on a block to be processed (hereinafter referred to as a current block) and generate a predicted block including predicted samples of the current block.
- the predictor 220 may determine whether intra prediction or inter prediction is applied in units of current blocks or CUs.
- the prediction unit may generate and transmit various information related to prediction, such as prediction mode information, to the entropy encoding unit 240 .
- Prediction-related information may be encoded in the entropy encoding unit 240 and output in the form of a bitstream.
- the intra predictor 222 may predict a current block by referring to samples in the current picture.
- the referenced samples may be located in the neighborhood of the current block or may be located apart from each other according to a prediction mode.
- 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 mode and a planar mode.
- the directional modes 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 an example, and more or less directional prediction modes may be used according to settings.
- the intra predictor 222 may determine a prediction mode applied to the current block by using a prediction mode applied to neighboring blocks.
- the inter-prediction unit 221 may derive a predicted block for a current block based on a reference block (reference sample array) specified by a motion vector on a reference picture.
- motion information may be predicted in units of blocks, subblocks, or samples based on correlation of motion information between neighboring blocks and the current block.
- the motion information may include a motion vector and a reference picture index.
- the motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information.
- a neighboring block may include a spatial neighboring block present in the current picture and a temporal neighboring block present in the reference picture.
- a reference picture including the reference block and a 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 collocated CU (colCU), and the like, and a reference picture including the temporal neighboring block may be called a collocated picture (colPic).
- the inter-prediction unit 221 constructs a motion information candidate list based on neighboring blocks, and provides information indicating which candidate is used to derive the motion vector and/or reference picture index of the current block. can create Inter prediction may be performed based on various prediction modes. For example, in the case of skip mode and merge mode, the inter prediction unit 221 may use motion information of neighboring blocks as motion information of the current block.
- the residual signal may not be transmitted unlike the merge mode.
- MVP motion vector prediction
- the prediction unit 220 may generate a prediction signal based on various prediction methods described below.
- the predictor may apply intra-prediction or inter-prediction to predict one block, as well as apply intra-prediction and inter-prediction at the same time. This may be called combined inter and intra prediction (CIIP).
- the prediction unit may perform intra block copy (IBC) for block prediction.
- the intra block copy may be used for video/video coding of content such as a game, such as screen content coding (SCC), for example.
- SCC screen content coding
- IBC basically performs prediction within the current picture, but may be performed similarly to inter prediction in that a reference block is derived within the current picture. That is, IBC may use at least one of the inter prediction techniques described in this document.
- the prediction signal generated through the inter predictor 221 and/or the intra predictor 222 may be used to generate a reconstructed signal or a residual signal.
- the transform unit 232 may generate transform coefficients by applying a transform technique to the residual signal.
- the transformation technique may include Discrete Cosine Transform (DCT), Discrete Sine Transform (DST), Graph-Based Transform (GBT), or Conditionally Non-linear Transform (CNT).
- DCT Discrete Cosine Transform
- DST Discrete Sine Transform
- GBT Graph-Based Transform
- CNT Conditionally Non-linear Transform
- GBT means a conversion obtained from the graph when relation information between pixels is expressed as a graph.
- CNT means a transformation obtained based on generating a prediction signal using all previously reconstructed pixels.
- the conversion process may be applied to square pixel blocks having the same size, or may be applied to non-square blocks of variable size.
- the quantization unit 233 quantizes the transform coefficients and transmits them to the entropy encoding unit 240, and the entropy encoding unit 240 may encode the quantized signal (information on the quantized transform coefficients) and output it as a bitstream. there is. Information about the quantized transform coefficients may be referred to as residual information.
- the quantization unit 233 may rearrange block-type quantized transform coefficients into a one-dimensional vector form based on a coefficient scan order, and the quantized transform coefficients based on the one-dimensional vector form quantized transform coefficients. Information about transform coefficients may be generated.
- the entropy encoding unit 240 may perform various encoding methods such as exponential Golomb, context-adaptive variable length coding (CAVLC), and context-adaptive binary arithmetic coding (CABAC).
- the entropy encoding unit 240 may encode together or separately information necessary for video/image reconstruction (eg, values of syntax elements) in addition to quantized transform coefficients.
- Encoded information eg, encoded video/video information
- NAL network abstraction layer
- the video/video 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).
- the video/image information may further include general constraint information.
- Signaled/transmitted information and/or syntax elements described later in this document may be encoded through the above-described encoding procedure and included in the bitstream.
- the bitstream may be transmitted through a network or stored in a digital storage medium.
- the network may include a broadcasting network and/or a communication network
- the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, and SSD.
- a transmission unit (not shown) for transmitting the signal output from the entropy encoding unit 240 and/or a storage unit (not shown) for storing may be configured as internal/external elements of the encoding device 200, or the transmission unit It may also be included in the entropy encoding unit 240.
- the quantized transform coefficients output from the quantization unit 233 may be used to generate a prediction signal.
- a residual signal residual block or residual samples
- the adder 250 may generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed samples, or reconstructed sample array) by adding the reconstructed residual signal to the prediction signal output from the prediction unit 220.
- a predicted block may be used as a reconstruction block.
- the generated reconstruction signal may be used for intra prediction of the next processing target block in the current picture, or may be used for inter prediction of the next picture after filtering as described later.
- LMCS luma mapping with chroma scaling
- the filtering unit 260 may improve subjective/objective picture quality by applying filtering to the reconstructed signal.
- the filtering unit 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 the DPB of the memory 270. can be stored in
- the various filtering methods may include, for example, deblocking filtering, sample adaptive offset (SAO), adaptive loop filter, bilateral filter, and the like.
- the filtering unit 260 may generate various types of filtering-related information and transmit them to the entropy encoding unit 290, as will be described later in the description of each filtering method. Filtering-related information may be encoded in the entropy encoding unit 290 and output in the form of a bit stream.
- the modified reconstructed picture transmitted to the memory 270 may be used as a reference picture in the inter prediction unit 280 .
- the encoding device can avoid prediction mismatch between the encoding device 200 and the decoding device, and can also improve encoding efficiency.
- the DPB of the memory 270 may store the modified reconstructed picture to be used as a reference picture in the inter prediction unit 221 .
- the memory 270 may store motion information of a block in a current picture from which motion information is derived (or encoded) and/or motion information of blocks in a previously reconstructed picture.
- the stored motion information may be transmitted to the inter prediction unit 221 to be used as motion information of a spatial neighboring block or motion information of a temporal neighboring block.
- the memory 270 may store reconstructed samples of reconstructed blocks in the current picture and transfer them to the intra predictor 222 .
- FIG. 3 is a diagram schematically illustrating the configuration of a video/image decoding device to which this document can be applied.
- the decoding device 300 includes an entropy decoder 310, a residual processor 320, a predictor 330, an adder 340, and a filtering unit. (filter, 350) and memory (memoery, 360).
- the prediction unit 330 may include an inter prediction unit 332 and an intra prediction unit 331 .
- the residual processing unit 320 may include a dequantizer 321 and an inverse transformer 321 .
- the above-described entropy decoding unit 310, residual processing unit 320, prediction unit 330, adder 340, and filtering unit 350 may be configured as one hardware component (for example, a decoder chipset or processor) according to an embodiment. ) can be configured.
- the memory 360 may include a decoded picture buffer (DPB) and may be configured by a digital storage medium.
- the hardware component may further include a memory 360 as an internal/external component.
- the decoding device 300 may restore an image corresponding to a process in which the video/image information is processed by the encoding device of FIG. 2 .
- the decoding device 300 may derive units/blocks based on block division related information obtained from the bitstream.
- the decoding device 300 may perform decoding using a processing unit applied in the encoding device.
- a processing unit of decoding may be a coding unit, for example, and a coding unit may be partitioned from a coding tree unit or a largest coding unit along a quad tree structure, a binary tree structure and/or a ternary tree structure.
- One or more transform units may be derived from a coding unit.
- the restored video signal decoded and output through the decoding device 300 may be reproduced through a playback device.
- the decoding device 300 may receive a signal output from the encoding device of FIG. 2 in the form of a bitstream, and the received signal may be decoded through the entropy decoding unit 310 .
- the entropy decoding unit 310 may parse the bitstream to derive information (eg, video/image information) necessary for image restoration (or picture restoration).
- the video/video 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).
- the video/image information may further include general constraint information.
- the decoding device may decode a picture further based on the information about the parameter set and/or the general restriction information.
- Signaled/received information and/or syntax elements described later in this document may be obtained from the bitstream by being decoded through the decoding procedure.
- the entropy decoding unit 310 decodes information in a bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, and values of syntax elements required for image reconstruction and quantized values of residual transform coefficients. can output them.
- the CABAC entropy decoding method receives bins corresponding to each syntax element in a bitstream, and converts syntax element information to be decoded and decoding information of neighboring and decoding object blocks or symbol/bin information decoded in a previous step.
- a symbol corresponding to the value of each syntax element can be generated by determining a context model, predicting the probability of occurrence of a bin according to the determined context model, and performing arithmetic decoding of the bin.
- the CABAC entropy decoding method may update the context model by using information of the decoded symbol/bin for the context model of the next symbol/bin after determining the context model.
- information about prediction is provided to the prediction unit 330, and information about the residual entropy-decoded by the entropy decoding unit 310, that is, quantized transform coefficients and Related parameter information may be input to the inverse quantization unit 321 .
- the decoding device may be referred to as a video/video/picture decoding device, and the decoding device may be divided into an information decoder (video/video/picture information decoder) and a sample decoder (video/video/picture sample decoder).
- the information decoder may include the entropy decoding unit 310, and the sample decoder includes the inverse quantization unit 321, an inverse transform unit 322, a prediction unit 330, an adder 340, a filtering unit ( 350) and at least one of the memory 360.
- the inverse quantization unit 321 may inversely quantize the quantized transform coefficients and output transform coefficients.
- the inverse quantization unit 321 may rearrange the quantized transform coefficients in the form of a 2D block. In this case, the rearrangement may be performed based on a coefficient scanning order performed by the encoding device.
- the inverse quantization unit 321 may perform inverse quantization on quantized transform coefficients using a quantization parameter (eg, quantization step size information) and obtain transform coefficients.
- a quantization parameter eg, quantization step size information
- a residual signal (residual block, residual sample array) is obtained by inverse transforming the transform coefficients.
- the prediction unit may perform prediction on the current block and generate a predicted block including predicted samples of the current block.
- the prediction unit may determine whether intra prediction or inter prediction is applied to the current block based on the information about the prediction output from the entropy decoding unit 310, and may determine a specific intra/inter prediction mode.
- the prediction unit may generate a prediction signal based on various prediction methods described below.
- the predictor may apply intra-prediction or inter-prediction to predict one block, as well as apply intra-prediction and inter-prediction at the same time. This may be called combined inter and intra prediction (CIIP).
- the prediction unit may perform intra block copy (IBC) for block prediction.
- the intra block copy may be used for video/video coding of content such as a game, such as screen content coding (SCC), for example.
- SCC screen content coding
- IBC basically performs prediction within the current picture, but may be performed similarly to inter prediction in that a reference block is derived within the current picture. That is, IBC may use at least one of the inter prediction techniques described in this document.
- the intra predictor 331 may predict a current block by referring to samples in the current picture.
- the referenced samples may be located in the neighborhood of the current block or may be located apart from each other according to a prediction mode.
- prediction modes may include a plurality of non-directional modes and a plurality of directional modes.
- the intra prediction unit 331 may determine a prediction mode applied to the current block by using a prediction mode applied to neighboring blocks.
- the inter prediction unit 332 may derive a predicted block for a current block based on a reference block (reference sample array) specified by a motion vector on a reference picture.
- motion information may be predicted in units of blocks, subblocks, or samples based on correlation of motion information between neighboring blocks and the current block.
- the motion information may include a motion vector and a reference picture index.
- the motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information.
- a neighboring block may include a spatial neighboring block present in the current picture and a temporal neighboring block present in the reference picture.
- the inter predictor 332 may construct a motion information candidate list based on neighboring blocks and derive a motion vector and/or reference picture index of the current block based on the received candidate selection information. Inter prediction may be performed based on various prediction modes, and the prediction information may include information indicating an inter prediction mode for the current block.
- the adder 340 generates 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 prediction unit 330.
- a predicted block may be used as a reconstruction block.
- the adder 340 may be called a restoration unit or a restoration block generation unit.
- the generated reconstruction signal may be used for intra prediction of the next processing target block in the current picture, output after filtering as described later, or may be used for inter prediction of the next picture.
- LMCS luma mapping with chroma scaling
- the filtering unit 350 may improve subjective/objective picture quality by applying filtering to the reconstructed signal.
- the filtering unit 350 may generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and store the modified reconstructed picture in the memory 60, specifically the DPB of the memory 360.
- the various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, and the like.
- a (modified) reconstructed picture stored in the DPB of the memory 360 may be used as a reference picture in the inter prediction unit 332 .
- the memory 360 may store motion information of a block in the current picture from which motion information is derived (or decoded) and/or motion information of blocks in a previously reconstructed picture.
- the stored motion information may be transmitted to the inter prediction unit 332 to be used as motion information of a spatial neighboring block or motion information of a temporal neighboring block.
- the memory 360 may store reconstructed samples of reconstructed blocks in the current picture and transfer them to the intra prediction unit 331 .
- the embodiments described in the prediction unit 330, the inverse quantization unit 321, the inverse transform unit 322, and the filtering unit 350 of the decoding apparatus 300 are respectively the prediction unit of the encoding apparatus 200 ( 220), the inverse quantization unit 234, the inverse transform unit 235, and the filtering unit 260 may be applied in the same or corresponding manner.
- the predicted block includes prediction samples in the spatial domain (or pixel domain).
- the predicted block is identically derived from an encoding device and a decoding device, and the encoding device decodes residual information (residual information) between the original block and the predicted block, rather than the original sample value itself of the original block.
- Video coding efficiency can be increased by signaling to the device.
- the decoding device may derive a residual block including residual samples based on the residual information, generate a reconstructed block including reconstructed samples by combining the residual block and the predicted block, and reconstruct the reconstructed blocks. It is possible to create a reconstruction picture that contains
- the residual information may be generated through transformation and quantization procedures.
- the encoding apparatus derives a residual block between the original block and the predicted block, and derives transform coefficients by performing a transform procedure on residual samples (residual sample array) included in the residual block. And, by performing a quantization procedure on the transform coefficients, quantized transform coefficients may be derived, and related residual information may be signaled to the decoding device (through a bitstream).
- the residual information may include information such as value information of the quantized transform coefficients, location information, transform technique, transform kernel, and quantization parameter.
- the decoding device may perform an inverse quantization/inverse transform procedure based on the residual information and derive residual samples (or residual blocks).
- the decoding device may generate a reconstructed picture based on the predicted block and the residual block.
- the encoding device may also derive a residual block by inverse quantizing/inverse transforming the quantized transform coefficients for reference for inter prediction of a later picture, and generate a reconstructed picture based on the residual block.
- At least one of quantization/inverse quantization and/or transform/inverse transform may be omitted. If the quantization/inverse quantization is omitted, the quantized transform coefficient may be referred to as a transform coefficient. If the transform/inverse transform is omitted, the transform coefficients may be called coefficients or residual coefficients, or may still be called transform coefficients for unity of expression. In addition, whether to skip the transform/inverse transform may be signaled based on transform_skip_flag.
- quantized transform coefficients and transform coefficients may be referred to as transform coefficients and scaled transform coefficients, respectively.
- the residual information may include information on transform coefficient(s), and the information on the transform coefficient(s) may be signaled through residual coding syntax.
- Transform coefficients may be derived based on the residual information (or information about the transform coefficient(s)), and scaled transform coefficients may be derived through inverse transform (scaling) of the transform coefficients.
- Residual samples may be derived based on an inverse transform (transform) of the scaled transform coefficients. This may be applied/expressed in other parts of this document as well.
- a prediction unit of the encoding device/decoding device may derive prediction samples by performing inter prediction on a block-by-block basis.
- Inter prediction may indicate prediction derived in a manner dependent on data elements (e.g. sample values, motion information, etc.) of picture(s) other than the current picture (Inter prediction can be a prediction derived in a manner that is dependent on data elements (e.g., sample values or motion information) of picture(s) other than the current picture).
- a predicted block (prediction sample array) for the current block is derived based on a reference block (reference sample array) specified by a motion vector on a reference picture indicated by a reference picture index.
- motion information of the current block may be predicted in units of blocks, subblocks, or samples based on correlation of motion information between neighboring blocks and the current block.
- the motion information may include a motion vector and a reference picture index.
- the motion information may further include inter prediction type (L0 prediction, L1 prediction, Bi prediction, etc.) information.
- the neighboring block may include a spatial neighboring block present in the current picture and a temporal neighboring block present in the reference picture.
- a reference picture including the reference block and a 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 collocated CU (colCU), and the like, and a reference picture including the temporal neighboring block may be called a collocated picture (colPic).
- a motion information candidate list may be constructed based on neighboring blocks of the current block, and a flag indicating which candidate is selected (used) to derive the motion vector and/or reference picture index of the current block.
- index information may be signaled.
- Inter prediction may be performed based on various prediction modes. For example, in the case of skip mode and merge mode, motion information of a current block may be the same as motion information of a selected neighboring block. In the case of the skip mode, the residual signal may not be transmitted unlike the merge mode.
- a motion vector of a selected neighboring block is used as a motion vector predictor, and a motion vector difference may be signaled.
- the motion vector of the current block can be derived using the sum of the motion vector predictor and the motion vector difference.
- the motion information may include L0 motion information and/or L1 motion information according to an inter prediction type (L0 prediction, L1 prediction, Bi prediction, etc.).
- a motion vector in the L0 direction may be referred to as an L0 motion vector or MVL0
- a motion vector in the L1 direction may be referred to as an L1 motion vector or MVL1.
- Prediction based on the L0 motion vector may be called L0 prediction
- prediction based on the L1 motion vector may be called L1 prediction
- prediction based on both the L0 motion vector and the L1 motion vector may be called Bi prediction.
- the L0 motion vector may indicate a motion vector related to the reference picture list L0 (L0), and the L1 motion vector may indicate a motion vector related to the reference picture list L1 (L1).
- the reference picture list L0 may include pictures prior to the current picture in output order as reference pictures, and the reference picture list L1 may include pictures subsequent to the current picture in output order.
- the previous pictures may be referred to as forward (reference) pictures, and the subsequent pictures may be referred to as backward (reference) pictures.
- the reference picture list L0 may further include as reference pictures pictures subsequent to the current picture in output order. In this case, the previous pictures in the reference picture list L0 may be indexed first, and the later pictures may be indexed next.
- the reference picture list L1 may further include, as reference pictures, pictures previous to the current picture in output order.
- the subsequent pictures in the reference picture list 1 may be indexed first, and the previous pictures may be indexed next.
- the output order may correspond to a picture order count (POC) order.
- POC picture order count
- the coded video/image includes a video coding layer (VCL) that handles video/image decoding and itself, a subsystem that transmits and stores coded information, and between the VCL and the subsystem. It exists in the network and is divided into NAL (network abstraction layer) responsible for network adaptation function.
- VCL video coding layer
- NAL network abstraction layer
- VCL data including compressed video data is generated, or Picture Parameter Set (PPS), Sequence Parameter Set (SPS), and Video Parameter Set (Video Parameter Set: A parameter set including information such as VPS) or a Supplemental Enhancement Information (SEI) message additionally necessary for a video decoding process may be generated.
- PPS Picture Parameter Set
- SPS Sequence Parameter Set
- SEI Supplemental Enhancement Information
- a NAL unit may be generated by adding header information (NAL unit header) to a raw byte sequence payload (RBSP) generated in VCL.
- RBSP refers to slice data, parameter set, SEI message, etc. generated in the VCL.
- the NAL unit header may include NAL unit type information specified according to RBSP data included in the corresponding NAL unit.
- NAL units may be classified into VCL NAL units and non-VCL NAL units according to RBSPs generated in VCL.
- a VCL NAL unit may refer to a NAL unit including information about an image (slice data)
- a non-VCL NAL unit may refer to a NAL unit including information (parameter set or SEI message) necessary for decoding an image. can mean
- VCL NAL unit and non-VCL NAL unit may be transmitted through a network by attaching header information according to the data standard of the subsystem.
- the NAL unit may be transformed into a data format of a predetermined standard such as an H.266/VVC file format, a real-time transport protocol (RTP), or a transport stream (TS) and transmitted through various networks.
- a predetermined standard such as an H.266/VVC file format, a real-time transport protocol (RTP), or a transport stream (TS)
- the NAL unit type of the NAL unit may be specified according to the RBSP data structure included in the NAL unit, and information on such a NAL unit type may be stored in a NAL unit header and signaled.
- the NAL unit may be largely classified into a VCL NAL unit type and a non-VCL NAL unit type according to whether or not the NAL unit includes information about an image (slice data).
- VCL NAL unit types can be classified according to the nature and type of pictures included in the VCL NAL unit, and non-VCL NAL unit types can be classified according to the type of parameter set.
- NAL unit type specified according to the type of parameter set included in the non-VCL NAL unit type.
- NAL unit type for NAL unit including APS
- NAL unit Type for NAL unit including VPS
- NAL unit type for NAL unit including SPS
- NAL unit type for NAL unit including PPS
- NAL unit type for NAL unit including DCI
- NAL unit type for NAL unit including PH
- NAL unit types have syntax information for the NAL unit type, and the syntax information may be stored in a NAL unit header and signaled.
- the syntax information may be nal_unit_type, and NAL unit types may be specified with a nal_unit_type value.
- one picture may include a plurality of slices, and one slice may include a slice header and slice data.
- one picture header may be further added to a plurality of slices (slice header and slice data set) in one picture.
- the picture header (picture header syntax) may include information/parameters commonly applicable to the pictures.
- slices may be mixed or replaced with tile groups.
- slice headers may be mixed or replaced with type group headers.
- the slice header may include information/parameters commonly applicable to the slice.
- the APS APS Syntax
- PPS PPS Syntax
- the SPS SPS Syntax
- the VPS VPS syntax
- the DCI DCI syntax
- the DCI may include information/parameters commonly applicable to overall video.
- the DCI may include information/parameters related to decoding capability.
- high level syntax HLS may include at least one of the APS syntax, PPS syntax, SPS syntax, VPS syntax, DCI syntax, picture header syntax, and slice header syntax.
- video/video information encoded from an encoding device to a decoding device and signaled in the form of a bitstream includes not only intra-picture partitioning related information, intra/inter prediction information, residual information, in-loop filtering information, and the like, but also Information included in a slice header, information included in the picture header, information included in the APS, information included in the PPS, information included in an SPS, information included in a VPS, and/or information included in a DCI can do. Also, the image/video information may further include NAL unit header information.
- Intra prediction refers to prediction that generates prediction samples for a current block based on reference samples outside the current block in a picture including the current block (hereinafter referred to as the current picture).
- reference samples outside the current block may refer to samples positioned around the current block.
- the neighboring reference samples of the current block are samples adjacent to the left boundary of the current block and 2xnH neighboring to the bottom-left of the current block. samples, a total of 2xnW samples adjacent to the top boundary and top-right neighbors of the current block, including 1 sample adjacent to the top-left of the current block can do.
- the neighboring reference samples of the current block may include a plurality of columns of upper neighboring samples and a plurality of rows of left neighboring samples.
- the neighboring reference samples of the current block are a total of nH samples adjacent to the right boundary of the current block of size nWxnH, a total of nW samples adjacent to the bottom boundary of the current block, and the lower right side of the current block ( bottom-right) may include one neighboring sample.
- the decoding device may configure neighboring reference samples to be used for prediction by substituting unavailable samples with available samples.
- neighboring reference samples to be used for prediction may be configured through interpolation of available samples.
- a prediction sample may be derived based on the average or interpolation of the neighboring reference samples of the current block, and (ii) prediction among the neighboring reference samples of the current block
- a prediction sample may be derived based on a reference sample existing in a specific (prediction) direction with respect to the sample. Case (i) may be applied when the intra prediction mode is a non-directional mode or non-angular mode, and case (ii) may be applied when the intra prediction mode is a directional mode or an angular mode.
- Prediction samples may be generated.
- LIP linear interpolation intra prediction
- chroma prediction samples may be generated based on luma samples using a linear model. This case may be called LM mode.
- a temporary prediction sample of the current block is derived based on the filtered neighboring reference samples, and at least one reference sample derived according to the intra prediction mode among existing neighboring reference samples, that is, unfiltered neighboring reference samples, and
- the prediction sample of the current block may be derived by performing a weighted sum of the temporary prediction samples.
- the above case may be called position dependent intra prediction (PDPC).
- a reference sample line with the highest prediction accuracy is selected among multiple reference sample lines adjacent to the current block, and a prediction sample is derived using a reference sample located in a prediction direction in the corresponding line, and at this time, the used reference sample line is decoded.
- Intra prediction encoding may be performed by instructing (signaling) a device. The above case may be called multi-reference line (MRL) intra prediction or MRL-based intra prediction.
- MRL multi-reference line
- intra prediction may be performed based on the same intra prediction mode by dividing the current block into vertical or horizontal sub-partitions, but neighboring reference samples may be derived and used in units of sub-partitions. That is, in this case, the intra-prediction mode for the current block is equally applied to the sub-partitions, but intra-prediction performance can be improved in some cases by deriving and using neighboring reference samples in units of sub-partitions.
- This prediction method may be called intra sub-partitions (ISP) or ISP-based intra prediction.
- the aforementioned intra prediction methods may be referred to as an intra prediction type to be distinguished from an intra prediction mode.
- the intra prediction type may be called various terms such as an intra prediction technique or an additional intra prediction mode.
- the intra prediction type (or additional intra prediction mode, etc.) may include at least one of the aforementioned LIP, PDPC, MRL, and ISP.
- a general intra prediction method excluding specific intra prediction types such as LIP, PDPC, MRL, and ISP may be referred to as a normal intra prediction type.
- the normal intra prediction type may be generally applied when the specific intra prediction type as described above is not applied, and prediction may be performed based on the aforementioned intra prediction mode. Meanwhile, post-processing filtering may be performed on the derived prediction sample as needed.
- MIP matrix based intra prediction
- Affine linear weighted intra prediction Affine linear weighted intra prediction
- MWIP Matrix weighted intra prediction
- Prediction samples for the current block may be derived by further performing a horizontal/vertical interpolation procedure.
- Intra prediction modes used for the MIP may be configured differently from intra prediction modes used in the aforementioned LIP, PDPC, MRL, and ISP intra prediction or normal intra prediction.
- the intra prediction mode for MIP may be called "affine linear weighted intra prediction mode" or matrix-based intra prediction mode.
- a matrix and an offset used in matrix vector multiplication may be set differently according to the intra prediction mode for the MIP.
- the matrix may be referred to as an (affine) weight matrix
- the offset may be referred to as an (affine) offset vector or an (affine) bias vector.
- intra prediction mode for MIP may be called MIP intra prediction mode, linear weighted intra prediction mode, matrix weighted intra prediction mode, or matrix based intra prediction mode. A specific MIP method will be described later.
- FIG. 5 shows an example of a video encoding method based on schematic intra prediction to which embodiments of this document are applicable
- FIG. 6 schematically shows an intra prediction unit in an encoding device.
- the intra prediction unit in the encoding apparatus of FIG. 6 may be applied to the same or corresponding to the intra prediction unit 222 of the above-described encoding apparatus 200 of FIG. 2 .
- S500 may be performed by the intra prediction unit 222 of the encoding device, and S510 may be performed by the residual processing unit 230 of the encoding device. Specifically, S510 may be performed by the subtraction unit 231 of the encoding device.
- prediction information may be derived by the intra prediction unit 222 and encoded by the entropy encoding unit 240.
- residual information may be derived by the residual processing unit 230 and encoded by the entropy encoding unit 240.
- the residual information is information about residual samples.
- the residual information may include information about quantized transform coefficients of residual samples.
- the residual samples may be derived as transform coefficients through a transform unit of the encoding apparatus, and the transform coefficients may be derived as quantized transform coefficients through a quantization unit.
- Information about quantized transform coefficients may be encoded in the entropy encoding unit 240 through a residual coding procedure.
- the encoding device performs intra prediction on the current block (S500).
- the encoding device may derive an intra prediction mode/type for the current block, derive neighboring reference samples of the current block, and generate prediction samples within the current block based on the intra prediction mode/type and the neighboring reference samples.
- intra prediction mode/type determination, neighboring reference samples derivation, and prediction samples generation procedures may be performed simultaneously, or one procedure may be performed before another procedure.
- the intra prediction unit 222 of the encoding device may include an intra prediction mode/type determination unit 222-1, a reference sample derivation unit 222-2, and a predicted sample derivation unit 222-3.
- the intra prediction mode/type determination unit 222-1 determines the intra prediction mode/type for the current block
- the reference sample derivation unit 222-2 derives neighboring reference samples of the current block
- the prediction sample The derivation unit 222-3 may derive prediction samples of the current block.
- the intra prediction unit 222 may further include a prediction sample filtering unit (not shown).
- the encoding device may determine a mode/type applied to the current block among a plurality of intra prediction modes/types.
- the encoding device may compare RD costs for intra prediction modes/types and determine an optimal intra prediction mode/type for the current block.
- the encoding device may perform a prediction sample filtering procedure.
- Prediction sample filtering may be referred to as post filtering. Some or all of the prediction samples may be filtered through the prediction sample filtering procedure. In some cases, the prediction sample filtering procedure may be omitted.
- the encoding device generates residual samples for the current block based on the (filtered) prediction samples (S510).
- the encoding device may compare prediction samples from original samples of the current block based on phase and derive residual samples.
- the encoding device may encode image information including intra prediction information (prediction information) and residual information about residual samples (S520). Prediction information may include intra prediction mode information and intra prediction type information. Residual information may include residual coding syntax. The encoding device may transform/quantize the residual samples to derive quantized transform coefficients. The residual information may include information about the quantized transform coefficients.
- the encoding device may output encoded image information in the form of a bitstream.
- the output bitstream may be delivered to a decoding device through a storage medium or network.
- the encoding device may generate a reconstructed picture (including reconstructed samples and a reconstructed block).
- the encoding apparatus may derive (modified) residual samples by inverse quantizing/inverse transforming the quantized transform coefficients again.
- the reason for performing inverse quantization/inverse transformation after transforming/quantizing the residual samples in this way is to derive the same residual samples as the residual samples derived from the decoding apparatus as described above.
- the encoding device may generate a reconstructed block including reconstructed samples for the current block based on prediction samples and (modified) residual samples.
- a reconstructed picture for a current picture may be generated based on the reconstructed block.
- an in-loop filtering procedure or the like may be further applied to the reconstructed picture.
- FIG. 7 shows an example of an image decoding method based on schematic intra prediction to which embodiments of the present document are applicable
- FIG. 8 schematically shows an intra prediction unit in a decoding device.
- the intra prediction unit in the decoding device of FIG. 8 may be applied to the same or corresponding to the above-described intra prediction unit 331 of the decoding device 300 of FIG. 2 .
- the decoding device may perform an operation corresponding to the operation performed by the above-described encoding device.
- S700 to S720 may be performed by the intra prediction unit 331 of the decoding device, and the prediction information of S700 and the residual information of S730 may be obtained from the bitstream by the entropy decoding unit 310 of the decoding device.
- the residual processing unit 320 of the decoding device may derive residual samples for the current block based on the residual information.
- the inverse quantization unit 321 of the residual processing unit 320 derives transform coefficients by performing inverse quantization based on the quantized transform coefficients derived based on the residual information
- the inverse transform unit of the residual processing unit ( 322) may derive residual samples for the current block by performing an inverse transform on the transform coefficients.
- S740 may be performed by the adder 340 or the restorer of the decoding device.
- the decoding device may derive an intra prediction mode/type for the current block based on the received prediction information (intra prediction mode/type information) (S700).
- the decoding device may derive neighboring reference samples of the current block (S710).
- the decoding device generates prediction samples within the current block based on the intra prediction mode/type and neighboring reference samples (S720).
- the decoding device may perform a prediction sample filtering procedure. Prediction sample filtering may be referred to as post filtering. Some or all of the prediction samples may be filtered through the prediction sample filtering procedure. In some cases, the prediction sample filtering procedure may be omitted.
- the decoding device generates residual samples for the current block based on the received residual information (S730).
- the decoding device may generate reconstructed samples for the current block based on the prediction samples and residual samples, and derive a reconstructed block including the reconstructed samples (S740).
- a reconstructed picture for a current picture may be generated based on the reconstructed block.
- an in-loop filtering procedure or the like may be further applied to the reconstructed picture.
- the intra prediction unit 331 of the decoding device may include an intra prediction mode/type determination unit 331-1, a reference sample derivation unit 331-2, and a prediction sample derivation unit 231-3.
- the intra prediction mode/type determination unit 331-1 determines the intra prediction mode/type of the current block based on the intra prediction mode/type information obtained from the entropy decoding unit 310, and the reference sample derivation unit 331 -2) may derive neighboring reference samples of the current block, and the prediction sample derivation unit 331-3 may derive prediction samples of the current block.
- the intra prediction unit 331 may further include a prediction sample filter unit (not shown).
- the intra prediction mode information may include, for example, flag information (ex. intra_luma_mpm_flag) indicating whether the most probable mode (MPM) or remaining mode is applied to the current block.
- the prediction mode information may further include index information (ex. intra_luma_mpm_idx) indicating one of intra prediction mode candidates (MPM candidates).
- Intra prediction mode candidates may be composed of an MPM candidate list or an MPM list.
- the intra prediction mode information may further include remaining mode information (ex. intra_luma_mpm_remainder) indicating one of intra prediction modes other than intra prediction mode candidates (MPM candidates). there is.
- the decoding device may determine the intra prediction mode of the current block based on the intra prediction mode information. At this time, a separate MPM list may be configured for the aforementioned MIP.
- intra prediction type information may be implemented in various forms.
- intra prediction type information may include intra prediction type index information indicating one of intra prediction types.
- intra prediction type information includes reference sample line information (ex. intra_luma_ref_idx) indicating whether MRL is applied to the current block and whether the MRL is applied, which reference sample line is used, and whether ISP is applied to the current block.
- ISP flag information indicating (ex. intra_subpartitions_mode_flag), ISP type information indicating the split type of subpartitions when ISP is applied (ex. intra_subpartitions_split_flag), flag information indicating whether PDCP is applied or not, or flag indicating whether LIP is applied At least one of the information may be included.
- the intra prediction type information may include a MIP flag indicating whether MIP is applied to the current block.
- the aforementioned intra prediction mode information and/or intra prediction type information may be encoded/decoded through the coding method described in this document.
- the aforementioned intra prediction mode information and/or intra prediction type information may be encoded/decoded through entropy coding (eg CABAC, CAVLC) coding based on truncated (rice) binary code.
- entropy coding eg CABAC, CAVLC
- FIG. 9 exemplarily illustrates a schematic intra prediction procedure to which embodiments of the present document are applicable.
- the intra prediction procedure may include determining an intra prediction mode/type, deriving neighboring reference samples, and performing intra prediction (generating prediction samples).
- the intra prediction procedure may be performed in the encoding device and the decoding device as described above.
- a coding device in this document may include an encoding device and/or a decoding device.
- the coding device may determine an intra prediction mode/type (S900).
- the coding device may determine an intra prediction mode/type applied to the current block among various intra prediction modes/types described above and generate prediction-related information.
- the prediction related information may include intra prediction mode information indicating an intra prediction mode applied to the current block and/or intra prediction type information indicating an intra prediction type applied to the current block.
- the decoding device may determine an intra prediction mode/type applied to the current block based on the prediction related information.
- the intra prediction mode information may include at least one of MPM flag information, non-planner flag information, MPM index information, and/or remaining mode (MPM reminder) information.
- the intra prediction type information includes reference sample line (MRL index) information (ex. intra_luma_ref_idx), ISP flag information (ex. intra_subpartitions_mode_flag), ISP type information (ex. intra_subpartitions_split_flag), and flag information indicating whether PDCP is applied or not. , may include flag information indicating whether LIP is applied and/or MIP flag information.
- the intra prediction mode applied to the current block may be determined using the intra prediction modes of neighboring blocks.
- the coding device may select one of MPM candidates in a most probable mode (MPM) list derived based on an intra prediction mode and/or additional candidate modes of a neighboring block (eg, a left and/or upper neighboring block) of a current block. may be selected based on the received MPM index, or one of the remaining intra prediction modes not included in the MPM candidates (and planner mode) may be selected based on MPM reminder information (remaining intra prediction mode information).
- MPM list may or may not include a planner mode as a candidate.
- the MPM list may have 6 candidates, and if the MPM list does not include the planner mode as a candidate, the mpm list may have 5 candidates.
- a non-planar flag (ex. intra_luma_not_planar_flag) indicating whether the intra prediction mode of the current block is not a planar mode may be signaled.
- the MPM flag may be signaled first, and the MPM index and non-planner flag may be signaled when the value of the MPM flag is 1.
- the MPM index may be signaled when the value of the non-planner flag is 1.
- the reason why the MPM list is configured not to include the planar mode as a candidate is that the planar mode is not MPM m, rather than that the planar mode is always considered as the MPM. This is to check whether it is a mode first.
- whether the intra prediction mode applied to the current block is among MPM candidates (and planner mode) or remaining mode may be indicated based on an MPM flag (ex. intra_luma_mpm_flag).
- a value of 1 of the MPM flag may indicate that the intra prediction mode for the current block is within MPM candidates (and planner mode), and a value of 0 of the MPM flag may indicate that the intra prediction mode for the current block is within MPM candidates (and planner mode). ) can indicate that it is not within.
- the not planar flag (ex. intra_luma_not_planar_flag) value 0 may indicate that the intra prediction mode of the current block is the planar mode
- the not planar flag value 1 may indicate that the intra prediction mode of the current block is not the planar mode.
- the MPM index may be signaled in the form of an mpm_idx or intra_luma_mpm_idx element, and the remaining intra prediction mode information may be signaled in the form of a rem_intra_luma_pred_mode or intra_luma_mpm_remainder syntax element.
- the remaining intra prediction mode information may indicate one of all intra prediction modes by indexing remaining intra prediction modes not included in the MPM candidates (and planner mode) in order of prediction mode numbers.
- the intra prediction mode may be an intra prediction mode for a luma component (sample).
- the intra prediction mode information includes at least one of the MPM flag (ex. intra_luma_mpm_flag), the not planar flag (ex.
- intra_luma_not_planar_flag the MPM index
- the MPM index can include various terms such as MPM candidate list and candModeList.
- a separate mpm flag (ex. intra_mip_mpm_flag), mpm index (ex. intra_mip_mpm_idx), and remaining intra prediction mode information (ex. intra_mip_mpm_remainder) for MIP may be signaled, and the not planar flag may not be signaled.
- the encoder can use the intra-prediction mode of the neighboring block to encode the intra-prediction mode of the current block.
- a most probable modes (MPM) list for a current block of a coding device may be configured.
- the MPM list may also be referred to as an MPM candidate list.
- the MPM may mean a mode used to improve coding efficiency by considering the similarity between the current block and neighboring blocks during intra prediction mode coding.
- the MPM list may include the planner mode or may exclude the planner mode. For example, when the MPM list includes a planner mode, the number of candidates in the MPM list may be 6. And, when the MPM list does not include the planner mode, the number of candidates in the MPM list may be five.
- the encoding device may perform prediction based on various intra prediction modes, and may determine an optimal intra prediction mode based on rate-distortion optimization (RDO) based thereon.
- the encoding apparatus may determine the optimal intra prediction mode using only the MPM candidates and planner mode configured in the MPM list, or may further use the remaining intra prediction modes as well as the MPM candidates and planner mode configured in the MPM list.
- the optimal intra prediction mode may be determined. Specifically, for example, if the intra prediction type of the current block is a specific type (eg, LIP, MRL, or ISP) rather than a normal intra prediction type, the encoding device only selects the MPM candidates and the planner mode of the current block.
- the optimal intra prediction mode may be determined by considering intra prediction mode candidates for .
- the intra prediction mode for the current block may be determined only from among the MPM candidates and the planner mode, and in this case, the mpm flag may not be encoded/signaled.
- the decoding device may estimate that the mpm flag is 1 without separately signaling the mpm flag.
- the encoding device when the intra prediction mode of the current block is not a planner mode and is one of MPM candidates in the MPM list, the encoding device generates an mpm index (mpm idx) indicating one of the MPM candidates. If the intra prediction mode of the current block is not included in the MPM list, the MPM list indicating the same mode as the intra prediction mode of the current block among the remaining intra prediction modes not included in the MPM list (and planner mode) Generating mainder information (remaining intra prediction mode information).
- the MPM reminder information may include, for example, an intra_luma_mpm_remainder syntax element.
- the decoding device obtains intra prediction mode information from the bitstream.
- the intra prediction mode information may include at least one of an MPM flag, a non-planner flag, an MPM index, and MPM reminder information (remaining intra prediction mode information).
- the decoding device may construct an MPM list.
- the MPM list is configured identically to the MPM list configured in the encoding device. That is, the MPM list may include intra prediction modes of neighboring blocks or may further include specific intra prediction modes according to a predetermined method.
- the decoding device may determine the intra prediction mode of the current block based on the MPM list and the intra prediction mode information. For example, when the value of the MPM flag is 1, the decoding device derives a planar mode as an intra prediction mode of the current block (based on a not planar flag) or selects a candidate indicated by the MPM index from among MPM candidates in the MPM list. It can be derived as an intra prediction mode of the current block.
- the MPM candidates may indicate only candidates included in the MPM list, or may include not only candidates included in the MPM list but also a planner mode that may be applied when the value of the MPM flag is 1.
- the decoding device when the value of the MPM flag is 0, the decoding device indicates the remaining intra prediction mode information (which may be called mpm remainder information) among the remaining intra prediction modes not included in the MPM list and the planner mode.
- An intra prediction mode may be derived as an intra prediction mode of the current block.
- the intra prediction type of the current block is a specific type (eg, LIP, MRL, or ISP)
- the decoding device may perform the planner mode or the MPM list without parsing/decoding/checking the MPM flag.
- a candidate indicated by the MPM flag may be derived as an intra prediction mode of the current block.
- the coding device derives neighboring reference samples of the current block (S910).
- neighboring reference samples to be used for intra prediction of the current block may be derived.
- the neighboring reference samples of the current block include a sample adjacent to the left boundary of the current block of size nWxnH, a total of 2xnH samples adjacent to the bottom-left, and a sample adjacent to the top boundary of the current block. and a total of 2 ⁇ nW samples neighboring the top-right and 1 sample neighboring the top-left of the current block.
- the neighboring reference samples of the current block may include a plurality of rows of upper neighboring samples and a plurality of rows of left neighboring samples.
- the neighboring reference samples of the current block include a total of nH samples adjacent to the right boundary of the current block, a total of nW samples adjacent to the bottom boundary of the current block, and the lower right side of the current block of size nWxnH. (bottom-right) may include one neighboring sample.
- the neighboring reference samples may be located on lines 1 to 2 instead of line 0 adjacent to the current block on the left/upper side. In this case, the number of neighboring reference samples may be further increased. Meanwhile, when ISP is applied, the neighboring reference samples may be derived in units of sub-partitions.
- the coding device derives prediction samples by performing intra prediction on the current block (S920).
- the coding device may derive the prediction samples based on the intra prediction mode/type and the neighboring samples.
- the coding device may derive a reference sample according to an intra prediction mode of the current block among neighboring reference samples of the current block, and may derive a prediction sample of the current block based on the reference sample.
- an intra prediction mode applied to the current block may be determined using intra prediction modes of neighboring blocks.
- the decoding device receives one of mpm candidates in a most probable mode (mpm) list derived based on an intra prediction mode of a neighboring block (eg, a left and/or an upper neighboring block) of a current block and additional candidate modes.
- the selected mpm index may be selected, or one of the remaining intra prediction modes not included in the mpm candidates (and planner mode) may be selected based on the remaining intra prediction mode information.
- the mpm list can be configured to include or not include planner modes as candidates.
- the mpm list may have 6 candidates, and if the mpm list does not include the planner mode as a candidate, the mpm list may have 5 candidates.
- a non-planar flag (ex. intra_luma_not_planar_flag) indicating whether the intra prediction mode of the current block is not a planar mode may be signaled.
- the mpm flag may be signaled first, and the mpm index and non-planner flag may be signaled when the value of the mpm flag is 1. Also, the mpm index may be signaled when the value of the non-planner flag is 1.
- the fact that the mpm list is configured not to include the planar mode as a candidate is not that the planar mode is not mpm, but that the planar mode is always considered as mpm, so a not planar flag is first signaled to determine whether the planar mode is the planar mode. to check first.
- mpm flag (ex. intra_luma_mpm_flag)
- a value of mpm flag 1 may indicate that the intra prediction mode for the current block is within mpm candidates (and planner mode)
- a value of mpm flag 0 is that the intra prediction mode for the current block is within mpm candidates (and planner mode).
- a not planar flag (ex. intra_luma_not_planar_flag) value of 0 may indicate that the intra prediction mode of the current block is the planar mode
- a not planar flag value of 1 may indicate that the intra prediction mode of the current block is not the planar mode.
- the mpm index may be signaled in the form of an mpm_idx or intra_luma_mpm_idx syntax element
- the remaining intra prediction mode information may be signaled in the form of a rem_intra_luma_pred_mode or intra_luma_mpm_remainder syntax element.
- the remaining intra prediction mode information may indicate one of all intra prediction modes by indexing remaining intra prediction modes not included in mpm candidates (and planner mode) in order of prediction mode number.
- the intra prediction mode may be an intra prediction mode for a luma component (sample).
- intra prediction mode information includes at least one of mpm flag (ex. intra_luma_mpm_flag), not planar flag (ex.
- intra_luma_not_planar_flag intra_luma_not_planar_flag
- mpm index ex. mpm_idx or intra_luma_mpm_idx
- remaining intra prediction mode information rem_intra_luma_pred_mode or intra_luma_mpm_remainder.
- the mpm list may be called various terms such as an mpm candidate list, a candidate mode list (candModeList), and a candidate intra prediction mode list.
- FIG 10 illustrates an example of intra prediction modes to which embodiments of the present document are applicable.
- an intra-prediction mode with horizontal directionality and an intra-prediction mode with vertical directionality can be distinguished.
- H and V in FIG. 8 mean a horizontal direction and a vertical direction, respectively, and numbers from -32 to 32 represent displacements of 1/32 units on a sample grid position.
- Intra prediction modes 2 to 33 have a horizontal direction
- intra prediction modes 34 to 66 have a vertical direction.
- 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 is a downward-left diagonal intra prediction mode,
- the 34th intra prediction mode may be referred to as an upper-left diagonal intra prediction mode, and the 66th intra prediction mode may be referred to as an upper-left diagonal intra prediction mode.
- DIMD Decoder Side Intra Mode Derivation
- DIMD modes include Decoder Side Intra Mode Derivation mode, Decoder Intra Mode Derivation mode, Decoder Side Intra Prediction Mode, and Decoder Intra Mode Prediction mode. (Decoder Intra Prediction Mode).
- the DIMD mode may be referred to as a DIMD intra mode.
- the DIMD mode may be referred to as a DIMD intra prediction mode or a DIMD prediction mode.
- intra mode may be referred to as intra prediction mode in this document.
- intra mode and intra prediction mode may be used interchangeably.
- DIMD decoder side intra mode derivation
- the DIMD method based on the Histogram of Gradient has been included in the ECM software since ECM 1.0.
- two intra modes may be derived from neighboring samples reconstructed based on HoG.
- the HoG analysis may generate two intra modes corresponding to first and second highest cumulative histogram amplitudes.
- the final prediction may be calculated by blending predictions of the two intra mode and planner mode. For example, a weight of 1/3 may be assigned to the planner prediction, and weights of the other 2/3 may be divided and assigned to the first mode and the second mode in proportion to the HoG amplitude. That is, a weight of 2/3 may be assigned in proportion to the HoG amplitude to the first mode corresponding to the first highest histogram amplitude and the second mode corresponding to the second highest histogram amplitude.
- FIG. 11 shows a restored pixel template as an example.
- a DIMD mode for a current CU may be derived using a reconstructed pixel template.
- the DIMD mode may be derived by calculating direction information between reconstructed pixels assuming that the angular direction of the template is highly correlated with the direction of the current block.
- the amount of gradients can be used to measure the DIMD mode.
- the amount of the gradient may be represented by a histogram.
- the DIMD mode can be estimated based on intensity and orientation that can be calculated from adjacent reconstructed pixels of the current block.
- the intensity may be indicated by G, and the direction may be indicated by O.
- the intensity may mean amplitude.
- the Sobel filter may also be called a Sobel operator, and is an efficient filter for edge detection.
- Sobel filters there are two types of Sobel filters available: a Sobel filter for vertical direction and a Sobel filter for horizontal direction.
- the Sobel filters use the window centered at the current pixel to compute the resulting amplitudes G x and G y , so that x (i.e., Mx) and It can be applied in the y (ie, My) direction.
- the M x and the M y can be calculated through the following equation.
- the amplitude and the direction can be calculated through the following equation.
- the direction of the gradient may be converted into an intra-angular prediction mode.
- the directional intra modes to be considered may be 67 modes as in VVC.
- the DIMD process may be performed before the MPM list is constructed.
- an intra mode derived from a primary of a DIMD block may be stored together with the block and may be used to construct an MPM list of neighboring blocks.
- the DIMD flag may be signaled before all other intra prediction-related syntaxes.
- the DIMD flag is true, template matching (TM), MIP, multiple reference line (MRL), ISP, etc., and other syntax elements related to luma intra prediction modes may be skipped.
- TM template matching
- MIP multiple reference line
- ISP ISP
- other syntax elements related to luma intra prediction modes may be skipped.
- the value of the DIMD flag is 1, syntaxes for TM, MIP, MRL, ISP, and luma intra prediction modes may not be signaled.
- combination with prediction methods such as MIP, MRL, ISP, and TM may not be allowed.
- TDD template-based intra mode derivation
- the TIMD mode may be called a template-based intra mode derivation mode, a template intra mode derivation mode, or the like.
- the TIMD mode may be referred to as a TIMD intra mode.
- the TIMD mode may be called a TIMD intra prediction mode or a TIMD prediction mode.
- the intra mode of the current CU may be derived using neighboring pixels previously decoded by the decoder. For example, predictive samples for the neighboring template are derived based on neighboring reference samples of the neighboring template of the current block (or current CU), and the derived prediction samples of the neighboring template are compared with the reconstruction sample of the neighboring template.
- the intra mode of the current block (or current CU) can be derived. Specifically, after deriving a sum of absolute transformed difference (SATD) between a prediction sample derived based on neighboring reference samples of a neighboring template and a reconstructed sample of the neighboring template, the mode having the minimum SATD is selected as the intra mode of the current block.
- SATD sum of absolute transformed difference
- prediction samples of a template may be derived based on peripheral reference samples located outside the template, that is, a reference of the template. After deriving the SATD between the prediction sample of the derived template and the reconstruction sample of the template already derived in the restoration process, a mode having the minimum SATD may be selected as an intra mode of the current block. Since the template is an area that has already been restored in decoding order, this method can be used.
- TIMD is a decoder-side intra prediction mode derivation method that uses a template-based method in both the encoder and decoder. Similar to the above DIMD, the TIMD intra mode is not signaled to the decoder. For example, to generate prediction samples of a template, reference samples of a template for each candidate mode may be generated. The corresponding cost may be calculated as Sum of Absolute Transformed Differences (SATD) between prediction samples and reconstruction samples of the template. In this case, an intra prediction mode corresponding to the minimum cost among costs calculated by the SATD may be selected as the TIMD mode. In this case, the number of intra modes may be 67. Also, the number of intra modes can be extended to 131 prediction modes.
- SSD Sum of Absolute Transformed Differences
- the basic structure of TIMD can be extended to incorporate a fusion mode.
- the two modes having the smallest SATD cost may be fused together with a weight to be used as weighted intra prediction for the current CU.
- the cost of the selected two modes is compared to a threshold value, and the cost factor 2 in the test can be applied as shown in the equation below.
- the one mode may be mode 1.
- weights for the modes can be calculated from the SATD cost through the following equation.
- costMode 1 may be the SATD cost of mode 1
- costMode 2 may be the SATD cost of mode 2.
- a flag enabling or disabling the TIMD method may be signaled in the SPS. For example, when the flag is true, a CU level flag indicating whether the proposed TIMD method is used may be signaled. At this time, a flag indicating whether the TIMD method is used may be referred to as a TIMD flag.
- the TIMD flag may be signaled right after the MIP flag. If the TIMD flag is true, the remaining syntax elements including luma intra prediction modes may be skipped. Also, combining TIMD with MRL or ISP, for example, may be acceptable. Also, combining DIMD, MIP or TM with TIMD may not be allowed.
- the flag when the flag is true, it may indicate a case where the value of the corresponding flag is 1.
- syntaxes related to the intra mode of a coding unit corresponding to ECM 3.0 may be as shown in the table below.
- an intra mode coding method of 6 MPM may be used in consideration of two usable neighboring intra modes.
- the MPM list may be generated by considering three aspects.
- a unified 6-MPM list may be used for intra blocks regardless of whether Multi Reference Line (MRL) and Intra sub-partitions (ISP) coding tools are applied.
- the MPM list may be constructed based on the left neighboring block and the upper neighboring block. For example, when the mode of the left block is Left and the mode of the upper block is Above, the integrated MPM list is configured as follows. In other words, when the intra prediction mode of the left neighboring block is Left and the intra prediction mode of the upper neighboring block is Above, the unified MPM list can be configured as follows.
- V may mean a vertical intra prediction mode
- H may mean a horizontal intra prediction mode.
- the corresponding intra mode is set to the planner mode by default.
- the MPM list can be composed of ⁇ Planner, DC, V, H, V-4, V+4 ⁇ .
- the mode with the larger mode number is set as Mode Max.
- the MPM list may be composed of ⁇ Planner, Max, Max-1, Max+1, Max-2, Max+2 ⁇ .
- the mode with the larger mode number is set as Mode Max.
- Mode Min the mode with the smaller mode number is set as Mode Min.
- Max - Min If the value of Max - Min is 1:
- the MPM list can be composed of ⁇ Planner, Left, Above, Min-1, Max+1, Min-2 ⁇ .
- Max - Min is greater than or equal to 62:
- the MPM list can be composed of ⁇ Planner, Left, Above, Min+1, Max-1, Min+2 ⁇ .
- the MPM list can be composed of ⁇ Planner, Left, Above, Min+1, Min-1, Max+1 ⁇ .
- the MPM list can be composed of ⁇ Planner, Left, Above, Min-1, Min+1, Max-1 ⁇ .
- the MPM list can be composed of ⁇ Planner, Left, Left-1, Left+1, Left-2, Left+2 ⁇ .
- the first bin of the MPM index codeword may be coded in CABAC context.
- a total of three contexts may be used depending on whether the current intra block is MRL enabled, ISP enabled, or a general intra block.
- an MPM list with 22 candidates can be configured in ECM software.
- the first 6 candidates of the MPM list may be used as a primary MPM list, and the remaining 16 candidates may be used as a secondary MPM list.
- the MPM list with the 22 candidates may be referred to as an entire MPM list.
- the entire MPM list may be configured as follows. In the process of constructing the entire MPM list, if a neighboring block is not available, the corresponding intra mode is basically set to the planner mode. In addition, an intra mode may be added to the MPM list only when the corresponding intra mode does not exist in the previous MPM list or when the MPM list is not full.
- the intra prediction mode of the left neighboring block is Left
- the intra prediction mode of the upper neighboring block is Above
- the intra prediction mode of the lower left neighboring block is Below-Left
- the intra prediction mode of the upper right neighboring block is Above-Left.
- the intra prediction mode of the right and upper left neighboring blocks may be referred to as Above-Left.
- the first mode inserted into the MPM list is the planner mode.
- the height of the PU is greater than or equal to the width of the PU, it is added in the order of ⁇ Above, Left, Below-Left, Above-right, Above-Left ⁇ .
- MPM[1] exists and is greater than the DC mode, up to 4 surrounding modes on each side can be added to the MPM list.
- MPM[2] exists and is greater than the DC mode, up to 4 surrounding modes on each side can be added to the MPM list.
- MPM[3] exists and is greater than the DC mode, up to 3 surrounding modes on each side can be added to the MPM list.
- Peripheral boards can be calculated as:
- DIMD and TIMD are decoder-side intra prediction techniques, but in ECM, the two tools are treated as separate tools.
- DIMD and TIMD have many similarities, there is a slight difference in the timing and method of applying the two tools. It may be desirable to harmonize the description of the two tools and treat the two types of one DIMD tool. Accordingly, making the DIMD and TIMD consistent with each other may be advantageous in terms of encoder/decoder design and coding efficiency. Below is a list of some of the differences between DIMD and TIMD, and the differences can be reconciled.
- dimd_flag can be signaled before cu_act_enabled_flag, intra_bdpcm_luma_flag, intra_tmp_flag, and intra_mip_flag are signaled, as shown in Table 1 described above. Also, in the case of timd_flag, it may be signaled after intra_mip_flag is signaled.
- the dimd_flag may be related to whether the DIMD mode is derived, and the cu_act_enabled_flag may be related to whether or not the decoded residual of the current coding unit is applied using color space conversion.
- intra_bdpcm_luma_flag may relate to whether BDPCM is available for the current luma coding block
- the intra_tmp_flag may relate to whether intra tmp is available
- the intra_mip_flag may relate to whether the intra prediction type of luma samples is matrix-based intra prediction and can be related
- TIMD While there is a block size limitation in applying TIMD, there is no block size limitation in applying DIMD. For example, when applying TIMD, width*height is limited to less than 1024, whereas when applying DIMD, there is no restriction on block size.
- TIMD can be used for intra prediction with MRL or ISP, whereas DIMD cannot be used with MRL or ISP.
- TIMD 131 modes representing intra prediction angles that are finer than normal angular intra modes can be allowed.
- TIMD there may be a problem in terms of availability of neighboring reconstruction samples.
- TIMD can check the availability of nearby reconstructed samples based on the location (x, y) of the current sample as follows.
- the process of checking the availability of the neighboring reconstruction sample may be problematic.
- the ability of parallel processing may be compromised.
- this document proposes the following embodiments to improve the intra coding method.
- the proposed embodiments can be applied individually or in combination.
- deriving an intra mode may mean deriving an intra prediction mode.
- the DIMD related information may include DIMD flag information indicating whether the DIMD mode is applied to the current block.
- the DIMD flag information may be dimdFlag.
- the DIMD flag information when the value of the DIMD flag information is 1, the DIMD flag information may be used to indicate that an intra mode of a current coding unit (CU) will be derived using a DIMD mode operation. Or, in other words, when the value of the DIMD flag information is 1, the DIMD flag information may be used to indicate that the intra mode for the DIMD mode is to be derived.
- the value of the DIMD flag information when the value of the DIMD flag information is 0, it may indicate that the intra mode of the current CU is not derived and an existing intra coding technique can be used. In other words, when the value of the DIMD flag information is 0, an intra mode for the DIMD mode is not derived, and an existing intra coding technique can be used.
- dimd_flag and timd_flag are signaled next to each other.
- timd_flag may be signaled after dimd_flag is signaled, or dimf_flag may be signaled after timd_flag is signaled.
- syntax related to dimd_flag and timd_flag may be as shown in the table below.
- dimd_flag and timd_flag may be located next to each other, and both dimd_flag and timd_flag may be located next to intra_mip_flag.
- DIMD DIMD
- TIMD TIMD
- 00 other modes
- the table below shows how to use different binarizations to represent DIMD or TIMD and the remaining modes.
- DIMD type 0
- DIMD type 1
- TIMD a case in which the DIMD type is 1
- MPM remaining modes
- block sizes may be limited when applying DIMD.
- DIMD and MRL can be used together for intra prediction.
- DIMD and ISP may be used together for intra prediction.
- combining TIMD with MRL or ISP may not be allowed.
- TIMD and MRL cannot be used together or TIMD and ISP cannot be used together for intra prediction.
- angular intra prediction modes other than normal intra prediction modes may be considered.
- the number of derived DIMD modes may be increased.
- 131 intra modes may be derived and used similar to those used in TIMD.
- a solution to the availability problem of neighboring samples in TIMD For example, a method of deriving the availability of a neighboring sample using a “neighboring block availability derivation process” defined in the VVC standard instead of determining whether a neighboring reconstruction sample is available based on a sample location is proposed. Accordingly, when slices and/or tiles are in use, TIMD interrupted parallel processing can be prevented.
- the availability of a neighboring sample can be determined using the “Process for Deriving Neighboring Block Availability” in Section 6.4.4 of the VVC standard.
- the table below may represent the "Peripheral Block Availability Derivation Process" of the VVC standard.
- whether a neighboring sample is available in TIMD can be determined using the "Process for Deriving Neighboring Block Availability" in Table 5.
- FIG. 13 and 14 schematically illustrate an example of a video/image encoding method and related components according to an embodiment of the present document.
- the method disclosed in FIG. 13 may be performed by the encoding device disclosed in FIG. 2 or FIG. 14 .
- S1300 to S1320 of FIG. 15 may be performed by the prediction unit 220 of the encoding device, and S1330 may be performed by the entropy encoding unit 240 of the encoding device.
- the process of generating residual samples based on prediction samples for the current block and the process of generating residual information based on the residual samples are performed by the residual processing unit 230 of the encoding device. ), and the process of generating a bitstream from residual information or prediction-related information may be performed by the entropy encoding unit 240 of the encoding device.
- the method disclosed in FIG. 15 may include the embodiments described above in this document.
- the encoding device determines whether Decoder Side Intra Mode Derivation (DIMD) or Template-based Intra Mode Derivation (TIMD) is applied to the current block (S1300). For example, the encoding device may determine whether Decoder Side Intra Mode Derivation (DIMD) or Template-based Intra Mode Derivation (TIMD) is applied to the current block according to the above-described embodiment.
- DIMD Decoder Side Intra Mode Derivation
- TIMD Template-based Intra Mode Derivation
- the encoding device generates DIMD-related information related to whether the DIMD is applied to the current block or TIMD-related information related to whether the TIMD is applied to the current block (S1310).
- the encoding device may generate DIMD related information related to whether the DIMD is applied to the current block or TIMD related information related to whether the TIMD is applied to the current block according to the above-described embodiment. .
- the DIMD related information may include DIMD flag information indicating whether the DIMD mode is applied to the current block. In this case, when the value of the DIMD flag information is 1, the DIMD mode may be applied to the current block, and when the value of the DIMD flag information is 0, the DIMD mode may not be applied to the current block.
- the TIMD related information may include TIMD flag information indicating whether the TIMD mode is applied to the current block. In this case, when the value of the TIMD flag information is 1, the TIMD mode may be applied to the current block, and when the value of the TIMD flag information is 0, the TIMD mode may not be applied to the current block.
- the TIMD flag information may be signaled after the DIMD flag information. Specifically, after the DIMD flag information is signaled, whether the TIMD flag information is signaled may be immediately determined based on the DIMD flag information.
- the DIMD flag information may be signaled after the TIMD flag information. Specifically, after the TIMD flag information is signaled, whether the DIMD flag information is signaled may be immediately determined based on the TIMD flag information.
- the encoding device may generate MIP (Matrix-based Intra Prediction) flag information.
- MIP Microx-based Intra Prediction
- the DIMD flag information or the TIMD flag information may be signaled after the MIP flag information.
- the DIMD flag information and the TIMD flag information may be coded based on binary code.
- the DIMD flag information and the TIMD flag information may be jointly coded based on binary code.
- the binary code for the DIMD flag information may be “1” and the binary code for the TIMD flag information may be “01”.
- information on MPM modes and/or non-MPM modes other than the DIMD flag information and the TIMD flag information may also be encoded based on binary code. In this case, a binary code for information on the MPM modes and/or the non-MPM modes may be "00" or the like.
- the DIMD flag information and the TIMD flag information may be coded based on binary code based on DIMD type information.
- the DIMD flag information and the TIMD flag information may be joint coded based on DIMD type information.
- the image information may include DIMD type information.
- a value of 0 of the DIMD type information may indicate DIMD flag information
- a value of 1 of the DIMD type information may indicate TIMD flag information.
- the DIMD flag information and the TIMD flag information may be coded based on a binary code, and a binary code for the DIMD flag information may be “10” and a binary code for the TIMD flag information may be “11”.
- information on MPM modes and/or non-MPM modes other than the DIMD flag information and the TIMD flag information may also be decoded based on binary code. In this case, a binary code for information on the MPM modes and/or the non-MPM modes may be "0" or the like.
- the DIMD flag information may be signaled to the current block based on the height and width of the current block.
- the DIMD flag information may be signaled to the current block based on a value obtained by multiplying the height and the width of the current block by less than 1024.
- the TIMD flag information may be signaled to the current block based on a value obtained by multiplying the height and the width of the current block by less than 1024.
- the DIMD mode may be applied to the current block even when MRL is applied to the current block.
- the image information may include multi reference line (MRL) index information, and the DIMD mode may be applied to the current block based on a value of the MRL index information being non-zero.
- the DIMD flag information may be signaled based on a value other than 0 of the MRL index information.
- the TIMD mode may not be applied to the current block.
- the image information includes MRL (Multi Reference Line) index information, and the TIMD mode may not be applied to the current block based on a value other than 0 of the MRL index information.
- the TIMD flag information may not be signaled based on a value other than 0 of the MRL index information.
- the DIMD mode may be derived based on 131 intra modes.
- an intra prediction mode for the DIMD mode may be derived based on intra modes of the current block, and the number of intra modes of the current block may be 131.
- the encoding device generates prediction samples for the current block based on DIMD or TIMD applied to the current block (S1320).
- the encoding apparatus may generate prediction samples for the current block based on the application of the DIMD or the TIMD to the current block according to the above-described embodiment.
- the intra prediction mode for the current block may be derived based on the DIMD mode.
- the TIMD mode is applied to the current block based on the TIMD flag information
- the intra prediction mode for the current block may be derived based on the TIMD mode.
- the DIMD mode may be applied to the current block even when the MRL is applied to the current block, and at this time, the intra prediction mode for the current block may be derived based on the DIMD mode. there is.
- the TIMD mode may be applied to the current block, and as described above, the intra prediction mode for the current block is obtained through a general intra prediction mode derivation method can be derived.
- prediction samples for the current block may be generated based on the derived intra prediction mode.
- the encoding device encodes image information including at least one of DIMD-related information and TIMD-related information (S1330).
- the encoding device may encode image information including at least one of the DIMD-related information and the TIMD-related information according to the above-described embodiment.
- the image information may include Matrix-based Intra Prediction (MIP) flag information.
- MIP Matrix-based Intra Prediction
- the DIMD flag information or the TIMD flag information may be signaled after the MIP flag information.
- 15 and 16 schematically illustrate an example of a video/image decoding method and related components according to an embodiment of the present document.
- the method disclosed in FIG. 15 may be performed by the decoding device disclosed in FIG. 3 or FIG. 16 .
- S1500 of FIG. 15 may be performed by the entropy decoding unit 310 of the decoding device
- S1510 to S1520 may be performed by the prediction unit 330 of the decoding device
- S1530 may be performed by the prediction unit 330 of the decoding device. This may be performed in the adder 340 of the decoding device.
- the step of deriving residual samples may be performed by the residual processing unit 320 of the decoding apparatus.
- the method disclosed in FIG. 15 may include the embodiments described above in this document.
- the decoding device obtains image information including at least one of decoder side intra mode derivation (DIMD) related information and template-based intra mode derivation (TIMD) related information from a bitstream (S1500).
- the decoding device may obtain image information including at least one of DIMD-related information and TIMD-related information from a bitstream according to the above-described embodiment.
- the DIMD related information may include DIMD flag information indicating whether the DIMD mode is applied to the current block. In this case, when the value of the DIMD flag information is 1, the DIMD mode may be applied to the current block, and when the value of the DIMD flag information is 0, the DIMD mode may not be applied to the current block.
- the TIMD related information may include TIMD flag information indicating whether the TIMD mode is applied to the current block. In this case, when the value of the TIMD flag information is 1, the TIMD mode may be applied to the current block, and when the value of the TIMD flag information is 0, the TIMD mode may not be applied to the current block.
- the image information may include Matrix-based Intra Prediction (MIP) flag information.
- MIP Matrix-based Intra Prediction
- the DIMD flag information or the TIMD flag information may be parsed after the MIP flag information.
- the TIMD flag information may be parsed after the DIMD flag information. Specifically, after the DIMD flag information is parsed, whether the TIMD flag information is parsed may be immediately determined based on the DIMD flag information.
- the DIMD flag information may be parsed after the TIMD flag information. Specifically, after the TIMD flag information is parsed, whether the DIMD flag information is parsed may be immediately determined based on the TIMD flag information.
- the DIMD flag information and the TIMD flag information may be coded based on binary code.
- the DIMD flag information and the TIMD flag information may be jointly coded based on binary code.
- the binary code for the DIMD flag information may be “1” and the binary code for the TIMD flag information may be “01”.
- information on MPM modes and/or non-MPM modes other than the DIMD flag information and the TIMD flag information may also be decoded based on binary code.
- a binary code for information on the MPM modes and/or the non-MPM modes may be "00" or the like.
- the DIMD flag information and the TIMD flag information may be coded based on binary code based on DIMD type information.
- the DIMD flag information and the TIMD flag information may be joint coded based on DIMD type information.
- the image information may include DIMD type information.
- a value of 0 of the DIMD type information may indicate DIMD flag information
- a value of 1 of the DIMD type information may indicate TIMD flag information.
- the DIMD flag information and the TIMD flag information may be coded based on a binary code, and a binary code for the DIMD flag information may be “10” and a binary code for the TIMD flag information may be “11”.
- information on MPM modes and/or non-MPM modes other than the DIMD flag information and the TIMD flag information may also be decoded based on binary code. In this case, a binary code for information on the MPM modes and/or the non-MPM modes may be "0" or the like.
- the DIMD flag information may be parsed for the current block based on the height and width of the current block.
- the DIMD flag information of the current block may be parsed based on a value obtained by multiplying the height and the width of the current block by less than 1024.
- the TIMD flag information of the current block may be parsed based on a value obtained by multiplying the height and the width of the current block by less than 1024.
- the DIMD mode may be applied to the current block even when MRL is applied to the current block.
- the image information may include multi reference line (MRL) index information, and the DIMD mode may be applied to the current block based on a value of the MRL index information being non-zero.
- the DIMD flag information may be parsed based on a value other than 0 of the MRL index information.
- the TIMD mode may not be applied to the current block.
- the image information includes MRL (Multi Reference Line) index information, and the TIMD mode may not be applied to the current block based on a value other than 0 of the MRL index information. In other words, based on the fact that the value of the MRL index information is not 0, the TIMD flag information may not be parsed.
- the DIMD mode may be derived based on 131 intra modes.
- an intra prediction mode for the DIMD mode may be derived based on intra modes of the current block, and the number of intra modes of the current block may be 131.
- the decoding device derives an intra prediction mode for the current block based on at least one of DIMD-related information and TIMD-related information (S1510).
- the decoding device may derive an intra prediction mode for a current block based on at least one of the DIMD-related information and the TIMD-related information according to the above-described embodiment.
- the intra prediction mode for the current block may be derived based on the DIMD mode.
- the TIMD mode is applied to the current block based on the TIMD flag information
- the intra prediction mode for the current block may be derived based on the TIMD mode.
- the DIMD mode may be applied to the current block even when the MRL is applied to the current block, and at this time, the intra prediction mode for the current block may be derived based on the DIMD mode. there is.
- the TIMD mode may be applied to the current block, and as described above, the intra prediction mode for the current block is obtained through a general intra prediction mode derivation method can be derived.
- the decoding device generates prediction samples for the current block based on the intra prediction mode (S1520). For example, the decoding device may generate prediction samples for the current block based on the intra prediction mode according to the above-described embodiment.
- the decoding device generates reconstructed samples for the current block based on predicted samples for the current block (S1530). For example, the decoding device may generate reconstructed samples for the current block based on the prediction samples for the current block according to the above-described embodiment.
- DIMD and TIMD are techniques for deriving intra-prediction mode on the decoder side that have many similarities, conventionally they were treated as separate intra-prediction tools and DIMD-related information and TIMD-related information were signaled.
- DIMD-related information and / or TIMD mode-related information were signaled.
- the DIMD and the TIMD can be harmonized, and thus an efficient encoder / and / or decoder can be designed, Overall coding efficiency can be improved.
- the decoding device may receive information about the residual of the current block when residual samples of the current block exist.
- the residual information may include transform coefficients of residual samples.
- the decoding device may derive residual samples (or residual sample array) for the current block based on the residual information. Specifically, the decoding device may derive quantized transform coefficients based on residual information. Quantized transform coefficients may have a one-dimensional vector form based on a coefficient scanning order.
- the decoding device may derive transform coefficients based on an inverse quantization procedure for the quantized transform coefficients.
- the decoding device may derive residual samples based on transform coefficients.
- the decoding device may generate reconstructed samples based on (intra) prediction samples and residual samples, and may derive a reconstructed block or a reconstructed picture based on the reconstructed samples. Specifically, the decoding device may generate reconstructed samples based on the sum of (intra) prediction samples and residual samples. As described above, the decoding device may then apply an in-loop filtering procedure such as deblocking filtering and/or SAO procedure to the reconstructed picture in order to improve subjective/objective picture quality, if necessary.
- an in-loop filtering procedure such as deblocking filtering and/or SAO procedure
- the decoding device may decode a bitstream or encoded information to obtain image information including all or some of the above information (or syntax elements).
- the bitstream or encoded information may be stored in a computer-readable storage medium, and may cause the above-described decoding method to be performed.
- the above-described method according to the embodiments of this document may be implemented in the form of software, and the encoding device and/or decoding device according to this document may be used to display images of, for example, a TV, computer, smartphone, set-top box, display device, etc. It can be included in the device that performs the processing.
- a module can be stored in memory and executed by a processor.
- the memory may be internal or external to the processor, and may be coupled with the processor in a variety of well-known means.
- a processor may include an application-specific integrated circuit (ASIC), other chipsets, logic circuits, and/or data processing devices.
- Memory may include read-only memory (ROM), random access memory (RAM), flash memory, memory cards, storage media, and/or other storage devices. That is, the embodiments described in this document may be implemented and performed on a processor, microprocessor, controller, or chip. For example, functional units shown in each drawing may be implemented and performed on a computer, processor, microprocessor, controller, or chip. In this case, information for implementation (eg, information on instructions) or an algorithm may be stored in a digital storage medium.
- a decoding device and an encoding device to which the embodiment (s) of this document are applied are multimedia broadcasting transmitting and receiving devices, mobile communication terminals, home cinema video devices, digital cinema video devices, surveillance cameras, video conversation devices, video communication devices, and the like.
- OTT over the top video
- video devices may include game consoles, Blu-ray players, Internet-connected TVs, home theater systems, smart phones, tablet PCs, digital video recorders (DVRs), and the like.
- the processing method to which the embodiment(s) of this document is applied may be produced in the form of a program executed by a computer and stored in a computer-readable recording medium.
- Multimedia data having a data structure according to the embodiment(s) of this document may also be stored in a computer-readable recording medium.
- the computer-readable recording medium includes all types of storage devices and distributed storage devices in which computer-readable data is stored.
- the computer-readable recording medium includes, for example, Blu-ray Disc (BD), Universal Serial Bus (USB), ROM, PROM, EPROM, EEPROM, RAM, CD-ROM, magnetic tape, floppy disk, and optical A data storage device may be included.
- the computer-readable recording medium includes media implemented in the form of a carrier wave (eg, transmission through the Internet).
- the bitstream generated by the encoding method may be stored in a computer-readable recording medium or transmitted through a wired or wireless communication network.
- embodiment(s) of this document may be implemented as a computer program product using program codes, and the program code may be executed on a computer by the embodiment(s) of this document.
- the program code may be stored on a carrier readable by a computer.
- FIG 17 shows an example of a content streaming system to which the embodiments disclosed in this document can be applied.
- a content streaming system to which embodiments of this document are applied may largely include an encoding server, a streaming server, a web server, a media storage, a user device, and a multimedia input device.
- the encoding server compresses content input from multimedia input devices such as smart phones, cameras, camcorders, etc. into digital data to generate a bitstream and transmits it to the streaming server.
- multimedia input devices such as smart phones, cameras, and camcorders directly generate bitstreams
- the encoding server may be omitted.
- the bitstream may be generated by an encoding method or a bitstream generation method to which the embodiments of this document are applied, and the streaming server may temporarily store the bitstream in a process of transmitting or receiving the bitstream.
- the streaming server transmits multimedia data to a user device based on a user request through a web server, and the web server serves as a medium informing a user of what kind of service is available.
- the web server transmits the request to the streaming server, and the streaming server transmits multimedia data to the user.
- the content streaming system may include a separate control server, and in this case, the control server serves to control commands/responses between devices in the content streaming system.
- the streaming server may receive content from a media storage and/or encoding server. For example, when content is received from the encoding server, the content can be received in real time. In this case, in order to provide smooth streaming service, the streaming server may store the bitstream for a certain period of time.
- Examples of the user devices include mobile phones, smart phones, laptop computers, digital broadcasting terminals, personal digital assistants (PDAs), portable multimedia players (PMPs), navigation devices, slate PCs, Tablet PC, ultrabook, wearable device (e.g., smartwatch, smart glass, HMD (head mounted display)), digital TV, desktop There may be computers, digital signage, and the like.
- PDAs personal digital assistants
- PMPs portable multimedia players
- navigation devices slate PCs
- Tablet PC ultrabook
- wearable device e.g., smartwatch, smart glass, HMD (head mounted display)
- digital TV desktop There may be computers, digital signage, and the like.
- Each server in the content streaming system may be operated as a distributed server, and in this case, data received from each server may be distributed and processed.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
Description
Claims (20)
- 디코딩 장치에 의하여 수행되는 영상 디코딩 방법에 있어서,DIMD(Decoder Side Intra Mode Derivation) 관련 정보 또는 TIMD(Template-based Intra Mode Derivation) 관련 정보 중 적어도 하나를 포함하는 영상 정보를 비트스트림으로부터 수신하는 단계;상기 DIMD 관련 정보 또는 상기 TIMD 관련 정보 중 적어도 하나를 기반으로 현재 블록에 대한 인트라 예측 모드를 도출하는 단계;상기 인트라 예측 모드를 기반으로 상기 현재 블록에 대한 예측 샘플들을 생성하는 단계; 및상기 현재 블록에 대한 상기 예측 샘플들을 기반으로 상기 현재 블록에 대한 복원 샘플들을 생성하는 단계를 포함하되,상기 영상 정보는 MIP(Matrix-based Intra Prediction) 플래그 정보를 포함하고,상기 DIMD 관련 정보는 상기 현재 블록에 DIMD 모드가 적용되는지 여부를 나타내는 DIMD 플래그 정보를 포함하고,상기 TIMD 관련 정보는 상기 현재 블록에 TIMD 모드가 적용되는지 여부를 나타내는 TIMD 플래그 정보를 포함하고,상기 DIMD 플래그 정보 또는 상기 TIMD 플래그 정보는 상기 MIP 플래그 정보 이후에 파싱되는 것을 특징으로 하는 영상 디코딩 방법.
- 제1항에 있어서, 상기 TIMD 플래그 정보는 상기 DIMD 플래그 정보 이후에 파싱되는 것을 특징으로 하는 영상 디코딩 방법.
- 제1항에 있어서, 상기 DIMD 플래그 정보는 상기 TIMD 플래그 정보 이후에 파싱되는 것을 특징으로 하는 영상 디코딩 방법.
- 제1항에 있어서, 상기 DIMD 플래그 정보 및 상기 TIMD 플래그 정보는 바이너리 코드 기반으로 코딩되고,상기 DIMD 플래그 정보에 대한 바이너리 코드는 "1", 상기 TIMD 플래그 정보에 대한 바이너리 코드는 "01"인 것을 특징으로 하는 영상 디코딩 방법.
- 제1항에 있어서, 상기 영상 정보는 DIMD 타입 정보를 포함하고,상기 DIMD 타입 정보의 값이 0인 것은 DIMD 플래그 정보를 나타내고,상기 DIMD 타입 정보의 값이 1인 것은 TIMD 플래그 정보를 나타내고,상기 DIMD 플래그 정보 및 상기 TIMD 플래그 정보는 바이너리 코드 기반으로 코딩되고,상기 DIMD 플래그 정보에 대한 바이너리 코드는 "10", 상기 TIMD 플래그 정보에 대한 바이너리 코드는 "11"인 것을 특징으로 하는 영상 디코딩 방법.
- 제1항에 있어서, 상기 현재 블록의 높이 및 너비를 기반으로 상기 현재 블록에 상기 DIMD 플래그 정보가 파싱되고,상기 현재 블록의 상기 높이와 상기 너비를 곱한 값이 1024 미만인 것을 기반으로 상기 현재 블록에 상기 DIMD 플래그 정보가 파싱되는 것을 특징으로 하는 영상 디코딩 방법.
- 제1항에 있어서, 상기 영상 정보는 MRL(Multi Reference Line) 인덱스 정보를 포함하고,상기 MRL 인덱스 정보의 값이 0이 아닌 것을 기반으로, 상기 DIMD 플래그 정보가 파싱되는 것을 특징으로 하는 영상 디코딩 방법.
- 제1항에 있어서, 상기 영상 정보는 MRL(Multi Reference Line) 인덱스 정보를 포함하고,상기 MRL 인덱스 정보의 값이 0이 아닌 것을 기반으로, 상기 TIMD 플래그 정보가 파싱되지 않는 것을 특징으로 하는 영상 디코딩 방법.
- 제1항에 있어서, 상기 DIMD 모드에 대한 인트라 예측 모드는 상기 현재 블록의 인트라 모드들을 기반으로 도출되고,상기 현재 블록의 상기 인트라 모드들의 개수는 131개인 것을 특징으로 하는 영상 디코딩 방법.
- 제1항의 디코딩 방법을 수행하도록 구성된 디코딩 장치.
- 인코딩 장치에 의해 수행되는 영상 인코딩 방법에 있어서,DIMD(Decoder Side Intra Mode Derivation) 또는 TIMD(Template-based Intra Mode Derivation)가 현재 블록에 적용되는지 여부를 결정하는 단계;상기 현재 블록에 상기 DIMD가 적용되는지 여부와 관련된 DIMD 관련 정보 또는 상기 현재 블록에 상기 TIMD가 적용되는지 여부와 관련된 TIMD 관련 정보를 생성하는 단계;상기 현재 블록에 상기 DIMD 또는 상기 TIMD가 적용되는 것을 기반으로 상기 현재 블록에 대한 예측 샘플들을 생성하는 단계; 및상기 DIMD 관련 정보 또는 상기 TIMD 관련 정보 중 적어도 하나를 포함하는 영상 정보를 인코딩하는 단계를 포함하되,상기 영상 정보는 MIP(Matrix-based Intra Prediction) 플래그 정보를 포함하고,상기 DIMD 관련 정보는 상기 현재 블록에 DIMD 모드가 적용되는지 여부를 나타내는 DIMD 플래그 정보를 포함하고,상기 TIMD 관련 정보는 상기 현재 블록에 TIMD 모드가 적용되는지 여부를 나타내는 TIMD 플래그 정보를 포함하고,상기 DIMD 플래그 정보 또는 상기 TIMD 플래그 정보는 상기 MIP 플래그 정보 이후에 시그널되는 것을 특징으로 하는 영상 인코딩 방법.
- 제11에 있어서, 상기 TIMD 플래그 정보는 상기 DIMD 플래그 정보 이후에 시그널링되는 것을 특징으로 하는 영상 디코딩 방법.
- 제11항에 있어서, 상기 DIMD 플래그 정보는 상기 TIMD 플래그 정보 이후에 시그널되는 것을 특징으로 하는 영상 인코딩 방법.
- 제11항에 있어서, 상기 DIMD 플래그 정보 및 상기 TIMD 플래그 정보는 바이너리 코드 기반으로 코딩되고,상기 DIMD 플래그 정보에 대한 바이너리 코드는 "1", 상기 TIMD 플래그 정보에 대한 바이너리 코드는 "01"인 것을 특징으로 하는 영상 인코딩 방법.
- 제11항에 있어서, 상기 영상 정보는 DIMD 타입 정보를 포함하고,상기 DIMD 타입 정보의 값이 0인 것은 DIMD 플래그 정보를 나타내고,상기 DIMD 타입 정보의 값이 1인 것은 TIMD 플래그 정보를 나타내고,상기 DIMD 플래그 정보 및 상기 TIMD 플래그 정보는 바이너리 코드 기반으로 코딩되고,상기 DIMD 플래그 정보에 대한 바이너리 코드는 "10", 상기 TIMD 플래그 정보에 대한 바이너리 코드는 "11"인 것을 특징으로 하는 영상 인코딩 방법.
- 제11항에 있어서, 상기 현재 블록의 높이 및 너비를 기반으로 상기 현재 블록에 상기 DIMD 플래그 정보가 시그널링되고,상기 현재 블록의 상기 높이와 상기 너비를 곱한 값이 1024 미만인 것을 기반으로 상기 현재 블록에 상기 DIMD 모드가 시그널링되는 것을 특징으로 하는 영상 인코딩 방법.
- 제11항에 있어서, 상기 영상 정보는 MRL(Multi Reference Line) 인덱스 정보를 포함하고,상기 MRL 인덱스 정보의 값이 0이 아닌 것을 기반으로, 상기 DIMD 플래그 정보가 시그널링되는 것을 특징으로 하는 영상 인코딩 방법.
- 제11항에 있어서, 상기 영상 정보는 MRL(Multi Reference Line) 인덱스 정보를 포함하고,상기 MRL 인덱스 정보의 값이 0이 아닌 것을 기반으로, 상기 TIMD 플래그 정보가 시그널링되지 않는 것을 특징으로 하는 영상 인코딩 방법.
- 제11항의 영상 인코딩 방법에 의해 생성된 비트스트림을 저장하는 컴퓨터 판독 가능한 저장 매체.
- 영상에 대한 데이터의 전송 방법에 있어서, 상기 영상에 대한 비트스트림을 획득하되, 상기 비트스트림은 DIMD(Decoder Side Intra Mode Derivation) 또는 TIMD(Template-based Intra Mode Derivation)가 적용되는지 여부를 결정하는 단계, 상기 현재 블록에 상기 DIMD가 적용되는지 여부와 관련된 DIMD 관련 정보 정보 또는 상기 현재 블록에 상기 TIMD가 적용되는지 여부와 관련된 TIMD 관련 정보를 생성하는 단계, 상기 현재 블록에 상기 DIMD 또는 상기 TIMD가 적용되는 것을 기반으로 상기 현재 블록에 대한 예측 샘플들을 생성하는 단계 및 상기 DIMD 관련 정보 또는 상기 TIMD 관련 정보 중 적어도 하나를 포함하는 영상 정보를 인코딩하는 단계를 기반으로 생성되는 단계; 및상기 비트스트림을 포함하는 상기 데이터를 전송하는 단계를 포함하고,상기 영상 정보는 MIP(Matrix-based Intra Prediction) 플래그 정보를 포함하고,상기 DIMD 관련 정보는 상기 현재 블록에 DIMD 모드가 적용되는지 여부를 나타내는 DIMD 플래그 정보를 포함하고,상기 TIMD 관련 정보는 상기 현재 블록에 TIMD 모드가 적용되는지 여부를 나타내는 TIMD 플래그 정보를 포함하고,상기 DIMD 플래그 정보 또는 상기 TIMD 플래그 정보는 상기 MIP 플래그 정보 이후에 시그널되는 것을 특징으로 하는 전송 방법.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202380015931.6A CN118511511A (zh) | 2022-01-04 | 2023-01-04 | 基于dimd模式的帧内预测方法及装置 |
KR1020247020116A KR20240112882A (ko) | 2022-01-04 | 2023-01-04 | Dimd 모드 기반 인트라 예측 방법 및 장치 |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US202263296414P | 2022-01-04 | 2022-01-04 | |
US63/296,414 | 2022-01-04 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023132622A1 true WO2023132622A1 (ko) | 2023-07-13 |
Family
ID=87073904
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/KR2023/000149 WO2023132622A1 (ko) | 2022-01-04 | 2023-01-04 | Dimd 모드 기반 인트라 예측 방법 및 장치 |
Country Status (3)
Country | Link |
---|---|
KR (1) | KR20240112882A (ko) |
CN (1) | CN118511511A (ko) |
WO (1) | WO2023132622A1 (ko) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170353719A1 (en) * | 2016-06-03 | 2017-12-07 | Mediatek Inc. | Method and Apparatus for Template-Based Intra Prediction in Image and Video Coding |
US20200344492A1 (en) * | 2019-04-25 | 2020-10-29 | Mediatek Inc. | Method and Apparatus of Constraining Merge Flag Signaling in Video Coding |
US20210195202A1 (en) * | 2019-06-11 | 2021-06-24 | Mediatek Inc. | Method and Apparatus of Matrix-Based Intra Prediction for Video Coding |
KR20210113259A (ko) * | 2019-02-05 | 2021-09-15 | 베이징 다지아 인터넷 인포메이션 테크놀로지 컴퍼니 리미티드 | 인트라 서브-파티션 코드 모드를 이용한 비디오 코딩 |
WO2021244935A1 (en) * | 2020-06-03 | 2021-12-09 | Nokia Technologies Oy | A method, an apparatus and a computer program product for video encoding and video decoding |
-
2023
- 2023-01-04 CN CN202380015931.6A patent/CN118511511A/zh active Pending
- 2023-01-04 WO PCT/KR2023/000149 patent/WO2023132622A1/ko active Application Filing
- 2023-01-04 KR KR1020247020116A patent/KR20240112882A/ko unknown
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170353719A1 (en) * | 2016-06-03 | 2017-12-07 | Mediatek Inc. | Method and Apparatus for Template-Based Intra Prediction in Image and Video Coding |
KR20210113259A (ko) * | 2019-02-05 | 2021-09-15 | 베이징 다지아 인터넷 인포메이션 테크놀로지 컴퍼니 리미티드 | 인트라 서브-파티션 코드 모드를 이용한 비디오 코딩 |
US20200344492A1 (en) * | 2019-04-25 | 2020-10-29 | Mediatek Inc. | Method and Apparatus of Constraining Merge Flag Signaling in Video Coding |
US20210195202A1 (en) * | 2019-06-11 | 2021-06-24 | Mediatek Inc. | Method and Apparatus of Matrix-Based Intra Prediction for Video Coding |
WO2021244935A1 (en) * | 2020-06-03 | 2021-12-09 | Nokia Technologies Oy | A method, an apparatus and a computer program product for video encoding and video decoding |
Also Published As
Publication number | Publication date |
---|---|
KR20240112882A (ko) | 2024-07-19 |
CN118511511A (zh) | 2024-08-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021040480A1 (ko) | 인루프 필터링 기반 영상 코딩 장치 및 방법 | |
WO2021040481A1 (ko) | 크로스 컴포넌트 필터링 기반 영상 코딩 장치 및 방법 | |
WO2021040479A1 (ko) | 필터링 기반 영상 코딩 장치 및 방법 | |
WO2021040484A1 (ko) | 크로스-컴포넌트 적응적 루프 필터링 기반 영상 코딩 장치 및 방법 | |
WO2021040483A1 (ko) | 영상 코딩 장치 및 방법 | |
WO2020231140A1 (ko) | 적응적 루프 필터 기반 비디오 또는 영상 코딩 | |
WO2020204413A1 (ko) | 복원 픽처를 수정하는 비디오 또는 영상 코딩 | |
WO2020171660A1 (ko) | 인트라 예측을 위한 비디오 신호의 처리 방법 및 장치 | |
WO2020204419A1 (ko) | 적응적 루프 필터 기반 비디오 또는 영상 코딩 | |
WO2020180143A1 (ko) | 루마 맵핑 및 크로마 스케일링 기반 비디오 또는 영상 코딩 | |
WO2021101203A1 (ko) | 필터링 기반 영상 코딩 장치 및 방법 | |
WO2021040482A1 (ko) | 적응적 루프 필터링 기반 영상 코딩 장치 및 방법 | |
WO2020213867A1 (ko) | 스케일링 리스트 데이터의 시그널링 기반 비디오 또는 영상 코딩 | |
WO2020180122A1 (ko) | 조건적으로 파싱되는 alf 모델 및 리셰이핑 모델 기반 비디오 또는 영상 코딩 | |
WO2020184928A1 (ko) | 루마 맵핑 및 크로마 스케일링 기반 비디오 또는 영상 코딩 | |
WO2021101205A1 (ko) | 영상 코딩 장치 및 방법 | |
WO2020171673A1 (ko) | 인트라 예측을 위한 비디오 신호의 처리 방법 및 장치 | |
WO2021101201A1 (ko) | 루프 필터링을 제어하는 영상 코딩 장치 및 방법 | |
WO2021101200A1 (ko) | 루프 필터링을 제어하기 위한 영상 코딩 장치 및 방법 | |
WO2021141227A1 (ko) | 영상 디코딩 방법 및 그 장치 | |
WO2021141226A1 (ko) | 루마 성분 및 크로마 성분에 대한 bdpcm 기반 영상 디코딩 방법 및 그 장치 | |
WO2021201551A1 (ko) | 비디오 또는 영상 코딩 시스템에서의 흑백 영상에 대한 크로마 디블록킹 파라미터 정보에 기반한 영상 코딩 방법 | |
WO2021101204A1 (ko) | 필터링을 위한 정보의 시그널링 기반 영상 코딩 장치 및 방법 | |
WO2021034117A1 (ko) | 영상 디코딩 방법 및 그 장치 | |
WO2020197207A1 (ko) | 맵핑을 포함하는 필터링 기반 비디오 또는 영상 코딩 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 23737370 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 20247020116 Country of ref document: KR Kind code of ref document: A |
|
WWE | Wipo information: entry into national phase |
Ref document number: 1020247020116 Country of ref document: KR |
|
REG | Reference to national code |
Ref country code: BR Ref legal event code: B01A Ref document number: 112024013714 Country of ref document: BR |
|
WWE | Wipo information: entry into national phase |
Ref document number: 2023737370 Country of ref document: EP |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
ENP | Entry into the national phase |
Ref document number: 2023737370 Country of ref document: EP Effective date: 20240805 |
|
ENP | Entry into the national phase |
Ref document number: 112024013714 Country of ref document: BR Kind code of ref document: A2 Effective date: 20240703 |