[go: up one dir, main page]

CN110024386B - Method and apparatus for encoding/decoding image, recording medium for storing bit stream - Google Patents

Method and apparatus for encoding/decoding image, recording medium for storing bit stream Download PDF

Info

Publication number
CN110024386B
CN110024386B CN201780073904.9A CN201780073904A CN110024386B CN 110024386 B CN110024386 B CN 110024386B CN 201780073904 A CN201780073904 A CN 201780073904A CN 110024386 B CN110024386 B CN 110024386B
Authority
CN
China
Prior art keywords
intra prediction
block
current block
spipm
prediction mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201780073904.9A
Other languages
Chinese (zh)
Other versions
CN110024386A (en
Inventor
高玄硕
林成昶
姜晶媛
李镇浩
李河贤
全东山
赵承眩
金晖容
崔振秀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Electronics and Telecommunications Research Institute ETRI
Original Assignee
Electronics and Telecommunications Research Institute ETRI
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Electronics and Telecommunications Research Institute ETRI filed Critical Electronics and Telecommunications Research Institute ETRI
Priority to CN202311235558.3A priority Critical patent/CN117041569A/en
Priority to CN202311235479.2A priority patent/CN117041568A/en
Priority to CN202311235024.0A priority patent/CN117041567A/en
Priority to CN202311235748.5A priority patent/CN117041570A/en
Publication of CN110024386A publication Critical patent/CN110024386A/en
Application granted granted Critical
Publication of CN110024386B publication Critical patent/CN110024386B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods 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/103Selection of coding mode or of prediction mode
    • H04N19/11Selection of coding mode or of prediction mode among a plurality of spatial predictive coding modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods 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/103Selection of coding mode or of prediction mode
    • H04N19/105Selection 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods 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/119Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods 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/13Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods 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/132Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • H04N19/159Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods 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/17Methods 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/176Methods 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods 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/18Methods 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 a set of transform coefficients
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods 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/186Methods 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 a colour or a chrominance component
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/44Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/90Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
    • H04N19/91Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/90Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
    • H04N19/96Tree coding, e.g. quad-tree coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

本发明涉及一种用于对图像进行编码/解码的方法和设备。根据本发明的用于对图像进行解码的方法包括步骤:将当前块划分为一个或更多个子块;使用当前块的帧内预测模式和与当前块相邻的邻近块的帧内预测模式中的至少一个来推导所述一个或更多个子块中的每一个子块的帧内预测模式;使用推导出的帧内预测模式对所述一个或更多个子块中的每一个子块执行帧内预测。

The present invention relates to a method and device for encoding/decoding images. A method for decoding an image according to the present invention includes the steps of: dividing a current block into one or more sub-blocks; using an intra prediction mode of the current block and an intra prediction mode of a neighboring block adjacent to the current block. to derive an intra prediction mode for each of the one or more sub-blocks; using the derived intra prediction mode to perform a frame prediction on each of the one or more sub-blocks intraprediction.

Description

用于对图像进行编码/解码的方法和设备、用于存储比特流的 记录介质Methods and devices for encoding/decoding images, storing bitstreams recording medium

技术领域Technical field

本发明涉及一种用于对图像进行编码/解码的方法和设备。具体地,本发明涉及一种使用帧内预测对图像进行编码/解码的方法和设备以及存储由本发明的图像编码方法/设备产生的比特流的记录介质。The present invention relates to a method and device for encoding/decoding images. Specifically, the present invention relates to a method and device for encoding/decoding images using intra prediction and a recording medium that stores a bit stream generated by the image encoding method/device of the present invention.

背景技术Background technique

最近,对于高分辨率和高质量图像(诸如,高清晰度(HD)图像和超高清晰度(UHD)图像)的需求已在各种应用领域中增加。然而,更高分辨率和质量的图像数据与传统图像数据相比增加了数据量。因此,当通过使用诸如传统有线和无线宽带网络的介质传输图像数据时,或者当通过使用传统存储介质存储图像数据时,传输和存储的成本增加。为了解决随着图像数据的分辨率和质量提高而发生的这些问题,需要一种用于更高分辨率和更高质量的图像的高效图像编码/解码技术。Recently, demand for high-resolution and high-quality images, such as high-definition (HD) images and ultra-high-definition (UHD) images, has increased in various application fields. However, higher resolution and quality image data increase the amount of data compared to traditional image data. Therefore, when image data is transmitted by using media such as conventional wired and wireless broadband networks, or when image data is stored by using conventional storage media, costs of transmission and storage increase. In order to solve these problems that occur as the resolution and quality of image data increase, an efficient image encoding/decoding technology for higher resolution and higher quality images is required.

图像压缩技术包括各种技术,所述各种技术包括:从当前画面的先前画面或后续画面对包括在当前画面中的像素值进行预测的帧间预测技术;通过使用当前画面中的像素信息对包括在当前画面中的像素值进行预测的帧内预测技术;用于对残差信号的能量进行压缩的变换和量化技术;将短码分配给具有高出现频率的值并将长码分配给具有低出现频率的值的熵编码技术;等等。图像数据可通过使用这样的图像压缩技术而被有效地压缩,并可被传输或存储。Image compression technology includes various technologies including: inter prediction technology that predicts pixel values included in the current picture from a previous picture or a subsequent picture of the current picture; Intra-frame prediction techniques include predicting pixel values in the current picture; transformation and quantization techniques for compressing the energy of the residual signal; assigning short codes to values with high frequency of occurrence and long codes to values with high frequency of occurrence. Entropy coding techniques for low-frequency values; etc. Image data can be efficiently compressed by using such image compression technology, and can be transmitted or stored.

发明内容Contents of the invention

技术问题technical problem

本发明的目标在于提供一种用于对图像进行编码和解码以提高压缩效率的方法和设备以及存储由本发明的图像编码方法/设备产生的比特流的记录介质。An object of the present invention is to provide a method and device for encoding and decoding images to improve compression efficiency and a recording medium that stores a bit stream generated by the image encoding method/device of the present invention.

本发明的另一目标在于提供一种使用帧内预测对图像进行编码和解码以提高压缩效率的方法和设备以及存储由本发明的图像编码方法/设备产生的比特流的记录介质。Another object of the present invention is to provide a method and device for encoding and decoding images using intra prediction to improve compression efficiency and a recording medium that stores a bit stream generated by the image encoding method/device of the present invention.

本发明的另一目标在于提供一种使用变换模型、等空间模型或双线性插值模型执行帧内预测来对图像进行编码和解码的方法和设备以及存储由本发明的图像编码方法/设备产生的比特流的记录介质。Another object of the present invention is to provide a method and device for encoding and decoding images using a transformation model, an isospace model or a bilinear interpolation model to perform intra prediction and to store the images generated by the image encoding method/device of the present invention. Bit stream recording medium.

技术方案Technical solutions

根据本发明的一种图像解码方法可包括:将当前块分区为一个或更多个子块;通过使用当前块的帧内预测模式和与当前块相邻的邻近块的帧内预测模式中的至少一个来推导所述一个或更多个子块中的每一个子块的帧内预测模式;以及通过使用推导出的帧内预测模式对所述一个或更多个子块中的每一个子块执行帧内预测。An image decoding method according to the present invention may include: partitioning a current block into one or more sub-blocks; by using at least one of an intra prediction mode of the current block and an intra prediction mode of a neighboring block adjacent to the current block. one to derive an intra prediction mode for each of the one or more sub-blocks; and perform frame prediction on each of the one or more sub-blocks using the derived intra prediction mode. intraprediction.

在根据本发明的图像解码方法中,推导帧内预测模式的步骤可包括:通过使用当前块的帧内预测模式和邻近块的帧内预测模式中的至少一个来产生用于当前块的帧内预测方向字段(IPDF);以及通过使用产生的IPDF来推导所述一个或更多个子块中的每一个子块的帧内预测模式。In the image decoding method according to the present invention, the step of deriving the intra prediction mode may include generating an intra prediction mode for the current block by using at least one of an intra prediction mode of the current block and an intra prediction mode of a neighboring block. a prediction direction field (IPDF); and deriving an intra prediction mode for each of the one or more sub-blocks by using the generated IPDF.

在根据本发明的图像解码方法中,可使用变换模型产生IPDF,并且变换模型可包括刚体变换、相似性变换、仿射变换、单应性变换和3D变换中的至少一个。In the image decoding method according to the present invention, the IPDF may be generated using a transformation model, and the transformation model may include at least one of rigid body transformation, similarity transformation, affine transformation, homography transformation and 3D transformation.

在根据本发明的图像解码方法中,在产生IPDF的步骤中使用的邻近块的帧内预测模式可以是包括种子点的种子块的种子点帧内预测模式(SPIPM),并且可基于当前块或子块的尺寸或形状自适应地确定种子点。In the image decoding method according to the present invention, the intra prediction mode of the neighboring block used in the step of generating the IPDF may be a seed point intra prediction mode (SPIPM) of the seed block including the seed point, and may be based on the current block or The size or shape of the sub-block adaptively determines the seed points.

在根据本发明的图像解码方法中,可配置SPIPM的列表,其中,SPIPM的列表包括作为SPIPM候选的邻近块的帧内预测模式,并且可按照产生IPDF所需的SPIPM的数量从SPIPM的列表中选择SPIPM。In the image decoding method according to the present invention, a list of SPIPMs may be configured, wherein the list of SPIPMs includes intra prediction modes of adjacent blocks that are SPIPM candidates, and may be selected from the list of SPIPMs in accordance with the number of SPIPMs required to generate the IPDF. Select SPIPM.

在根据本发明的图像解码方法中,在邻近块中,当存在使用IPDF推导了帧内预测模式的邻近块时,可基于该邻近块的IPDF产生当前块的IPDF。In the image decoding method according to the present invention, among neighboring blocks, when there is a neighboring block for which an intra prediction mode is derived using IPDF, the IPDF of the current block may be generated based on the IPDF of the neighboring block.

在根据本发明的图像解码方法中,可使用邻近块的帧内预测模式来推导位于当前块的最外侧的子块的帧内预测模式,可使用位于当前块的最外侧的子块的帧内预测模式来推导至少一个剩余子块的帧内预测模式,以及可等空间地推导位于当前块的最外侧的子块中的两个子块的帧内预测模式和剩余子块的帧内预测模式。In the image decoding method according to the present invention, the intra prediction mode of the outermost sub-block located at the current block may be derived using the intra prediction mode of the adjacent block, and the intra prediction mode of the outermost sub-block located at the current block may be derived. Prediction modes are used to derive intra prediction modes of at least one remaining sub-block, and intra prediction modes of two sub-blocks located in outermost sub-blocks of the current block and intra prediction modes of the remaining sub-blocks may be equally spatially derived.

在根据本发明的图像解码方法中,可使用邻近块的帧内预测模式来推导位于当前块的最外侧的子块的帧内预测模式,可使用位于当前块的最外侧的子块的帧内预测模式来推导至少一个剩余子块的帧内预测模式,以及可通过位于当前块的最外侧的子块中的两个子块的帧内预测模式的双线性插值来推导剩余子块的帧内预测模式。In the image decoding method according to the present invention, the intra prediction mode of the outermost sub-block located at the current block may be derived using the intra prediction mode of the adjacent block, and the intra prediction mode of the outermost sub-block located at the current block may be derived. prediction mode to derive the intra prediction mode of at least one remaining sub-block, and the intra prediction mode of the remaining sub-block may be derived by bilinear interpolation of the intra prediction modes of two sub-blocks located in the outermost sub-block of the current block Prediction mode.

根据本发明的一种图像解码设备可包括帧内预测单元,帧内预测单元被配置为:将当前块分区为一个或更多个子块;通过使用当前块的帧内预测模式和与当前块相邻的邻近块的帧内预测模式中的至少一个来推导所述一个或更多个子块中的每一个子块的帧内预测模式;以及通过使用推导的帧内预测模式对所述一个或更多个子块中的每一个子块执行帧内预测。An image decoding device according to the present invention may include an intra prediction unit configured to: partition a current block into one or more sub-blocks; to derive an intra prediction mode for each of the one or more sub-blocks by using at least one of the intra prediction modes of neighboring neighboring blocks; and by using the derived intra prediction modes for the one or more sub-blocks Each of the plurality of sub-blocks performs intra prediction.

根据本发明的一种图像编码方法可包括:将当前块分区为一个或更多个子块;通过使用当前块的帧内预测模式和与当前块相邻的邻近块的帧内预测模式中的至少一个来确定所述一个或更多个子块中的每一个子块的帧内预测模式;以及通过使用确定的帧内预测模式对所述一个或更多个子块中的每一个子块执行帧内预测。An image encoding method according to the present invention may include: partitioning a current block into one or more sub-blocks; by using at least one of an intra prediction mode of the current block and an intra prediction mode of a neighboring block adjacent to the current block. one to determine an intra prediction mode for each of the one or more sub-blocks; and perform intra prediction on each of the one or more sub-blocks by using the determined intra prediction mode. predict.

在根据本发明的图像编码方法中,确定帧内预测模式的步骤可包括:通过使用当前块的帧内预测模式和邻近块的帧内预测模式中的至少一个来产生用于当前块的帧内预测方向字段(IPDF);以及通过使用产生的IPDF来确定所述一个或更多个子块中的每一个子块的帧内预测模式。In the image encoding method according to the present invention, the step of determining the intra prediction mode may include generating an intra prediction mode for the current block by using at least one of an intra prediction mode of the current block and an intra prediction mode of a neighboring block. a prediction direction field (IPDF); and determining an intra prediction mode for each of the one or more sub-blocks by using the generated IPDF.

在根据本发明的图像编码方法中,可使用变换模型产生IPDF,并且变换模型可包括刚体变换、相似性变换、仿射变换、单应性变换和3D变换中的至少一个。In the image encoding method according to the present invention, the IPDF may be generated using a transformation model, and the transformation model may include at least one of rigid body transformation, similarity transformation, affine transformation, homography transformation and 3D transformation.

在根据本发明的图像编码方法中,在产生IPDF的步骤中使用的邻近块的帧内预测模式可以是包括种子点的种子块的种子点帧内预测模式(SPIPM),并且可基于当前块或子块的尺寸或形状自适应地确定种子点。In the image encoding method according to the present invention, the intra prediction mode of the neighboring block used in the step of generating the IPDF may be a seed point intra prediction mode (SPIPM) of the seed block including the seed point, and may be based on the current block or The size or shape of the sub-block adaptively determines the seed points.

在根据本发明的图像编码方法中,可配置SPIPM的列表,其中,SPIPM的列表包括作为SPIPM候选的邻近块的帧内预测模式,并且可按照产生IPDF所需的SPIPM的数量从SPIPM的列表中选择SPIPM。In the image encoding method according to the present invention, a list of SPIPMs may be configured, wherein the list of SPIPMs includes intra prediction modes of adjacent blocks that are SPIPM candidates, and may be selected from the list of SPIPMs in accordance with the number of SPIPMs required to generate the IPDF. Select SPIPM.

在根据本发明的图像编码方法中,在邻近块中,当存在使用IPDF推导了帧内预测模式的邻近块时,可基于该邻近块的IPDF产生当前块的IPDF。In the image encoding method according to the present invention, among neighboring blocks, when there is a neighboring block for which an intra prediction mode is derived using IPDF, the IPDF of the current block may be generated based on the IPDF of the neighboring block.

在根据本发明的图像编码方法中,可使用邻近块的帧内预测模式来确定位于当前块的最外侧的子块的帧内预测模式,可使用位于当前块的最外侧的子块的帧内预测模式来确定至少一个剩余子块的帧内预测模式,以及可等空间地确定位于当前块的最外侧的子块中的两个子块的帧内预测模式和剩余子块的帧内预测模式。In the image encoding method according to the present invention, the intra prediction mode of the sub-block located at the outermost side of the current block may be determined using the intra prediction mode of the neighboring block, and the intra prediction mode of the sub-block located at the outermost side of the current block may be determined. The prediction mode is used to determine the intra prediction mode of at least one remaining sub-block, and the intra prediction modes of two sub-blocks located in the outermost sub-block of the current block and the intra prediction mode of the remaining sub-block may be equally spatially determined.

在根据本发明的图像编码方法中,可使用邻近块的帧内预测模式来确定位于当前块的最外侧的子块的帧内预测模式,可使用位于当前块的最外侧的子块的帧内预测模式来确定至少一个剩余子块的帧内预测模式,以及可通过位于当前块的最外侧的子块中的两个子块的帧内预测模式的双线性插值来确定剩余子块的帧内预测模式。In the image encoding method according to the present invention, the intra prediction mode of the sub-block located at the outermost side of the current block may be determined using the intra prediction mode of the neighboring block, and the intra prediction mode of the sub-block located at the outermost side of the current block may be determined. The prediction mode is used to determine the intra prediction mode of at least one remaining sub-block, and the intra prediction mode of the remaining sub-block may be determined by bilinear interpolation of the intra prediction modes of two sub-blocks located in the outermost sub-block of the current block. Prediction mode.

根据本发明的一种图像编码设备可包括帧内预测单元,帧内预测单元被配置为:将当前块分区为一个或更多个子块;通过使用当前块的帧内预测模式和与当前块相邻的邻近块的帧内预测模式中的至少一个来确定所述一个或更多个子块中的每一个子块的帧内预测模式;以及通过使用确定的帧内预测模式对所述一个或更多个子块中的每一个子块执行帧内预测。An image encoding device according to the present invention may include an intra prediction unit configured to: partition a current block into one or more sub-blocks; determine the intra prediction mode of each of the one or more sub-blocks by using at least one of the intra prediction modes of adjacent neighboring blocks; and use the determined intra prediction mode to determine the intra prediction mode of the one or more sub-blocks. Each of the plurality of sub-blocks performs intra prediction.

根据本发明的一种计算机可读记录介质可存储由本发明的图像编码方法产生的比特流。A computer-readable recording medium according to the present invention can store a bit stream generated by the image encoding method of the present invention.

有益效果beneficial effects

根据本发明,可提供一种提高了压缩效率的图像编码/解码方法和设备以及存储由本发明的图像编码方法/设备产生的比特流的记录介质。According to the present invention, it is possible to provide an image encoding/decoding method and device with improved compression efficiency and a recording medium that stores a bit stream generated by the image encoding method/device of the present invention.

以及,根据本发明,可提供一种提高了压缩效率的使用帧内预测的图像编码/解码方法和设备以及存储由本发明的图像编码方法/设备产生的比特流的记录介质。And, according to the present invention, it is possible to provide an image encoding/decoding method and device using intra prediction with improved compression efficiency and a recording medium that stores a bit stream generated by the image encoding method/device of the present invention.

以及,根据本发明,可提供一种使用变换模型、等空间模型或双线性插值模型执行帧内预测的图像编码/解码方法和设备以及存储由本发明的图像编码方法/设备产生的比特流的记录介质。And, according to the present invention, it is possible to provide an image encoding/decoding method and apparatus that performs intra prediction using a transformation model, an isospace model, or a bilinear interpolation model and a method for storing a bit stream generated by the image encoding method/apparatus of the present invention. recording media.

附图说明Description of the drawings

图1是示出根据本发明的实施例的编码设备的配置的框图。1 is a block diagram showing the configuration of an encoding device according to an embodiment of the present invention.

图2是示出根据本发明的实施例的解码设备的配置的框图。2 is a block diagram showing the configuration of a decoding device according to an embodiment of the present invention.

图3是示意性地示出当对图像进行编码和解码时图像的分区结构的示图。FIG. 3 is a diagram schematically showing a partition structure of an image when encoding and decoding the image.

图4是示出帧内预测处理的示图。FIG. 4 is a diagram showing intra prediction processing.

图5是示出根据本发明的实施例的对当前块执行帧内预测的方法的示图。FIG. 5 is a diagram illustrating a method of performing intra prediction on a current block according to an embodiment of the present invention.

图6是示出使用SPIPM推导当前块的帧内预测模式的实施例的示图。FIG. 6 is a diagram illustrating an embodiment of deriving an intra prediction mode of a current block using SPIPM.

图7是示出构造包括两个SPIPM的SPIPM列表的实施例的示图。FIG. 7 is a diagram illustrating an embodiment of constructing a SPIPM list including two SPIPMs.

图8是示出构造包括三个SPIPM的SPIPM列表的实施例的示例性示图。FIG. 8 is an exemplary diagram illustrating an embodiment of constructing a SPIPM list including three SPIPMs.

图9是示出构造包括四个SPIPM的SPIPM列表的实施例的示例性示图。FIG. 9 is an exemplary diagram illustrating an embodiment of constructing a SPIPM list including four SPIPMs.

图10是示出当前块的尺寸是16×16的情况下的子块尺寸的示例性示图。FIG. 10 is an exemplary diagram showing the sub-block size in the case where the size of the current block is 16×16.

图11是示出使用确定的IPDF分配帧内预测模式的实施例的示图。FIG. 11 is a diagram illustrating an embodiment of allocating an intra prediction mode using a determined IPDF.

图12是示出与当前块邻近的重建块的示例性示图。FIG. 12 is an exemplary diagram showing reconstructed blocks adjacent to the current block.

图13是示出使用邻近重建块推导帧内预测模式的实施例的示图。FIG. 13 is a diagram illustrating an embodiment of deriving an intra prediction mode using neighboring reconstructed blocks.

图14是示出推导基于子块的帧内预测模式的实施例的示图。FIG. 14 is a diagram illustrating an embodiment of deriving a sub-block based intra prediction mode.

图15是示出推导基于子块的帧内预测模式的另一实施例的示图。FIG. 15 is a diagram illustrating another embodiment of deriving a sub-block based intra prediction mode.

图16是示出可用于当前块的帧内预测的邻近重建样点线的示例性示图。Figure 16 is an exemplary diagram illustrating adjacent reconstructed sample lines that may be used for intra prediction of the current block.

图17是示出针对包括在当前块中的子块来构建参考样点的实施例的示图。FIG. 17 is a diagram illustrating an embodiment of constructing reference samples for sub-blocks included in the current block.

图18是示出使用可用重建样点替换不可用重建样点的方法的示图。FIG. 18 is a diagram illustrating a method of replacing unavailable reconstruction sample points with available reconstruction sample points.

图19是示出根据当前块的形状的帧内预测的示例性示图。FIG. 19 is an exemplary diagram illustrating intra prediction according to the shape of the current block.

具体实施方式Detailed ways

发明模式invention pattern

可对本发明做出多种修改,并且存在本发明的多种实施例,其中,现在将参照附图提供所述实施例的示例并且将详细描述所述实施例的示例。然而,本发明不限于此,并且示例性实施例可被解释为包括本发明的技术构思和技术范围内的所有修改、等同形式或替换形式。相似的参考标号指在各方面相同或相似的功能。在附图中,为了清楚起见,元件的形状和尺寸可被夸大。在本发明的以下详细描述中,对通过图示的方式示出可对本发明进行实施的具体实施例的附图进行参照。这些实施例被足够详细地描述以使本领域技术人员能够实施本公开。应该理解,本公开的各种实施例尽管不同,但不必是相互排他的。例如,在不脱离本公开的精神和范围的情况下,这里描述的与一个实施例关联的特定特征、结构和特性可在其它实施例中被实施。此外,应该理解,在不脱离本公开的精神和范围的情况下,每个公开的实施例内的各个元件的位置或布置可被修改。因此,以下详细描述将不以限制的含义进行,本公开的范围仅由所附权利要求(在合适的解释的情况下,还连同权利要求所要求保护的等同物的全部范围)来限定。Various modifications are possible to the invention and there are various embodiments of the invention, examples of which will now be provided with reference to the accompanying drawings and which will be described in detail. However, the present invention is not limited thereto, and the exemplary embodiments may be interpreted to include all modifications, equivalents, or alternatives within the technical concept and technical scope of the present invention. Similar reference numbers refer to identical or similar functions in all respects. In the drawings, the shapes and sizes of elements may be exaggerated for clarity. In the following detailed description of the invention, reference is made to the accompanying drawings, which illustrate by way of illustration specific embodiments in which the invention may be practiced. These embodiments are described in sufficient detail to enable those skilled in the art to practice the disclosure. It should be understood that the various embodiments of the present disclosure, while different, are not necessarily mutually exclusive. For example, the specific features, structures, and characteristics described herein in connection with one embodiment may be implemented in other embodiments without departing from the spirit and scope of the disclosure. Furthermore, it is to be understood that the position or arrangement of various elements within each disclosed embodiment may be modified without departing from the spirit and scope of the disclosure. Therefore, the following detailed description is not to be taken in a limiting sense, and the scope of the disclosure is defined only by the appended claims (along with the full scope of equivalents to which the claims are entitled, when properly interpreted).

在说明书中使用的术语“第一”、“第二”等可被用于描述各种组件,但这些组件并不被解释为受限于所述术语。所述术语仅被用于将一个组件与另一组件区分开。例如,在不脱离本发明的范围的情况下,“第一”组件可被称为“第二”组件,并且“第二”组件也可被类似地称为“第一”组件。术语“和/或”包括多个项的组合或者多个项中的任意一项。The terms "first", "second", etc. used in the specification may be used to describe various components, but these components are not to be construed as being limited to the terms. The terms are only used to distinguish one component from another component. For example, a "first" component could be termed a "second" component, and the "second" component could similarly be termed a "first" component, without departing from the scope of the invention. The term "and/or" includes a combination of a plurality of items or any one of a plurality of items.

将理解的是,在本说明书中,当元件被简单称为“连接到”或“结合到”另一元件而不是“直接连接到”或“直接结合到”另一元件时,所述元件可以“直接连接到”或“直接结合到”另一元件,或者是在其间插入其它元件的情况下连接到或结合到另一元件。相反,应该理解,当元件被称为“直接结合”或“直接连接”到另一元件时,不存在中间元件。It will be understood that in this specification, when an element is referred to as being "connected to" or "coupled to" another element rather than as being "directly connected to" or "directly coupled to" the other element, that element may "Directly connected to" or "directly coupled to" another element can be connected or coupled to another element with other elements intervening therebetween. In contrast, it will be understood that when an element is referred to as being "directly coupled" or "directly connected" to another element, there are no intervening elements present.

此外,在本发明的实施例中示出的组成部件被独立示出,以便呈现彼此不同的特性功能。因此,这并不意味着每个组成部件以单独的硬件或软件的组成单元被构成。换句话说,为了方便,每个组成部件包括枚举的组成部件中的每一个。因此,每个组成部件中的至少两个组成部件可被组合形成一个组成部件,或者一个组成部件可被划分为多个组成部件以执行每个功能。在没有脱离本发明的本质的情况下,每个组成部件被组合的实施例以及一个组成部件被划分的实施例也被包括在本发明的范围中。Furthermore, the constituent parts shown in the embodiments of the present invention are shown independently so as to present different characteristic functions from each other. Therefore, this does not mean that each component is constituted as a separate component unit of hardware or software. In other words, for convenience, each component includes each of the enumerated components. Therefore, at least two of each component may be combined to form one component, or one component may be divided into a plurality of components to perform each function. Embodiments in which each component is combined and embodiments in which one component is divided are also included in the scope of the present invention without departing from the essence of the invention.

在本说明书中使用的术语仅用于描述具体实施例,而不旨在限制本发明。以单数使用的表达包括复数表达,除非它在上下文中具有明显不同的含义。在本说明书中,将理解,诸如“包括...的”、“具有...的”等的术语旨在指明说明书中所公开的特征、数量、步骤、行为、元件、部件、或其组合的存在,而并不旨在排除一个或更多个其它特征、数量、步骤、行为、元件、部件、或其组合可能存在或者可能被添加的可能性。换句话说,当特定元件被称为“被包括”时,除相应元件以外的元件并不被排除,而是,另外的元件可被包括在本发明的实施例或者本发明的范围中。The terminology used in this specification is used only to describe specific embodiments and is not intended to limit the invention. An expression used in the singular includes the plural unless it has an obviously different meaning in the context. In this specification, it will be understood that terms such as "comprising", "having", etc. are intended to indicate the features, quantities, steps, acts, elements, components, or combinations thereof disclosed in the specification The presence of , is not intended to exclude the possibility that one or more other features, quantities, steps, acts, elements, parts, or combinations thereof may be present or may be added. In other words, when a particular element is referred to as being "comprising," elements other than the corresponding element are not excluded, but rather, additional elements may be included within embodiments of the invention or the scope of the invention.

此外,一些组成元件可能不是执行本发明的必要功能的不可缺的组成部件,而是仅提升其性能的可选组成部件。可通过仅包括用于实施本发明的实质的不可缺的组成部件而不包括用于提升性能的组成部件来实施本发明。仅包括所述不可缺的组成部件而不包括仅用于提升性能的可选组成部件的结构也被包括在本发明的范围中。Furthermore, some constituent elements may not be indispensable for performing the necessary functions of the present invention, but may be optional constituents that merely enhance its performance. The present invention can be implemented by including only components indispensable for implementing the essence of the present invention and not including components for improving performance. A structure including only the indispensable components and not optional components merely for improving performance is also included in the scope of the present invention.

在下文中,将参照附图详细描述本发明的实施例。在描述本发明的示例性实施例时,将不详细描述公知功能或结构,这是因为它们会不必要地模糊对本发明的理解。附图中的相同的组成元件通过相同的参考标号来表示,并且对相同元件的重复描述将被省略。Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. In describing exemplary embodiments of the invention, well-known functions or constructions will not be described in detail since they would unnecessarily obscure the understanding of the invention. The same constituent elements in the drawings are denoted by the same reference numerals, and repeated description of the same elements will be omitted.

此外,在下文中,图像可意为构成视频的画面,或者可意为视频本身。例如,“对图像进行编码或解码或者进行编码和解码”可意为“对视频进行编码或解码或者进行编码和解码”,并且可意为“对视频的多个图像之中的一个图像进行编码或解码或者进行编码和解码”。这里,画面和图像可具有相同的含义。Furthermore, in the following, an image may mean a picture constituting a video, or may mean the video itself. For example, "encode or decode an image, or both," may mean "encode or decode a video, or both," and may mean "encode one of a plurality of images of a video." or decoding or encoding and decoding”. Here, picture and image may have the same meaning.

术语描述Terminology description

编码器:意为执行编码的设备。Encoder: means the device that performs encoding.

解码器:意为执行解码的设备。Decoder: means the device that performs decoding.

块:为M×N矩阵的样点。这里,M和N意为正整数,并且块可意为二维形式的样点矩阵。块可表示单元。当前块可意为当编码时成为目标的编码目标块或者当解码时成为目标的解码目标块。此外,当前块可以是编码块、预测块、残差块和变换块中的至少一个。Block: is the sample point of M×N matrix. Here, M and N mean positive integers, and a block may mean a sample matrix in two-dimensional form. Blocks can represent units. The current block may mean an encoding target block that is targeted when encoding or a decoding target block that is targeted when decoding. Furthermore, the current block may be at least one of a coding block, a prediction block, a residual block, and a transformation block.

样点:是构成块的基本单元。其可被表示为依据比特深度(Bd)而范围为0至2Bd–1的值。在本发明中,样点可用作像素的含义。Sample point: It is the basic unit that constitutes a block. It can be expressed as a value ranging from 0 to 2 Bd –1 in terms of bit depth (Bd). In the present invention, sample points can be used as the meaning of pixels.

单元:意为编码和解码单元。当对图像进行编码和解码时,单元可以是通过对单个图像进行分区而产生的区域。此外,单元可意为在编码或解码期间当单个图像被分区为多个子划分单元时的子划分单元。在对图像进行编码和解码时,可执行针对每个单元的预定处理。一个单元可被分区为尺寸比该单元的尺寸更小的子单元。依据功能,单元可意为块、宏块、编码树单元、编码树块、编码单元、编码块、预测单元、预测块、残差单元、残差块、变换单元、变换块等。此外,为了将单元与块区分开,单元可包括亮度分量块、与亮度分量块相关联的色度分量块、以及每个颜色分量块的语法元素。单元可具有各种尺寸和形状,具体而言,单元的形式可以是二维几何图形,诸如矩形、正方形、梯形、三角形、五边形等。此外,单元信息可包括单元类型(指示编码单元、预测单元、变换单元等)、单元尺寸、单元深度、对单元进行编码和解码的顺序等中的至少一个。Unit: means encoding and decoding unit. When encoding and decoding images, cells can be regions produced by partitioning a single image. Furthermore, a unit may mean a sub-split unit when a single image is partitioned into a plurality of sub-split units during encoding or decoding. When encoding and decoding images, predetermined processing for each unit may be performed. A cell can be partitioned into sub-cells that are smaller in size than the size of the cell. Depending on the function, a unit may mean a block, a macroblock, a coding tree unit, a coding tree block, a coding unit, a coding block, a prediction unit, a prediction block, a residual unit, a residual block, a transform unit, a transform block, etc. Furthermore, to distinguish units from blocks, a unit may include a luma component block, a chrominance component block associated with the luma component block, and syntax elements for each color component block. The units may have various sizes and shapes. Specifically, the units may be in the form of two-dimensional geometric figures, such as rectangles, squares, trapezoids, triangles, pentagons, etc. Furthermore, the unit information may include at least one of unit type (indicating coding unit, prediction unit, transformation unit, etc.), unit size, unit depth, order of encoding and decoding the unit, and the like.

编码树单元:配置有亮度分量Y的单个编码树块以及与两个分量Cb和Cr相关的两个编码树块。此外,其可表示包括块和每个块的语法元素。每个编码树单元可通过使用四叉树分区方法和二叉树分区方法中的至少一种被分区,以配置较低层单元,诸如编码单元、预测单元、变换单元等。编码树单元可被用作用于指定在对作为输入图像的图像进行解码/编码中成为处理单元的像素块的术语。Coding tree unit: configured with a single coding tree block of the luminance component Y and two coding tree blocks related to the two components Cb and Cr. Furthermore, it may mean including blocks and syntax elements of each block. Each coding tree unit may be partitioned by using at least one of a quadtree partitioning method and a binary tree partitioning method to configure lower layer units such as coding units, prediction units, transformation units, and the like. Coding tree unit may be used as a term for specifying a pixel block that becomes a processing unit in decoding/encoding an image as an input image.

编码树块:可用作用于指定Y编码树块、Cb编码树块和Cr编码树块中的任意一个的术语。Coding tree block: may be used as a term for specifying any one of Y coding tree block, Cb coding tree block, and Cr coding tree block.

邻近块:意为与当前块相邻的块。与当前块相邻的块可意为与当前块的边界接触的块或者位于距当前块预定距离之内的块。邻近块可意为与当前块的顶点相邻的块。这里,与当前块的顶点相邻的块可意为与水平相邻于当前块的邻近块垂直相邻的块或者与垂直相邻于当前块的邻近块水平相邻的块。Neighboring blocks: means blocks adjacent to the current block. A block adjacent to the current block may mean a block in contact with a boundary of the current block or a block located within a predetermined distance from the current block. Neighboring blocks may mean blocks adjacent to the vertices of the current block. Here, the block adjacent to the vertex of the current block may mean a block vertically adjacent to an adjacent block horizontally adjacent to the current block or a block horizontally adjacent to an adjacent block vertically adjacent to the current block.

重建邻近块:意为与当前块相邻并且在空间上/时间上已被编码或解码的邻近块。这里,重建邻近块可意为重建邻近单元。重建空间邻近块可以是在当前画面内的并且已通过编码或解码或编码和解码两者被重建的块。重建时间邻近块是在参考画面内的与当前画面的当前块在相同位置处的块或者该块的邻近块。Reconstructed neighboring blocks: means neighboring blocks that are adjacent to the current block and have been encoded or decoded in space/time. Here, reconstructing neighboring blocks may mean reconstructing neighboring units. Reconstructed spatial neighboring blocks may be blocks that are within the current picture and have been reconstructed by encoding or decoding or both encoding and decoding. A reconstruction temporal neighboring block is a block within the reference picture that is at the same position as the current block of the current picture or a neighboring block of that block.

单元深度:意为单元被分区的程度。在树结构中,根节点可以是最高节点,叶节点可以是最低节点。此外,当单元表达为树结构时,单元所处于的等级可意为单元深度。Cell depth: means the degree to which the cell is partitioned. In a tree structure, the root node can be the highest node and the leaf node can be the lowest node. In addition, when the unit is expressed as a tree structure, the level at which the unit is located may mean the unit depth.

比特流:意为包括编码图像信息的比特流。Bitstream: means a bitstream containing encoded image information.

参数集:与比特流的配置中的头信息相应。视频参数集、序列参数集、画面参数集和自适应参数集中的至少一个参数集可包括在参数集中。此外,参数集可包括条带(slice)头和并行块(tile)头信息等。Parameter set: corresponds to the header information in the bitstream configuration. At least one parameter set of a video parameter set, a sequence parameter set, a picture parameter set, and an adaptation parameter set may be included in the parameter set. In addition, the parameter set may include slice header and tile header information, etc.

解析:可意为通过执行熵解码确定语法元素的值,或可意为熵解码本身。Parsing: May mean determining the value of a syntax element by performing entropy decoding, or may mean entropy decoding itself.

符号:可意为编码/解码目标单元的语法元素、编码参数和变换系数值中的至少一个。此外,符号可意为熵编码目标或熵解码结果。Symbol: may mean at least one of syntax elements, encoding parameters, and transform coefficient values of the encoding/decoding target unit. Furthermore, the symbol may mean an entropy encoding target or an entropy decoding result.

预测单元:意为当执行诸如帧间预测、帧内预测、帧间补偿、帧内补偿和运动补偿的预测时的基本单元。单个预测单元可被分区为小尺寸的多个分区,或可被分区为较低层预测单元。Prediction unit: means a basic unit when performing prediction such as inter prediction, intra prediction, inter compensation, intra compensation, and motion compensation. A single prediction unit may be partitioned into multiple partitions of small sizes, or may be partitioned into lower layer prediction units.

预测单元分区:意为通过对预测单元进行分区获得的形式。Prediction unit partitioning: means the form obtained by partitioning the prediction unit.

变换单元:意为当对残差信号执行诸如变换、逆变换、量化、反量化、变换系数编码/解码的编码/解码时的基本单元。单个变换单元可被分区为具有小尺寸的多个变换单元。Transform unit: means a basic unit when performing encoding/decoding such as transform, inverse transform, quantization, inverse quantization, transform coefficient encoding/decoding on the residual signal. A single transformation unit can be partitioned into multiple transformation units with small sizes.

缩放:意为将一因子与变换系数等级相乘的处理。可通过对变换系数等级进行缩放来产生变换系数。缩放还可被称为反量化。Scaling: means the process of multiplying a factor by the transformation coefficient level. Transform coefficients can be generated by scaling transform coefficient levels. Scaling may also be called inverse quantization.

量化参数:可意为在量化期间当产生变换系数的变换系数等级时使用的值。量化参数可意为在反量化期间通过对变换系数等级进行缩放产生变换系数时使用的值。量化参数可以是被映射到量化的步长大小的值。Quantization parameter: may mean a value used during quantization when generating transform coefficient levels of transform coefficients. The quantization parameter may mean a value used when generating transform coefficients by scaling transform coefficient levels during inverse quantization. The quantization parameter may be a step size value that is mapped to quantization.

增量(Delta)量化参数:意为编码/解码目标单元的量化参数与预测出的量化参数之间的差值。Delta quantization parameter: means the difference between the quantization parameter of the encoding/decoding target unit and the predicted quantization parameter.

扫描:意为对块或矩阵内的系数进行排序的方法。例如,将二维矩阵的系数改变为一维矩阵的操作可被称为扫描,并且将一维矩阵的系数改变为二维矩阵的操作可被称为扫描或逆扫描。Scan: Means a method of sorting the coefficients within a block or matrix. For example, an operation of changing the coefficients of a two-dimensional matrix into a one-dimensional matrix may be called a scan, and an operation of changing the coefficients of a one-dimensional matrix into a two-dimensional matrix may be called a scan or inverse scan.

变换系数:可意为在编码器中执行变换之后产生的系数值。其可意为在解码器中执行熵解码和反量化中的至少一个之后产生的系数值。通过对变换系数或残差信号进行量化获得的量化等级或者量化的变换系数等级也可落入变换系数的含义。Transform coefficients: May mean the coefficient values produced after performing a transform in the encoder. It may mean coefficient values generated after at least one of entropy decoding and inverse quantization is performed in the decoder. A quantization level obtained by quantizing a transform coefficient or a residual signal or a quantized transform coefficient level may also fall within the meaning of a transform coefficient.

量化等级:意为通过在编码器中对变换系数或残差信号进行量化产生的值。可选择地,量化等级可意为作为在解码器中将被反量化的反量化目标的值。相思地,作为变换和量化的结果的量化的变换系数等级也可落入量化等级的含义。Quantization level: means the value produced by quantizing the transform coefficients or residual signal in the encoder. Alternatively, the quantization level may mean a value that is an inverse quantization target to be inversely quantized in the decoder. Aspectively, the quantized transform coefficient levels that are the result of transformation and quantization may also fall within the meaning of quantization levels.

非零变换系数:意为具有除0以外的值的变换系数或者具有除0以外的值的变换系数等级。Non-zero transform coefficient: means a transform coefficient with a value other than 0 or a transform coefficient level with a value other than 0.

量化矩阵:意为在被执行的量化处理和反量化处理中使用以提高主体(subject)图像质量或对象(object)图像质量的矩阵。量化矩阵也可被称为缩放列表。Quantization matrix: means a matrix used in quantization processing and inverse quantization processing to improve subject image quality or object image quality. The quantization matrix may also be called a scaling list.

量化矩阵系数:意为量化矩阵内的每个元素。量化矩阵系数还可被称为矩阵系数。Quantization matrix coefficient: means quantizing each element in the matrix. Quantized matrix coefficients may also be called matrix coefficients.

默认矩阵:意为在编码器和解码器中被预先定义的预定量化矩阵。Default matrix: means a predetermined quantization matrix that is predefined in the encoder and decoder.

非默认矩阵:意为在编码器和解码器中未被预先定义但由用户用信号发送的量化矩阵。Non-default matrix: means a quantization matrix that is not predefined in the encoder and decoder but is signaled by the user.

图1是示出根据实施例并应用本发明的编码设备的配置的框图。1 is a block diagram showing the configuration of an encoding device according to an embodiment and to which the present invention is applied.

编码设备100可以是编码器、视频编码设备或图像编码设备。视频可包括至少一个图像。编码设备100可顺序地对至少一个图像进行编码。The encoding device 100 may be an encoder, a video encoding device or an image encoding device. The video may include at least one image. The encoding device 100 may sequentially encode at least one image.

参照图1,编码设备100可包括运动预测单元111、运动补偿单元112、帧内预测单元120、切换器115、减法器125、变换单元130、量化单元140、熵编码单元150、反量化单元160、逆变换单元170、加法器175、滤波器单元180以及参考画面缓冲器190。Referring to FIG. 1 , the encoding device 100 may include a motion prediction unit 111, a motion compensation unit 112, an intra prediction unit 120, a switch 115, a subtractor 125, a transform unit 130, a quantization unit 140, an entropy encoding unit 150, and an inverse quantization unit 160. , inverse transform unit 170, adder 175, filter unit 180 and reference picture buffer 190.

编码设备100可通过使用帧内模式或帧间模式或者帧内模式和帧间模式两者来对输入图像执行编码。此外,编码设备100可通过对输入图像进行编码来产生比特流,并可输出产生的比特流。产生的比特流可被存储在计算机可读记录介质中,或可通过有线/无线传输介质被流传输。当帧内模式被用作预测模式时,切换器115可切换到帧内。可选择地,当帧间模式被用作预测模式时,切换器115可切换到帧间模式。这里,帧内模式可意为帧内预测模式,帧间模式可意为帧间预测模式。编码设备100可产生输入图像的输入块的预测块。此外,在产生预测块之后,编码设备100可对输入块和预测块的残差进行编码。输入图像可被称为作为当前编码目标的当前图像。输入块可被称为作为当前编码目标的当前块或者可被称为编码目标块。The encoding device 100 may perform encoding on the input image by using the intra mode or the inter mode, or both the intra mode and the inter mode. Furthermore, the encoding device 100 may generate a bit stream by encoding the input image, and may output the generated bit stream. The generated bitstream may be stored in a computer-readable recording medium, or may be streamed through a wired/wireless transmission medium. When the intra mode is used as the prediction mode, the switch 115 may switch to intra. Alternatively, when the inter mode is used as the prediction mode, the switch 115 may switch to the inter mode. Here, the intra mode may mean an intra prediction mode, and the inter mode may mean an inter prediction mode. The encoding device 100 may generate a prediction block of an input block of an input image. Furthermore, after generating the prediction block, the encoding device 100 may encode the input block and the residual of the prediction block. The input image may be referred to as the current image that is the current encoding target. The input block may be called a current block that is a current encoding target or may be called an encoding target block.

当预测模式是帧内模式时,帧内预测单元120可将已被编码/解码并与当前块相邻的块的像素值用作参考像素。帧内预测单元120可通过使用参考像素来执行空间预测,或可通过执行空间预测来产生输入块的预测样点。这里,帧内预测可意为帧内-预测。When the prediction mode is the intra mode, the intra prediction unit 120 may use pixel values of blocks that have been encoded/decoded and are adjacent to the current block as reference pixels. Intra prediction unit 120 may perform spatial prediction by using reference pixels, or may generate prediction samples of the input block by performing spatial prediction. Here, intra prediction may mean intra-prediction.

当预测模式是帧间模式时,运动预测单元111可在执行运动预测时从参考图像搜索与输入块最匹配的区域,并可通过使用搜索到的区域推导运动矢量。参考图像可被存储在参考画面缓冲器190中。When the prediction mode is the inter mode, the motion prediction unit 111 may search for a region that best matches the input block from the reference image when performing motion prediction, and may derive a motion vector by using the searched region. Reference images may be stored in reference picture buffer 190.

运动补偿单元112可通过使用运动矢量执行运动补偿来产生预测块。这里,帧间预测可意为帧间-预测或运动补偿。Motion compensation unit 112 may generate prediction blocks by performing motion compensation using motion vectors. Here, inter prediction may mean inter-prediction or motion compensation.

当运动矢量的值不为整数时,运动预测单元111和运动补偿单元112可通过对参考画面的部分区域应用插值滤波器来产生预测块。为了对编码单元执行帧间预测或运动补偿,可确定跳过模式、合并模式、先进运动矢量预测(AMVP)模式和当前画面参考模式之中的哪个模式被用于包括在相应的编码单元中的预测单元的运动预测和补偿方法。随后,可根据确定的模式不同地执行画面间预测或运动补偿。When the value of the motion vector is not an integer, the motion prediction unit 111 and the motion compensation unit 112 may generate a prediction block by applying an interpolation filter to a partial area of the reference picture. In order to perform inter prediction or motion compensation on a coding unit, it may be determined which mode among skip mode, merge mode, advanced motion vector prediction (AMVP) mode, and current picture reference mode is used for the coding unit included in the corresponding coding unit. Motion prediction and compensation methods for prediction units. Subsequently, inter-picture prediction or motion compensation may be performed differently according to the determined mode.

减法器125可通过使用输入块和预测块的残差来产生残差块。残差块可被称为残差信号。残差信号可意为原始信号与预测信号之间的差。此外,残差信号可以是通过对原始信号与预测信号之间的差进行变换或量化或者变换和量化而产生的信号。残差块可以是块单元的残差信号。The subtractor 125 may generate a residual block by using the residuals of the input block and the prediction block. The residual block may be called a residual signal. The residual signal may mean the difference between the original signal and the predicted signal. Furthermore, the residual signal may be a signal generated by transforming or quantizing or transforming and quantizing the difference between the original signal and the predicted signal. The residual block may be a block-unit residual signal.

变换单元130可通过对残差块执行变换来产生变换系数,并可输出产生的变换系数。这里,变换系数可以是通过对残差块执行变换而产生的系数值。当应用变换跳过模式时,变换单元130可跳过对残差块的变换。The transform unit 130 may generate transform coefficients by performing transform on the residual block, and may output the generated transform coefficients. Here, the transform coefficient may be a coefficient value generated by performing transform on the residual block. When transform skip mode is applied, transform unit 130 may skip transforming the residual block.

可通过对变换系数或残差信号应用量化来产生量化等级。在下文中,在实施例中,经过量化的等级可被称为变换系数。Quantization levels can be generated by applying quantization to transform coefficients or residual signals. Hereinafter, in embodiments, the quantized levels may be referred to as transform coefficients.

量化单元140可通过根据参数对变换系数或残差信号进行量化来产生量化等级,并可输出产生的量化等级。这里,量化单元140可通过使用量化矩阵来对变换系数进行量化。The quantization unit 140 may generate a quantization level by quantizing the transform coefficient or the residual signal according to the parameters, and may output the generated quantization level. Here, the quantization unit 140 may quantize the transform coefficient by using a quantization matrix.

熵编码单元150可通过对由量化单元140计算出的值或对在执行编码时计算出的编码参数值执行根据概率分布的熵编码来产生比特流,并可输出产生的比特流。熵编码单元150可对用于对图像进行解码的信息和图像的像素信息执行熵编码。例如,用于对图像进行解码的信息可包括语法元素。The entropy encoding unit 150 may generate a bitstream by performing entropy encoding according to the probability distribution on the value calculated by the quantization unit 140 or on the encoding parameter value calculated when encoding is performed, and may output the generated bitstream. The entropy encoding unit 150 may perform entropy encoding on the information used to decode the image and the pixel information of the image. For example, information used to decode an image may include syntax elements.

当熵编码被应用时,通过向具有高产生概率的符号分配少量比特并向具有低产生概率的符号分配大量比特来表示符号,从而可减小用于将被编码的符号的比特流的大小。熵编码单元150可使用用于熵编码的编码方法,诸如指数哥伦布、上下文自适应变长编码(CAVLC)、上下文自适应二进制算术编码(CABAC)等。例如,熵编码单元150可通过使用变长编码/码(VLC)表来执行熵编码。此外,熵编码单元150可推导目标符号的二值化方法以及目标符号/二进制位的概率模型,并且可通过使用推导出的二值化方法和上下文模型来执行算术编码。When entropy coding is applied, the size of the bit stream for symbols to be encoded can be reduced by allocating a small number of bits to symbols with high probability of occurrence and a large number of bits to symbols with low probability of occurrence to represent symbols. The entropy encoding unit 150 may use an encoding method for entropy encoding, such as Exponential Golomb, Context Adaptive Variable Length Coding (CAVLC), Context Adaptive Binary Arithmetic Coding (CABAC), and the like. For example, the entropy encoding unit 150 may perform entropy encoding by using a variable length coding/coding (VLC) table. In addition, the entropy encoding unit 150 may derive a binarization method of the target symbol and a probability model of the target symbol/bin, and may perform arithmetic coding by using the derived binarization method and the context model.

为了对变换系数等级进行编码,熵编码单元150可通过使用变换系数扫描方法将二维块形式系数改变为一维矢量形式。In order to encode the transform coefficient level, the entropy encoding unit 150 may change the two-dimensional block form coefficients into a one-dimensional vector form by using a transform coefficient scanning method.

编码参数可包括在编码器中被编码并被用信号发送到解码器的诸如语法元素的信息(标志、索引等)和当执行编码或解码时推导出的信息。编码参数可意为当对图像进行编码或解码时所必需的信息。例如,编码参数可包括以下项中的至少一个值或组合形式:单元/块尺寸、单元/块深度、单元/块分区信息、单元/块分区结构、是否进行四叉树形式的分区、是否进行二叉树形式的分区、二叉树形式的分区方向(水平方向或垂直方向)、二叉树形式的分区形式(对称分区或非对称分区)、帧内预测模式/方向、参考样点滤波方法、预测块滤波方法、预测块滤波器抽头、预测块滤波器系数、帧间预测模式、运动信息、运动矢量、参考画面索引、帧间预测角度、帧间预测指示符、参考画面列表、参考画面、运动矢量预测因子候选、运动矢量候选列表、是否使用合并模式、合并候选、合并候选列表、是否使用跳过模式、插值滤波器类型、插值滤波器抽头、插值滤波器系数、运动矢量大小、运动矢量表示的精确度、变换类型、变换大小、主要(第一)变换是否被使用的信息、次要变换是否被使用的信息、主要变换索引、次要变换索引、残差信号是否存在的信息、编码块样式、编码块标志(CBF)、量化参数、量化矩阵、是否应用帧内环路滤波器、帧内环路滤波器系数、帧内环路滤波器抽头、帧内环路滤波器形状/形式、是否应用去块滤波器、去块滤波器系数、去块滤波器抽头、去块滤波器强度、去块滤波器形状/形式、是否应用自适应样点偏移、自适应样点偏移值、自适应样点偏移类别、自适应样点偏移类型、是否应用自适应环内滤波器、自适应环内滤波器系数、自适应环内滤波器抽头、自适应环内滤波器形状/形式、二值化/反二值化方法、上下文模型确定方法、上下文模型更新方法、是否执行普通模式、是否执行旁路模式、上下文二进制位、旁路二进制位、变换系数、变换系数等级、变换系数等级扫描方法、图像显示/输出顺序、条带识别信息、条带类型、条带分区信息、并行块识别信息、并行块类型、并行块分区信息、画面类型、比特深度、以及亮度信号或色度信号的信息。Encoding parameters may include information such as syntax elements (flags, indices, etc.) that are encoded in the encoder and signaled to the decoder and information derived when encoding or decoding is performed. Encoding parameters may mean information necessary when encoding or decoding an image. For example, the encoding parameters may include at least one value or combination of the following items: unit/block size, unit/block depth, unit/block partition information, unit/block partition structure, whether to perform partitioning in the form of a quadtree, whether to perform Partitioning in binary tree form, partitioning direction in binary tree form (horizontal or vertical direction), partitioning form in binary tree form (symmetric partitioning or asymmetric partitioning), intra prediction mode/direction, reference sample filtering method, prediction block filtering method, Prediction block filter tap, prediction block filter coefficient, inter prediction mode, motion information, motion vector, reference picture index, inter prediction angle, inter prediction indicator, reference picture list, reference picture, motion vector predictor candidate , motion vector candidate list, whether to use merge mode, merge candidate, merge candidate list, whether to use skip mode, interpolation filter type, interpolation filter tap, interpolation filter coefficient, motion vector size, accuracy of motion vector representation, Transform type, transform size, information about whether the primary (first) transform is used, information about whether the secondary transform is used, primary transform index, secondary transform index, information about whether the residual signal exists, coding block pattern, coding block Flag (CBF), quantization parameters, quantization matrix, whether to apply intra loop filter, intra loop filter coefficients, intra loop filter taps, intra loop filter shape/form, whether to apply deblocking Filter, deblocking filter coefficients, deblocking filter tap, deblocking filter strength, deblocking filter shape/form, whether to apply adaptive sample offset, adaptive sample offset value, adaptive sample Offset category, adaptive sample offset type, whether to apply adaptive in-loop filter, adaptive in-loop filter coefficients, adaptive in-loop filter taps, adaptive in-loop filter shape/form, binarization /Debinarization method, context model determination method, context model update method, whether to execute normal mode, whether to execute bypass mode, context binary bit, bypass binary bit, transformation coefficient, transformation coefficient level, transformation coefficient level scanning method, Image display/output sequence, slice identification information, slice type, slice partition information, tile identification information, tile type, tile partition information, picture type, bit depth, and luminance signal or chrominance signal information.

这里,用信号发送标志或索引可意为相应的标志或索引被编码器熵编码并包括在比特流中,并可意为相应的标志或索引被解码器从比特流中熵解码。Here, signaling a flag or index may mean that the corresponding flag or index is entropy-encoded by the encoder and included in the bitstream, and may mean that the corresponding flag or index is entropy-decoded by the decoder from the bitstream.

当编码设备100通过帧间预测执行编码时,可将编码的当前画面用作针对将被随后处理的另一图像的参考画面。因此,编码设备100可对编码的当前画面进行重建或解码,或可将重建或解码的图像存储为参考画面。When the encoding device 100 performs encoding through inter prediction, the encoded current picture may be used as a reference picture for another image to be subsequently processed. Therefore, the encoding device 100 may reconstruct or decode the encoded current picture, or may store the reconstructed or decoded image as a reference picture.

量化等级可在反量化单元160中被反量化,或可在逆变换单元170中被逆变换。可由加法器175将反量化的系数或逆变换的系数或者反量化和逆变换的系数与预测块相加。通过将反量化的系数或逆变换的系数或者反量化和逆变换的系数与预测块相加,可产生重建块。这里,反量化的系数或逆变换的系数或者反量化和逆变换的系数可意为执行了反量化和逆变换中的至少一个的系数,并可表示重建残差块。The quantization level may be inversely quantized in the inverse quantization unit 160 or may be inversely transformed in the inverse transform unit 170 . The inverse quantized coefficient or the inverse transformed coefficient or the inverse quantized and inverse transformed coefficients may be added to the prediction block by the adder 175 . A reconstruction block may be generated by adding inverse quantized coefficients or inverse transformed coefficients or inverse quantized and inverse transformed coefficients to the prediction block. Here, the inverse quantized coefficient or the inverse transformed coefficient or the inverse quantized and inverse transformed coefficient may mean a coefficient on which at least one of inverse quantization and inverse transform is performed, and may represent a reconstructed residual block.

重建块可通过滤波器单元180。滤波器单元180可向重建块或重建画面应用去块滤波器、样点自适应偏移(SAO)以及自适应环路滤波器(ALF)中的至少一个。滤波器单元180可被称为环内滤波器。The reconstructed block may pass filter unit 180. The filter unit 180 may apply at least one of a deblocking filter, a sample adaptive offset (SAO), and an adaptive loop filter (ALF) to the reconstructed block or reconstructed picture. Filter unit 180 may be referred to as an in-loop filter.

去块滤波器可去除在块之间的边界中产生的块失真。为了确定是否应用去块滤波器,可基于包括在块中的若干行或列中的像素来确定是否对当前块应用去块滤波器。当去块滤波器被应用于块时,可依据所需的去块滤波强度来应用另一滤波器。Deblocking filters remove blocking artifacts produced in the boundaries between blocks. In order to determine whether to apply a deblocking filter, it may be determined based on pixels in several rows or columns included in the block whether to apply the deblocking filter to the current block. When a deblocking filter is applied to a block, another filter can be applied depending on the required deblocking filtering strength.

为了对编码误差进行补偿,可通过使用样点自适应偏移将适当的偏移值与像素值相加。样点自适应偏移可以以像素为单位对去块后的图像与原始图像之间的偏移进行校正。可使用考虑每个像素的边缘信息来应用偏移的方法,或使用以下方法:将图像的像素分区为预定数量的区域,确定将应用偏移的区域,并对所确定的区域应用偏移。To compensate for coding errors, appropriate offset values are added to the pixel values using sample adaptive offset. Sample adaptive offset can correct the offset between the deblocked image and the original image in pixel units. A method of applying the offset considering edge information of each pixel may be used, or a method of partitioning the pixels of the image into a predetermined number of areas, determining the areas to which the offset will be applied, and applying the offset to the determined areas.

自适应环路滤波器可基于滤波的重建画面与原始画面的比较结果来执行滤波。可将包括在图像中的像素分区为预定个组,可确定将被应用于每个组的滤波器,并且可针对每个组执行不同的滤波。是否应用ALF的信息可通过编码单元(CU)被用信号发送,并且将被应用于每个块的ALF的形式和系数可变化。The adaptive loop filter may perform filtering based on a comparison of the filtered reconstructed picture and the original picture. Pixels included in the image may be partitioned into predetermined groups, a filter to be applied to each group may be determined, and different filtering may be performed for each group. Information whether to apply ALF may be signaled through a coding unit (CU), and the form and coefficients of ALF to be applied to each block may vary.

经过滤波器单元180的重建块或重建图像可被存储在参考画面缓冲器190中。图2是示出根据实施例并应用本发明的解码设备的配置的框图。The reconstructed blocks or reconstructed images that have passed through the filter unit 180 may be stored in the reference picture buffer 190 . 2 is a block diagram showing the configuration of a decoding device according to an embodiment and to which the present invention is applied.

解码设备200可以是解码器、视频解码设备或图像解码设备。The decoding device 200 may be a decoder, a video decoding device or an image decoding device.

参照图2,解码设备200可包括熵解码单元210、反量化单元220、逆变换单元230、帧内预测单元240、运动补偿单元250、加法器255、滤波器单元260以及参考画面缓冲器270。Referring to FIG. 2 , the decoding device 200 may include an entropy decoding unit 210, an inverse quantization unit 220, an inverse transform unit 230, an intra prediction unit 240, a motion compensation unit 250, an adder 255, a filter unit 260, and a reference picture buffer 270.

解码设备200可接收从编码设备100输出的比特流。解码设备200可接收存储在计算机可读记录介质中的比特流,或可接收通过有线/无线传输介质流传输的比特流。解码设备200可通过使用帧内模式或帧间模式对比特流进行解码。此外,解码设备200可产生通过解码而产生的重建图像或可产生解码后的图像,并可输出重建图像或解码后的图像。The decoding device 200 may receive the bit stream output from the encoding device 100. The decoding device 200 may receive a bit stream stored in a computer-readable recording medium, or may receive a bit stream streamed through a wired/wireless transmission medium. The decoding device 200 may decode the bitstream by using intra mode or inter mode. Furthermore, the decoding device 200 may generate a reconstructed image generated by decoding or may generate a decoded image, and may output the reconstructed image or the decoded image.

当在解码中使用的预测模式是帧内模式时,切换器可被切换到帧内。可选择地,当在解码中使用的预测模式是帧间模式时,切换器可被切换到帧间模式。When the prediction mode used in decoding is intra mode, the switcher may be switched to intra. Alternatively, when the prediction mode used in decoding is the inter mode, the switch may be switched to the inter mode.

解码设备200可通过对输入的比特流进行解码来获得重建残差块,并可产生预测块。当重建残差块和预测块被获得时,解码设备200可通过将重建残差块与预测块相加来产生成为解码目标的重建块。解码目标块可被称为当前块。The decoding device 200 may obtain a reconstructed residual block by decoding the input bit stream, and may generate a prediction block. When the reconstruction residual block and the prediction block are obtained, the decoding device 200 may generate the reconstruction block that becomes the decoding target by adding the reconstruction residual block and the prediction block. The decoding target block may be called the current block.

熵解码单元210可通过根据概率分布对比特流执行熵解码来产生符号。产生的符号可包括量化等级形式的符号。这里,熵解码方法可以是上述熵编码的方法的逆处理。The entropy decoding unit 210 may generate symbols by performing entropy decoding on the bitstream according to a probability distribution. The symbols generated may include symbols in the form of quantified levels. Here, the entropy decoding method may be the inverse process of the above-mentioned entropy encoding method.

为了对变换系数等级进行解码,熵解码单元210可通过使用变换系数扫描方法将单方向矢量形式系数改变为二维块形式。In order to decode the transform coefficient level, the entropy decoding unit 210 may change the unidirectional vector form coefficients into a two-dimensional block form by using a transform coefficient scanning method.

量化等级可在反量化单元220中被反量化,或可在逆变换单元230中被逆变换。量化等级可以是反量化或逆变换或者反量化和逆变换两者的结果,并可被产生为重建残差块。这里,反量化单元220可对量化等级应用量化矩阵。The quantization level may be inversely quantized in the inverse quantization unit 220, or may be inversely transformed in the inverse transform unit 230. The quantization level may be the result of inverse quantization or inverse transform, or both, and may be produced as a reconstructed residual block. Here, the inverse quantization unit 220 may apply a quantization matrix to the quantization level.

当帧内模式被使用时,帧内预测单元240可通过执行空间预测来产生预测块,其中,空间预测使用与解码目标块相邻并已被解码的块的像素值。When the intra mode is used, the intra prediction unit 240 may generate a prediction block by performing spatial prediction using pixel values of blocks that are adjacent to the decoding target block and have been decoded.

当帧间模式被使用时,运动补偿单元250可通过执行运动补偿来产生预测块,其中,运动补偿使用运动矢量以及存储在参考画面缓冲器270中的参考画面。When inter mode is used, motion compensation unit 250 may generate prediction blocks by performing motion compensation using motion vectors and reference pictures stored in reference picture buffer 270 .

加法器255可通过将重建残差块与预测块相加来产生重建块。滤波器单元260可对重建块或重建图像应用去块滤波器、样点自适应偏移和自适应环路滤波器中的至少一个。滤波器单元260可输出重建图像。重建块或重建图像可被存储在参考画面缓冲器270中,并可在执行帧间预测时被使用。Adder 255 may generate a reconstruction block by adding the reconstruction residual block and the prediction block. The filter unit 260 may apply at least one of a deblocking filter, a sample adaptive offset, and an adaptive loop filter to the reconstructed block or reconstructed image. Filter unit 260 may output a reconstructed image. The reconstructed blocks or reconstructed images may be stored in the reference picture buffer 270 and used when performing inter prediction.

图3是示意性地示出当对图像进行编码和解码时的图像的分区结构的示图。图3示意性地示出将单个单元分区为多个较低层单元的示例。FIG. 3 is a diagram schematically showing a partition structure of an image when encoding and decoding the image. Figure 3 schematically shows an example of partitioning a single unit into multiple lower level units.

为了对图像进行有效分区,当编码和解码时,编码单元(CU)可被使用。编码单元可用作当对图像进行编码/解码时的基本单元。此外,可将编码单元用作用于当对图像进行编码/解码时区分帧内模式和帧间模式的单元。编码单元可以是用于变换系数的预测、变换、量化、逆变换、反量化或编码/解码处理的基本单元。In order to efficiently partition images, Coding Units (CUs) may be used when encoding and decoding. Coding units may be used as basic units when encoding/decoding images. Furthermore, the encoding unit may be used as a unit for distinguishing an intra mode and an inter mode when encoding/decoding an image. The coding unit may be a basic unit used for prediction, transformation, quantization, inverse transformation, inverse quantization, or encoding/decoding processing of transform coefficients.

参照图3,图像300在最大编码单元(LCU)中被顺序分区,并且LCU单元被确定为分区结构。这里,LCU可与编码树单元(CTU)使用为相同的含义。单元分区可意为对与单元相关联的块进行分区。在块分区信息中,可包括单元深度的信息。深度信息可表示单元被分区的次数或单元被分区的程度或两者。单个单元可按照与基于树结构的深度信息相关联的层被分区。分区出的较低层单元中的每一个可具有深度信息。深度信息可以是表示CU的尺寸的信息,并可被存储在每个CU中。Referring to FIG. 3 , an image 300 is sequentially partitioned in largest coding units (LCUs), and the LCU units are determined as a partition structure. Here, LCU may be used with the same meaning as Coding Tree Unit (CTU). Cell partitioning may mean partitioning the blocks associated with the cell. The block partition information may include unit depth information. Depth information may represent the number of times a unit is partitioned or the extent to which the unit is partitioned, or both. Individual units may be partitioned according to layers associated with depth information based on the tree structure. Each of the partitioned lower-level units may have depth information. The depth information may be information indicating the size of the CU and may be stored in each CU.

分区结构可意为LCU 310中的编码单元(CU)的分布。这样的分布可根据是否将单个CU分区为多个(等于或大于2的正整数,包括2、4、8、16等)CU而被确定。通过分区产生的CU的水平尺寸和垂直尺寸可分别为分区之前的CU的水平尺寸和垂直尺寸的一半,或者可根据分区的次数分别具有小于分区之前的水平尺寸和垂直尺寸的尺寸。CU可被递归地分区为多个CU。CU的分区可被递归地执行直到预定义深度或预定义尺寸为止。例如,LCU的深度可以是0,并且最小编码单元(SCU)的深度可以是预定义最大深度。这里,如上所述,LCU可以是具有最大编码单元尺寸的编码单元,并且SCU可以是具有最小编码单元尺寸的编码单元。从LCU 310开始分区,随着CU的水平尺寸或垂直尺寸或者水平尺寸和垂直尺寸两者通过分区操作而减小时,CU深度增加1。The partition structure may mean the distribution of coding units (CUs) in the LCU 310. Such a distribution may be determined based on whether a single CU is partitioned into multiple (positive integers equal to or greater than 2, including 2, 4, 8, 16, etc.) CUs. The horizontal size and vertical size of the CU generated by partitioning may be half of the horizontal size and vertical size, respectively, of the CU before partitioning, or may have sizes smaller than the horizontal size and vertical size, respectively, depending on the number of partitions. A CU can be recursively partitioned into multiple CUs. Partitioning of a CU may be performed recursively up to a predefined depth or a predefined size. For example, the depth of the LCU may be 0, and the depth of the minimum coding unit (SCU) may be a predefined maximum depth. Here, as described above, the LCU may be the coding unit with the largest coding unit size, and the SCU may be the coding unit with the smallest coding unit size. Beginning with partitioning at LCU 310, the CU depth increases by one as the horizontal size or vertical size, or both the horizontal size and the vertical size, of the CU decreases through the partitioning operation.

此外,可通过使用CU的分区信息来表示CU是否被分区的信息。分区信息可以是1比特信息。除SCU之外的所有CU可包括分区信息。例如,当分区信息的值为1时,CU可不被分区,当分区信息的值为2时,CU可被分区。In addition, the information of whether the CU is partitioned may be expressed by using the partition information of the CU. Partition information may be 1-bit information. All CUs except SCU may include partition information. For example, when the value of the partition information is 1, the CU may not be partitioned, and when the value of the partition information is 2, the CU may be partitioned.

参照图3,具有深度0的LCU可以是64×64块。0可以是最小深度。具有深度3的SCU可以是8×8块。3可以是最大深度。32×32块和16×16块的CU可分别被表示为深度1和深度2。Referring to Figure 3, an LCU with depth 0 may be a 64×64 block. 0 can be the minimum depth. An SCU with depth 3 can be an 8×8 block. 3 can be the maximum depth. CUs of 32×32 blocks and 16×16 blocks may be represented as depth 1 and depth 2 respectively.

例如,当单个编码单元被分区为四个编码单元时,所述四个分区出的编码单元的水平尺寸和垂直尺寸可以为分区之前的CU的水平尺寸和垂直尺寸的一半尺寸。在一个实施例中,当具有32×32尺寸的编码单元被分区为四个编码单元时,所述四个分区出的编码单元中的每一个可具有16×16尺寸。当单个编码单元被分区为四个编码单元时,可以称编码单元可被分区为四叉树形式。For example, when a single coding unit is partitioned into four coding units, the horizontal size and vertical size of the four partitioned coding units may be half the horizontal size and vertical size of the CU before partitioning. In one embodiment, when a coding unit having a size of 32×32 is partitioned into four coding units, each of the four partitioned coding units may have a size of 16×16. When a single coding unit is partitioned into four coding units, it can be said that the coding unit can be partitioned into a quadtree form.

例如,当单个编码单元被分区为两个编码单元时,所述两个编码单元的水平尺寸或垂直尺寸可以为分区之前的编码单元的水平尺寸或垂直尺寸的一半。例如,当具有32×32尺寸的编码单元按照垂直方向被分区时,两个分区出的编码单元中的每一个可具有16×32的尺寸。当单个编码单元被分区为两个编码单元时,可以称编码单元被分区为二叉树形式。图3的LCU 320是应用了四叉树形式的分区和二叉树形式的分区两者的LCU的示例。For example, when a single coding unit is partitioned into two coding units, the horizontal size or vertical size of the two coding units may be half of the horizontal size or vertical size of the coding unit before partitioning. For example, when a coding unit having a size of 32×32 is partitioned in a vertical direction, each of the two partitioned coding units may have a size of 16×32. When a single coding unit is partitioned into two coding units, it can be said that the coding unit is partitioned in the form of a binary tree. LCU 320 of FIG. 3 is an example of an LCU to which both quadtree-form partitioning and binary-tree form partitioning are applied.

图4是示出帧内预测处理的示图。FIG. 4 is a diagram showing intra prediction processing.

帧内预测模式可以是非角度模式或角度模式。非角度模式可以是DC模式或平面模式,角度模式可以是具有特定方向或角度的预测模式。帧内预测模式可由模式编号、模式值、模式号和模式角度中的至少一个表达。帧内预测模式的数量可以是包括1的M、以及非方向性模式和方向性模式。Intra prediction mode can be non-angle mode or angle mode. The non-angular mode can be a DC mode or a planar mode, and the angular mode can be a prediction mode with a specific direction or angle. The intra prediction mode may be expressed by at least one of a mode number, a mode value, a mode number, and a mode angle. The number of intra prediction modes may be M including 1, as well as non-directional modes and directional modes.

帧内预测模式的数量可不管块尺寸而被固定为N。可选择地,帧内预测模式的数量可依据块尺寸或颜色分量类型或者块尺寸和颜色分量类型两者而变化。例如,随着块尺寸变大,帧内预测模式的数量可增加。可选择地,亮度分量块的帧内预测模式的数量可大于色度分量块的帧内预测模式的数量。The number of intra prediction modes may be fixed to N regardless of block size. Alternatively, the number of intra prediction modes may vary depending on block size or color component type, or both block size and color component type. For example, as the block size becomes larger, the number of intra prediction modes may increase. Alternatively, the number of intra prediction modes for luma component blocks may be greater than the number of intra prediction modes for chroma component blocks.

为了对当前块进行帧内预测,可执行确定包括在重建邻近块中的样点是否可用作当前块的参考样点的步骤。当存在不可用作当前块的参考样点的样点时,通过对包括在重建邻近块中的样点中的至少一个样点值进行复制或执行插值或者进行复制和执行插值两者而获得的值可被用于替换样点的不可用的样点值,由此,替换的样点值被用作当前块的参考样点。For intra prediction of a current block, a step of determining whether samples included in reconstructed neighboring blocks can be used as reference samples for the current block may be performed. Obtained by copying or performing interpolation or both copying and performing interpolation of at least one sample value among the samples included in the reconstructed adjacent block when there are samples that cannot be used as reference samples for the current block. Values can be used to replace unavailable sample values for samples, whereby the replaced sample values are used as reference samples for the current block.

当帧内预测时,可基于帧内预测模式以及当前块尺寸将滤波器应用于参考样点和预测样点中的至少一个。When intra-predicting, a filter may be applied to at least one of the reference sample and the prediction sample based on the intra-prediction mode and the current block size.

在平面模式的情况下,当产生当前块的预测块时,根据预测目标样点在预测块内的位置,可通过使用当前样点的左上侧参考样点以及当前样点的右上侧和左下侧参考样点的加权和来产生预测目标样点的样点值。此外,在DC模式的情况下,当产生当前块的预测块时,可使用当前块的上侧和左侧参考样点的平均值。此外,在角度模式的情况下,可通过使用当前块的上侧、左侧、右上侧和/或左下侧参考样点来产生预测块。为了产生预测样点值,可执行实数单位的插值。In the case of planar mode, when generating the prediction block of the current block, according to the position of the prediction target sample within the prediction block, the upper left reference sample of the current sample and the upper right and lower left sides of the current sample can be used A weighted sum of reference samples is used to generate sample values for predicting target samples. Furthermore, in the case of DC mode, when generating a prediction block of the current block, the average value of the upper and left reference samples of the current block may be used. Furthermore, in the case of angle mode, the prediction block may be generated by using upper, left, upper right and/or lower left reference samples of the current block. To produce predicted sample values, interpolation in real units can be performed.

可通过对与当前块相邻的块的帧内预测模式进行预测来对当前块的帧内预测模式进行熵编码/熵解码。当当前块和邻近块的帧内预测模式相同时,可通过使用预定标志信息用信号发送当前块和邻近块的帧内预测模式相同的信息。此外,可用信号发送多个邻近块的帧内预测模式中的与当前块的帧内预测模式相同的帧内预测模式的指示符信息。当当前块和邻近块的帧内预测模式不同时,可通过基于邻近块的帧内预测模式执行熵编码/熵解码来对当前块的帧内预测模式信息进行熵编码/熵解码。The intra prediction mode of the current block may be entropy encoded/entropy decoded by predicting the intra prediction mode of a block adjacent to the current block. When the intra prediction modes of the current block and the neighboring block are the same, information that the intra prediction modes of the current block and the neighboring block are the same may be signaled by using predetermined flag information. In addition, indicator information of an intra prediction mode that is the same as the intra prediction mode of the current block among the intra prediction modes of a plurality of neighboring blocks may be signaled. When the intra prediction modes of the current block and the neighboring block are different, the intra prediction mode information of the current block may be entropy encoded/entropy decoded by performing entropy encoding/entropy decoding based on the intra prediction mode of the neighboring block.

图5是示出根据本发明的实施例的对当前块执行帧内预测的方法的示图。FIG. 5 is a diagram illustrating a method of performing intra prediction on a current block according to an embodiment of the present invention.

如图5中所示,帧内预测可包括帧内预测模式推导步骤S510、参考样点配置步骤S520和/或帧内预测执行步骤S530。As shown in FIG. 5 , intra prediction may include an intra prediction mode derivation step S510 , a reference sample configuration step S520 , and/or an intra prediction execution step S530 .

在帧内预测模式推导步骤S510中,可使用以下方法中的至少一个方法来推导当前块的帧内预测模式:使用邻近块的帧内预测模式的方法、对当前块的帧内预测模式进行解码(例如,熵解码)的方法、使用邻近块的编码参数的方法、使用颜色分量的帧内预测模式的方法和/或使用利用变换模型的帧内预测模式的方法。In the intra prediction mode derivation step S510, at least one of the following methods may be used to derive the intra prediction mode of the current block: a method using the intra prediction mode of a neighboring block, decoding the intra prediction mode of the current block (eg, entropy decoding), a method using coding parameters of neighboring blocks, a method using intra prediction mode of color components, and/or a method using intra prediction mode using a transform model.

在使用邻近块的帧内预测模式的方法中,可通过使用邻近块的帧内预测模式、邻近块的一个或更多个帧内预测模式的组合和/或通过使用MPM推导的帧内预测模式中的至少一个来推导当前块的帧内预测模式。In the method of using the intra prediction mode of the neighboring block, the intra prediction mode may be derived by using the intra prediction mode of the neighboring block, a combination of one or more intra prediction modes of the neighboring block, and/or by using the MPM. At least one of them is used to derive the intra prediction mode of the current block.

在使用利用变换模型的帧内预测模式的方法中,刚体变换、相似性变换、仿射变换和单应性变换中的至少一个可被用于确定当前块中的子块的帧内预测模式。In the method of using the intra prediction mode using a transformation model, at least one of rigid body transformation, similarity transformation, affine transformation, and homography transformation may be used to determine the intra prediction mode of the sub-block in the current block.

可选择地,在使用利用变换模型的帧内预测模式的方法中,等空间模型和双线性滤波器模式中的至少一个可被用于确定当前块中的子块的帧内预测模式。Alternatively, in the method of using the intra prediction mode using the transform model, at least one of the isospace model and the bilinear filter mode may be used to determine the intra prediction mode of the sub-block in the current block.

在参考样点配置步骤S520中,可执行参考样点选择步骤和/或参考样点滤波步骤,使得参考样点可被配置。In the reference sample configuration step S520, a reference sample selection step and/or a reference sample filtering step may be performed, so that the reference sample may be configured.

在参考样点选择步骤中,在配置当前块中的子块的参考样点的步骤中,可根据子块扫描方法(光栅扫描、Z字形扫描、垂直扫描等)不同地选择参考样点。In the reference sample point selection step, in the step of configuring the reference sample points of the sub-blocks in the current block, the reference sample points may be selected differently according to the sub-block scanning method (raster scan, zigzag scan, vertical scan, etc.).

在帧内预测执行步骤S530,非方向性预测、方向性预测、基于位置信息的预测和/或颜色分量之间的预测中的至少一个方法可被用于执行当前块的帧内预测。在帧内预测执行步骤S530,可执行针对预测样点的滤波。In the intra prediction execution step S530, at least one method of non-directional prediction, directional prediction, prediction based on position information, and/or prediction between color components may be used to perform intra prediction of the current block. In intra prediction execution step S530, filtering for prediction samples may be performed.

以下,将详细描述帧内预测模式推导步骤S510。In the following, the intra prediction mode derivation step S510 will be described in detail.

当前块的邻近块可以是当前块的左下侧、左侧、左上侧和右上侧邻近块中的至少一个。在邻近块中,可使用仅可使用帧内预测模式的邻近块。The neighboring blocks of the current block may be at least one of lower left, left, upper left and upper right neighboring blocks of the current block. Among the neighboring blocks, neighboring blocks in which only intra prediction mode can be used may be used.

在当前块的邻近块中,可将在特定位置的邻近块的帧内预测模式推导为当前块的帧内预测模式。Among the neighboring blocks of the current block, the intra prediction mode of the neighboring block at a specific position may be derived as the intra prediction mode of the current block.

可选择地,选择两个或更多个邻近块,可将选择的邻近块的帧内预测模式的统计值推导为当前块的帧内预测模式。可由模式编号、模式值和模式角度中的至少一个来指示帧内预测模式。在说明书中,统计值可以是最小值、最大值、平均值、加权平均值、众数和中值中的至少一个。Alternatively, two or more neighboring blocks are selected, and the statistical value of the intra prediction mode of the selected neighboring blocks can be derived as the intra prediction mode of the current block. The intra prediction mode may be indicated by at least one of a mode number, a mode value, and a mode angle. In the specification, the statistical value may be at least one of a minimum value, a maximum value, an average value, a weighted average value, a mode, and a median value.

在特定位置的邻近块和/或选择的邻近块可以是在预定义的固定位置的块。可选择地,可基于通过比特流用信号发送的信息来指定块。Neighboring blocks at specific locations and/or selected neighboring blocks may be blocks at predefined fixed locations. Alternatively, the blocks may be specified based on information signaled through the bitstream.

当使用至少两个帧内预测模式时,可考虑帧内预测模式具有方向性还是非方向性。例如,在两个或更多个帧内预测模式中,可使用方向性帧内预测模式来推导当前块的帧内预测模式。可选择地,可使用非方向性帧内预测模式来推导当前块的帧内预测模式。When at least two intra prediction modes are used, it may be considered whether the intra prediction mode is directional or non-directional. For example, among two or more intra prediction modes, a directional intra prediction mode may be used to derive the intra prediction mode of the current block. Alternatively, a non-directional intra prediction mode may be used to derive the intra prediction mode of the current block.

当加权平均值被用作统计值时,可将相对高的权重分配给特定帧内预测模式。特定帧内预测模式可以是例如垂直模式、水平模式、对角模式、非方向性模式中的至少一个。可选择地,可通过比特流用信号发送关于特定帧内预测模式的信息。特定帧内预测模式的各个权重可彼此相同或不同。可选择地,可基于邻近块的尺寸确定权重。例如,可将相对高的权重分配给相对大的邻近块的帧内预测模式。When a weighted average is used as a statistical value, a relatively high weight can be assigned to a specific intra prediction mode. The specific intra prediction mode may be, for example, at least one of a vertical mode, a horizontal mode, a diagonal mode, and a non-directional mode. Alternatively, information about a specific intra prediction mode may be signaled through the bitstream. The individual weights of a particular intra prediction mode may be the same as or different from each other. Alternatively, weights may be determined based on the size of neighboring blocks. For example, a relatively high weight may be assigned to an intra prediction mode of a relatively large neighboring block.

可使用MPM(最可能模式)来推导当前块的帧内预测模式。The intra prediction mode of the current block can be derived using MPM (Most Likely Mode).

当使用MPM时,可利用使用邻近块的帧内预测模式推导的N个帧内预测模式来配置MPM列表。N是正整数,并可具有根据当前块的尺寸和/或形状而不同的值。可选择地,可通过比特流用信号发送关于N的信息。When using MPM, the MPM list can be configured with N intra prediction modes derived using the intra prediction modes of neighboring blocks. N is a positive integer and can have different values depending on the size and/or shape of the current block. Alternatively, information about N may be signaled via a bitstream.

可包括在MPM列表中的帧内预测模式可以是当前块的左下侧、左侧、左上侧、上侧和/或右上侧邻近块的帧内预测模式。另外,非方向性模式可包括在MPM列表中。帧内预测模式可按照预定顺序包括在MPM列表中。预定顺序可以是例如左下侧块的模式、上侧块的模式、平面模式、DC模式、左下侧块的模式、右上侧块的模式和左上侧块的模式的顺序。可选择地,预定顺序可以是左侧块的模式、上侧块的模式、平面模式、DC模式、左下侧块的模式、右上侧块的模式和左上侧块的模式的顺序。The intra prediction modes that may be included in the MPM list may be the intra prediction modes of lower left, left, upper left, upper, and/or upper right neighboring blocks of the current block. Additionally, non-directional modes may be included in the MPM list. Intra prediction modes may be included in the MPM list in a predetermined order. The predetermined order may be, for example, the order of the mode of the lower left block, the mode of the upper block, the plane mode, the DC mode, the mode of the lower left block, the mode of the upper right block, and the mode of the upper left block. Alternatively, the predetermined order may be the order of the mode of the left block, the mode of the upper block, the plane mode, the DC mode, the mode of the lower left block, the mode of the upper right block, and the mode of the upper left block.

MPM列表可被配置为不包括复制模式。当包括在MPM列表中的帧内预测模式的数量小于N时,可将附加帧内预测模式包括在MPM列表中。附加帧内预测模式可以是与包括在MPM列表中的方向性帧内预测模式的+k、-k相应的模式。可由k指定等于或大于一的整数。可选择地,水平模式、垂直模式和对角模式(45度角模式、135度角模式和225度角模式)中的至少一个可包括在MPM列表中。可选择地,邻近块的至少一个帧内预测模式的统计值可被用于推导将包括在MPM列表中的帧内预测模式。The MPM list can be configured not to include replication mode. When the number of intra prediction modes included in the MPM list is less than N, additional intra prediction modes may be included in the MPM list. The additional intra prediction mode may be a mode corresponding to +k, -k of the directional intra prediction modes included in the MPM list. An integer equal to or greater than one can be specified by k. Alternatively, at least one of horizontal mode, vertical mode, and diagonal mode (45-degree angle mode, 135-degree angle mode, and 225-degree angle mode) may be included in the MPM list. Alternatively, statistical values of at least one intra prediction mode of neighboring blocks may be used to derive the intra prediction mode to be included in the MPM list.

可存在数个MPM列表,并且可按照不同方法配置数个MPM列表。包括在每个MPM列表中的帧内预测模式可不重复。Several MPM lists can exist and can be configured in different ways. Intra prediction modes included in each MPM list may not be repeated.

可通过比特流用信号发送指示当前块的帧内预测模式是否包括在MPM列表中的信息(例如,标志信息)。当存在N个MPM列表时,可存在N条标志信息。可按照针对N个MPM列表的顺序来执行确定当前块的帧内预测模式是否存在于MPM列表中。可选择地,可用信号发送指示N个MPM列表中的包括当前块的帧内预测模式的MPM列表的信息。Information (eg, flag information) indicating whether the intra prediction mode of the current block is included in the MPM list may be signaled through the bitstream. When there are N MPM lists, there can be N pieces of flag information. Determining whether the intra prediction mode of the current block exists in the MPM list may be performed in order for the N MPM lists. Alternatively, information indicating an MPM list including the intra prediction mode of the current block among the N MPM lists may be signaled.

当当前块的帧内预测模式包括在MPM列表中时,可通过比特流用信号发送用于指定包括在MPM列表中的模式中的哪个模式的索引信息。可选择地,可将MPM列表的在特定位置(例如,第一)的模式推导为当前块的帧内预测模式。When the intra prediction mode of the current block is included in the MPM list, index information for specifying which mode among the modes included in the MPM list may be signaled through a bit stream. Alternatively, the mode at a specific position (eg, first) of the MPM list may be derived as the intra prediction mode of the current block.

在配置MPM列表的步骤中,可针对预定尺寸块配置一个MPM列表。当预定尺寸块被分区为数个子块时,数个子块中的每一个可使用配置的MPM列表。In the step of configuring the MPM list, one MPM list may be configured for a predetermined size block. When a predetermined size block is partitioned into several sub-blocks, each of the several sub-blocks may use a configured MPM list.

可选择地,可使用邻近块的帧内预测模式和利用MPM推导的当前块的帧内预测模式中的至少一个来推导当前块的帧内预测模式。Alternatively, the intra prediction mode of the current block may be derived using at least one of the intra prediction mode of the neighboring block and the intra prediction mode of the current block derived using the MPM.

例如,当利用MPM推导的当前块的帧内预测模式是Pred_mpm时,通过使用邻近块的至少一个帧内预测模式将Pred_mpm改变为预定模式,使得当前块的帧内预测模式可被推导。例如,可通过将Pred_mpm与邻近块的帧内预测模式的大小进行比较来将Pred_mpm增加或减少N。这里,N可以是预定整数,诸如,+1、+2、+3、0、-1、-2、-3等。For example, when the intra prediction mode of the current block derived using MPM is Pred_mpm, Pred_mpm is changed to a predetermined mode by using at least one intra prediction mode of a neighboring block so that the intra prediction mode of the current block can be derived. For example, Pred_mpm may be increased or decreased by N by comparing Pred_mpm with the size of the intra prediction mode of a neighboring block. Here, N may be a predetermined integer, such as +1, +2, +3, 0, -1, -2, -3, etc.

可选择地,当Pred_mpm和邻近块的模式中的一个是非方向性模式并且另一个是方向性模式时,可将非方向性模式推导为当前块的帧内预测模式,或者可将方向性模式推导为当前块的帧内预测模式。Alternatively, when one of Pred_mpm and the mode of the neighboring block is a non-directional mode and the other is a directional mode, the non-directional mode may be derived as the intra prediction mode of the current block, or the directional mode may be derived is the intra prediction mode of the current block.

可使用另一颜色分量的帧内预测模式来推导当前块的帧内预测模式。例如,当当前块是色度块时,与色度目标块相应的至少一个相关亮度块的帧内预测模式可被用于推导色度块的帧内预测模式。这里,可基于色度块的位置、尺寸、形状或编码参数中的至少一个来确定相关亮度块。可选择地,可基于亮度块的尺寸、形状或编码参数中的至少一个来确定相关亮度块。The intra prediction mode of the current block may be derived using the intra prediction mode of another color component. For example, when the current block is a chroma block, the intra prediction mode of at least one related luma block corresponding to the chroma target block may be used to derive the intra prediction mode of the chroma block. Here, the relevant luma block may be determined based on at least one of a position, a size, a shape, or an encoding parameter of the chroma block. Alternatively, the relevant luma block may be determined based on at least one of a size, a shape, or an encoding parameter of the luma block.

可使用包括与色度块的中心位置相应的样点的亮度块,或者使用分别包括与色度块的至少两个位置相应的样点的至少两个亮度块,来确定相关亮度块。所述至少两个位置可包括左上样点位置和中心样点位置。The relevant luma block may be determined using a luma block including a sample point corresponding to a center position of the chroma block, or using at least two luma blocks each including a sample point corresponding to at least two positions of the chroma block. The at least two positions may include an upper left sample position and a center sample position.

当存在数个相关亮度块时,可将至少两个相关亮度块的帧内预测模式的统计值推导为色度块的帧内预测模式。可选择地,可将相对大的相关亮度块的帧内预测模式推导为色度块的帧内预测模式。可选择地,当与色度块的预定位置相应的亮度块的尺寸等于或大于色度块的尺寸时,可使用相关亮度块的帧内预测模式来推导色度块的帧内预测模式。When there are several related luma blocks, the statistical value of the intra prediction mode of at least two related luma blocks may be derived as the intra prediction mode of the chroma block. Alternatively, the intra prediction mode of the relatively large correlated luma block can be derived as the intra prediction mode of the chroma block. Alternatively, when the size of the luma block corresponding to the predetermined position of the chroma block is equal to or larger than the size of the chroma block, the intra prediction mode of the relevant luma block may be used to derive the intra prediction mode of the chroma block.

例如,当当前块被分区为子块时,可使用推导当前块的帧内预测模式的至少一个方法来推导分区出的子块中的每一个子块的帧内预测模式。For example, when the current block is partitioned into sub-blocks, at least one method of deriving the intra-prediction mode of the current block may be used to derive the intra-prediction mode of each of the partitioned sub-blocks.

在推导帧内预测模式的步骤中,可将当前块划分为小于当前块的多个子块,并随后可推导每个子块的帧内预测模式。这里,帧内预测模式可表示帧内预测方向。帧内预测模式可包括在在编码器和解码器中预定义的帧内预测模式的集合中。In the step of deriving the intra prediction mode, the current block may be divided into a plurality of sub-blocks that are smaller than the current block, and then the intra prediction mode of each sub-block may be derived. Here, the intra prediction mode may represent an intra prediction direction. The intra prediction mode may be included in a set of intra prediction modes predefined in the encoder and decoder.

例如,可使用与当前块邻近的重建块中的已通过使用帧内预测被编码/解码的块的帧内预测模式中的至少一个以及当前块的帧内预测模式来产生当前块的帧内预测方向字段(IPDF)。预定变换模型可用于产生IPDF。在IPDF被产生之后,可使用IPDF来确定当前块的每个子块的帧内预测模式。For example, the intra prediction of the current block may be generated using at least one of the intra prediction modes of the block that has been encoded/decoded by using intra prediction in the reconstructed block adjacent to the current block and the intra prediction mode of the current block. Direction field (IPDF). Predetermined transformation models can be used to generate IPDFs. After the IPDF is generated, the IPDF can be used to determine the intra prediction mode for each sub-block of the current block.

此外,与以上示例相似,如果当前块从比当前块更大或更低深度块被划分,则当前块可以是更大或更低深度块的子块。在这种情况下,可使用与比当前块更大或更低深度块邻近的重建块中的已通过帧内预测被编码/解码的块的帧内预测模式中的至少一个来推导当前块的帧内预测模式。可通过产生IPDF来推导当前块的帧内预测模式。Furthermore, similar to the above example, if the current block is divided from a larger or lower depth block than the current block, the current block may be a sub-block of the larger or lower depth block. In this case, the current block may be derived using at least one of the intra prediction modes of blocks that have been encoded/decoded by intra prediction in reconstructed blocks adjacent to larger or lower depth blocks than the current block. Intra prediction mode. The intra prediction mode of the current block can be derived by generating an IPDF.

作为预定变换模型,可使用刚体变换、相似性变换、仿射变换、单应性变换、3D变换和其它变换中的至少一个。单应性变换可以是透视变换。As the predetermined transformation model, at least one of rigid body transformation, similarity transformation, affine transformation, homography transformation, 3D transformation and other transformations may be used. The homography transformation can be a perspective transformation.

由于可使用与当前块邻近的重建块中的已通过使用帧内预测被编码/解码的块的帧内预测模式中的至少一个以及当前块的帧内预测模式来推导从当前块划分的每个子块的帧内预测模式,故可减少对每个子块的帧内预测模式进行熵编码/熵解码所需的比特数。Since each sub-block divided from the current block can be derived using at least one of the intra prediction modes of the block that has been encoded/decoded by using intra prediction in the reconstructed block adjacent to the current block and the intra prediction mode of the current block. The intra prediction mode of the block can therefore reduce the number of bits required for entropy encoding/entropy decoding of the intra prediction mode of each sub-block.

子块的尺寸(粒度)可小于或等于当前块的尺寸。例如,如果当前块的尺寸是M×N(M和N是正整数),则子块的尺寸可以是M/K×N/L。K和M可以是正整数,L可以是N的正因子。此外,M/K或N/L可以是正整数。The size (granularity) of the sub-block may be less than or equal to the size of the current block. For example, if the size of the current block is M×N (M and N are positive integers), the size of the sub-block may be M/K×N/L. K and M can be positive integers, and L can be a positive factor of N. Additionally, M/K or N/L may be a positive integer.

此外,P个子块可存在于当前块中。P可以是0或正整数。例如,1、2、4或16个子块可存在于当前块中。Furthermore, P sub-blocks may exist in the current block. P can be 0 or a positive integer. For example, 1, 2, 4 or 16 sub-blocks may be present in the current block.

此外,当当前块被划分为子块时,可不单独对指示当前块是否已被划分为子块的信息进行熵编码/熵解码。可基于指示当前块的帧内预测模式是否基于子块被推导的信息来确定是否当前块是否已被划分为子块。Furthermore, when the current block is divided into sub-blocks, the information indicating whether the current block has been divided into sub-blocks may not be entropy encoded/decoded separately. Whether the current block has been divided into sub-blocks may be determined based on information indicating whether the intra prediction mode of the current block is derived based on sub-blocks.

此外,由于使用与当前块邻近的重建块中的已通过使用帧内预测被编码/解码的块的帧内预测模式中的至少一个以及当前块的帧内预测模式来推导子块的帧内预测模式,故可不对子块的帧内预测模式进行熵编码/熵解码。然而,可对当前块的帧内预测模式进行熵编码/熵解码。尤其是,如果当前块由一个子块构造,则可不对当前块的帧内预测模式进行熵编码/熵解码,并可使用与当前块邻近的重建块中的已通过帧内预测被编码/解码的块的帧内预测模式中的至少一个来推导当前块的帧内预测模式。Furthermore, since the intra prediction of the sub-block is derived using at least one of the intra prediction modes of the block that has been encoded/decoded by using intra prediction in the reconstructed block adjacent to the current block and the intra prediction mode of the current block mode, so the intra prediction mode of the sub-block may not be entropy encoded/decoded. However, the intra prediction mode of the current block may be entropy encoded/decoded. In particular, if the current block is constructed from one sub-block, the intra prediction mode of the current block may not be entropy encoded/decoded, and the intra prediction mode in the reconstructed block adjacent to the current block may be used to be encoded/decoded by intra prediction The intra prediction mode of the current block is derived from at least one of the intra prediction modes of the block.

与当前块邻近的重建块中的已通过使用帧内预测被编码/解码的块(用于IPDF产生)可被称为种子块(seed block)。种子块的位置可被称为种子点(seed point)。包括种子点的种子块具有的帧内预测模式可被称为种子点帧内预测模式(SPIPM)。A block among the reconstructed blocks adjacent to the current block that has been encoded/decoded by using intra prediction (for IPDF generation) may be called a seed block. The location of the seed block may be called a seed point. The intra prediction mode that the seed block including the seed point has may be called a seed point intra prediction mode (SPIPM).

图6是示出使用SPIPM推导当前块的帧内预测模式的实施例的示图。FIG. 6 is a diagram illustrating an embodiment of deriving an intra prediction mode of a current block using SPIPM.

在图6中示出的示例中,当前块的尺寸可以是16×16,每个子块的尺寸可以是(16/4)×(16/4)。这里,种子块可以是已通过帧内预测被编码/解码的多个邻近块中的至少一个。种子块或种子点可以是相对于当前块的固定位置。或者,可将上侧、左侧、左上侧、左下侧和右上侧块或位置中的至少一个确定为种子块或种子点。In the example shown in FIG. 6 , the size of the current block may be 16×16, and the size of each sub-block may be (16/4)×(16/4). Here, the seed block may be at least one of a plurality of neighboring blocks that have been encoded/decoded through intra prediction. The seed block or seed point can be a fixed position relative to the current block. Alternatively, at least one of upper, left, upper left, lower left, and upper right blocks or locations may be determined as a seed block or seed point.

例如,可将当前块的上侧邻近块c、d、e、f和g中的至少一个的帧内预测模式用作SPIPM。或者,可将与当前块邻近的右上侧块h的帧内预测模式用作SPIPM。或者,可将与当前块邻近的左上侧块a和b中的至少一个的帧内预测模式用作SPIPM。或者,可将与当前块邻近的左侧块i、j、k和l中的至少一个的帧内预测模式用作SPIPM。或者,可将与当前块邻近的左下侧块m的帧内预测模式用作SPIPM。例如,也可将当前块的帧内预测模式用作SPIPM。For example, the intra prediction mode of at least one of the upper neighboring blocks c, d, e, f, and g of the current block may be used as the SPIPM. Alternatively, the intra prediction mode of the upper right block h adjacent to the current block may be used as SPIPM. Alternatively, the intra prediction mode of at least one of the upper left blocks a and b adjacent to the current block may be used as the SPIPM. Alternatively, the intra prediction mode of at least one of the left blocks i, j, k, and l adjacent to the current block may be used as SPIPM. Alternatively, the intra prediction mode of the lower left block m adjacent to the current block may be used as SPIPM. For example, the intra prediction mode of the current block may also be used as SPIPM.

可使用一个或更多个种子点的SPIPM来产生IPDF。IPDF can be generated using SPIPM of one or more seed points.

例如,如果用于确定预定变换模型的参数的多个种子点的坐标是(x_sp,y_sp)(sp=1、2、3、…),并且包括种子点的种子块的SPIPM是mode_sp(sp=1、2、3、…),则可将变换之后种子点的坐标(x_sp’,y_sp’)确定为(x_sp’,y_sp’)=(x_sp+dx,y_sp+dy)。这里,dx可表示x轴方向的位移,dy可表示y轴方向的位移。此外,可确定dx=D_sub*cosΘ并且dy=D_sub*sinΘ。For example, if the coordinates of the plurality of seed points used to determine parameters of the predetermined transformation model are (x_sp, y_sp) (sp=1, 2, 3, ...), and the SPIPM of the seed block including the seed points is mode_sp (sp= 1, 2, 3,...), then the coordinates (x_sp', y_sp') of the seed point after transformation can be determined as (x_sp', y_sp')=(x_sp+dx, y_sp+dy). Here, dx can represent the displacement in the x-axis direction, and dy can represent the displacement in the y-axis direction. Furthermore, it can be determined that dx=D_sub*cosΘ and dy=D_sub*sinΘ.

这里,可根据SPIPM确定Θ。例如,如果如图6中所示帧内预测模式是方向性模式,则每个SPIPM可具有唯一的方向,并且可将针对x轴的正角度确定为Θ。Here, Θ can be determined based on SPIPM. For example, if the intra prediction mode is a directional mode as shown in Figure 6, each SPIPM may have a unique direction, and the positive angle with respect to the x-axis may be determined as Θ.

例如,对于垂直帧内预测模式,Θ=270°。例如,对于水平帧内预测模式,Θ=0°。例如,对于左下对角帧内预测模式,Θ=225°。例如,对于右上对角帧内预测模式,Θ=45°。例如,对于右下对角帧内预测模式,Θ=135°。For example, for vertical intra prediction mode, Θ=270°. For example, for horizontal intra prediction mode, Θ=0°. For example, for the lower left diagonal intra prediction mode, Θ=225°. For example, for the upper right diagonal intra prediction mode, Θ=45°. For example, for the lower right diagonal intra prediction mode, Θ=135°.

这里,对于不具有方向性的帧内预测模式,诸如DC模式或平面模式,可将Θ确定为特定值。特定值可以是例如0、90、180或270度。Here, for an intra prediction mode without directionality, such as DC mode or planar mode, Θ may be determined as a specific value. Specific values may be, for example, 0, 90, 180 or 270 degrees.

SPIPM可表示相对于种子点的方向性,D_sub可表示具有方向性的矢量的大小。可根据种子点所属于的种子块的尺寸和/或形状来确定D_sub的大小。此外,D_sub可针对每个帧内预测模式具有固定值P。这里,P可以是0或整数。例如,如果当前块的尺寸是M×N(M和N是正整数)并且D_cur=S(S是正整数),则可将K×L子块(K和L是正整数)的D_sub(sub=1、2、3、…)确定为D_sub=S*(K×L)/(M×N)。例如,如果在图6中当前块的尺寸是16×16,则D_cur=S并可按照以下方法中的至少一个来确定种子块的D_sub。SPIPM can represent the directionality relative to the seed point, and D_sub can represent the size of the vector with directionality. The size of D_sub may be determined according to the size and/or shape of the seed block to which the seed point belongs. Furthermore, D_sub may have a fixed value P for each intra prediction mode. Here, P can be 0 or an integer. For example, if the size of the current block is M×N (M and N are positive integers) and D_cur=S (S is a positive integer), then D_sub (sub=1, 2, 3, ...) is determined as D_sub=S*(K×L)/(M×N). For example, if the size of the current block is 16×16 in FIG. 6 , then D_cur=S and D_sub of the seed block can be determined according to at least one of the following methods.

例如,对于种子块d或e,可确定D_sub=S*(4×8)/(16×16)=S/8。例如,对于种子块g或j,可确定D_sub=S*(8×8)/(16×16)=S/4。例如,对于种子块k或l,可确定D_sub=S*(8×4)/(16×16)=S/8。例如,对于种子块m或h,可确定D_sub=S*(16×16)/(16×16)=S。例如,对于每个种子块,可将D_sub确定为S。For example, for seed block d or e, it can be determined that D_sub=S*(4×8)/(16×16)=S/8. For example, for seed block g or j, it can be determined that D_sub=S*(8×8)/(16×16)=S/4. For example, for seed block k or l, it can be determined that D_sub=S*(8×4)/(16×16)=S/8. For example, for seed block m or h, it can be determined that D_sub=S*(16×16)/(16×16)=S. For example, D_sub may be determined as S for each seed block.

可通过构造SPIPM列表来配置候选,用于当前块的IPDF的产生。可使用当前块的邻近块中的至少一个的帧内预测模式来产生SPIPM列表。例如,SPIPM可以是当前块的左上侧(SPIPM_TL)、右上侧(SPIPM_TR)、左下侧(SPIPM_BL)和右下侧(SPIPM_BR)SPIPM中的一个或更多个的集合。对于W×H当前块,SPIPM_TL可具有针对当前块的位置(0,0)的上侧、左上侧和左侧邻近块的帧内预测模式中的至少一个作为候选。SPIPM_TR可具有针对当前块的位置(W-1,0)的上侧和右上侧邻近块的帧内预测模式中的至少一个作为候选。SPIPM_BL可具有针对当前块的位置(0,H-1)的左侧和左下侧邻近块的帧内预测模式中的至少一个作为候选。SPIPM_BR可表示当前块的邻近块的帧内预测模式。或者SPIPM_BR可被用于表示当前块的帧内预测模式。Candidates can be configured by constructing a SPIPM list for generation of the IPDF of the current block. The SPIPM list may be generated using the intra prediction mode of at least one of the neighboring blocks of the current block. For example, the SPIPM may be a set of one or more of the upper left (SPIPM_TL), upper right (SPIPM_TR), lower left (SPIPM_BL), and lower right (SPIPM_BR) SPIPM of the current block. For a W×H current block, SPIPM_TL may have at least one of intra prediction modes for upper, upper left, and left neighboring blocks of the position (0,0) of the current block as candidates. SPIPM_TR may have at least one of intra prediction modes for upper and upper right neighboring blocks of the position (W-1,0) of the current block as candidates. SPIPM_BL may have at least one of intra prediction modes for left and lower left neighboring blocks of the position (0, H-1) of the current block as candidates. SPIPM_BR may represent the intra prediction mode of neighboring blocks of the current block. Or SPIPM_BR can be used to indicate the intra prediction mode of the current block.

在图6中示出的示例中,SPIPM_TL可具有邻近块d、b和j的帧内预测模式中的至少一个。此外,SPIPM_TR可具有邻近块g和h的帧内预测模式中的至少一个。此外,SPIPM_BL可具有邻近块i和m的帧内预测模式中的至少一个。此外,SPIPM_BR可具有当前块的帧内预测模式中的至少一个。In the example shown in FIG. 6 , SPIPM_TL may have at least one of the intra prediction modes of neighboring blocks d, b, and j. In addition, SPIPM_TR may have at least one of intra prediction modes of adjacent blocks g and h. Furthermore, SPIPM_BL may have at least one of intra prediction modes of neighboring blocks i and m. Furthermore, SPIPM_BR may have at least one of the intra prediction modes of the current block.

此外,可按照预定顺序搜索种子块或种子点。例如,可通过按照左侧、上侧、左下侧、右上侧和上侧的顺序搜索种子块或种子点来由相应的种子块或种子点的帧内预测模式构成SPIPM列表。Additionally, seed blocks or seed points can be searched in a predetermined order. For example, the SPIPM list may be constructed from the intra prediction modes of the corresponding seed blocks or seed points by searching the seed blocks or seed points in the order of left side, upper side, lower left side, upper right side, and upper side.

为了构造SPIPM列表,可针对SPIPM_TL、SPIPM_TR、SPIPM_BL和SPIPM_BR中的每一个的候选中的至少一个执行基于帧内预测模式之间的相似性来排除与其它模式具有不同方向的帧内预测模式的处理。这里,可将帧内预测模式差(IPMD)用作用于测量相似性的标准。在构造SPIPM列表时可排除非方向性模式(例如,DC_MODE和PLANAR_MODE)。In order to construct the SPIPM list, a process of excluding intra prediction modes having different directions from other modes based on similarity between intra prediction modes may be performed for at least one of the candidates for each of SPIPM_TL, SPIPM_TR, SPIPM_BL and SPIPM_BR. . Here, intra prediction mode difference (IPMD) may be used as a criterion for measuring similarity. Non-directional modes (eg, DC_MODE and PLANAR_MODE) can be excluded when constructing the SPIPM list.

例如,如果在SPIPM_TL的三个候选模式SPIPM_TL_mode中的每一个与SPIPM_neighbor(neighbor=TR或BL或BR)的候选模式之间的比较中,IPMD=abs(SPIPM_TL_mode-SPIPM_neighbor)>Th1(Th1是正整数),则可从SPIPM_TL的候选集合中排除相应的模式。For example, if in the comparison between each of the three candidate modes of SPIPM_TL_mode and the candidate mode of SPIPM_neighbor (neighbor=TR or BL or BR), IPMD=abs(SPIPM_TL_mode-SPIPM_neighbor)>Th1 (Th1 is a positive integer) , the corresponding pattern can be excluded from the candidate set of SPIPM_TL.

例如,如果在SPIPM_TR的两个候选模式SPIPM_TR_mode中的每一个与SPIPM_neighbor(neighbor=TL或BL或BR)的候选模式之间的比较中,IPMD=abs(SPIPM_TR_mode-SPIPM_neighbor)>Th2(Th2是正整数),则可从SPIPM_TR的候选集合中排除相应的模式。For example, if in a comparison between each of the two candidate modes of SPIPM_TR_SPIPM_TR_mode and the candidate mode of SPIPM_neighbor (neighbor=TL or BL or BR), IPMD=abs(SPIPM_TR_mode-SPIPM_neighbor)>Th2 (Th2 is a positive integer) , the corresponding pattern can be excluded from the candidate set of SPIPM_TR.

例如,如果在SPIPM_BL的两个候选模式SPIPM_BL_mode中的每一个与SPIPM_neighbor(neighbor=TL或TR或BR)的候选模式之间的比较中,IPMD=abs(SPIPM_BL_mode-SPIPM_neighbor)>Th3(Th3是正整数),则可从SPIPM_BL的候选集合中排除相应的模式。For example, if in the comparison between each of the two candidate modes of SPIPM_BL_mode SPIPM_BL_mode and the candidate mode of SPIPM_neighbor (neighbor=TL or TR or BR), IPMD=abs(SPIPM_BL_mode-SPIPM_neighbor)>Th3 (Th3 is a positive integer) , the corresponding pattern can be excluded from the candidate set of SPIPM_BL.

例如,如果在SPIPM_BR的候选模式SPIPM_BR_mode中的每一个与SPIPM_neighbor(neighbor=TL或TR或BL)的候选模式之间的比较中,IPMD=abs(SPIPM_BR_mode-SPIPM_neighbor)>Th4(Th4是正整数),则可从SPIPM_BR的候选集合中排除相应的模式。For example, if in the comparison between each of the candidate modes of SPIPM_BR_mode and the candidate mode of SPIPM_neighbor (neighbor=TL or TR or BL), IPMD=abs(SPIPM_BR_mode-SPIPM_neighbor)>Th4 (Th4 is a positive integer), then The corresponding pattern can be excluded from the candidate set of SPIPM_BR.

例如,如果SPIPM_TL、SPIPM_TR、SPIPM_BL和SPIPM_BR中的每一个的候选中的至少一个是非方向性帧内预测模式,诸如DC模式或平面模式,则可从候选集合中排除相应的候选。For example, if at least one of the candidates for each of SPIPM_TL, SPIPM_TR, SPIPM_BL and SPIPM_BR is a non-directional intra prediction mode, such as DC mode or planar mode, the corresponding candidate may be excluded from the candidate set.

在用于构造SPIPM列表的候选中的具有小相似性的候选被排除之后,可根据使用的特定2D变换模型来确定IPDF产生所需的SPIPM的数量。例如,2D变换模型可包括刚体变换、相似性变换、仿射变换和单应性变换。此外,可根据2D变换模型将SPIPM的数量确定为可变值1、2、3、4或N(N是正整数)。After candidates with small similarities among the candidates used to construct the SPIPM list are eliminated, the number of SPIPM required for IPDF generation can be determined based on the specific 2D transformation model used. For example, the 2D transformation model may include rigid body transformation, similarity transformation, affine transformation, and homography transformation. Furthermore, the number of SPIPM can be determined as a variable value of 1, 2, 3, 4, or N (N is a positive integer) according to the 2D transformation model.

例如,如果用于IPDF产生的变换模型是刚体变换,则可需要至少两个SPIPM。For example, if the transformation model used for IPDF generation is a rigid body transformation, at least two SPIPM may be required.

刚体变换可具有3自由度(3-DoF),如[等式1]中所述。这里,(x,y)可以是种子点的变换前的坐标,(x’,y’)可以是种子点的变换后的坐标。Θ、tx和ty是将被确定的模型参数,它们可以分别是旋转角度、x轴位移和y轴位移。Rigid body transformations can have 3 degrees of freedom (3-DoF), as described in [Equation 1]. Here, (x, y) may be the coordinates of the seed point before transformation, and (x’, y’) may be the coordinates of the seed point after transformation. Θ, tx and ty are the model parameters to be determined, which can be the rotation angle, x-axis displacement and y-axis displacement respectively.

[等式1][Equation 1]

可使用从一个SPIPM确定的Θ来获得(x,y)-(x’,y’)对,并且可通过将(x,y)-(x’,y’)对代入[等式1]来确定与Θ、tx和ty相关的两个等式。此外,可从两个SPIPM确定与Θ、tx和ty相关的四个等式,并且可使用所述四个等式中的三个等式来确定刚体变换模型。The (x, y)-(x', y') pair can be obtained using Θ determined from a SPIPM, and can be obtained by substituting the (x, y)-(x', y') pair into [Eq. 1] Determine the two equations related to Θ, tx, and ty. Furthermore, four equations related to Θ, tx, and ty can be determined from the two SPIPMs, and three of the four equations can be used to determine the rigid body transformation model.

可通过选择SPIPM_TL、SPIPM_TR、SPIPM_BL和SPIPM_BR中的至少两个来确定所述两个SPIPM。可将选择的SPIPM添加到SPIPM列表中。The two SPIPMs may be determined by selecting at least two of SPIPM_TL, SPIPM_TR, SPIPM_BL and SPIPM_BR. The selected SPIPM can be added to the SPIPM list.

图7是示出构造包括两个SPIPM的SPIPM列表的实施例的示图。FIG. 7 is a diagram illustrating an embodiment of constructing a SPIPM list including two SPIPMs.

如图7所示,可按照两个SPIPM候选模式的IPMD和的升序来填充SPIPM列表。As shown in Figure 7, the SPIPM list may be populated in ascending order of the IPMD sum of the two SPIPM candidate modes.

例如,可将SPIPM_TL的候选模式中的一个和SPIPM_TR的候选模式中的一个用作两个SPIPM。例如,可将SPIPM_TL的候选模式中的一个和SPIPM_BL的候选模式中的一个用作两个SPIPM。例如,可将SPIPM_TL的候选模式中的一个和SPIPM_BR的候选模式中的一个用作两个SPIPM。例如,可将SPIPM_TR的候选模式中的一个和SPIPM_BL的候选模式中的一个用作两个SPIPM。例如,可将SPIPM_TR的候选模式中的一个和SPIPM_BR的候选模式中的一个用作两个SPIPM。例如,可将SPIPM_BL的候选模式中的一个和SPIPM_BR的候选模式中的一个用作两个SPIPM。For example, one of the candidate modes of SPIPM_TL and one of the candidate modes of SPIPM_TR may be used as two SPIPMs. For example, one of the candidate modes of SPIPM_TL and one of the candidate modes of SPIPM_BL may be used as two SPIPMs. For example, one of the candidate modes of SPIPM_TL and one of the candidate modes of SPIPM_BR may be used as two SPIPMs. For example, one of the candidate modes of SPIPM_TR and one of the candidate modes of SPIPM_BL may be used as two SPIPMs. For example, one of the candidate modes of SPIPM_TR and one of the candidate modes of SPIPM_BR may be used as two SPIPMs. For example, one of the candidate modes of SPIPM_BL and one of the candidate modes of SPIPM_BR may be used as two SPIPMs.

如果未填充两个SPIPM,则可使用可用SPIPM来填充SPIPM列表。例如,可使用SPIPM±delta来填充SPIPM列表。这里,delta可以是任何正整数,例如,1、2、3、…。If both SPIPMs are not populated, the available SPIPMs can be used to populate the SPIPM list. For example, SPIPM±delta can be used to populate the SPIPM list. Here, delta can be any positive integer, for example, 1, 2, 3,….

一旦两个SPIPM(SPIPM1、SPIPM2)被确定,可通过[等式1]产生与Θ、tx和ty相关的四个等式。可使用所述四个等式中的三个来确定刚体变换模型的参数。确定的模型可用于IPDF产生。Once the two SPIPMs (SPIPM1, SPIPM2) are determined, four equations related to Θ, tx and ty can be generated by [Equation 1]. Three of the four equations can be used to determine the parameters of the rigid body transformation model. The determined model can be used for IPDF generation.

例如,可使用由SPIPM1计算的两个等式和由SPIPM2计算的两个等式中的至少一个来确定刚体变换。例如,可使用由SPIPM1计算的两个等式和由SPIPM2计算的两个等式中的至少一个来确定刚体变换。For example, the rigid body transformation may be determined using at least one of the two equations calculated by SPIPM1 and the two equations calculated by SPIPM2. For example, the rigid body transformation may be determined using at least one of the two equations calculated by SPIPM1 and the two equations calculated by SPIPM2.

例如,如果相似性变换被用作用于IPDF产生的变换模型,则可需要至少两个SPIPM。For example, if similarity transformation is used as the transformation model for IPDF generation, at least two SPIPM may be required.

相似性变换可具有4-DoF,如[等式2]中所述。这里,(x,y)可以是种子点的变换前的坐标,(x’,y’)可以是种子点的变换后的坐标。a、b、c和d可以是将被确定的模型参数。The similarity transformation can have 4-DoF as described in [Equation 2]. Here, (x, y) may be the coordinates of the seed point before transformation, and (x’, y’) may be the coordinates of the seed point after transformation. a, b, c and d may be model parameters to be determined.

[等式2][Equation 2]

可使用从一个SPIPM确定的Θ来获得(x,y)-(x’,y’)对,并且可通过将(x,y)-(x’,y’)对代入[等式2]来确定与a、b、c和d相关的两个等式。此外,可从两个SPIPM确定与a、b、c和d相关的四个等式,并且可使用所述四个等式来获得相似性变换模型。The (x, y)-(x', y') pair can be obtained using Θ determined from a SPIPM, and can be obtained by substituting the (x, y)-(x', y') pair into [Eq. 2] Identify the two equations related to a, b, c, and d. Furthermore, four equations related to a, b, c, and d can be determined from the two SPIPMs, and the similarity transformation model can be obtained using the four equations.

可通过选择SPIPM_TL、SPIPM_TR、SPIPM_BL和SPIPM_BR中的至少两个来确定两个SPIPM。可将选择的SPIPM添加到SPIPM列表中。这里,如图7中所示,可按照两个SPIPM候选模式的IPMD值的和的升序来填充SPIPM列表。The two SPIPMs may be determined by selecting at least two of SPIPM_TL, SPIPM_TR, SPIPM_BL and SPIPM_BR. The selected SPIPM can be added to the SPIPM list. Here, as shown in FIG. 7, the SPIPM list may be populated in ascending order of the sum of the IPMD values of the two SPIPM candidate patterns.

例如,可将SPIPM_TL的候选模式中的一个和SPIPM_TR的候选模式中的一个用作两个SPIPM。例如,可将SPIPM_TL的候选模式中的一个和SPIPM_BL的候选模式中的一个用作两个SPIPM。例如,可将SPIPM_TL的候选模式中的一个和SPIPM_BR的候选模式中的一个用作两个SPIPM。例如,可将SPIPM_TR的候选模式中的一个和SPIPM_BL的候选模式中的一个用作两个SPIPM。例如,可将SPIPM_TR的候选模式中的一个和SPIPM_BR的候选模式中的一个用作两个SPIPM。例如,可将SPIPM_BL的候选模式中的一个和SPIPM_BR的候选模式中的一个用作两个SPIPM。For example, one of the candidate modes of SPIPM_TL and one of the candidate modes of SPIPM_TR may be used as two SPIPMs. For example, one of the candidate modes of SPIPM_TL and one of the candidate modes of SPIPM_BL may be used as two SPIPMs. For example, one of the candidate modes of SPIPM_TL and one of the candidate modes of SPIPM_BR may be used as two SPIPMs. For example, one of the candidate modes of SPIPM_TR and one of the candidate modes of SPIPM_BL may be used as two SPIPMs. For example, one of the candidate modes of SPIPM_TR and one of the candidate modes of SPIPM_BR may be used as two SPIPMs. For example, one of the candidate modes of SPIPM_BL and one of the candidate modes of SPIPM_BR may be used as two SPIPMs.

如果未填充两个SPIPM,则可使用可用SPIPM来填充SPIPM列表。例如,可使用SPIPM±delta来填充SPIPM列表。这里,delta可以是任何正整数,例如,1、2、3、…。If both SPIPMs are not populated, the available SPIPMs can be used to populate the SPIPM list. For example, SPIPM±delta can be used to populate the SPIPM list. Here, delta can be any positive integer, for example, 1, 2, 3,….

一旦两个SPIPM(SPIPM1、SPIPM2)被确定,可通过[等式2]产生与a、b、c和d相关的四个等式来确定相似性变换模型的参数。确定的模型可用于IPDF产生。Once the two SPIPMs (SPIPM1, SPIPM2) are determined, four equations related to a, b, c and d can be generated by [Equation 2] to determine the parameters of the similarity transformation model. The determined model can be used for IPDF generation.

例如,如果仿射变换被用作用于IPDF产生的变换模型,则可需要至少三个SPIPM。For example, if affine transformation is used as the transformation model for IPDF generation, at least three SPIPM may be required.

仿射变换可具有6-DoF,如[等式3]中所述。这里,(x,y)可以是种子点的变换前的坐标,(x’,y’)可以是种子点的变换后的坐标。a、b、c、d、e和f可以是将被确定的模型参数。Affine transformations can have 6-DoF as described in [Equation 3]. Here, (x, y) may be the coordinates of the seed point before transformation, and (x’, y’) may be the coordinates of the seed point after transformation. a, b, c, d, e and f may be model parameters to be determined.

[等式3][Equation 3]

可使用从一个SPIPM确定的Θ来获得(x,y)-(x’,y’)对,并且可通过将(x,y)-(x’,y’)对代入[等式3]来确定与a、b、c、d、e和f相关的两个等式。此外,可从三个SPIPM确定与a、b、c、d、e和f相关的六个等式,并且可使用所述六个等式来获得仿射变换模型。The (x, y)-(x', y') pair can be obtained using Θ determined from a SPIPM, and can be obtained by substituting the (x, y)-(x', y') pair into [Eq. 3] Identify the two equations related to a, b, c, d, e, and f. In addition, six equations related to a, b, c, d, e, and f can be determined from the three SPIPMs, and the affine transformation model can be obtained using the six equations.

可通过选择SPIPM_TL、SPIPM_TR、SPIPM_BL和SPIPM_BR中的至少三个来确定三个SPIPM。可将选择的SPIPM添加到SPIPM列表中。Three SPIPMs may be determined by selecting at least three of SPIPM_TL, SPIPM_TR, SPIPM_BL and SPIPM_BR. The selected SPIPM can be added to the SPIPM list.

图8是示出构造包括三个SPIPM的SPIPM列表的实施例的示例性示图。FIG. 8 is an exemplary diagram illustrating an embodiment of constructing a SPIPM list including three SPIPMs.

如图8所示,可按照三个SPIPM候选模式的IPMD值的和的升序来使用SPIPM填充SPIPM列表。As shown in Figure 8, the SPIPM list can be populated using SPIPM in ascending order of the sum of the IPMD values of the three SPIPM candidate patterns.

例如,可将SPIPM_TL的候选模式中的一个、SPIPM_TR的候选模式中的一个和SPIPM_BL的候选模式中的一个用作三个SPIPM。例如,可将SPIPM_TL的候选模式中的一个、SPIPM_TR的候选模式中的一个和SPIPM_BR的候选模式中的一个用作三个SPIPM。例如,可将SPIPM_TL的候选模式中的一个、SPIPM_BL的候选模式中的一个和SPIPM_BR的候选模式中的一个用作三个SPIPM。例如,可将SPIPM_TR的候选模式中的一个、SPIPM_BL的候选模式中的一个和SPIPM_BR的候选模式中的一个用作三个SPIPM。For example, one of the candidate modes of SPIPM_TL, one of the candidate modes of SPIPM_TR, and one of the candidate modes of SPIPM_BL may be used as three SPIPMs. For example, one of the candidate modes of SPIPM_TL, one of the candidate modes of SPIPM_TR, and one of the candidate modes of SPIPM_BR may be used as three SPIPMs. For example, one of the candidate modes of SPIPM_TL, one of the candidate modes of SPIPM_BL, and one of the candidate modes of SPIPM_BR may be used as three SPIPMs. For example, one of the candidate modes of SPIPM_TR, one of the candidate modes of SPIPM_BL, and one of the candidate modes of SPIPM_BR may be used as three SPIPMs.

如果未填充三个SPIPM,则可使用可用SPIPM来填充SPIPM列表。例如,可使用SPIPM±delta来填充SPIPM列表。这里,delta可以是任何正整数,例如,1、2、3、…。If three SPIPMs are not populated, the available SPIPMs can be used to populate the SPIPM list. For example, SPIPM±delta can be used to populate the SPIPM list. Here, delta can be any positive integer, for example, 1, 2, 3,….

一旦三个SPIPM(SPIPM1、SPIPM2、SPIPM3)被确定,可通过[等式3]产生与a、b、c、d、e和f相关的六个等式来确定仿射变换模型的参数。确定的模型可用于IPDF产生。Once the three SPIPMs (SPIPM1, SPIPM2, SPIPM3) are determined, the parameters of the affine transformation model can be determined by generating six equations related to a, b, c, d, e and f through [Equation 3]. The determined model can be used for IPDF generation.

例如,如果单应性变换(或透视变换)被用作用于IPDF产生的变换模型,则可需要至少四个SPIPM。For example, if a homography transformation (or perspective transformation) is used as the transformation model for IPDF generation, at least four SPIPM may be required.

仿射变换可具有8-DoF,如[等式4]中所述。这里,(x,y)可以是种子点的变换前的坐标,(x’,y’)可以是种子点的变换后的坐标。h1、h2、h3、h4、h5、h6、h7和h8可以是将被确定的模型参数。Affine transformations can have 8-DoF as described in [Equation 4]. Here, (x, y) may be the coordinates of the seed point before transformation, and (x’, y’) may be the coordinates of the seed point after transformation. h1, h2, h3, h4, h5, h6, h7 and h8 may be model parameters to be determined.

[等式4][Equation 4]

可使用从一个SPIPM确定的Θ来获得(x,y)-(x’,y’)对,并且可通过将(x,y)-(x’,y’)对代入[等式4]来确定与h1、h2、h3、h4、h5、h6、h7和h8相关的两个等式。此外,可从四个SPIPM确定与h1、h2、h3、h4、h5、h6、h7和h8相关的八个等式,并且可使用所述八个等式来获得单应性变换模型。The (x, y)-(x', y') pair can be obtained using Θ determined from a SPIPM, and can be obtained by substituting the (x, y)-(x', y') pair into [Eq. 4] Identify the two equations related to h1, h2, h3, h4, h5, h6, h7, and h8. In addition, eight equations related to h1, h2, h3, h4, h5, h6, h7, and h8 can be determined from the four SPIPMs, and the homography transformation model can be obtained using the eight equations.

可通过选择SPIPM_TL、SPIPM_TR、SPIPM_BL和SPIPM_BR中的至少四个来确定四个SPIPM。可将选择的SPIPM添加到SPIPM列表中。The four SPIPMs may be determined by selecting at least four of SPIPM_TL, SPIPM_TR, SPIPM_BL and SPIPM_BR. The selected SPIPM can be added to the SPIPM list.

图9是示出构造包括四个SPIPM的SPIPM列表的实施例的示例性示图。FIG. 9 is an exemplary diagram illustrating an embodiment of constructing a SPIPM list including four SPIPMs.

如图9所示,可按照四个SPIPM候选模式的IPMD值的和的升序来使用SPIPM顺序地填充SPIPM列表。As shown in Figure 9, the SPIPM list can be populated sequentially using SPIPM in ascending order of the sum of the IPMD values of the four SPIPM candidate patterns.

例如,可将SPIPM_TL的候选模式中的两个和SPIPM_TR的候选模式中的两个用作四个SPIPM。例如,可将SPIPM_TL的候选模式中的两个和SPIPM_BL的候选模式中的两个用作四个SPIPM。例如,可将SPIPM_TL的候选模式中的两个和SPIPM_BR的候选模式中的两个用作四个SPIPM。例如,可将SPIPM_BL的候选模式中的两个和SPIPM_TR的候选模式中的两个用作四个SPIPM。例如,可将SPIPM_BL的候选模式中的两个和SPIPM_BR的候选模式中的两个用作四个SPIPM。例如,可将SPIPM_TL的候选模式中的两个、SPIPM_TR的候选模式中的一个和SPIPM_BL的候选模式中的一个用作四个SPIPM。例如,可将SPIPM_TL的候选模式中的两个、SPIPM_TR的候选模式中的一个和SPIPM_BR的候选模式中的一个用作四个SPIPM。例如,可将SPIPM_TL的候选模式中的两个、SPIPM_BL的候选模式中的一个和SPIPM_BR的候选模式中的一个用作四个SPIPM。例如,可将SPIPM_TR的候选模式中的两个、SPIPM_TL的候选模式中的一个和SPIPM_BL的候选模式中的一个用作四个SPIPM。例如,可将SPIPM_TR的候选模式中的两个、SPIPM_TL的候选模式中的一个和SPIPM_BR的候选模式中的一个用作四个SPIPM。例如,可将SPIPM_TR的候选模式中的两个、SPIPM_TL的候选模式中的一个和SPIPM_BL的候选模式中的一个用作四个SPIPM。例如,可将SPIPM_BL的候选模式中的两个、SPIPM_TL的候选模式中的一个和SPIPM_TR的候选模式中的一个用作四个SPIPM。例如,可将SPIPM_BL的候选模式中的两个、SPIPM_TL的候选模式中的一个和SPIPM_BR的候选模式中的一个用作四个SPIPM。例如,可将SPIPM_BL的候选模式中的两个、SPIPM_TR的候选模式中的一个和SPIPM_BR的候选模式中的一个用作四个SPIPM。例如,可将SPIPM_BR的候选模式中的两个、SPIPM_TL的候选模式中的一个和SPIPM_TR的候选模式中的一个用作四个SPIPM。例如,可将SPIPM_BR的候选模式中的两个、SPIPM_TL的候选模式中的一个和SPIPM_BL的候选模式中的一个用作四个SPIPM。例如,可将SPIPM_BR的候选模式中的两个、SPIPM_TR的候选模式中的一个和SPIPM_BL的候选模式中的一个用作四个SPIPM。例如,可将SPIPM_TL的候选模式中的一个、SPIPM_TR的候选模式中的一个、SPIPM_BL的候选模式中的一个和SPIPM_BR的候选模式中的一个用作四个SPIPM。For example, two of the candidate patterns of SPIPM_TL and two of the candidate patterns of SPIPM_TR may be used as four SPIPMs. For example, two of the candidate patterns of SPIPM_TL and two of the candidate patterns of SPIPM_BL may be used as four SPIPMs. For example, two of the candidate patterns of SPIPM_TL and two of the candidate patterns of SPIPM_BR may be used as four SPIPMs. For example, two of the candidate patterns of SPIPM_BL and two of the candidate patterns of SPIPM_TR may be used as four SPIPMs. For example, two of the candidate patterns of SPIPM_BL and two of the candidate patterns of SPIPM_BR may be used as four SPIPMs. For example, two of the candidate patterns of SPIPM_TL, one of the candidate patterns of SPIPM_TR, and one of the candidate patterns of SPIPM_BL may be used as four SPIPMs. For example, two of the candidate modes of SPIPM_TL, one of the candidate modes of SPIPM_TR, and one of the candidate modes of SPIPM_BR may be used as four SPIPMs. For example, two of the candidate patterns of SPIPM_TL, one of the candidate patterns of SPIPM_BL, and one of the candidate patterns of SPIPM_BR may be used as four SPIPMs. For example, two of the candidate modes of SPIPM_TR, one of the candidate modes of SPIPM_TL, and one of the candidate modes of SPIPM_BL may be used as four SPIPMs. For example, two of the candidate modes of SPIPM_TR, one of the candidate modes of SPIPM_TL, and one of the candidate modes of SPIPM_BR may be used as four SPIPMs. For example, two of the candidate modes of SPIPM_TR, one of the candidate modes of SPIPM_TL, and one of the candidate modes of SPIPM_BL may be used as four SPIPMs. For example, two of the candidate patterns of SPIPM_BL, one of the candidate patterns of SPIPM_TL, and one of the candidate patterns of SPIPM_TR may be used as four SPIPMs. For example, two of the candidate patterns of SPIPM_BL, one of the candidate patterns of SPIPM_TL, and one of the candidate patterns of SPIPM_BR may be used as four SPIPMs. For example, two of the candidate modes of SPIPM_BL, one of the candidate modes of SPIPM_TR, and one of the candidate modes of SPIPM_BR may be used as four SPIPMs. For example, two of the candidate modes of SPIPM_BR, one of the candidate modes of SPIPM_TL, and one of the candidate modes of SPIPM_TR may be used as four SPIPMs. For example, two of the candidate modes of SPIPM_BR, one of the candidate modes of SPIPM_TL, and one of the candidate modes of SPIPM_BL may be used as four SPIPMs. For example, two of the candidate modes of SPIPM_BR, one of the candidate modes of SPIPM_TR, and one of the candidate modes of SPIPM_BL may be used as four SPIPMs. For example, one of the candidate modes of SPIPM_TL, one of the candidate modes of SPIPM_TR, one of the candidate modes of SPIPM_BL, and one of the candidate modes of SPIPM_BR may be used as four SPIPMs.

如果未填充四个SPIPM,则可使用可用SPIPM来填充SPIPM列表。例如,可使用SPIPM±delta来填充SPIPM列表。这里,delta可以是任何正整数,例如,1、2、3、…。If the four SPIPMs are not populated, the available SPIPMs can be used to populate the SPIPM list. For example, SPIPM±delta can be used to populate the SPIPM list. Here, delta can be any positive integer, for example, 1, 2, 3,….

一旦四个SPIPM(SPIPM1、SPIPM2、SPIPM3、SPIPM4)被确定,可通过[等式4]产生与h1、h2、h3、h4、h5、h6、h7和h8相关的八个等式来确定单应性变换模型的参数。确定的模型可用于IPDF产生。Once the four SPIPMs (SPIPM1, SPIPM2, SPIPM3, SPIPM4) are determined, the homography can be determined by [Equation 4] generating eight equations related to h1, h2, h3, h4, h5, h6, h7 and h8 Parameters of the sex transformation model. The determined model can be used for IPDF generation.

在使用预定变换模型产生IPDF之后,可使用产生的IPDF将帧内预测模式分配给W×H当前块内的K×L子块。这里,每个子块的尺寸K×L(K是等于或小于M的正整数,L是等于或小于H的正整数)可以是等于或小于当前块的尺寸的固定尺寸。或者可使用当前块的尺寸和/或IPMD自适应地确定子块尺寸。或者子块可等于当前块的尺寸。After generating an IPDF using a predetermined transform model, the generated IPDF may be used to assign an intra prediction mode to a K×L sub-block within a W×H current block. Here, the size K×L of each sub-block (K is a positive integer equal to or smaller than M, and L is a positive integer equal to or smaller than H) may be a fixed size equal to or smaller than the size of the current block. Alternatively, the sub-block size may be determined adaptively using the size of the current block and/or IPMD. Or the sub-block can be equal to the size of the current block.

图10是示出当前块的尺寸是16×16的情况下的子块尺寸的示例性示图。FIG. 10 is an exemplary diagram showing the sub-block size in the case where the size of the current block is 16×16.

如图10的(a)所示,子块的尺寸可固定为8×8。或者,如图10的(b)所示,子块的尺寸可固定为4×4。或者,如图10的(c)所示,子块的尺寸可固定为2×2。或者,如图10的(d)所示,子块的尺寸可固定为1×1。固定尺寸1×1可以是样点单元的尺寸。As shown in (a) of Figure 10, the size of the sub-block can be fixed at 8×8. Alternatively, as shown in (b) of FIG. 10 , the size of the sub-block may be fixed to 4×4. Alternatively, as shown in (c) of FIG. 10 , the size of the sub-block may be fixed to 2×2. Alternatively, as shown in (d) of FIG. 10 , the size of the sub-block may be fixed to 1×1. The fixed size 1×1 can be the size of the sample unit.

例如,可基于当前块的尺寸来确定子块的尺寸。例如,可基于当前块的SPIPM_TL、SPIPM_TR、SPIPM_BL和SPIPM_BR的IPMD中的至少一个来确定子块的尺寸。例如,可基于当前块的SPIPM_TL、SPIPM_TR、SPIPM_BL和SPIPM_BR的IPMD中的至少一个以及当前块的尺寸来确定子块的尺寸。For example, the size of the sub-block may be determined based on the size of the current block. For example, the size of the sub-block may be determined based on at least one of the IPMDs of SPIPM_TL, SPIPM_TR, SPIPM_BL, and SPIPM_BR of the current block. For example, the size of the sub-block may be determined based on at least one of the IPMDs of SPIPM_TL, SPIPM_TR, SPIPM_BL, and SPIPM_BR of the current block and the size of the current block.

可在比特流中对关于子块的尺寸(粒度)的信息进行熵编码/熵解码。这里,可在VPS、SPS、PPS、APS、条带头、并行块头、CTU、CU、PU、TU、块和子块的至少一个中对该信息进行熵编码/熵解码。Information on the size (granularity) of sub-blocks may be entropy encoded/decoded in the bitstream. Here, the information may be entropy encoded/decoded in at least one of VPS, SPS, PPS, APS, slice header, parallel block header, CTU, CU, PU, TU, block and sub-block.

可根据当前块的尺寸和/或IPMD自适应地推导关于子块尺寸的信息而无需发送该信息。Information about the sub-block size can be adaptively derived based on the size of the current block and/or the IPMD without sending this information.

此外,可基于当前块的编码参数和当前块的邻近块的编码参数中的至少一个来确定子块尺寸。Furthermore, the sub-block size may be determined based on at least one of a coding parameter of the current block and a coding parameter of a neighboring block of the current block.

可使用确定的IPDF来分配子块的帧内预测模式。可通过将特定位置的坐标代入确定的IPDF模型来将每个子块中的在特定位置的帧内预测模式实现为矢量。可将特定位置确定为子块中的像素的位置或与子块的边界相邻的位置。例如,可将子块的左上侧、右上侧、左下侧、右下侧和中部位置中的至少一个确定为特定位置。如果子块中的特定位置的坐标是(x,y)并且由IPDF计算的位置的变换系数是(x’,y’),则可通过θSB=atan[(y’-y)/(x’-x)]来确定矢量的方向θSBThe determined IPDF may be used to assign the intra prediction mode of the sub-block. The intra prediction mode at a specific position in each sub-block can be implemented as a vector by substituting the coordinates of the specific position into the determined IPDF model. The specific location may be determined as the location of the pixel in the sub-block or adjacent to a boundary of the sub-block. For example, at least one of the upper left side, upper right side, lower left side, lower right side, and middle position of the sub-block may be determined as a specific position. If the coordinates of a specific position in the sub-block are (x, y) and the transformation coefficient of the position calculated by IPDF is (x', y'), then θ SB =atan[(y'-y)/(x '-x)] to determine the direction of the vector θ SB .

图11是示出使用确定的IPDF分配帧内预测模式的实施例的示图。FIG. 11 is a diagram illustrating an embodiment of allocating an intra prediction mode using a determined IPDF.

如图11所示,可将θSB映射到方向性模式中的按照最相似方向定向的帧内预测模式。可使用查找表(LUT)执行θSB到帧内预测模式映射。As shown in FIG. 11 , θ SB can be mapped to the intra prediction mode oriented in the most similar direction among the directional modes. Theta SB to intra prediction mode mapping may be performed using a look-up table (LUT).

此外,当使用IPDF分配子块的帧内预测模式时,可基于最近邻近方法将IPDF分配为子块的帧内预测模式。此外,当使用IPDF将帧内预测模式分配给子块时,可通过将IPDF量化为整数来将帧内预测模式分配给子块。此外,当使用IPDF将帧内预测模式分配给子块时,可通过将IPDF取整为最接近的整数来将帧内预测模式分配给子块。Furthermore, when the IPDF is used to allocate the intra prediction mode of the sub-block, the IPDF may be allocated as the intra prediction mode of the sub-block based on the nearest neighbor method. Furthermore, when an intra prediction mode is assigned to a sub-block using IPDF, the intra prediction mode may be assigned to the sub-block by quantizing the IPDF into an integer. Furthermore, when an intra prediction mode is assigned to a sub-block using IPDF, the intra prediction mode may be assigned to the sub-block by rounding the IPDF to the nearest integer.

对于基于变换模型的按子块的帧内预测,将在比特流中被另外熵编码/熵解码的信息可包括以下至少一个。For sub-block-based intra prediction based on the transform model, information to be additionally entropy encoded/entropy decoded in the bitstream may include at least one of the following.

指示是否已针对当前块执行了基于变换模型的按子块的帧内预测的信息:TBIP_flagInformation indicating whether transform model-based per-subblock intra prediction has been performed for the current block: TBIP_flag

TBIP_flag可以是指示是否使用与当前块邻近的重建块中的已通过使用帧内预测被编码/解码的块的帧内预测模式中的至少一个和当前块的帧内预测模式来推导每个子块的帧内预测模式的信息。TBIP_flag may be a value indicating whether to derive each sub-block using at least one of an intra prediction mode of a block that has been encoded/decoded by using intra prediction in a reconstructed block adjacent to the current block and an intra prediction mode of the current block. Intra prediction mode information.

指示使用的SPIPM集合的索引:SPIPM_idxIndex indicating the SPIPM collection used: SPIPM_idx

现在,将给出使用变换模型推导基于子块的帧内预测模式的另一实施例。例如,在邻近重建块中存在已通过基于变换模型的按子块的帧内预测被编码/解码的块的情况下,可使用邻近块的IPDF模型针对每个子块推导帧内预测模式,而不是直接产生当前块的IPDF。Now, another embodiment of deriving a sub-block based intra prediction mode using a transform model will be given. For example, in the case where there is a block that has been encoded/decoded by sub-block-based intra prediction based on the transform model in the neighboring reconstructed block, the intra prediction mode can be derived for each sub-block using the IPDF model of the neighboring block instead Directly generate the IPDF of the current block.

为了确定在当前块的邻近重建块中是否存在已通过基于变换模型的按子块的帧内预测被编码/解码的任何块,可使用预定义扫描顺序。扫描顺序可以是以下顺序中的至少一个。In order to determine whether there are any blocks that have been encoded/decoded by transform model-based per-sub-block intra prediction among the neighboring reconstructed blocks of the current block, a predefined scan order may be used. The scan order can be at least one of the following orders.

图12是示出与当前块邻近的重建块的示例性示图。FIG. 12 is an exemplary diagram showing reconstructed blocks adjacent to the current block.

例如,在图12中,可按照A→B→C→D→E的顺序执行扫描。或者,可按照A→B→D→C→E的顺序执行扫描。或者,可按照B→A→D→C→E的顺序执行扫描。或者,可按照E→A→B→C→D的顺序执行扫描。或者,可按照任意其它顺序执行扫描。For example, in FIG. 12, scanning may be performed in the order A→B→C→D→E. Alternatively, the scan can be performed in the order A→B→D→C→E. Alternatively, the scan can be performed in the order B→A→D→C→E. Alternatively, the scan can be performed in the order E→A→B→C→D. Alternatively, the scans can be performed in any other order.

或者,可在扫描中排除块A、B、C、D和C的一部分。或者,可扫描除了块A、B、C、D和C之外的块。可基于邻近重建块和当前块中的至少一个的如这里所述的尺寸、形状和编码参数中的至少一个来确定将被扫描的邻近重建块。Alternatively, part of blocks A, B, C, D and C can be excluded from scanning. Alternatively, blocks other than blocks A, B, C, D, and C can be scanned. The neighboring reconstruction blocks to be scanned may be determined based on at least one of size, shape, and coding parameters as described herein of at least one of the neighboring reconstruction blocks and the current block.

图13是示出使用邻近重建块推导帧内预测模式的实施例的示图。FIG. 13 is a diagram illustrating an embodiment of deriving an intra prediction mode using neighboring reconstructed blocks.

在图13所示的示例中,在通过使用变换模型的按子块为单位的帧内预测对作为当前块的邻近块的块A进行编码/解码的情况下,可使用块A的SPIPM_A_TL、SPIPM_A_TR、SPIPM_A_BL和SPIPM_A_BR中的至少一个来产生块A的IPDF。In the example shown in FIG. 13 , in the case where block A, which is a neighboring block of the current block, is encoded/decoded by sub-block unit intra prediction using the transform model, SPIPM_A_TL, SPIPM_A_TR of block A may be used , SPIPM_A_BL and at least one of SPIPM_A_BR to generate the IPDF of block A.

可使用块A的IPDF来推导当前块的SPIPM_Cur_TL、SPIPM_Cur_TR、SPIPM_Cur_BL和SPIPM_Cur_BR中的至少一个,并可使用推导出的SPIPM_Cur_TL、SPIPM_Cur_TR、SPIPM_Cur_BL和SPIPM_Cur_BR中的所述至少一个来产生当前块的IPDF,从而执行按子块的帧内预测。The IPDF of block A may be used to derive at least one of SPIPM_Cur_TL, SPIPM_Cur_TR, SPIPM_Cur_BL, and SPIPM_Cur_BR of the current block, and the derived at least one of SPIPM_Cur_TL, SPIPM_Cur_TR, SPIPM_Cur_BL, and SPIPM_Cur_BR may be used to generate the IPDF of the current block, thereby Perform sub-block-wise intra prediction.

如果当前块的邻近重建块中的至少一个是使用IPDF被编码/解码的块,则可使用相应邻近重建块的IPDF来推导当前块的IPDF。此外,可对TBIP_flag的信息进行熵编码/熵解码。If at least one of the neighboring reconstruction blocks of the current block is a block that was encoded/decoded using IPDF, the IPDF of the corresponding neighboring reconstruction block may be used to derive the IPDF of the current block. In addition, entropy encoding/entropy decoding can be performed on the information of TBIP_flag.

将描述使用等空间模型推导基于子块的帧内预测模式的另一实施例。Another embodiment of deriving a sub-block based intra prediction mode using an iso-spatial model will be described.

图14是示出推导基于子块的帧内预测模式的实施例的示图。FIG. 14 is a diagram illustrating an embodiment of deriving a sub-block based intra prediction mode.

在等空间模型被使用的情况下,可需要至少两个SPIPM。例如,如图14的(a)所示,可总共选择四个候选模式,即,SPIPM_TL的候选模式中的一个、SPIPM_TR的候选模式中的一个、SPIPM_BL的候选模式中的一个和SPIPM_BR的候选模式中的一个。如图9所示,可按照IPMD值的和的升序将选择的四个SPIPM候选模式填充到SPIPM列表中。Where equal spatial models are used, at least two SPIPM may be required. For example, as shown in (a) of FIG. 14 , four candidate modes may be selected in total, namely, one of the candidate modes of SPIPM_TL, one of the candidate modes of SPIPM_TR, one of the candidate modes of SPIPM_BL, and the candidate mode of SPIPM_BR. one of the. As shown in Figure 9, the selected four SPIPM candidate modes may be populated into the SPIPM list in ascending order of the sum of IPMD values.

可使用SPIPM_TL、SPIPM_TR、SPIPM_BL和/或SPIPM_BR首先确定当前块的最外侧子块的帧内预测模式。等空间地确定帧内预测模式可表示使用至少两个帧内预测模式等间隔地对帧内预测模式的值进行划分以及将划分后的帧内预测模式值分配给子块。The intra prediction mode of the outermost sub-block of the current block may be first determined using SPIPM_TL, SPIPM_TR, SPIPM_BL and/or SPIPM_BR. Determining the intra prediction modes equally spatially may mean dividing the values of the intra prediction modes at equal intervals using at least two intra prediction modes and assigning the divided intra prediction mode values to the subblocks.

例如,如图14的(a)所示的示例中,如果SPIPM_TL是24并且SPIPM_TR是21,则可使用SPIPM_TL和SPIPM_TR的值等空间地确定子块A、B、C和D的帧内预测模式。例如,如图14的(b)所示,可确定A=24、B=23、C=22并且D=21。例如,如图14的(a)所示的示例中,如果SPIPM_TL是25并且SPIPM_BL是38,则可使用SPIPM_TL和SPIPM_BL的值等空间地确定子块A、E、I和M的帧内预测模式。例如,如图14的(b)所示,可确定A=24、E=29、I=34并且M=38。例如,如图14的(a)所示的示例中,如果SPIPM_BL是38并且SPIPM_BR是35,则可使用SPIPM_BL和SPIPM_BR的值等空间地确定子块M、N、O和P的帧内预测模式。例如,如图14的(b)所示,可确定M=38、N=37、O=36并且P=35。例如,如图14的(a)所示的示例中,如果SPIPM_TR是21并且SPIPM_BR是35,则可使用SPIPM_TR和SPIPM_BR的值等空间地确定子块D、H、I和P的帧内预测模式。例如,如图14的(b)所示,可确定D=21、H=26、I=31并且P=35。For example, in the example shown in (a) of FIG. 14 , if SPIPM_TL is 24 and SPIPM_TR is 21, the intra prediction modes of sub-blocks A, B, C, and D may be spatially determined using the values of SPIPM_TL and SPIPM_TR, etc. . For example, as shown in (b) of FIG. 14 , A=24, B=23, C=22, and D=21 can be determined. For example, in the example shown in (a) of FIG. 14 , if SPIPM_TL is 25 and SPIPM_BL is 38, the intra prediction modes of sub-blocks A, E, I, and M may be spatially determined using the values of SPIPM_TL and SPIPM_BL, etc. . For example, as shown in (b) of FIG. 14 , A=24, E=29, I=34, and M=38 can be determined. For example, in the example shown in (a) of FIG. 14 , if SPIPM_BL is 38 and SPIPM_BR is 35, the intra prediction modes of sub-blocks M, N, O, and P may be spatially determined using the values of SPIPM_BL and SPIPM_BR, etc. . For example, as shown in (b) of FIG. 14 , it can be determined that M=38, N=37, O=36, and P=35. For example, in the example shown in (a) of FIG. 14 , if SPIPM_TR is 21 and SPIPM_BR is 35, the intra prediction modes of sub-blocks D, H, I, and P may be spatially determined using the values of SPIPM_TR and SPIPM_BR, etc. . For example, as shown in (b) of FIG. 14 , D=21, H=26, I=31, and P=35 can be determined.

在当前块的最外侧子块的所有帧内预测模式被确定之后,可确定次外侧子块的帧内预测模式。在图14示出的示例中,次外侧子块可以是子块F、G、J和K。这里,可将SPIPM_TL重设为次外侧子块中的左上侧子块(图14的(a)中的子块F)的左上侧位置的模式(图14的(a)中的子块A的模式)的值。此外,可将SPIPM_TR重设为次外侧子块中的右上侧子块(图14的(a)中的子块G)的右上侧位置的模式(图14的(a)中的子块D的模式)的值。此外,可将SPIPM_BL重设为次外侧子块中的左下侧子块(图14的(a)中的子块J)的左下侧位置的模式(图14的(a)中的子块M的模式)的值。此外,可将SPIPM_BR重设为次外侧子块中的右下侧子块(图14的(a)中的子块K)的右下侧位置的模式(图14的(a)中的子块P的模式)的值。可递归地重复该操作,直到当前块的所有子块的模式被确定为止。After all the intra prediction modes of the outermost sub-block of the current block are determined, the intra prediction mode of the next outermost sub-block may be determined. In the example shown in FIG. 14, the second outer sub-blocks may be sub-blocks F, G, J, and K. Here, SPIPM_TL may be reset to the pattern of the upper left position of the upper left subblock (subblock F in FIG. 14(a) ) among the second outer subblocks (subblock A in FIG. 14(a) ). mode) value. In addition, SPIPM_TR may be reset to the pattern of the upper right position of the upper right subblock (subblock G in FIG. 14(a) ) among the second outer subblocks (subblock D in FIG. 14(a) ). mode) value. In addition, SPIPM_BL may be reset to the pattern of the lower left position of the lower left subblock (subblock J in FIG. 14(a) ) among the second outer subblocks (subblock M in FIG. 14(a) ). mode) value. In addition, SPIPM_BR may be reset to the mode (subblock K in FIG. 14(a) ) of the lower right side position of the lower right subblock (subblock K in FIG. 14(a) ) among the second outer subblocks. mode of P). This operation can be repeated recursively until the modes of all sub-blocks of the current block are determined.

例如,在图14的(b)所示的示例中,如果SPIPM_TL是24并且SPIPM_TR是21,则可使用SPIPM_TL和SPIPM_TR的值等空间地确定子块F和G的帧内预测模式。例如,如图14的(c)所示,可确定F=24并且G=21。例如,在图14的(b)所示的示例中,如果SPIPM_BL是38并且SPIPM_BR是35,则可使用SPIPM_BL和SPIPM_BR的值等空间地确定子块J和K的帧内预测模式。例如,如图14的(c)所示,可确定J=38并且K=35。For example, in the example shown in (b) of FIG. 14 , if SPIPM_TL is 24 and SPIPM_TR is 21, the intra prediction modes of sub-blocks F and G may be spatially determined using the values of SPIPM_TL and SPIPM_TR, etc. For example, as shown in (c) of FIG. 14 , it can be determined that F=24 and G=21. For example, in the example shown in (b) of FIG. 14 , if SPIPM_BL is 38 and SPIPM_BR is 35, the intra prediction modes of sub-blocks J and K may be spatially determined using the values of SPIPM_BL and SPIPM_BR, etc. For example, as shown in (c) of FIG. 14 , it can be determined that J=38 and K=35.

将针对基于等空间模型的按子块的帧内预测而被另外熵编码/熵解码的信息可以是以下中的至少一个。Information to be additionally entropy encoded/entropy decoded for sub-block-wise intra prediction based on the equal spatial model may be at least one of the following.

指示是否已针对当前块执行了基于等空间模型的按子块的帧内预测的信息:ES_flagInformation indicating whether equal-space model-based per-subblock intra prediction has been performed for the current block: ES_flag

指示使用的SPIPM集合的索引:SPIPM_idxIndex indicating the SPIPM collection used: SPIPM_idx

现在,将给出使用双线性滤波器模型推导基于子块的帧内预测模式的另一实施例的描述。Now, a description will be given of another embodiment of deriving a sub-block based intra prediction mode using a bilinear filter model.

图15是示出推导基于子块的帧内预测模式的另一实施例的示图。FIG. 15 is a diagram illustrating another embodiment of deriving a sub-block based intra prediction mode.

为了使用双线性滤波器模型来确定基于子块的帧内预测模式,可需要至少两个SPIPM。例如,如图15的(a)所示,可通过选择SPIPM_TL的候选模式中的一个、SPIPM_TR的候选模式中的一个、SPIPM_BL的候选模式中的一个和SPIPM_BR的候选模式中的一个来选择总共四个候选模式。如图9所示,可按照IPMD值的和的升序将选择的四个SPIPM候选模式顺序地填充到SPIPM列表中。In order to determine the sub-block based intra prediction mode using a bilinear filter model, at least two SPIPM may be required. For example, as shown in (a) of FIG. 15 , a total of four candidate modes may be selected by selecting one of the candidate modes of SPIPM_TL, one of the candidate modes of SPIPM_TR, one of the candidate modes of SPIPM_BL, and one of the candidate modes of SPIPM_BR. candidate mode. As shown in FIG. 9 , the selected four SPIPM candidate modes may be sequentially populated into the SPIPM list in ascending order of the sum of IPMD values.

可将当前块中的左上侧子块(图15的(a)中的子块A)的模式确定为SPIPM_TL。此外,可将当前块中的右上侧子块(图15的(a)中的子块D)的模式确定为SPIPM_TR。此外,可将当前块中的左下侧子块(图15的(a)中的子块M)的模式确定为SPIPM_BL。此外,可将当前块中的右下侧子块(图15的(a)中的子块P)的模式确定为SPIPM_BR。如图15的(b)所示,可将当前块中的左上侧、右上侧、左下侧和右下侧子块的帧内预测模式分别确定为SPIPM_TL、SPIPM_TR、SPIPM_BL和SPIPM_BR。然而,当前块中的左上侧、右上侧、左下侧和右下侧子块的帧内预测模式不限于SPIPM_TL、SPIPM_TR、SPIPM_BL和SPIPM_BR,并且可将当前块中的左上侧、右上侧、左下侧和右下侧子块的帧内预测模式中的至少一个确定为SPIPM_TL、SPIPM_TR、SPIPM_BL和SPIPM_BR中的至少一个。The mode of the upper left sub-block (sub-block A in (a) of FIG. 15 ) in the current block may be determined as SPIPM_TL. Furthermore, the mode of the upper right sub-block (sub-block D in (a) of FIG. 15 ) in the current block may be determined as SPIPM_TR. Furthermore, the mode of the lower left sub-block (sub-block M in (a) of FIG. 15 ) in the current block may be determined as SPIPM_BL. Furthermore, the mode of the lower right sub-block (sub-block P in (a) of FIG. 15 ) in the current block may be determined as SPIPM_BR. As shown in (b) of FIG. 15 , the intra prediction modes of the upper left, upper right, lower left and lower right sub-blocks in the current block can be determined as SPIPM_TL, SPIPM_TR, SPIPM_BL and SPIPM_BR respectively. However, the intra prediction modes of the upper left, upper right, lower left, and lower right sub-blocks in the current block are not limited to SPIPM_TL, SPIPM_TR, SPIPM_BL, and SPIPM_BR, and the upper left, upper right, lower left sub-blocks in the current block may be and at least one of the intra prediction modes of the lower right sub-block is determined to be at least one of SPIPM_TL, SPIPM_TR, SPIPM_BL and SPIPM_BR.

可使用双线性滤波器方案来确定其它子块的帧内预测模式。例如,可使用以下[等式5]。在[等式5]中,function()可以是floor()或ceil()或round()中的至少一个。在图15示出的示例中,function()可以是round()。此外,在[等式5]中,#of SubBlk in wdt可表示当前块中的水平子块的数量。类似地,#of SubBlk in hgt可表示当前块中的垂直子块的数量。A bilinear filter scheme may be used to determine intra prediction modes for other sub-blocks. For example, the following [Equation 5] can be used. In [Equation 5], function() may be at least one of floor() or ceil() or round(). In the example shown in Figure 15, function() may be round(). Furthermore, in [Equation 5], #of SubBlk in wdt may represent the number of horizontal sub-blocks in the current block. Similarly, #of SubBlk in hgt can represent the number of vertical sub-blocks in the current block.

[等式5][Equation 5]

例如,如图15的(c)所示,可使用[等式5]确定剩余子块的帧内预测模式。For example, as shown in (c) of FIG. 15 , [Equation 5] may be used to determine the intra prediction mode of the remaining sub-block.

将针对基于双线性滤波器模型的按子块的帧内预测而被另外熵编码/熵解码的信息可以是以下中的至少一个。Information to be additionally entropy encoded/entropy decoded for sub-block-wise intra prediction based on the bilinear filter model may be at least one of the following.

指示是否已针对当前块执行了基于双线性滤波器模型的按子块的帧内预测的信息:BF_flagInformation indicating whether per-subblock intra prediction based on the bilinear filter model has been performed for the current block: BF_flag

指示使用的SPIPM集合的索引:SPIPM_idxIndex indicating the SPIPM collection used: SPIPM_idx

可使用与当前块邻近的重建块中的已通过帧内预测被编码/解码的块的帧内预测模式中的至少一个以及当前块的帧内预测模式来基于子块推导帧内预测模式,并且可使用推导出的帧内预测模式来基于子块执行帧内预测。这里,可将包括在先前基于子块被编码/解码的子块中的样点用作随后的按子块的帧内预测的参考样点。The intra prediction mode may be derived based on the sub-block using at least one of the intra prediction modes of the block that has been encoded/decoded by intra prediction among the reconstructed blocks adjacent to the current block and the intra prediction mode of the current block, and The derived intra prediction mode may be used to perform intra prediction on a sub-block basis. Here, samples included in a sub-block previously encoded/decoded on a sub-block basis may be used as reference samples for subsequent sub-block-by-sub-block intra prediction.

编码器可通过针对在按子块的帧内预测之后产生的残差块执行首次变换、二次变换和量化中的至少一个来产生变换系数。可对产生的变换系数进行熵编码。可针对当前块或基于子块来执行首次变换、二次变换和量化。例如,可针对整个当前块执行首次变换、二次变换和量化中的至少一个,或者可针对每个子块执行首次变换、二次变换和量化中的至少一个。这里,可针对当前块或子块不执行首次变换、二次变换和量化。The encoder may generate the transform coefficient by performing at least one of a first transform, a second transform, and quantization on a residual block generated after sub-block intra prediction. The resulting transform coefficients may be entropy coded. First transform, second transform and quantization can be performed on the current block or on a sub-block basis. For example, at least one of the first transform, the second transform, and the quantization may be performed for the entire current block, or at least one of the first transform, the second transform, and the quantization may be performed for each subblock. Here, the first transform, the second transform, and the quantization may not be performed for the current block or sub-block.

可在解码器中对变换系数进行熵解码。可通过针对熵解码后的变换系数执行反量化、首次逆变换和二次逆变换中的至少一个来产生重建残差块。可针对当前块或基于子块来执行首次变换、二次变换和量化。例如,可针对整个当前块执行首次变换、二次变换和量化中的至少一个,并且可针对每个子块执行首次变换、二次变换和量化中的至少一个。这里,可针对当前块或子块不执行首次变换、二次变换和量化。The transform coefficients can be entropy decoded in the decoder. The reconstructed residual block may be generated by performing at least one of inverse quantization, first inverse transform, and second inverse transform on the entropy-decoded transform coefficients. First transform, second transform and quantization can be performed on the current block or on a sub-block basis. For example, at least one of the first transform, the second transform, and the quantization may be performed for the entire current block, and at least one of the first transform, the second transform, and the quantization may be performed for each subblock. Here, the first transform, the second transform, and the quantization may not be performed for the current block or sub-block.

可从比特流中对帧内预测信息进行熵编码/熵解码。这里,可在VPS、SPS、PPS、APS、条带头和并行块头中的至少一个中用信号发送帧内预测信息。Intra prediction information can be entropy encoded/entropy decoded from the bitstream. Here, the intra prediction information may be signaled in at least one of VPS, SPS, PPS, APS, slice header, and parallel block header.

指示MPM是否匹配的标志:例如,prev_intra_luma_pred_flagFlag indicating whether the MPM matches: e.g. prev_intra_luma_pred_flag

指示MPM列表中的位置的索引:例如,mpm_idxIndex indicating position in the MPM list: for example, mpm_idx

帧内亮度预测模式信息:例如,rem_intra_luma_pred_modeIntra-frame luma prediction mode information: for example, rem_intra_luma_pred_mode

帧内色度预测模式信息:例如,intra_chroma_pred_modeIntra chroma prediction mode information: for example, intra_chroma_pred_mode

指示使用邻近块的帧内预测模式来推导当前块和子块的帧内预测模式的标志:例如,NDIP_flagFlag indicating that the intra prediction modes of neighboring blocks are used to derive the intra prediction modes of the current block and sub-blocks: for example, NDIP_flag

当使用N个MPM列表推导当前块的帧内预测模式或对当前块的帧内预测模式进行熵编码/熵解码时,针对N个MPM列表中的每一个指示与当前块的帧内预测模式相同的帧内预测模式是否包括在MPM列表的帧内预测模式中的指示符(MPM标志):例如,MPM_FLAG_1、MPM_FLAG_2、…、MPM_FLAG_NWhen deriving the intra prediction mode of the current block using N MPM lists or entropy encoding/entropy decoding the intra prediction mode of the current block, indicating for each of the N MPM lists the same as the intra prediction mode of the current block Indicator (MPM flag) whether the intra prediction mode is included in the intra prediction mode of the MPM list: for example, MPM_FLAG_1, MPM_FLAG_2, ..., MPM_FLAG_N

当与当前块的帧内预测模式相同的帧内预测模式包括在N个MPM列表中的特定一个MPM列表的帧内预测模式中时,指示该帧内预测模式在该MPM列表中的位置或顺序的索引信息:例如,MPM_IDX_1、MPM_IDX_2、…、MPM_IDX_NWhen the same intra prediction mode as the intra prediction mode of the current block is included in the intra prediction mode of a specific one of the N MPM lists, the position or order of the intra prediction mode in the MPM list is indicated. Index information: for example, MPM_IDX_1, MPM_IDX_2, ..., MPM_IDX_N

指示是否已针对当前块执行了基于变换模型的按子块的帧内预测的信息以及指示使用的SPIPM集合的索引:例如,TBIP_flag和SPIPM_idxInformation indicating whether transform model-based sub-block intra prediction has been performed for the current block and an index indicating the SPIPM set used: e.g., TBIP_flag and SPIPM_idx

指示是否已针对当前块使用等空间模型基于子块推导了帧内预测模式的信息以及指示使用的SPIPM集合的索引:ES_flag和SPIPM_idxInformation indicating whether the intra prediction mode has been derived based on sub-blocks using an equal spatial model for the current block and an index indicating the SPIPM set used: ES_flag and SPIPM_idx

指示是否已针对当前块使用双线性滤波器模型基于子块推导了帧内预测模式的信息以及指示使用的SPIPM集合的索引:BF_flag和SPIPM_idxInformation indicating whether the intra prediction mode has been derived based on sub-blocks using a bilinear filter model for the current block and an index indicating the SPIPM set used: BF_flag and SPIPM_idx

当MPM(最可能模式)标志是1时,可从包括已通过使用MPM索引mpm_idx被编码/解码的相邻单元的帧内模式的候选模式推导亮度分量的帧内预测模式。When the MPM (Most Likely Mode) flag is 1, the intra prediction mode of the luma component may be derived from candidate modes including the intra modes of neighboring units that have been encoded/decoded by using the MPM index mpm_idx.

当MPM(最可能模式)标志是0时,可通过使用关于亮度分量的帧内预测模式信息rem_intra_luma_pred_mode来对亮度分量的帧内预测模式进行编码/解码。When the MPM (Most Likely Mode) flag is 0, the intra prediction mode of the luma component may be encoded/decoded by using the intra prediction mode information rem_intra_luma_pred_mode on the luma component.

可通过使用关于色度分量的帧内预测模式信息intra_chroma_pred_mode和/或色度分量块的相应帧内预测模式对色度分量的帧内预测模式进行编码/解码。The intra prediction mode of the chroma component may be encoded/decoded by using the intra prediction mode information intra_chroma_pred_mode on the chroma component and/or the corresponding intra prediction mode of the chroma component block.

可基于编码参数中的至少一个从比特流中对帧内预测信息进行熵编码/熵解码。例如,可基于块划分信息对NDIP_flag进行编码/解码。The intra prediction information may be entropy encoded/entropy decoded from the bitstream based on at least one of the encoding parameters. For example, NDIP_flag may be encoded/decoded based on block partition information.

例如,如果split_flag、quadtree_flag和binarytree_flag中的至少一个是“0”,并且因此块不再被划分,则可对NDIP_flag进行编码/解码。例如,如果binarytree_flag是1,则可不对NDIP_flag进行编码/解码。For example, if at least one of split_flag, quadtree_flag, and binarytree_flag is "0", and therefore the block is no longer divided, NDIP_flag may be encoded/decoded. For example, if binarytree_flag is 1, NDIP_flag may not be encoded/decoded.

可不基于块的尺寸和形状中的至少一个用信号发送上述多条帧内预测信息中的至少一条。At least one of the plurality of pieces of intra prediction information may not be signaled based on at least one of a size and a shape of the block.

例如,如果当前块的尺寸是预定尺寸,则可不用信号发送关于当前块的帧内预测信息中的至少一条信息,并且可使用与先前编码/解码的上层块的尺寸相应的关于帧内预测的信息中的至少一条信息。例如,如果当前块的形状为矩形,则可不用信号发送关于当前块的帧内预测信息中的至少一条信息,并且可使用与先前编码/解码的上层块的尺寸相应的关于帧内预测的信息中的至少一条信息。For example, if the size of the current block is a predetermined size, at least one piece of the intra prediction information about the current block may not be signaled, and information about the intra prediction corresponding to the size of the previously encoded/decoded upper layer block may be used. At least one message in the message. For example, if the shape of the current block is a rectangle, at least one piece of the intra prediction information about the current block may not be signaled, and the information about the intra prediction corresponding to the size of the previously encoded/decoded upper layer block may be used at least one piece of information in .

当对帧内预测信息中的至少一条信息进行熵编码/熵解码时,可使用以下二值化方法中的至少一种方法。When entropy encoding/entropy decoding is performed on at least one piece of intra prediction information, at least one of the following binarization methods may be used.

-截断莱斯二值化方法-Truncated Rice binarization method

-K阶指数哥伦布二值化方法-K-order exponential Columbus binarization method

-有限K阶指数哥伦布二值化方法-Finite K-order exponential Columbus binarization method

-固定长度二值化方法-Fixed length binarization method

-一元二值化方法-Union binarization method

-截断一元二值化方法-Truncated unary binarization method

现在,将给出参考样点构建步骤S520的详细描述。Now, a detailed description of the reference sample point construction step S520 will be given.

在基于推导出的帧内预测模式对当前块或比当前块具有更小尺寸和/或形状的子块进行帧内预测的步骤中,可构建用于预测的参考样点。按照当前块的上下文给出以下描述,并且当前块可意为子块。可使用与当前块邻近的一个或更多个重建样点或样点组合来构建参考样点。此外,可在构建参考样点的步骤中应用滤波。这里,可照其原样使用多个重建样点线上的每个重建样点来构建参考样点。或者,可在对相同重建样点线上的样点之间进行滤波之后构建参考样点。或者,可在对不同重建样点线上的样点之间进行滤波之后构建参考样点。构建的参考样点可由ref[m,n]表示,重建邻近样点或通过对重建邻近样点进行滤波获得的样点可由rec[m,n]表示。这里,m或n可以是预定整数值。在当前块的尺寸是W(水平)×H(垂直)的情况下,如果当前块的最上侧样点位置是(0,0),则可将与该样点位置最接近的最左上侧参考样点的相对位置设置为(-1,-1)。In the step of intra-predicting a current block or a sub-block having a smaller size and/or shape than the current block based on the derived intra-prediction mode, reference samples for prediction may be constructed. The following description is given in the context of the current block, and the current block may be meant as a sub-block. The reference sample can be constructed using one or more reconstructed samples or combinations of samples adjacent to the current block. Additionally, filtering can be applied during the step of constructing the reference samples. Here, each reconstructed sample point on the multiple reconstructed sample point lines can be used as is to construct the reference sample point. Alternatively, the reference samples can be constructed after filtering between samples on the same reconstructed sample line. Alternatively, the reference samples can be constructed after filtering between samples on different reconstructed sample lines. The constructed reference sample point can be represented by ref[m,n], and the reconstructed neighboring sample point or the sample point obtained by filtering the reconstructed neighboring sample point can be represented by rec[m,n]. Here, m or n may be a predetermined integer value. In the case where the size of the current block is W (horizontal) × H (vertical), if the uppermost sample point position of the current block is (0, 0), the upper leftmost side reference that is closest to the sample point position can be The relative position of the sample point is set to (-1,-1).

图16是示出可用于当前块的帧内预测的邻近重建样点线的示例性示图。Figure 16 is an exemplary diagram illustrating adjacent reconstructed sample lines that may be used for intra prediction of the current block.

如图16所示,可使用与当前块相邻的一个或更多个重建样点线来构建参考样点。As shown in Figure 16, one or more reconstructed sample lines adjacent to the current block may be used to construct the reference sample.

例如,可选择图16中所示的多个重建样点线中的一个,并可使用选择的重建样点线构建参考样点。可将多个重建样点线中的预定的一个固定地选择为选择的重建样点线。或者,可将多个重建样点线中的特定的一个自适应地选择为选择的重建样点线。在这种情况下,可用信号发送用于选择的重建样点线的指示符。For example, one of the plurality of reconstructed splines shown in Figure 16 may be selected, and the reference samples may be constructed using the selected reconstructed splines. A predetermined one of the plurality of reconstruction splines may be fixedly selected as the selected reconstruction spline. Alternatively, a specific one of the plurality of reconstruction splines may be adaptively selected as the selected reconstruction spline. In this case, an indicator for the selected reconstructed sample line may be signaled.

例如,可组合地使用图16中所示的多个重建样点线中的一个或更多个来构建参考样点。例如,可将参考样点构建为一个或更多个重建样点的加权和(或加权平均)。可基于距当前块的距离来分配用于加权和的权重。这里,可对距当前块较短的距离分配较大的权重。例如,可使用以下[等式6]。For example, one or more of the plurality of reconstructed sample lines shown in Figure 16 may be used in combination to construct the reference sample. For example, the reference sample may be constructed as a weighted sum (or weighted average) of one or more reconstructed samples. The weights used for the weighted sum may be assigned based on distance from the current block. Here, shorter distances from the current block may be assigned greater weight. For example, the following [Equation 6] can be used.

[等式6][Equation 6]

ref[-1,-1]=(rec[-2,-1]+2*rec[-1,-1]+rec[-1,-2]+2)>>2ref[-1,-1]=(rec[-2,-1]+2*rec[-1,-1]+rec[-1,-2]+2)>>2

ref[x,-1]=(rec[x,-2]+3*rec[x,-1]+2)>>2,(x=0~W+H-1)ref[x,-1]=(rec[x,-2]+3*rec[x,-1]+2)>>2, (x=0~W+H-1)

ref[-1,y]=(rec[-2,y]+3*rec[-1,y]+2)>>2,(y=0~W+H-1)ref[-1,y]=(rec[-2,y]+3*rec[-1,y]+2)>>2, (y=0~W+H-1)

或者,可基于距当前块的距离或帧内预测模式中的至少一个,使用多个重建样点的平均值、最大值、最小值、中值和最频繁值中的至少一个来构建参考样点。Alternatively, the reference sample may be constructed using at least one of the average, maximum, minimum, median and most frequent values of a plurality of reconstructed samples based on at least one of distance from the current block or intra prediction mode .

或者,可基于多个连续重建样点的值的改变(变化)来构建参考样点。例如,可基于两个连续重建样点的值之间的差是否等于或大于阈值、两个连续重建样点的值是连续还是不连续改变等中的至少一个来构建参考样点。例如,如果rec[-1,-1]与rec[-2,-1]之间的差等于或大于阈值,则可将ref[-1,-1]确定为rec[-1,-1]或者通过使用分配给rec[-1,-1]的预定权重应用加权平均而获得的值。例如,如果随着多个连续重建样点越靠近当前块,该多个连续重建样点的值每次改变n,则可将参考样点ref[-1,-1]确定为rec[-1,-1]-n。Alternatively, the reference sample points may be constructed based on changes (variations) in the values of a plurality of consecutive reconstructed sample points. For example, the reference sample point may be constructed based on at least one of whether the difference between the values of two consecutive reconstructed sample points is equal to or greater than a threshold, whether the values of two consecutive reconstructed sample points change continuously or discontinuously, and the like. For example, if the difference between rec[-1,-1] and rec[-2,-1] is equal to or greater than the threshold, ref[-1,-1] can be determined as rec[-1,-1] Or the value obtained by applying a weighted average using predetermined weights assigned to rec[-1,-1]. For example, if the values of multiple consecutive reconstructed sample points change n each time as they get closer to the current block, then the reference sample point ref[-1,-1] can be determined as rec[-1 ,-1]-n.

可根据当前块的上侧或左侧边界是否与画面、条带、并行块和编码树块(CTB)中的至少一个的边界相应来不同地确定重建样点线的数量和位置以及用于构建参考样点的构建方法中的至少一个。The number and position of the reconstructed sample lines and used for construction may be determined differently depending on whether the upper or left boundary of the current block corresponds to the boundary of at least one of a picture, a slice, a parallel block, and a coding tree block (CTB). At least one of the construction methods of the reference sample point.

例如,在使用重建样点线1和2构建参考样点的步骤中,当当前块的上侧边界与CTB边界相应时,重建样点线1可用于上侧并且重建样点线1和2可用于左侧。For example, in the step of constructing reference samples using reconstructed sample lines 1 and 2, when the upper side boundary of the current block corresponds to the CTB boundary, reconstructed sample line 1 is available for the upper side and reconstructed sample lines 1 and 2 are available on the left.

例如,在使用重建样点线1至4构建参考样点的步骤中,当当前块的上侧边界与CTB边界相应时,重建样点线1和2可用于上侧并且重建样点线1至4可用于左侧。For example, in the step of constructing reference samples using reconstructed sample lines 1 to 4, when the upper side boundary of the current block corresponds to the CTB boundary, reconstructed sample lines 1 and 2 can be used for the upper side and reconstructed sample lines 1 to 4 available for left side.

例如,在使用重建样点线2构建参考样点的步骤中,当当前块的上侧边界与CTB边界相应时,重建样点线1可用于上侧并且重建样点线2可用于左侧。For example, in the step of constructing reference samples using reconstructed sample line 2, when the upper side boundary of the current block corresponds to the CTB boundary, reconstructed sample line 1 may be used for the upper side and reconstructed sample line 2 may be used for the left side.

可通过以上处理构建一个或更多个参考样点线。One or more reference sample lines can be constructed through the above processing.

当前块的上侧的参考样点构建方法可与当前块的左侧的参考样点构建方法不同。The reference sample construction method for the upper side of the current block may be different from the reference sample construction method for the left side of the current block.

可对指示已使用以上方法中的至少一个方法构建了参考样点的信息进行编码/解码。例如,可对指示是否使用了多个重建样点线的信息进行编码/解码。Information indicating that the reference sample has been constructed using at least one of the above methods may be encoded/decoded. For example, information indicating whether multiple reconstructed sample lines were used may be encoded/decoded.

如果当前块被划分为多个子块,并且每个子块具有独立的帧内预测模式,则可针对每个子块构建参考样点。If the current block is divided into multiple sub-blocks, and each sub-block has an independent intra prediction mode, a reference sample can be constructed for each sub-block.

图17是示出针对包括在当前块中的子块来构建参考样点的实施例的示图。FIG. 17 is a diagram illustrating an embodiment of constructing reference samples for sub-blocks included in the current block.

如图17所示,如果当前块的尺寸为16×16并且16个4×4子块具有独立的帧内预测模式,则可根据用于对子块进行预测的扫描方案,使用以下方法中的至少一个来构建针对每个子块的参考样点。As shown in Figure 17, if the size of the current block is 16×16 and the 16 4×4 sub-blocks have independent intra prediction modes, the following method can be used according to the scanning scheme used to predict the sub-blocks. At least one to construct reference samples for each sub-block.

例如,可使用与当前块相邻的N个重建样点线,针对每个子块来构建参考样点。在图17示出的示例中,N是1。For example, the reference samples can be constructed for each sub-block using N reconstructed sample lines adjacent to the current block. In the example shown in Figure 17, N is 1.

例如,在按照1→2→3→…→15→16的光栅扫描顺序对多个子块进行预测的情况下,可使用已被编码/解码的左侧、上侧、右上侧和左下侧子块中的至少一个的样点来构建针对第K子块的参考样点。For example, in the case of predicting multiple sub-blocks in the raster scanning order of 1→2→3→…→15→16, the left, upper, upper right and lower left sub-blocks that have been encoded/decoded can be used The reference sample points for the K-th sub-block are constructed from at least one sample point in .

例如,在按照1→2→5→6→3→4→7→…→12→15→16的Z扫描顺序对多个子块进行预测的情况下,可使用已被编码/解码的左侧、上侧、右上侧和左下侧子块中的至少一个的样点来构建针对第K子块的参考样点。For example, in the case of predicting multiple sub-blocks in the Z scanning order of 1→2→5→6→3→4→7→…→12→15→16, the encoded/decoded left and right sides can be used. Sample points of at least one of the upper, upper right and lower left sub-blocks are used to construct a reference sample for the K-th sub-block.

例如,在按照1→2→5→9→6→3→4→…→12→15→16的锯齿扫描顺序对多个子块进行预测的情况下,可使用已被编码/解码的左侧、上侧、右上侧和左下侧子块中的至少一个的样点来构建针对第K子块的参考样点。For example, in the case of predicting multiple sub-blocks in a sawtooth scanning order of 1→2→5→9→6→3→4→...→12→15→16, the encoded/decoded left, Sample points of at least one of the upper, upper right and lower left sub-blocks are used to construct a reference sample for the K-th sub-block.

例如,在按照1→5→9→13→2→6→…→8→12→16的垂直扫描顺序对多个子块进行预测的情况下,可使用已被编码/解码的左侧、上侧、右上侧和左下侧子块中的至少一个的样点来构建针对第K子块的参考样点。For example, in the case of predicting multiple sub-blocks in the vertical scanning order of 1→5→9→13→2→6→...→8→12→16, the left and upper sides that have been encoded/decoded can be used. , the sample point of at least one of the upper right side and the lower left sub-block is used to construct the reference sample point for the K-th sub-block.

在按照除了以上扫描顺序之外的扫描顺序对多个子块进行预测的情况下,可使用已被编码/解码的左侧、上侧、右上侧和左下侧子块中的至少一个的样点来构建针对第K子块的参考样点。In the case where multiple sub-blocks are predicted in a scanning order other than the above scanning order, samples of at least one of the left, upper, upper right and lower left sub-blocks that have been encoded/decoded may be used. Construct reference samples for the Kth sub-block.

在选择参考样点的步骤中,可执行包括参考样点的块的可用性的确定和/或填充。例如,如果包括参考样点的块可用,则可使用参考样点。同时,如果包括参考样点的块不可用,则可通过填充来使用一个或更多个可用邻近参考样点替换不可用参考样点。In the step of selecting the reference samples, determination and/or filling of the availability of blocks including the reference samples may be performed. For example, if a block containing the reference samples is available, the reference samples can be used. At the same time, if a block containing a reference sample is unavailable, padding can be used to replace the unavailable reference sample with one or more available neighboring reference samples.

如果参考样点存在于画面边界、并行块边界、条带边界、CTB边界和预定边界中的至少一个之外,则可确定参考样点不可用。If the reference sample exists outside at least one of a picture boundary, a tile boundary, a slice boundary, a CTB boundary, and a predetermined boundary, it may be determined that the reference sample is unavailable.

在通过CIP(约束帧内预测)对当前块进行编码的情况下,如果按照帧间预测模式对包括参考样点的块进行编码/解码,则可确定参考样点不可用。In the case where the current block is encoded by CIP (Constrained Intra Prediction), if the block including the reference samples is encoded/decoded in the inter prediction mode, it may be determined that the reference samples are not available.

图18是示出使用可用重建样点替换不可用重建样点的方法的示图。FIG. 18 is a diagram illustrating a method of replacing unavailable reconstruction sample points with available reconstruction sample points.

如果确定邻近重建样点不可用,则可使用邻近可用重建样点替换不可用样点。例如,如图18所示,在存在可用样点和不可用样点的情况下,可使用一个或更多个可用样点替换不可用样点。If a nearby reconstructed sample point is determined to be unavailable, the unavailable sample point can be replaced with a nearby available reconstructed sample point. For example, as shown in Figure 18, where there are available and unavailable sample points, one or more available sample points may be used to replace the unavailable sample points.

可按照预定顺序使用可用样点的样点值替换不可用样点的样点值。可使用与不可用样点相邻的可用样点来替换不可用样点。在不存在相邻可用样点的情况下,可使用首先出现的可用样点或最接近的可用样点。不可用样点的替换顺序可以是从最左下侧到最右上侧的顺序。或者不可用样点的替换顺序可以是从最右上侧到最左下侧的顺序。或者不可用样点的替换顺序可以是从最左上侧到最右下侧和/或最左下侧的顺序。或者不可用样点的替换顺序可以是从最右上侧和/或最左下侧到最左上侧的顺序。The sample values of unavailable sample points can be replaced with the sample values of available sample points in a predetermined order. Unavailable sample points can be replaced with available sample points adjacent to the unavailable sample points. In the absence of adjacent available samples, the first available sample or the closest available sample may be used. The replacement order of unavailable sample points can be from the lower left side to the upper right side. Or the replacement order of unavailable sample points can be from the uppermost right side to the lower leftmost side. Or the replacement order of unavailable sample points may be the order from the upper left side to the lower right side and/or the lower left side. Or the replacement order of unavailable sample points may be the order from the uppermost right side and/or the lowermost left side to the uppermost left side.

如图18所示,可按照从最左下侧样点位置0到最右上侧样点的顺序来替换不可用样点。在这种情况下,可使用首先出现或最接近的可用样点a的值来替换首先四个不可用样点的值。可使用最后可用样点b的值来替换接下来13个不可用样点的值。As shown in Figure 18, unavailable sample points can be replaced in order from the lower left sample point position 0 to the upper right sample point. In this case, the values of the first four unavailable samples can be replaced with the value of the first or closest available sample a. The value of the last available sample point b can be used to replace the values of the next 13 unavailable sample points.

或者,可使用可用样点的组合来替换不可用样点。例如,可使用与不可用样点的两端相邻的可用样点的中值来替换不可用样点。例如,在图18中,可使用可用样点a的值来填充首先四个不可用样点,可使用可用样点b和可用样点c的中值来填充接下来13个不可用样点。或者,可使用可用样点b和可用样点c的值之间的任意值来填充这13个不可用样点。在这种情况下,可使用不同值来替换不可用样点。例如,当不可用样点较靠近可用样点a时,可使用与可用样点a的值接近的值来替换不可用样点的值。相似地,当不可用样点较靠近可用样点b时,可使用与可用样点b的值接近的值来替换不可用样点的值。也就是说,可基于从不可用样点到可用样点a和/或b的距离来确定不可用样点的值。Alternatively, a combination of available sample points can be used to replace unavailable sample points. For example, the unavailable sample points can be replaced with the median value of the available samples adjacent to either end of the unavailable sample point. For example, in Figure 18, the first four unavailable samples can be filled using the value of available sample a, and the next 13 unavailable samples can be filled using the median value of available sample b and available sample c. Alternatively, the 13 unavailable samples can be filled with any value between the values of available sample b and available sample c. In this case, the unavailable sample points can be replaced with different values. For example, when the unavailable sample point is closer to the available sample point a, the value of the unavailable sample point can be replaced with a value close to the value of the available sample point a. Similarly, when the unavailable sample point is closer to the available sample point b, the value of the unavailable sample point can be replaced with a value that is close to the value of the available sample point b. That is, the value of the unavailable sample point may be determined based on the distance from the unavailable sample point to the available sample points a and/or b.

为了替换不可用样点,可选择性地应用包括以上方法的多个方法中的一个或更多个。可通过包括在比特流中的信息用信号发送用于替换不可用样点的方法,或者可使用由编码器和解码器预定的方法。或者可通过预定方案推导用于替换不可用样点的方法。例如,可基于可用样点a和b的值之间的差和/或不可用样点的数量来选择用于替换不可用样点的方法。例如,可基于两个可用样点的值之间的差与阈值之间的比较和/或不可用样点的数量与阈值之间的比较来选择用于替换不可用样点的方法。例如,如果两个可用样点的值之间的差大于阈值和/或如果不可用样点的数量大于阈值,则可使用不同值来替换不可用样点的值。To replace unavailable sample points, one or more of a plurality of methods including the above methods may be selectively applied. The method for replacing unavailable samples may be signaled by information included in the bitstream, or a method predetermined by the encoder and decoder may be used. Or a method for replacing unusable sample points can be derived through a predetermined scheme. For example, the method for replacing unusable samples may be selected based on the difference between the values of available samples a and b and/or the number of unusable samples. For example, the method for replacing unusable samples may be selected based on a comparison between the difference between the values of two available samples and a threshold and/or a comparison of the number of unusable samples and a threshold. For example, if the difference between the values of two available samples is greater than a threshold and/or if the number of unavailable samples is greater than a threshold, the values of the unavailable samples may be replaced with different values.

对于构建的一个或更多个参考样点,可确定是否根据当前块的帧内预测模式、尺寸和形状中的至少一个来应用滤波。如果应用滤波,则可根据当前块的帧内预测模式、尺寸和形状中的至少一个来使用不同滤波器类型。For the constructed one or more reference samples, it may be determined whether to apply filtering according to at least one of an intra prediction mode, a size, and a shape of the current block. If filtering is applied, different filter types may be used depending on at least one of intra prediction mode, size and shape of the current block.

例如,对于多个参考样点线中的每一个,可不同地确定是否应用滤波和/或滤波器类型。例如,可将滤波应用于第一邻近线,而可不将滤波应用于第二邻近线。例如,可将滤波后的值和未滤波的值两者用于参考样点。例如,在3抽头滤波器、5抽头滤波器和7抽头滤波器中,可根据块的帧内预测模式、尺寸和形状中的至少一个来选择和应用至少一个滤波器。For example, whether to apply filtering and/or the filter type may be determined differently for each of a plurality of reference sample lines. For example, filtering may be applied to a first adjacent line, but filtering may not be applied to a second adjacent line. For example, both filtered and unfiltered values may be used for the reference samples. For example, among the 3-tap filter, the 5-tap filter, and the 7-tap filter, at least one filter may be selected and applied according to at least one of the intra prediction mode, size, and shape of the block.

以下,将详细描述执行帧内预测的步骤(S530)。Hereinafter, the step of performing intra prediction (S530) will be described in detail.

可基于推导的帧内预测模式和参考样点对当前块或子块执行帧内预测。在以下描述中,当前块可意为子块。Intra prediction may be performed on the current block or sub-block based on the derived intra prediction mode and reference samples. In the following description, the current block may be meant as a sub-block.

例如,可执行非方向性帧内预测。非方向性帧内预测模式可以是DC模式和平面模式中的至少一个。For example, non-directional intra prediction may be performed. The non-directional intra prediction mode may be at least one of DC mode and planar mode.

可使用构建的参考样点中的一个或更多个的中值来执行DC模式的帧内预测。可将滤波应用于在当前块的边界的一个或更多个预测样点。可根据当前块的尺寸和形状中的至少一个自适应地执行DC模式帧内预测。Intra prediction of DC mode may be performed using the median of one or more of the constructed reference samples. Filtering may be applied to one or more prediction samples at the boundaries of the current block. DC mode intra prediction may be adaptively performed according to at least one of a size and a shape of a current block.

图19是示出根据当前块的形状的帧内预测的示例性示图。FIG. 19 is an exemplary diagram illustrating intra prediction according to the shape of the current block.

例如,如图19的(a)所示,如果当前块的形状为正方形,则可使用当前块的上侧和左侧的参考样点的中值来对当前块进行预测。For example, as shown in (a) of FIG. 19 , if the shape of the current block is a square, the current block can be predicted using the median value of the reference samples on the upper and left sides of the current block.

例如,如图19的(b)所示,如果当前块的形状为长方形,则可使用与当前块的宽和长之中的较长边邻近的参考样点的中值来对当前块进行预测。For example, as shown in (b) of FIG. 19 , if the shape of the current block is a rectangle, the current block can be predicted using the median value of the reference sample points adjacent to the longer side among the width and length of the current block. .

例如,如果当前块的尺寸在预定范围内,则从当前块的上侧或左侧参考样点中选择预定样点,并可使用选择的样点的中值来执行预测。For example, if the size of the current block is within a predetermined range, predetermined samples are selected from upper or left reference samples of the current block, and prediction may be performed using a median value of the selected samples.

可通过考虑根据当前块的目标帧内预测样点的位置距一个或更多个构建的参考样点的距离计算加权和来执行平面模式帧内预测。Planar mode intra prediction may be performed by calculating a weighted sum considering the distance of the target intra prediction sample of the current block from one or more constructed reference samples.

例如,可根据目标预测样点的位置(x,y)将预测块计算为N个参考样点的加权和。N可以是正整数,例如,4。For example, the prediction block can be calculated as a weighted sum of N reference samples based on the position (x, y) of the target prediction sample. N can be a positive integer, for example, 4.

例如,可执行方向性帧内预测。方向性预测模式可以是水平模式、垂直模式和具有预定角度的模式中的至少一个。For example, directional intra prediction may be performed. The directional prediction mode may be at least one of a horizontal mode, a vertical mode, and a mode with a predetermined angle.

可使用处于目标帧内预测样点的位置的水平/垂直线上的一个或更多个参考样点来执行水平/垂直模式帧内预测。Horizontal/vertical mode intra prediction may be performed using one or more reference samples on a horizontal/vertical line at the location of the target intra prediction sample.

可使用相对于目标帧内预测样点的位置具有预定角度的线上的一个或更多个参考样点来执行具有该预定角度的模式下的帧内预测。这里,可使用N个样点。N可以是正整数,诸如,2、3、4、5或6。此外,例如,可通过应用N抽头滤波器(诸如,2抽头、3抽头、4抽头、5抽头或6抽头滤波器)来执行预测。Intra prediction in a mode with a predetermined angle may be performed using one or more reference samples on a line with a predetermined angle relative to the location of a target intra prediction sample. Here, N sample points can be used. N can be a positive integer, such as 2, 3, 4, 5, or 6. Furthermore, prediction may be performed by applying an N-tap filter such as a 2-tap, 3-tap, 4-tap, 5-tap, or 6-tap filter, for example.

例如,可基于位置信息来执行帧内预测。可对位置信息进行编码/解码,并可将在该位置的重建样点块推导为当前块的帧内预测块。或者可将由解码器检测到的与当前块类似的块推导为当前块的帧内预测块。For example, intra prediction may be performed based on location information. The location information can be encoded/decoded, and the reconstructed sample block at that location can be derived as an intra prediction block for the current block. Alternatively, blocks detected by the decoder that are similar to the current block may be derived as intra-predicted blocks for the current block.

例如,可执行帧内颜色分量预测。例如,可使用当前块的重建亮度分量针对色度分量执行帧内预测。或者,可使用当前块的一个重建色度分量Cb针对另一色度分量Cr执行帧内预测。For example, intra color component prediction may be performed. For example, intra prediction may be performed for the chrominance component using the reconstructed luma component of the current block. Alternatively, intra prediction may be performed for another chroma component Cr using one reconstructed chroma component Cb of the current block.

可通过组合地使用上述各种帧内预测方法中的一个或更多个来执行帧内预测。例如,可通过使用预定非方向性帧内预测模式被预测的块和使用预定方向性帧内预测模式被预测的块的加权和来针对当前块构建帧内预测块。这里,可根据当前块的帧内预测模式、块尺寸、形状和/或样点位置中的至少一个来应用不同权重。Intra prediction may be performed by using one or more of the various intra prediction methods described above in combination. For example, an intra prediction block may be constructed for the current block by a weighted sum of blocks predicted using a predetermined non-directional intra prediction mode and blocks predicted using a predetermined directional intra prediction mode. Here, different weights may be applied according to at least one of intra prediction mode, block size, shape and/or sample location of the current block.

可在编码器和解码器中按照相同方法来执行以上实施例。The above embodiments can be performed in the same way in the encoder and decoder.

应用到以上实施例的顺序可在编码器和解码器之间不同,或者应用到以上实施例的顺序可在编码器和解码器之间相同。The order applied to the above embodiments may differ between encoders and decoders, or the order applied to the above embodiments may be the same between encoders and decoders.

可对每个亮度信号和色度信号执行以上实施例,或者可对亮度信号和色度信号等同地执行以上实施例。The above embodiment may be performed on each of the luminance signal and the chrominance signal, or may be performed equally on the luminance signal and the chrominance signal.

本发明的以上实施例被应用到的块形式可具有正方形形式或非正方形形式。The block form to which the above embodiments of the present invention are applied may have a square form or a non-square form.

本发明的以上实施例可根据编码块、预测块、变换块、块、当前块、编码单元、预测单元、变换单元、单元和当前单元中的至少一个的尺寸而被应用。这里,所述尺寸可被定义为最小尺寸或最大尺寸或者最小尺寸和最大尺寸两者以便以上实施例被应用,或者可被定义为以上实施例被应用于的固定尺寸。此外,在以上实施例中,第一实施例可被应用于第一尺寸,第二实施例可被应用于第二尺寸。换句话说,以上实施例可根据所述尺寸而被组合应用。此外,当尺寸等于或大于最小尺寸并等于或小于最大尺寸时,以上实施例可被应用。换句话说,当块尺寸包括在预定范围内时,以上实施例可被应用。The above embodiments of the present invention may be applied according to the size of at least one of a coding block, a prediction block, a transformation block, a block, a current block, a coding unit, a prediction unit, a transformation unit, a unit, and a current unit. Here, the size may be defined as a minimum size or a maximum size or both the minimum size and the maximum size so that the above embodiment is applied, or may be defined as a fixed size to which the above embodiment is applied. Furthermore, in the above embodiments, the first embodiment can be applied to the first size, and the second embodiment can be applied to the second size. In other words, the above embodiments may be applied in combination according to the dimensions. Furthermore, the above embodiment may be applied when the size is equal to or larger than the minimum size and equal to or smaller than the maximum size. In other words, the above embodiment can be applied when the block size is included within the predetermined range.

例如,当当前块的尺寸为8×8或更大时,以上实施例可被应用。例如,当当前块的尺寸为4×4或更大时,以上实施例可被应用。例如,当当前块的尺寸为16×16或更大时,以上实施例可被应用。例如,当当前块的尺寸等于或大于16×16并等于或小于64×64时,以上实施例可被应用。For example, when the size of the current block is 8×8 or larger, the above embodiment may be applied. For example, when the size of the current block is 4×4 or larger, the above embodiment may be applied. For example, when the size of the current block is 16×16 or larger, the above embodiment may be applied. For example, the above embodiment may be applied when the size of the current block is equal to or larger than 16×16 and equal to or smaller than 64×64.

本发明的以上实施例可根据时间层而被应用。为了标识以上实施例可被应用于的时间层,可用信号发送相应的标识符,并且以上实施例可被应用于由相应的标识符指明的特定时间层。这里,所述标识符可被定义为以上实施例可被应用于的最低层或最高层或者最低层和最高层两者,或者可被定义为指示所述实施例被应用于的特定层。此外,所述实施例被应用于的固定时间层可被定义。The above embodiments of the present invention can be applied according to time layers. In order to identify the time layer to which the above embodiments may be applied, a corresponding identifier may be signaled, and the above embodiment may be applied to a specific time layer indicated by the corresponding identifier. Here, the identifier may be defined as the lowest layer or the highest layer or both the lowest layer and the highest layer to which the above embodiments may be applied, or may be defined to indicate a specific layer to which the embodiments are applied. Furthermore, a fixed time layer to which the embodiments are applied may be defined.

例如,当当前图像的时间层为最低层时,以上实施例可被应用。例如,当当前图像的时间层标识符为1时,以上实施例可被应用。例如,当当前图像的时间层为最高层时,以上实施例可被应用。For example, when the temporal layer of the current image is the lowest layer, the above embodiment can be applied. For example, when the temporal layer identifier of the current image is 1, the above embodiment may be applied. For example, when the temporal layer of the current image is the highest layer, the above embodiment can be applied.

可定义本发明的以上实施例被应用于的条带类型,并且可根据相应的条带类型应用以上实施例。The stripe types to which the above embodiments of the present invention are applied may be defined, and the above embodiments may be applied according to the corresponding stripe types.

在上述实施例中,基于具有一系列步骤或单元的流程图描述了所述方法,但本发明不限于所述步骤的顺序,而是,一些步骤可与其它步骤被同时执行,或者可与其它步骤按照不同顺序被执行。此外,本领域普通技术人员应该理解,流程图中的步骤不彼此相斥,并且在不影响本发明的范围的情况下,其它步骤可被添加到流程图中,或者一些步骤可从流程图被删除。In the above embodiments, the method is described based on a flow chart having a series of steps or units, but the present invention is not limited to the order of the steps, but some steps may be performed simultaneously with other steps, or may be performed with other steps. Steps are performed in different orders. Furthermore, those of ordinary skill in the art will understand that the steps in the flowcharts are not mutually exclusive and that other steps may be added to the flowcharts or some steps may be removed from the flowcharts without affecting the scope of the present invention. delete.

实施例包括各种方面的示例。不可能描述各个方面的所有可能的组合,但本领域技术人员将能够认识到不同的组合。因此,本发明可包括权利要求的范围内的所有替换、修改和改变。The embodiments include examples of various aspects. It is not possible to describe all possible combinations of various aspects, but those skilled in the art will be able to recognize different combinations. Therefore, the present invention may include all substitutions, modifications and changes within the scope of the claims.

本发明的实施例可按照程序指令(该程序指令可由各种计算机组件执行,并记录在计算机可读记录介质中)的形式被实现。计算机可读记录介质可包括单独的程序指令、数据文件、数据结构等,或者程序指令、数据文件、数据结构等的组合。记录在计算机可读记录介质中的程序指令可被专门设计和构造用于本发明、或者对于计算机软件技术领域的普通技术人员而言是公知的。计算机可读记录介质的示例包括:磁记录介质(诸如硬盘、软盘和磁带);光学数据存储介质(诸如CD-ROM或DVD-ROM);磁光介质(诸如软光盘);以及被专门构造用于存储和实施程序指令的硬件装置(诸如只读存储器(ROM)、随机存取存储器(RAM)、闪存等)。程序指令的示例不仅包括由编译器格式化出的机器语言代码,还包括可由计算机使用解释器实施的高级语言代码。硬件装置可被配置为由一个或更多个软件模块操作以进行根据本发明的处理,反之亦可。Embodiments of the present invention can be implemented in the form of program instructions (the program instructions can be executed by various computer components and recorded in a computer-readable recording medium). The computer-readable recording medium may include individual program instructions, data files, data structures, etc., or combinations of program instructions, data files, data structures, etc. The program instructions recorded in the computer-readable recording medium may be specially designed and constructed for use in the present invention, or may be well known to those of ordinary skill in the field of computer software technology. Examples of computer-readable recording media include: magnetic recording media (such as hard disks, floppy disks, and magnetic tapes); optical data storage media (such as CD-ROM or DVD-ROM); magneto-optical media (such as floppy optical disks); and specially constructed Hardware devices (such as read-only memory (ROM), random access memory (RAM), flash memory, etc.) for storing and implementing program instructions. Examples of program instructions include not only machine language code formatted by a compiler, but also high-level language code that can be implemented by a computer using an interpreter. A hardware device may be configured to be operated by one or more software modules to perform processing according to the invention, and vice versa.

虽然已根据特定术语(诸如详细元件)以及有限实施例和附图描述了本发明,但它们仅被提供用于帮助更通俗地理解本发明,本发明不限于以上实施例。本发明所属领域的技术人员将理解,可从以上描述做出各种修改和改变。Although the present invention has been described in terms of specific terms, such as detailed elements, and limited embodiments and drawings, they are provided only to aid in a more general understanding of the present invention, and the present invention is not limited to the above embodiments. It will be understood by those skilled in the art that various modifications and changes can be made from the above description.

因此,本发明的精神不应受限于上述实施例,所附权利要求及其等同物的全部范围将落入本发明的范围和精神内。Therefore, the spirit of the present invention should not be limited to the above-described embodiments, but the full scope of the appended claims and their equivalents will fall within the scope and spirit of the present invention.

工业可用性Industrial availability

本发明可用于对视频进行编码/解码。The present invention can be used to encode/decode video.

Claims (14)

1.一种图像解码方法,包括:1. An image decoding method, comprising: 推导当前块的帧内预测模式;Derive the intra prediction mode of the current block; 推导将用于当前块的帧内预测的参考样点;Derive reference samples that will be used for intra prediction of the current block; 通过基于帧内预测模式和参考样点针对当前块执行帧内预测来产生当前块的预测块;以及Generate a prediction block for the current block by performing intra prediction for the current block based on the intra prediction mode and the reference sample; and 基于所述预测块对当前块进行重建,reconstruct the current block based on the predicted block, 其中,使用当前块的两个或更多个邻近块的帧内预测模式的统计值来推导当前块的帧内预测模式,wherein the intra prediction mode of the current block is derived using statistical values of the intra prediction modes of two or more neighboring blocks of the current block, 其中,将色度块的帧内预测模式推导为相应亮度块的帧内预测模式,所述相应亮度块是包括与所述色度块的中心位置相应的样点的亮度块,wherein the intra prediction mode of the chroma block is derived as the intra prediction mode of the corresponding luma block, the corresponding luma block being a luma block including a sample point corresponding to the center position of the chroma block, 其中,基于从多个重建参考样点线选择的一个重建参考样点线来推导将用于当前块的帧内预测的参考样点,wherein reference samples to be used for intra prediction of the current block are derived based on one reconstruction reference sample line selected from a plurality of reconstruction reference sample lines, 其中,在所述一个重建参考样点线是与当前块相邻的第一重建参考样点线的情况下,通过将滤波应用于所述一个重建参考样点线来推导将用于当前块的帧内预测的参考样点,以及在所述一个重建参考样点线是与当前块相邻的第二重建参考样点线的情况下,不对所述一个重建参考样点线进行滤波来推导将用于当前块的帧内预测的参考样点。Wherein, in the case that the one reconstruction reference sample line is the first reconstruction reference sample line adjacent to the current block, the filter to be used for the current block is derived by applying filtering to the one reconstruction reference sample line. Intra-predicted reference sample points, and in the case where the one reconstructed reference sample line is a second reconstructed reference sample line adjacent to the current block, the one reconstructed reference sample line is not filtered to derive the Reference samples used for intra prediction of the current block. 2.如权利要求1所述的方法,2. The method of claim 1, 其中,所述两个或更多个邻近块的帧内预测模式的最小值和最大值被用作所述两个或更多个邻近块的帧内预测模式的统计值。Wherein, the minimum value and the maximum value of the intra prediction modes of the two or more neighboring blocks are used as the statistical values of the intra prediction modes of the two or more neighboring blocks. 3.如权利要求1所述的方法,3. The method of claim 1, 其中,将当前块划分为相同尺寸的多个子块,Among them, the current block is divided into multiple sub-blocks of the same size, 针对所述多个子块中的每个子块执行帧内预测,以及performing intra prediction for each of the plurality of sub-blocks, and 基于当前块的尺寸来确定所述多个子块的尺寸和数量。The size and number of the plurality of sub-blocks are determined based on the size of the current block. 4.如权利要求1所述的方法,4. The method of claim 1, 其中,基于包括在比特流中的标识符来选择所述一个重建参考样点线。wherein said one reconstruction reference sample line is selected based on an identifier included in the bitstream. 5.如权利要求1所述的方法,5. The method of claim 1, 其中,基于当前块的上侧边界是否与预定区域的边界相应来选择所述一个重建参考样点线。Wherein, the one reconstruction reference sample line is selected based on whether the upper boundary of the current block corresponds to the boundary of the predetermined area. 6.如权利要求5所述的方法,6. The method of claim 5, 其中,所述预定区域是编码树块。Wherein, the predetermined area is a coding tree block. 7.如权利要求1所述的方法,7. The method of claim 1, 其中,在当前块的帧内预测模式是DC模式的情况下,使用与当前块的宽度和高度中的较长边相邻的多个参考样点的平均值来执行帧内预测。Wherein, when the intra prediction mode of the current block is the DC mode, intra prediction is performed using an average value of a plurality of reference sample points adjacent to the longer side of the width and height of the current block. 8.一种图像编码方法,包括:8. An image coding method, comprising: 确定当前块的帧内预测模式;Determine the intra prediction mode of the current block; 推导将用于当前块的帧内预测的参考样点;Derive reference samples that will be used for intra prediction of the current block; 通过基于帧内预测模式和参考样点针对当前块执行帧内预测来产生当前块的预测块;以及Generate a prediction block for the current block by performing intra prediction for the current block based on the intra prediction mode and the reference sample; and 基于所述预测块对当前块进行编码,encode the current block based on the predicted block, 其中,使用当前块的两个或更多个邻近块的帧内预测模式的统计值来对当前块的帧内预测模式进行编码,wherein the intra prediction mode of the current block is encoded using statistical values of the intra prediction modes of two or more neighboring blocks of the current block, 其中,将色度块的帧内预测模式推导为相应亮度块的帧内预测模式,所述相应亮度块是包括与所述色度块的中心位置相应的样点的亮度块,wherein the intra prediction mode of the chroma block is derived as the intra prediction mode of the corresponding luma block, the corresponding luma block being a luma block including a sample point corresponding to the center position of the chroma block, 其中,基于从多个重建参考样点线选择的一个重建参考样点线来推导将用于当前块的帧内预测的参考样点,wherein reference samples to be used for intra prediction of the current block are derived based on one reconstruction reference sample line selected from a plurality of reconstruction reference sample lines, 其中,在所述一个重建参考样点线是与当前块相邻的第一重建参考样点线的情况下,通过将滤波应用于所述一个重建参考样点线来推导将用于当前块的帧内预测的参考样点,以及在所述一个重建参考样点线是与当前块相邻的第二重建参考样点线的情况下,不对所述一个重建参考样点线进行滤波来推导将用于当前块的帧内预测的参考样点。Wherein, in the case that the one reconstruction reference sample line is the first reconstruction reference sample line adjacent to the current block, the filter to be used for the current block is derived by applying filtering to the one reconstruction reference sample line. Intra-predicted reference sample points, and in the case where the one reconstructed reference sample line is a second reconstructed reference sample line adjacent to the current block, the one reconstructed reference sample line is not filtered to derive the Reference samples used for intra prediction of the current block. 9.如权利要求8所述的方法,9. The method of claim 8, 其中,所述两个或更多个邻近块的帧内预测模式的最小值和最大值被用作所述两个或更多个邻近块的帧内预测模式的统计值。Wherein, the minimum value and the maximum value of the intra prediction modes of the two or more neighboring blocks are used as the statistical values of the intra prediction modes of the two or more neighboring blocks. 10.如权利要求8所述的方法,10. The method of claim 8, 其中,将当前块划分为相同尺寸的多个子块,Among them, the current block is divided into multiple sub-blocks of the same size, 针对所述多个子块中的每个子块执行帧内预测,以及performing intra prediction for each of the plurality of sub-blocks, and 基于当前块的尺寸来确定所述多个子块的尺寸和数量。The size and number of the plurality of sub-blocks are determined based on the size of the current block. 11.如权利要求8所述的方法,11. The method of claim 8, 其中,将用于选择所述一个重建参考样点线的标识符编码到比特流中。Wherein, an identifier used to select the one reconstruction reference sample line is encoded into the bit stream. 12.如权利要求8所述的方法,12. The method of claim 8, 其中,基于当前块的上侧边界是否与编码树块的边界相应来选择所述一个重建参考样点线。Wherein, the one reconstruction reference sample line is selected based on whether the upper boundary of the current block corresponds to the boundary of the coding tree block. 13.如权利要求8所述的方法,13. The method of claim 8, 其中,在当前块的帧内预测模式是DC模式的情况下,使用与当前块的宽度和高度中的较长边相邻的多个参考样点的平均值来执行帧内预测。Wherein, when the intra prediction mode of the current block is the DC mode, intra prediction is performed using an average value of a plurality of reference sample points adjacent to the longer side of the width and height of the current block. 14.一种发送包括用于图像的比特流的数据的方法,所述方法包括:14. A method of transmitting data comprising a bitstream for an image, the method comprising: 获得用于图像的所述比特流;以及Obtaining said bitstream for an image; and 发送所述比特流的数据,sending the bitstream of data, 其中,所述比特流通过执行以下步骤而被产生:Wherein, the bitstream is generated by performing the following steps: 确定当前块的帧内预测模式;Determine the intra prediction mode of the current block; 推导将用于当前块的帧内预测的参考样点;Derive reference samples that will be used for intra prediction of the current block; 通过基于帧内预测模式和参考样点针对当前块执行帧内预测来产生当前块的预测块;以及Generate a prediction block for the current block by performing intra prediction for the current block based on the intra prediction mode and the reference sample; and 基于所述预测块对当前块进行编码,encode the current block based on the predicted block, 其中,使用当前块的两个或更多个邻近块的帧内预测模式的统计值来对当前块的帧内预测模式进行编码,wherein the intra prediction mode of the current block is encoded using statistical values of the intra prediction modes of two or more neighboring blocks of the current block, 其中,将色度块的帧内预测模式推导为相应亮度块的帧内预测模式,所述相应亮度块是包括与所述色度块的中心位置相应的样点的亮度块,wherein the intra prediction mode of the chroma block is derived as the intra prediction mode of the corresponding luma block, the corresponding luma block being a luma block including a sample point corresponding to the center position of the chroma block, 其中,基于从多个重建参考样点线选择的一个重建参考样点线来推导将用于当前块的帧内预测的参考样点,wherein reference samples to be used for intra prediction of the current block are derived based on one reconstruction reference sample line selected from a plurality of reconstruction reference sample lines, 其中,在所述一个重建参考样点线是与当前块相邻的第一重建参考样点线的情况下,通过将滤波应用于所述一个重建参考样点线来推导将用于当前块的帧内预测的参考样点,以及在所述一个重建参考样点线是与当前块相邻的第二重建参考样点线的情况下,不对所述一个重建参考样点线进行滤波来推导将用于当前块的帧内预测的参考样点。Wherein, in the case that the one reconstruction reference sample line is the first reconstruction reference sample line adjacent to the current block, the filter to be used for the current block is derived by applying filtering to the one reconstruction reference sample line. Intra-predicted reference sample points, and in the case where the one reconstructed reference sample line is a second reconstructed reference sample line adjacent to the current block, the one reconstructed reference sample line is not filtered to derive the Reference samples used for intra prediction of the current block.
CN201780073904.9A 2016-11-29 2017-11-27 Method and apparatus for encoding/decoding image, recording medium for storing bit stream Active CN110024386B (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN202311235558.3A CN117041569A (en) 2016-11-29 2017-11-27 Image encoding/decoding method and recording medium for storing bit stream
CN202311235479.2A CN117041568A (en) 2016-11-29 2017-11-27 Image encoding/decoding method and recording medium for storing bit stream
CN202311235024.0A CN117041567A (en) 2016-11-29 2017-11-27 Image encoding/decoding method and recording medium for storing bit stream
CN202311235748.5A CN117041570A (en) 2016-11-29 2017-11-27 Image encoding/decoding method and recording medium for storing bit stream

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
KR10-2016-0159902 2016-11-29
KR20160159902 2016-11-29
PCT/KR2017/013591 WO2018101685A1 (en) 2016-11-29 2017-11-27 Method and apparatus for encoding/decoding image, and recording medium storing bitstream

Related Child Applications (4)

Application Number Title Priority Date Filing Date
CN202311235748.5A Division CN117041570A (en) 2016-11-29 2017-11-27 Image encoding/decoding method and recording medium for storing bit stream
CN202311235024.0A Division CN117041567A (en) 2016-11-29 2017-11-27 Image encoding/decoding method and recording medium for storing bit stream
CN202311235558.3A Division CN117041569A (en) 2016-11-29 2017-11-27 Image encoding/decoding method and recording medium for storing bit stream
CN202311235479.2A Division CN117041568A (en) 2016-11-29 2017-11-27 Image encoding/decoding method and recording medium for storing bit stream

Publications (2)

Publication Number Publication Date
CN110024386A CN110024386A (en) 2019-07-16
CN110024386B true CN110024386B (en) 2023-10-20

Family

ID=62241669

Family Applications (5)

Application Number Title Priority Date Filing Date
CN202311235479.2A Pending CN117041568A (en) 2016-11-29 2017-11-27 Image encoding/decoding method and recording medium for storing bit stream
CN202311235558.3A Pending CN117041569A (en) 2016-11-29 2017-11-27 Image encoding/decoding method and recording medium for storing bit stream
CN201780073904.9A Active CN110024386B (en) 2016-11-29 2017-11-27 Method and apparatus for encoding/decoding image, recording medium for storing bit stream
CN202311235024.0A Pending CN117041567A (en) 2016-11-29 2017-11-27 Image encoding/decoding method and recording medium for storing bit stream
CN202311235748.5A Pending CN117041570A (en) 2016-11-29 2017-11-27 Image encoding/decoding method and recording medium for storing bit stream

Family Applications Before (2)

Application Number Title Priority Date Filing Date
CN202311235479.2A Pending CN117041568A (en) 2016-11-29 2017-11-27 Image encoding/decoding method and recording medium for storing bit stream
CN202311235558.3A Pending CN117041569A (en) 2016-11-29 2017-11-27 Image encoding/decoding method and recording medium for storing bit stream

Family Applications After (2)

Application Number Title Priority Date Filing Date
CN202311235024.0A Pending CN117041567A (en) 2016-11-29 2017-11-27 Image encoding/decoding method and recording medium for storing bit stream
CN202311235748.5A Pending CN117041570A (en) 2016-11-29 2017-11-27 Image encoding/decoding method and recording medium for storing bit stream

Country Status (3)

Country Link
KR (4) KR102422506B1 (en)
CN (5) CN117041568A (en)
WO (1) WO2018101685A1 (en)

Families Citing this family (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116647693A (en) 2018-09-06 2023-08-25 Lg电子株式会社 Encoding/decoding apparatus, storage medium, and data transmission apparatus
CN116193141A (en) * 2018-09-10 2023-05-30 Lg电子株式会社 Video encoding and decoding apparatus, and apparatus for transmitting image data
EP3886432B1 (en) 2018-11-23 2024-01-03 Intellectual Discovery Co., Ltd. Inter-component prediction
CN110135308A (en) * 2019-04-30 2019-08-16 天津工业大学 A Direct Free Kick Type Discrimination Method Based on Video Analysis
CN119277088A (en) * 2019-06-10 2025-01-07 株式会社 Xris Method and device for encoding/decoding image signal
WO2020259263A1 (en) 2019-06-25 2020-12-30 Zhejiang Dahua Technology Co., Ltd. Systems and methods for image coding
CN110312127B (en) * 2019-06-25 2022-04-19 浙江大华技术股份有限公司 Method for constructing most probable prediction mode list, image coding method and processing device
CN112291558B (en) * 2019-07-23 2023-06-27 杭州海康威视数字技术股份有限公司 Encoding and decoding method, device and equipment thereof
CN115022639B (en) * 2019-09-05 2024-10-25 杭州海康威视数字技术股份有限公司 Encoding and decoding method, device and equipment thereof
KR102776241B1 (en) * 2019-09-25 2025-03-04 엘지전자 주식회사 Image encoding/decoding method, device and bitstream transmitting method for determining a segmentation mode based on a color format
WO2021093075A1 (en) * 2019-12-13 2021-05-20 Zte Corporation Time-domain modulation scheme for low peak average power ratio
KR20250111745A (en) * 2023-01-10 2025-07-22 엘지전자 주식회사 Method for encoding/decoding video based on intra prediction, device and recording medium for storing bitstream
CN119730200B (en) * 2025-02-26 2025-06-24 南京师范大学 Mobile phone wireless charging device with cooling function

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130029693A (en) * 2011-09-15 2013-03-25 주식회사 아이벡스피티홀딩스 Method for encoding and decoding intra prediction mode
CN103200401A (en) * 2012-01-06 2013-07-10 索尼公司 Image processing device and image processing method
JP2013150164A (en) * 2012-01-19 2013-08-01 Sony Corp Encoding apparatus and encoding method, and decoding apparatus and decoding method
CN103238333A (en) * 2010-11-29 2013-08-07 Sk电信有限公司 Method and apparatus for encoding/decoding images to minimize redundancy of intra-rediction mode
CN103404151A (en) * 2011-06-20 2013-11-20 韩国电子通信研究院 Image encoding/decoding method and device therefor
CN103636203A (en) * 2011-06-17 2014-03-12 联发科技股份有限公司 Method and apparatus for intra prediction mode coding
WO2014050971A1 (en) * 2012-09-28 2014-04-03 日本電信電話株式会社 Intra-prediction coding method, intra-prediction decoding method, intra-prediction coding device, intra-prediction decoding device, programs therefor and recording mediums on which programs are recorded
KR20140057519A (en) * 2014-04-25 2014-05-13 주식회사 아이벡스피티홀딩스 Method of encoding moving pictures
JP2015008341A (en) * 2011-10-31 2015-01-15 三菱電機株式会社 Moving picture encoding apparatus, moving picture decoding apparatus, moving picture encoding method, and moving picture decoding method
CN104584561A (en) * 2012-08-06 2015-04-29 联发科技股份有限公司 Sampling adaptive offset processing method and device applied in video decoder
CN104883570A (en) * 2011-10-24 2015-09-02 英孚布瑞智有限私人贸易公司 Image Decoding Apparatus

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070036215A1 (en) * 2003-03-03 2007-02-15 Feng Pan Fast mode decision algorithm for intra prediction for advanced video coding
US9467705B2 (en) * 2009-12-30 2016-10-11 Ariscale Inc. Video encoding apparatus, video decoding apparatus, and video decoding method for performing intra-prediction based on directionality of neighboring block
KR101226498B1 (en) * 2010-12-28 2013-01-25 연세대학교 산학협력단 Intra prediction encoding apparatus and method, intra prediction decoding apparatus and method
US9532058B2 (en) * 2011-06-03 2016-12-27 Qualcomm Incorporated Intra prediction mode coding with directional partitions
PH12014500014A1 (en) * 2011-07-01 2018-03-16 Samsung Electronics Co Ltd Video encoding method with intra prediction using checking process for unified reference possibility, video decoding method and device thereof
US20140133559A1 (en) * 2011-07-05 2014-05-15 Electronics And Telecommunications Research Institute Method for encoding image information and method for decoding same
KR101348544B1 (en) * 2011-08-17 2014-01-10 주식회사 케이티 Methods of intra prediction on sdip and apparatuses for using the same
KR20130049526A (en) * 2011-11-04 2013-05-14 오수미 Method for generating reconstructed block
KR101827939B1 (en) * 2011-12-13 2018-02-12 주식회사 스카이미디어테크 Method of adaptive intra prediction mode encoding and apparatus for the same, and method of decoding and apparatus for the same
US9615086B2 (en) * 2013-02-06 2017-04-04 Research & Business Foundation Sungkyunkwan University Method and apparatus for intra prediction
KR20140124448A (en) * 2013-04-15 2014-10-27 인텔렉추얼디스커버리 주식회사 Method for encoding and decoding video using intra prediction, and apparatus thereof

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103238333A (en) * 2010-11-29 2013-08-07 Sk电信有限公司 Method and apparatus for encoding/decoding images to minimize redundancy of intra-rediction mode
CN103636203A (en) * 2011-06-17 2014-03-12 联发科技股份有限公司 Method and apparatus for intra prediction mode coding
CN103404151A (en) * 2011-06-20 2013-11-20 韩国电子通信研究院 Image encoding/decoding method and device therefor
KR20130029693A (en) * 2011-09-15 2013-03-25 주식회사 아이벡스피티홀딩스 Method for encoding and decoding intra prediction mode
CN104883570A (en) * 2011-10-24 2015-09-02 英孚布瑞智有限私人贸易公司 Image Decoding Apparatus
JP2015008341A (en) * 2011-10-31 2015-01-15 三菱電機株式会社 Moving picture encoding apparatus, moving picture decoding apparatus, moving picture encoding method, and moving picture decoding method
CN103200401A (en) * 2012-01-06 2013-07-10 索尼公司 Image processing device and image processing method
JP2013150164A (en) * 2012-01-19 2013-08-01 Sony Corp Encoding apparatus and encoding method, and decoding apparatus and decoding method
CN104584561A (en) * 2012-08-06 2015-04-29 联发科技股份有限公司 Sampling adaptive offset processing method and device applied in video decoder
WO2014050971A1 (en) * 2012-09-28 2014-04-03 日本電信電話株式会社 Intra-prediction coding method, intra-prediction decoding method, intra-prediction coding device, intra-prediction decoding device, programs therefor and recording mediums on which programs are recorded
KR20140057519A (en) * 2014-04-25 2014-05-13 주식회사 아이벡스피티홀딩스 Method of encoding moving pictures

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
EE8: Decoder-side intra mode derivation;Xiaoyu Xiu等;Joint Video Exploration Team (JVET) of ITU-T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11;4th Meeting: Chengdu, CN, 15–21 October 2016;JVET-D0097;第1-8页 *

Also Published As

Publication number Publication date
CN110024386A (en) 2019-07-16
KR20220103685A (en) 2022-07-22
KR102668281B1 (en) 2024-05-22
CN117041568A (en) 2023-11-10
KR102617953B1 (en) 2023-12-27
KR102422506B1 (en) 2022-07-20
WO2018101685A1 (en) 2018-06-07
CN117041570A (en) 2023-11-10
KR20240001097A (en) 2024-01-03
CN117041569A (en) 2023-11-10
KR20180061025A (en) 2018-06-07
KR20240074723A (en) 2024-05-28
CN117041567A (en) 2023-11-10

Similar Documents

Publication Publication Date Title
CN110024386B (en) Method and apparatus for encoding/decoding image, recording medium for storing bit stream
CN109691099B (en) Video encoding/decoding method and apparatus and recording medium storing bit stream therein
CN109417617B (en) Intra-frame prediction method and device
CN117395406A (en) Image decoding method, image encoding method, and method for transmitting bit stream
CN117119186A (en) Image encoding/decoding apparatus and apparatus for transmitting image data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant