Intra prediction method and apparatus based on intra prediction mode derivation
By optimizing the intra prediction mode using the decoder-side intra mode derivation (DIMD) mode in the image encoding system, the problem of information reduction in high-resolution video/image data transmission and storage is solved, and the image compression efficiency and transmission are improved. efficiency.
Patent Information
- Application Number
- CN202280090460.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2021-12-30
- Filing Date
- 2022-12-30
- Publication Date
- 2024-08-30
AI Technical Summary
When transmitting and storing high-resolution, high-quality video/image data, existing technologies are difficult to effectively compress and reduce the amount of information sent in intra-frame prediction mode, resulting in increased costs and inefficiency, especially in virtual reality (VR) and the dissemination of artificial reality (AR) content.
Through the collaborative work of the decoding device and the encoding device, the intra prediction mode is derived, and prediction samples and reconstructed samples are generated based on this mode, and then the image information is encoded or decoded, and the decoder side intra mode derivation (DIMD) mode is used to optimize the prediction and Coding process.
It effectively reduces the amount of data information in intra-frame prediction mode, improves image compression efficiency, reduces transmission and storage costs, and is suitable for the dissemination of high-resolution videos/images, especially in the dissemination of VR and AR content.
Smart Images

Figure CN118575475A
Abstract
Description
Technical Field
[0001] The present disclosure relates to an image coding technology, and more particularly, to a method and apparatus for coding an intra prediction mode in an image coding system. Background Art
[0002] Recently, the demand for high-resolution, high-quality images / videos such as 4K, 8K or higher ultra-high definition (UHD) video / images in various fields is increasing. As the video / image resolution or quality becomes higher, relatively more information or bits are transmitted compared to traditional video / image data. Therefore, if the video / image data is transmitted via a medium such as an existing wired / wireless broadband line or stored in a traditional storage medium, the cost of transmission and storage is likely to increase.
[0003] Furthermore, interest and demand for virtual reality (VR) and artificial reality (AR) content and immersive media such as holograms are growing; and broadcasting of images / videos exhibiting image / video characteristics different from actual videos / images (e.g., game images / videos) is also growing.
[0004] Therefore, efficient image compression technology is needed to effectively compress and transmit, store or play high-resolution, high-quality videos / images that exhibit various characteristics as described above.
[0005] Additionally, there is a need for a technique for reducing the amount of information and the amount of bits transmitted during the process of signaling data for an intra prediction mode. Summary of the invention
[0006] Technical Solution
[0007] According to an embodiment of the present disclosure, an image decoding method performed by a decoding device is provided herein. The decoding method includes the following steps: obtaining a bitstream including image information, deriving a decoder-side intra mode derivation (DIMD) mode for a current block, deriving an intra prediction mode for the current block, generating a prediction sample for the current block based on the intra prediction mode for the current block, and generating a reconstructed sample for the current block based on the prediction sample for the current block, wherein the intra prediction mode for the current block is derived based on whether the DIMD mode is applied to the current block.
[0008] According to another embodiment of the present disclosure, an image encoding method performed by an encoding device is provided herein. The encoding method includes the following steps: deriving a decoder-side intra mode derivation (DIMD) mode for a current block, determining an intra prediction mode for the current block, generating a prediction sample for the current block based on the intra prediction mode for the current block, generating prediction-related information based on the prediction sample for the current block, and encoding image information including the prediction-related information, wherein the intra prediction mode for the current block is determined based on whether the DIMD mode is applied to the current block.
[0009] According to another embodiment of the present disclosure, a computer-readable digital recording medium is provided herein. The digital recording medium stores a bitstream generated by a specific method, wherein the specific method includes the following steps: deriving a decoder-side intra mode derivation (DIMD) mode for a current block, determining an intra prediction mode for the current block, generating prediction samples for the current block based on the intra prediction mode for the current block, generating prediction-related information based on the prediction samples for the current block, and encoding image information including prediction-related information, wherein the intra prediction mode for the current block is determined based on whether the DIMD mode is applied to the current block.
[0010] According to another embodiment of the present disclosure, a method for transmitting data for an image is provided herein. The transmitting method includes the following steps: generating a bitstream based on a step of deriving a decoder-side intra mode derivation (DIMD) mode for a current block, determining an intra prediction mode for the current block, generating prediction samples for the current block based on the intra prediction mode for the current block, generating prediction-related information based on the prediction samples for the current block, encoding image information including prediction-related information, and transmitting data including a bitstream, wherein the intra prediction mode for the current block is determined based on whether the DIMD mode is applied to the current block.
[0011] According to another embodiment of the present disclosure, a computer-readable digital recording medium is provided herein, which has encoded information or encoded video / image information stored therein, which allows a decoding device to perform the video / image decoding method disclosed in at least one embodiment of the present disclosure.
[0012] According to yet another embodiment of the present disclosure, a method and a device for transmitting a bit stream are provided herein, and the bit stream is generated according to the video / image encoding method disclosed in at least one embodiment of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] Figure 1 An example of a video / image coding device to which embodiments of the present disclosure are applicable is schematically illustrated.
[0014] Figure 2 is a schematic diagram illustrating a configuration of a video / image encoding device to which an embodiment of the present disclosure can be applied.
[0015] Figure 3 is a schematic diagram illustrating a configuration of a video / image decoding device to which an embodiment of the present disclosure can be applied.
[0016] Figure 4 Schematically shows the hierarchical structure for coding videos / images.
[0017] Figure 5 An example of an intra-prediction-based image encoding method to which the embodiments of the present disclosure may be applied is schematically illustrated.
[0018] Figure 6 An intra predictor in an encoding device is schematically illustrated.
[0019] Figure 7 An example of an intra-prediction-based image decoding method to which the embodiments of the present disclosure may be applied is schematically illustrated.
[0020] Figure 8 An intra predictor in a decoding device is schematically illustrated.
[0021] Fig. 9 An exemplary intra prediction process to which the embodiments of the present disclosure may be applied is exemplarily illustrated.
[0022] Fig.10 An example of an intra prediction mode to which an embodiment of the present disclosure can be applied is illustrated.
[0023] Fig.11 The template used for deriving the intra prediction mode for the TIMD mode is exemplarily illustrated.
[0024] Fig.12 A Histogram of Gradients (HoG) configuration method used to derive an intra prediction mode for a DIMD mode is exemplarily illustrated.
[0025] Fig.13 A method for configuring a prediction block by applying a DIMD mode is exemplarily illustrated.
[0026] Fig.14 and Fig.15 An example of a video / image encoding method and related components according to an embodiment of the present disclosure is schematically illustrated.
[0027] Fig.16 and Fig.17 An example of a video / image decoding method and related components according to an embodiment of the present disclosure is schematically illustrated.
[0028] Fig.18 An example of a content streaming system to which the embodiments disclosed in the present disclosure can be applied is illustrated. DETAILED DESCRIPTION
[0029] The present disclosure can be modified in various forms, and its specific embodiments will be described and illustrated in the accompanying drawings. However, the embodiments are not intended to limit the present disclosure. The terms used in the following description are only used to describe specific embodiments and are not intended to limit the present disclosure. As long as it is clearly understood in different ways, the expression of the singular includes the expression of the plural. Terms such as "including" and "having" are intended to indicate the presence of features, quantities, steps, operations, elements, components, or combinations thereof used in the following description, so it should be understood that the possibility of the presence or addition of one or more different features, quantities, steps, operations, elements, components, or combinations thereof is not excluded.
[0030] In addition, the elements in the drawings described in the present disclosure are drawn independently for the convenience of explaining different specific functions, and do not mean that these elements are specifically implemented by independent hardware or independent software. For example, two or more elements in the elements can be combined to form a single element, or an element can be divided into multiple elements. The implementation of combining and / or dividing elements belongs to the present disclosure without departing from the concept of the present disclosure.
[0031] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. In addition, throughout the accompanying drawings, like reference numerals are used to indicate like elements, and the same description of the like elements will be omitted.
[0032] The present disclosure relates to video / image coding. For example, the methods / implementations disclosed in the present disclosure may be related to the Versatile Video Coding (VVC) standard (ITU-T Rec. H.266), the next generation video / image coding standard after VVC, or other video coding related standards (e.g., the High Efficiency Video Coding (HEVC) standard (ITU-T Rec. H.265), the Basic Video Coding (EVC) standard, the AVS2 standard, etc.).
[0033] The present disclosure relates to video / image coding. For example, the methods / implementations disclosed in the present disclosure may be applied to methods disclosed in the Versatile Video Coding (VVC) standard, the Essential Video Coding (EVC) standard, the AOMedia Video 1 (AV1) standard, the 2nd generation Audio Video Coding standard (AVS2), or the next generation video / image coding standard (e.g., H.267, or H.268, etc.).
[0034] The present disclosure presents various embodiments of video / image coding, and unless otherwise mentioned, the embodiments may be performed in combination with each other.
[0035] In the present disclosure, video may refer to a series of images over time. Generally, a picture refers to a unit representing an image in a specific time region, and a sub-picture / slice / tile is a unit that constitutes a part of a picture in coding. A sub-picture / slice / tile may include one or more coding tree units (CTUs). A picture may be composed of one or more sub-pictures / slices / tiles. A picture may be composed of one or more tile groups. A tile group may include one or more tiles. A tile may represent a rectangular area of a CTU row within a tile in a picture. A tile may be partitioned into a plurality of tiles, each tile consisting of one or more CTU rows within a tile. Tiles that are not partitioned into a plurality of tiles may also be referred to as tiles. Tile scanning is a specific sequential ordering of CTUs that partition a picture, wherein CTUs are continuously ordered in tiles by CTU raster scanning, tiles within tiles are continuously ordered by raster scanning of tiles of tiles, and tiles in a picture are continuously ordered by raster scanning of tiles of tiles. In addition, a sub-picture may represent a rectangular area of one or more slices within a picture. That is, a sub-picture contains one or more slices that cover a rectangular area of the picture together. A patch is a rectangular area of a CTU within a specific patch column and a specific patch row in a picture. A patch column is a rectangular area of a CTU whose height is equal to the height of the picture and whose width is specified by a syntax element in a picture parameter set. A patch row is a rectangular area of a CTU whose height is specified by a syntax element in a picture parameter set and whose width is equal to the width of the picture. Patch scanning is a specific sequential ordering of CTUs that partition a picture, wherein CTUs may be continuously ordered in a patch by a CTU raster scan, and patches in a picture may be continuously ordered by a raster scan of patches of a picture. A slice includes an integer number of tiles of a picture that may be exclusively contained in a single NAL unit. A slice may consist of a plurality of complete tiles or only of a continuous sequence of complete tiles of a patch. In the present disclosure, patch groups and slices may be used interchangeably. For example, in this disclosure, a tile group / tile group header may be referred to as a slice / slice header.
[0036] A pixel or a picture element (pel) may represent the smallest unit constituting a picture (or image). In addition, "sample" may be used as a term corresponding to a pixel. A sample may generally represent a pixel or a pixel value, and may represent only a pixel / pixel value of a luminance component or only a pixel / pixel value of a chrominance component.
[0037] A unit may represent a basic unit of image processing. A unit may include at least one of a specific area of a picture and information related to the area. A unit may include a luminance block and two chrominance (e.g., cb, cr) blocks. In some cases, a unit may be used interchangeably with terms such as a block or an area. In general, an M×N block may include a set (or array) of samples (or sample arrays) or transform coefficients of M columns and N rows.
[0038] In this specification, "A or B" may mean "only A", "only B", or "A and B". In other words, in this specification, "A or B" may be interpreted as "A and / or B". For example, "A, B or C" herein means "only A", "only B", "only C", or "any one and any combination of A, B, and C".
[0039] A slash ( / ) or a comma used in this specification may mean "and / or". For example, "A / B" may mean "A and / or B". Therefore, "A / B" may mean "only A", "only B", or "A and B". For example, "A, B, C" may mean "A, B, or C".
[0040] In the present specification, "at least one of A and B" may mean "only A", "only B", or "both A and B". In addition, in the present specification, the expression "at least one of A or B" or "at least one of A and / or B" may be interpreted as being the same as "at least one of A and B".
[0041] In addition, in the present specification, "at least one of A, B, and C" means "only A", "only B", "only C", or "any combination of A, B, and C". In addition, "at least one of A, B, or C" or "at least one of A, B and / or C" may mean "at least one of A, B, and C".
[0042] In addition, brackets used in this specification may refer to "for example". Specifically, when "prediction (intra-frame prediction)" is indicated, "intra-frame prediction" may be proposed as an example of "prediction". In other words, "prediction" in this specification is not limited to "intra-frame prediction", and "intra-frame prediction" may be proposed as an example of "prediction". In addition, even when "prediction (ie, intra-frame prediction)" is indicated, "intra-frame prediction" may be proposed as an example of "prediction".
[0043] In this specification, technical features described separately in one figure may be implemented separately or may be implemented simultaneously.
[0044] The following figures are created to explain specific examples of this specification. Since the names of specific devices or the names of specific signals / messages / fields described in the figures are presented by way of example, the technical features of this specification are not limited to the specific names used in the following figures.
[0045] Figure 1 An example of a video / image coding device to which embodiments of the present disclosure are applicable is schematically illustrated.
[0046] Reference Figure 1 The video / image coding system may include a first device (source device) and a second device (receiving device). The source device may transmit coded video / image information or data to the receiving device in the form of a file or stream via a digital storage medium or a network.
[0047] The source device may include a video source, an encoding device, and a transmitter. The receiving device may include a receiver, a decoding device, and a renderer. The encoding device may be referred to as a video / image encoding device, and the decoding device may be referred to as a video / image decoding device. The transmitter may be included in the encoding device. The receiver may be included in the decoding device. The renderer may include a display, and the display may be configured as a separate device or an external component.
[0048] The video source may acquire the video / image by capturing, synthesizing or generating the video / image process. The video source may include a video / image capturing device and / or a video / image generating device. The video / image capturing device may include, for example, one or more cameras, a video / image archive including previously captured videos / images, etc. The video / image generating device may include, for example, a computer, a tablet computer, and a smart phone, and may (electronically) generate the video / image. For example, a virtual video / image may be generated by a computer, etc. In this case, the video / image capturing process may be replaced by a process that generates the relevant data.
[0049] The encoding device can encode the input video / image. The encoding device can perform a series of processes such as prediction, transformation, and quantization to achieve compression and coding efficiency. The encoded data (encoded video / image information) can be output in the form of a bitstream.
[0050] The transmitter may transmit the encoded video / image information or data output in the form of a bit stream to the receiver of the receiving device in the form of a file or stream through a digital storage medium or a network. The digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. The transmitter may include an element for generating a media file in a predetermined file format, and may include an element for transmitting through a broadcast / communication network. The receiver may receive / extract a bit stream and transmit the received bit stream to a decoding device.
[0051] The decoding device may decode a video / image by performing a series of processes such as dequantization, inverse transformation, and prediction corresponding to the operations of the encoding device.
[0052] The renderer may render the decoded video / image. The rendered video / image may be displayed by a display.
[0053] Figure 2 is a schematic diagram illustrating a configuration of a video / image encoding device to which the present document can be applied. Hereinafter, a video encoding device may include an image encoding device.
[0054] Reference Figure 2 , the encoding device 200 includes an image segmenter 210, a predictor 220, a residual processor 230 and an entropy encoder 240, an adder 250, a filter 260 and a memory 270. The predictor 220 may include an inter-frame predictor 221 and an intra-frame predictor 222. The residual processor 230 may include a transformer 232, a quantizer 233, a dequantizer 234 and an inverse transformer 235. The residual processor 230 may also include a subtractor 231. The adder 250 may be called a reconstructor or a reconstructed block generator. According to an embodiment, the image segmenter 210, the predictor 220, the residual processor 230, the entropy encoder 240, the adder 250 and the filter 260 may be composed of at least one hardware component (e.g., an encoder chipset or processor). In addition, the memory 270 may include a decoded picture buffer (DPB) or may be composed of a digital storage medium. The hardware component may also include the memory 270 as an internal / external component.
[0055] The image divider 210 may divide the input image (or picture or frame) input to the encoding device 200 into one or more processors. For example, the processor may be referred to as a coding unit (CU). In this case, the coding unit may be recursively divided from a coding tree unit (CTU) or a maximum coding unit (LCU) according to a quadtree binary tree ternary tree (QTBTTT) structure. For example, a coding unit may be divided into a plurality of coding units with a deeper depth based on a quadtree structure, a binary tree structure, and / or a ternary structure. In this case, for example, a quadtree structure may be applied first, and then a binary tree structure and / or a ternary structure may be applied. Alternatively, a binary tree structure may be applied first. The coding process according to the present disclosure may be performed based on the final coding unit that is no longer divided. In this case, the maximum coding unit may be used as the final coding unit based on coding efficiency according to image characteristics, or if necessary, the coding unit may be recursively divided into coding units with a deeper depth and a coding unit with an optimal size may be used as the final coding unit. Here, the coding process may include the processing of prediction, transformation, and reconstruction, which will be described later. As another example, the processor may further include a prediction unit (PU) or a transform unit (TU). In this case, the prediction unit and the transform unit may be separated or partitioned from the above-mentioned final coding unit. The prediction unit may be a unit of sample prediction, and the transform unit may be a unit for deriving a transform coefficient and / or a unit for deriving a residual signal from the transform coefficient.
[0056] In some cases, a unit may be used interchangeably with terms such as a block or region. In general, an M×N block may represent a set of samples or transform coefficients consisting of M columns and N rows. A sample may generally represent a pixel or a pixel value, may represent a pixel / pixel value of a luminance component only, or may represent a pixel / pixel value of a chrominance component only. A sample may be used as a term corresponding to a picture (or image) of a pixel or a picture element.
[0057] In the subtractor 231, the prediction signal (prediction block, prediction sample or prediction sample array) output from the predictor 220 is subtracted from the input image signal (original block, original sample or original sample array) to generate a residual signal (residual block, residual sample or residual sample array) and the generated residual signal is sent to the transformer 232. The predictor 220 can perform prediction on the block to be processed (hereinafter referred to as the current block) and generate a prediction block including the prediction sample of the current block. The predictor 220 can determine whether to apply intra-frame prediction or inter-frame prediction in units of the current block or CU. As described later in the description of each prediction mode, the predictor can generate various information related to the prediction (such as prediction mode information) and send the generated information to the entropy encoder 240. The information about the prediction can be encoded in the entropy encoder 240 and output in the form of a bit stream.
[0058] The intra-frame predictor 222 can predict the current block by referring to the samples in the current picture. Depending on the prediction mode, the referenced samples can be located near the current block, or can be far away from the current block. In intra-frame prediction, the prediction mode may include multiple non-directional modes and multiple directional modes. The non-directional mode may include, for example, a DC mode and a plane mode. Depending on the level of detail of the prediction direction, the directional mode may include, for example, 33 directional prediction modes or 65 directional prediction modes. However, this is only an example, and more or fewer directional prediction modes may be used depending on the setting. The intra-frame predictor 222 may determine the prediction mode applied to the current block by using the prediction mode applied to the adjacent blocks.
[0059] The inter-frame predictor 221 may derive a prediction block of the current block based on a reference block (reference sample array) specified by a motion vector on a reference picture. Here, in order to reduce the amount of motion information sent in the inter-frame prediction mode, the motion information may be predicted in units of blocks, sub-blocks, or samples based on the correlation of the motion information between the adjacent blocks and the current block. The motion information may include a motion vector and a reference picture index. The motion information may also include inter-frame prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter-frame prediction, the adjacent blocks may include spatial adjacent blocks present in the current picture and temporal adjacent blocks present in the reference picture. The reference picture including the reference block and the reference picture including the temporal adjacent block may be the same or different. The temporal adjacent block may be referred to as a collocated reference block, a co-located CU (colCU), etc., and the reference picture including the temporal adjacent block may be referred to as a collocated picture (colPic). For example, the inter-frame predictor 221 may configure a motion information candidate list based on the adjacent blocks, and generate information indicating which candidate is used to derive the motion vector and / or reference picture index of the current block. Inter-frame prediction may be performed based on various prediction modes. For example, in the case of skip mode and merge mode, the inter-frame predictor 221 may use the motion information of the neighboring block as the motion information of the current block. In skip mode, unlike merge mode, a residual signal may not be transmitted. In the case of motion vector prediction (MVP) mode, the motion vector of the neighboring block may be used as a motion vector predictor, and the motion vector of the current block may be indicated by signaling a motion vector difference.
[0060] The predictor 220 can generate a prediction signal based on various prediction methods described below. For example, the predictor can not only apply intra prediction or inter prediction to predict a block, but also apply both intra prediction and inter prediction at the same time. This can be called inter-frame intra-frame combined prediction (CIIP). In addition, the predictor can perform an intra-block copy (IBC) prediction mode. For example, IBC can be used for content image / video coding of games, etc., such as screen content coding (SCC). IBC basically performs prediction in the current picture, but IBC can be performed similarly to inter prediction because the reference block is derived in the current picture. That is, IBC can use at least one of the inter-frame prediction techniques described in the present disclosure.
[0061] The prediction signal generated by the inter-frame predictor 221 and / or the intra-frame predictor 222 can be used to generate a reconstruction signal or to generate a residual signal. The transformer 232 can generate a transform coefficient by applying a transform technique to the residual signal. For example, the transform technique may include a discrete cosine transform (DCT), a discrete sine transform (DST), a graph-based transform (GBT), or a conditional nonlinear transform (CNT), etc. Here, GBT represents a transform obtained from a graph when the relationship information between pixels is represented by a graph. CNT refers to a transform generated based on a prediction signal generated using all previously reconstructed pixels. In addition, the transform process can be applied to square pixel blocks of the same size, or can be applied to non-square pixel blocks of different sizes.
[0062] The quantizer 233 may quantize the transform coefficients and send them to the entropy encoder 240, and the entropy encoder 240 may encode the quantized signal (information about the quantized transform coefficients) and output a bitstream. Information about the quantized transform coefficients may be referred to as residual information. The quantizer 233 may rearrange the block type quantized transform coefficients into a one-dimensional vector form based on the coefficient scanning order, and generate information about the quantized transform coefficients based on the quantized transform coefficients in the one-dimensional vector form. Information about the transform coefficients may be generated. The entropy encoder 240 may perform various encoding methods, such as, for example, exponential Golomb, context adaptive variable length coding (CAVLC), context adaptive binary arithmetic coding (CABAC), etc. The entropy encoder 240 may encode information required for video / image reconstruction (e.g., values of syntax elements, etc.) other than the quantized transform coefficients together or separately. Encoding information (e.g., encoded video / image information) may be transmitted or stored in units of NAL (Network Abstraction Layer) units in the form of a bitstream. The video / image information may also include information about various parameter sets such as an adaptive parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). In addition, the video / image information may also include general constraint information. In the present disclosure, the information and / or syntax elements described later may be encoded and included in the bitstream by the above-mentioned encoding process. The bitstream may be sent through a network, or may be stored in a digital storage medium. The network may include a broadcast network and / or a communication network, and the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. A transmitter (not shown) that transmits a signal output from the entropy encoder 240 and / or a storage unit (not shown) that stores the signal may be included as an internal / external element of the encoding device 200, alternatively, the transmitter may be included in the entropy encoder 240.
[0063] The quantized transform coefficients output from the quantizer 233 can be used to generate a prediction signal. For example, a residual signal (residual block or residual sample) can be reconstructed by applying dequantization and inverse transformation to the quantized transform coefficients using a dequantizer 234 and an inverse transformer 235. The adder 250 adds the reconstructed residual signal to the prediction signal output from the predictor 220 to generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array). If the block to be processed has no residual (such as when a skip mode is applied), the prediction block can be used as a reconstructed block. The generated reconstructed signal can be used for intra-frame prediction of the next block to be processed in the current picture, and can be used for inter-frame prediction of the next picture by filtering as described below.
[0064] Furthermore, during picture encoding and / or reconstruction, luma mapping and chroma scaling (LMCS) may be applied.
[0065] The filter 260 can improve the subjective / objective image quality by applying filtering to the reconstructed signal. For example, the filter 260 can generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and store the modified reconstructed picture in the memory 270 (specifically, the DPB of the memory 270). Various filtering methods may include, for example, deblocking filtering, sample adaptive offset (SAO), adaptive loop filter, bilateral filter, etc. The filter 260 can generate various information related to filtering and send the generated information to the entropy encoder 290, as described later in the description of various filtering methods. The information related to filtering can be encoded by the entropy encoder 290 and output in the form of a bit stream.
[0066] The modified reconstructed picture sent to the memory 270 may be used as a reference picture in the inter predictor 221. When inter prediction is applied by the encoding apparatus, prediction mismatch between the encoding apparatus 200 and the decoding apparatus may be avoided, and encoding efficiency may be improved.
[0067] The DPB of the memory 270 may store a modified reconstructed picture used as a reference picture in the inter-frame predictor 221. The memory 270 may store motion information of a block from which motion information in the current picture is derived (or encoded) and / or motion information of a reconstructed block in the picture. The stored motion information may be sent to the inter-frame predictor 221 and used as motion information of a spatial neighboring block or motion information of a temporal neighboring block. The memory 270 may store reconstructed samples of a reconstructed block in the current picture and may transmit the reconstructed samples to the intra-frame predictor 222.
[0068] Figure 3 is a schematic diagram illustrating a configuration of a video / image decoding device to which an embodiment of this document can be applied.
[0069] Reference Figure 3 , the decoding device 300 may include an entropy decoder 310, a residual processor 320, a predictor 330, an adder 340, a filter 350, and a memory 360. The predictor 330 may include an inter-frame predictor 332 and an intra-frame predictor 331. The residual processor 320 may include a dequantizer 321 and an inverse transformer 322. According to an embodiment, the entropy decoder 310, the residual processor 320, the predictor 330, the adder 340, and the filter 350 may be composed of hardware components (e.g., a decoder chipset or a processor). In addition, the memory 360 may include a decoded picture buffer (DPB), or may be composed of a digital storage medium. The hardware components may also include the memory 360 as an internal / external component.
[0070] When a bit stream including video / image information is input, the decoding device 300 can be used with Figure 2 The image is reconstructed correspondingly to the processing of the video / image information in the encoding device. For example, the decoding device 300 can derive the unit / block based on the block segmentation related information obtained from the bit stream. The decoding device 300 can perform decoding using a processor applied in the encoding device. Therefore, the decoding processor can be, for example, a coding unit, and the coding unit can be divided from the coding tree unit or the maximum coding unit according to a quadtree structure, a binary tree structure and / or a ternary tree structure. One or more transform units can be derived from the coding unit. The reconstructed image signal decoded and output by the decoding device 300 can be reproduced by a reproduction device.
[0071] The decoding device 300 may receive the bit stream from Figure 2The received signal can be decoded by the entropy decoder 310. For example, the entropy decoder 310 can parse the bitstream to derive information (e.g., video / image information) required for image reconstruction (or picture reconstruction). The video / image information may also include information about various parameter sets such as an adaptive parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). In addition, the video / image information may also include general constraint information. The decoding device may also decode the picture based on the information about the parameter set and / or the general constraint information. The signaled / received information and / or syntax elements described later in this disclosure may be decoded by a decoding process and obtained from the bitstream. For example, the entropy decoder 310 decodes the information in the bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, and outputs the syntax elements required for image reconstruction and the quantized values of the transform coefficients of the residual. More specifically, the CABAC entropy decoding method may receive a bin corresponding to each syntax element in the bitstream, determine a context model using information of a decoding target syntax element, decoding information of a decoding target block, or information of a symbol / bin decoded in a previous stage, and arithmetically decode the bin by predicting the probability of occurrence of the bin according to the determined context model, and generate a symbol corresponding to the value of each syntax element. In this case, after determining the context model, the CABAC entropy decoding method may update the context model by using the information of the decoded symbol / bin for the context model of the next symbol / bin. Information related to prediction among the information decoded by the entropy decoder 310 may be provided to the predictor 330, and information about the residual on which entropy decoding is performed in the entropy decoder 310 (that is, quantized transform coefficients and related parameter information) may be input to the dequantizer 321. In addition, information about filtering among the information decoded by the entropy decoder 310 may be provided to the filter 350. In addition, a receiver (not shown) for receiving a signal output from the encoding device may be further configured as an internal / external element of the decoding device 300, or the receiver may be a component of the entropy decoder 310. In addition, the decoding device according to the present disclosure may be referred to as a video / image / picture decoding device, and the decoding device may be classified into an information decoder (video / image / picture information decoder) and a sample decoder (video / image / picture sample decoder). The information decoder may include an entropy decoder 310, and the sample decoder may include at least one of a dequantizer 321, an inverse transformer 322, a predictor 330, an adder 340, a filter 350, and a memory 360.
[0072] The dequantizer 321 may dequantize the quantized transform coefficients and output the transform coefficients. The dequantizer 321 may rearrange the quantized transform coefficients in the form of two-dimensional blocks. In this case, the rearrangement may be performed based on the coefficient scanning order performed in the encoding device. The dequantizer 321 may dequantize the quantized transform coefficients by using a quantization parameter (e.g., quantization step size information) and obtain the transform coefficients.
[0073] The inverse transformer 322 inversely transforms the transform coefficients to obtain a residual signal (residual block, residual sample array).
[0074] The predictor may perform prediction on the current block and generate a prediction block including prediction samples of the current block. The predictor may determine whether to apply intra prediction or inter prediction to the current block based on information on prediction output from the entropy decoder 310, and may determine a specific intra / inter prediction mode.
[0075] The predictor can generate a prediction signal based on the various prediction methods described below. For example, the predictor can not only apply intra prediction or inter prediction to predict a block, but also apply intra prediction and inter prediction at the same time. This can be called inter-frame intra-frame combined prediction (CIIP). In addition, the predictor can perform intra-frame block copying (IBC) to predict the block. IBC can be used for content image / video coding of games, etc., for example, screen content coding (SCC). IBC basically performs prediction in the current picture, but IBC can be performed similar to inter prediction because the reference block is derived in the current picture. That is, IBC can use at least one of the inter-frame prediction techniques described in the present disclosure.
[0076] The intra-frame predictor 331 can predict the current block by referring to samples in the current picture. Depending on the prediction mode, the referenced sample can be located near the current block, or can be far away from the current block. In intra-frame prediction, the prediction mode can include multiple non-directional modes and multiple directional modes. The intra-frame predictor 331 can determine the prediction mode applied to the current block by using the prediction mode applied to the neighboring block.
[0077] The inter-frame predictor 332 may derive a prediction block of the current block based on a reference block (reference sample array) specified by a motion vector on a reference picture. In this case, in order to reduce the amount of motion information sent in the inter-frame prediction mode, the motion information may be predicted in units of blocks, sub-blocks, or samples based on the correlation of the motion information between the adjacent blocks and the current block. The motion information may include a motion vector and a reference picture index. The motion information may also include inter-frame prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter-frame prediction, the adjacent blocks may include spatial adjacent blocks present in the current picture and temporal adjacent blocks present in the reference picture. For example, the inter-frame predictor 332 may configure a motion information candidate list based on adjacent blocks, and derive a motion vector and / or a reference picture index of the current block based on the received candidate selection information. Inter-frame prediction may be performed based on various prediction modes, and information about the prediction may include information indicating a mode of inter-frame prediction for the current block.
[0078] The adder 340 can generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the obtained residual signal to the prediction signal (prediction block, prediction sample array) output from the predictor (including the inter-frame predictor 332 and / or the intra-frame predictor 331). If the block to be processed has no residual (for example, when the skip mode is applied), the prediction block can be used as the reconstructed block.
[0079] The adder 340 may be referred to as a reconstructor or a reconstructed block generator. The generated reconstructed signal may be used for intra-frame prediction of the next block to be processed in the current picture, may be output through filtering as described below, or may be used for inter-frame prediction of the next picture.
[0080] In addition, luma mapping and chroma scaling (LMCS) can be applied during picture decoding.
[0081] The filter 350 can improve the subjective / objective image quality by applying filtering to the reconstructed signal. For example, the filter 350 can generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and store the modified reconstructed picture in the memory 360 (specifically, the DPB of the memory 360). The various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, etc.
[0082] The (modified) reconstructed picture stored in the DPB of the memory 360 can be used as a reference picture in the inter-frame predictor 332. The memory 360 can store the motion information of the block from which the motion information in the current picture is derived (or decoded) and / or the motion information of the reconstructed block in the picture. The stored motion information can be sent to the inter-frame predictor 332 to be used as the motion information of the spatial neighboring block or the motion information of the temporal neighboring block. The memory 360 can store the reconstructed samples of the reconstructed block in the current picture, and can transmit the reconstructed samples to the intra-frame predictor 331.
[0083] In the present specification, the implementations described in the predictor 330, the dequantizer 321, the inverse transformer 322, and the filter 350 of the decoding device 300 may be respectively applied to or correspond to the predictor 220, the dequantizer 234, the inverse transformer 235, and the filter 260 of the encoding device 200.
[0084] As described above, when performing video coding, prediction is performed to increase compression efficiency. Thus, a prediction block including prediction samples of the current block (block to be coded) can be generated. Here, the prediction block includes prediction samples in the spatial domain (or pixel domain). The prediction block is derived from the encoding device and the decoding device in the same manner, and the encoding device can increase the image coding efficiency by signaling the information (residual information) between the original block and the prediction block rather than the original sample value of the original block itself to the decoding device. The decoding device can derive a residual block containing residual samples based on the above-mentioned residual information, combine the above-mentioned residual block with the above-mentioned prediction block to create a recovery block containing recovery samples, and create a recovery picture containing the recovery block.
[0085] Residual information can be generated by transform and quantization processing. For example, the encoding device can derive a residual block between the original block and the prediction block, derive a transform coefficient by performing a transform process on the residual samples (residual sample array) included in the residual block, derive a quantized transform coefficient by performing a quantization process on the transform coefficient, and signal the relevant residual information (through a bitstream) to the decoding device. Here, the residual information may include information such as value information, position information, transform technology, transform kernel, quantization parameters of quantized transform coefficients, etc. The decoding device can perform dequantization / inverse transform processing based on the residual information and derive residual samples (or residual blocks). The decoding device can generate a reconstructed picture based on the prediction block and the residual block. The encoding device can also derive a residual block by dequantizing / inverse transforming the quantized transform coefficients for inter-frame prediction reference of the picture, and generate a reconstructed picture based on this.
[0086] In the present disclosure, the quantized transform coefficient and the transform coefficient may be referred to as a transform coefficient and a scaled transform coefficient, respectively. In this case, the residual information may include information about the transform coefficient, and the information about the transform coefficient may be signaled by the residual coding syntax. The transform coefficient may be derived based on the residual information (or information about the transform coefficient), and the scaled transform coefficient may be derived by inversely transforming (scaling) the transform coefficient. The residual sample may be derived based on inversely transforming (transforming) the scaled transform coefficient. This may also be applied / expressed in other parts of the present disclosure.
[0087] In this document, quantized transform coefficients and transform coefficients may be referred to as transform coefficients and scaled transform coefficients, respectively. In this case, the residual information may include information about the transform coefficients, and the information about the transform coefficients may be signaled by residual coding syntax. The transform coefficients may be derived based on the residual information (or information about the transform coefficients), and the scaled transform coefficients may be derived by inverse transform (scaling) of the transform coefficients. The residual samples may be derived based on inverse transform (transform) of the scaled transform coefficients. This may also be applied / expressed in other parts of this document.
[0088] The predictor of the encoding device / decoding device can derive the prediction sample by performing inter-frame prediction block by block. Inter-frame prediction can be a prediction derived in a manner that depends on the data elements (e.g., sample values or motion information) of a picture other than the current picture. When inter-frame prediction is applied to the current block, the prediction block (prediction sample array) of the current block can be derived based on the reference block (reference sample array) specified by the motion vector in the reference picture indicated by the reference picture index. In this case, in order to reduce the amount of motion information sent in the inter-frame prediction mode, the motion information of the current block can be predicted in units of blocks, sub-blocks, or samples based on the correlation of the motion information between the neighboring blocks and the current block. The motion information may include a motion vector and a reference picture index. The motion information may also include inter-frame prediction type (L0 prediction, L1 prediction, Bi prediction, etc.) information. When inter-frame prediction is applied, the neighboring blocks may include spatial neighboring blocks present in the current picture and temporal neighboring blocks present in the reference picture. The reference picture including the reference block and the reference picture including the temporal neighboring block may be the same or different. Temporally neighboring blocks may be referred to as collocated reference blocks, collocated CUs (colCUs), etc., and reference pictures including temporally neighboring blocks may be referred to as collocated pictures (colPic). For example, a motion information candidate list may be constructed based on neighboring blocks of the current block, and a flag or index information indicating which candidate is selected (used) to derive a motion vector and / or a reference picture index of the current block may be signaled. Inter-frame prediction may be performed based on various prediction modes. For example, in the case of skip mode and merge mode, the motion information of the current block may be the same as the motion information of the selected neighboring block. In the case of skip mode, unlike merge mode, a residual signal may not be sent. In the case of motion vector prediction (MVP) mode, the motion vector of the selected neighboring block is used as a motion vector predictor, and the motion vector difference may be signaled. In this case, the motion vector of the current block may be derived using the sum of the motion vector predictor and the motion vector difference.
[0089] According to the inter-frame prediction type (L0 prediction, L1 prediction, Bi prediction, etc.), the motion information may include L0 motion information and / or L1 motion information. The motion vector in the L0 direction may be referred to as the L0 motion vector or MVL0, and the motion vector in the L1 direction may be referred to as the L1 motion vector or MVL1. Prediction based on the L0 motion vector may be referred to as the L0 prediction, prediction based on the L1 motion vector may be referred to as the L1 prediction, and prediction based on both the L0 motion vector and the L1 motion vector may be referred to as the Bi prediction. Here, the L0 motion vector may indicate a motion vector related to the reference picture list L0 (L0), and the L1 motion vector may indicate a motion vector related to the reference picture list L1 (L1). The reference picture list L0 may include a picture before the current picture in the output order as a reference picture, and the reference picture list L1 may include a picture after the current picture in the output order. The previous picture may be referred to as a forward (reference) picture, and the subsequent picture may be referred to as a backward (reference) picture. The reference picture list L0 may also include a picture after the current picture in the output order as a reference picture. In this case, a previous picture in the reference picture list L0 may be indexed first, and a subsequent picture may be indexed next. The reference picture list L1 may also include a picture preceding the current picture in the output order as a reference picture. In this case, a subsequent picture in the reference picture list 1 may be indexed first, and a previous picture may be indexed next. Here, the output order may correspond to a picture order count (POC) order.
[0090] Figure 4 The layer structure for coding video / image is exemplarily illustrated.
[0091] Reference Figure 4 , the compiled video / image is divided into a video coding layer (VCL) that performs decoding processing of the video / image and handles the decoding processing, a lower system that sends and stores the compiled information, and a network abstraction layer (NAL) that exists between the VCL and the lower system and is used to perform a network adaptation function.
[0092] In the VCL, VCL data including compressed image data (slice data), or a parameter set including a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS), or a supplemental enhancement information (SEI) message additionally required in an image decoding process may be generated.
[0093] In NAL, header information (NAL unit data) is added to the raw byte sequence payload (RSRP) generated in the VCL to generate a NAL unit. Here, RBSP refers to slice data, parameter sets, SEI messages, etc. generated in the VCL. The NAL unit header may include NAL unit type information specified according to the RSRP data included in the corresponding NAL unit.
[0094] As shown in the figure above, NAL units can be classified into VCL NAL units and non-VCL NAL units according to the RSRP generated in the VCL. A VCL NAL unit may mean a NAL unit including information about the information (slice data), and a non-VCL NAL unit may mean a NAL unit including information required to decode an image (parameter set or SEI message).
[0095] The VCL NA unit and the non-VCL NAL unit can be sent over the network while adding header information according to the data standard of the subsystem. For example, the NAL unit can be converted into a data format of a predetermined standard such as the H.266 / VVC file format, a real-time transport protocol (RTP), a transport stream (TS), etc., and transmitted over various networks.
[0096] Furthermore, as described above, regarding the NAL unit, the NAL unit type may be specified according to the RBSP data structure included in the corresponding NAL unit, and information on the NAL unit type may be stored in the NAL unit header and signaled.
[0097] For example, NAL units can be classified into VCL NAL unit types and non-VCL NAL unit types according to whether the NAL unit includes information about an image (slice data). In addition, VCL NAL unit types can be classified according to the nature and type of the picture included in the VCL NAL unit, and non-VCL NAL units can be classified according to the type of parameter set.
[0098] The following are examples of NAL unit types specified according to the type of parameter sets included in a non-VCL NAL unit type.
[0099] - Adaptation Parameter Set (APS) NAL unit: includes the NAL unit type of the APS
[0100] - Video Parameter Set (VPS) NAL unit: includes the NAL unit type of the VPS
[0101] - Sequence Parameter Set (SPS) NAL unit: NAL unit type that includes SPS
[0102] - Picture parameter set (PPS) NAL unit: NAL unit type including PPS
[0103] - Decoding Capability Information (DCI) NAL unit: NAL unit type that includes DCI
[0104] - Picture header (PH) NAL unit: includes the NAL unit type of the PH
[0105] The above-mentioned NAL unit type has syntax information of the NAL unit type, and the syntax information can be stored in the NAL unit header and notified by a signal. For example, the syntax information can be nal_unit_type, and the NAL unit type can be specified by a nal_unit_type value.
[0106] In addition, as described above, a picture may include multiple slices, and a slice may include a slice header and slice data. In this case, a picture header may be further added to multiple slices (slice headers and slice data sets) in one picture. The picture header (picture header syntax) may include information / parameters commonly applicable to the picture. In this document, a slice may be mixed or replaced with a tile group. In addition, in this document, a slice header may be mixed or replaced with a type group header.
[0107] The slice header (slice header syntax, slice header information) may include information / parameters that are commonly applicable to the slices. APS (APS syntax) or PPS (PPS syntax) may include information / parameters that are commonly applicable to one or more slices or pictures. SPS (SPS syntax) may include information / parameters that are commonly applicable to one or more sequences. VPS (VPS syntax) may include information / parameters that are commonly applicable to multiple layers. DCI (DCI syntax) may include information / parameters that are commonly applicable to the entire video. DCI may include information / parameters related to decoding capabilities. In this document, the high-level syntax (HLS) may include at least one of the APS syntax, PPS syntax, SPS syntax, VPS syntax, DCI syntax, picture header syntax, or slice header syntax.
[0108] In this document, the image / video information encoded from the encoding device to the decoding device and notified by signal in the form of a bitstream includes not only information related to intra-picture partitions, intra-frame / inter-frame prediction information, residual information, in-loop filtering information, etc., but also includes information included in the slice header, information included in the picture header, information included in the APS, information included in the PPS, information included in the SPS, information included in the VPS, and / or information included in the DCI. In addition, the image / video information may also include NAL unit header information.
[0109] In addition, when performing intra prediction, the correlation between samples can be used, and the difference (ie, residual) between the original block and the predicted block can be obtained. The above-mentioned transformation and quantization can be applied to the residual, thereby removing spatial redundancy. Hereinafter, an encoding method and a decoding method using intra prediction will be described in detail.
[0110] Intra prediction refers to prediction of prediction samples of a current block based on reference samples outside the current block in a picture including the current block (hereinafter referred to as the current picture). Here, the reference samples outside the current block may refer to samples located around the current block. When intra prediction is applied to the current block, neighboring reference samples to be used for intra prediction of the current block may be derived.
[0111] For example, when the size (width×height) of the current block is nW×nH, the neighboring reference samples of the current block may include: a total of 2×nH samples including samples adjacent to the left boundary of the current block and samples adjacent to the lower left of the current block, a total of 2×nW samples including samples adjacent to the upper boundary of the current block and samples adjacent to the upper right, and 1 sample adjacent to the upper left of the current block. Alternatively, the neighboring reference samples of the current block may include upper neighboring samples in multiple columns and left neighboring samples in multiple rows. In addition, the neighboring reference samples of the current block may include a total of nH samples adjacent to the right boundary of the current block of size nW×nH, a total of nW samples adjacent to the lower boundary of the current block of size nW×nH, and 1 sample adjacent to the lower right of the current block of size nW×nH.
[0112] However, some neighboring reference samples of the current block may not have been decoded or may not be available. In this case, the decoding device can configure the neighboring reference samples to be used for prediction by replacing the unavailable samples with available samples. Alternatively, the neighboring reference samples to be used for prediction can be configured by interpolation of available samples.
[0113] When deriving neighboring reference samples, (i) the prediction sample may be derived based on an average or interpolation of neighboring reference samples of the current block, and (ii) the prediction sample may be derived based on reference samples existing in a specific (prediction) direction relative to the prediction sample among neighboring reference samples of the current block. Case (i) may be applied when the intra prediction mode is a non-directional mode or a non-angular mode, and case (ii) may be applied when the intra prediction mode is a directional mode or an angular mode.
[0114] In addition, the prediction sample can be generated by interpolating between the first neighboring sample located in the prediction direction of the intra prediction mode of the current block based on the prediction sample of the current block among the neighboring reference samples and the second neighboring sample located in the opposite direction of the prediction direction. The above situation can be called linear interpolation intra prediction (LIP). In addition, the chrominance prediction sample can be generated based on the luma sample using a linear model. This situation can be called LM mode.
[0115] In addition, the temporary prediction sample of the current block can be derived based on the filtered neighboring reference sample and at least one reference sample derived according to the intra prediction mode among the existing neighboring reference samples (i.e., the unfiltered neighboring reference sample), and the temporary prediction sample can be weighted and summed to derive the prediction sample of the current block. The above situation can be called position-dependent intra prediction (PDPC).
[0116] A reference sample line with the highest prediction accuracy among the neighboring multiple reference sample lines of the current block can be selected to derive a prediction sample using a reference sample located in a prediction direction on the corresponding line, and then the reference sample line used in this article can be indicated (notified with a signal) to a decoding device, thereby performing intra-frame prediction encoding. The above situation can be referred to as multi-reference line (MRL) intra-frame prediction or MRL-based intra-frame prediction.
[0117] In addition, intra prediction can be performed based on the same intra prediction mode by dividing the current block into vertical or horizontal sub-partitions, and adjacent reference samples can be derived and used in units of sub-partitions. That is, in this case, the intra prediction mode of the current block is equally applied to the sub-partitions, and in some cases the intra prediction performance can be improved by deriving and using adjacent reference samples in units of sub-partitions. This prediction method may be referred to as intra sub-partitioning (ISP) or ISP-based intra prediction.
[0118] The above-mentioned intra-frame prediction method can be separately referred to as an intra-frame prediction type from the intra-frame prediction mode. The intra-frame prediction type can be referred to as various terms such as intra-frame prediction technology or additional intra-frame prediction mode. For example, the intra-frame prediction type (or additional intra-frame prediction mode) may include at least one of the above-mentioned LIP, PDPC, MRL or ISP. General intra-frame prediction methods other than specific intra-frame prediction types such as LIP, PDPC, MRL or ISP may be referred to as normal intra-frame prediction types. Normal intra-frame prediction types may generally be applied when a specific intra-frame prediction type is not applied, and prediction may be performed based on the above-mentioned intra-frame prediction mode. In addition, post-filtering may be performed on the derived prediction samples as needed.
[0119] In addition, in addition to the above intra prediction types, matrix-based intra prediction (MIP) may be used as an intra prediction method. MIP may be referred to as affine linear weighted intra prediction (ALWIP) or matrix weighted intra prediction (MIP).
[0120] If MIP is applied to the current block, i) neighboring reference samples for which averaging processing has been performed are used, ii) matrix-vector multiplication processing is performed, and iii) horizontal / vertical interpolation processing may be further performed as needed to derive prediction samples of the current block. The intra prediction mode for MIP may be configured to be different from the intra prediction mode used in LIP, PDPC, MRL, ISP intra prediction, or normal intra prediction.
[0121] The intra-frame prediction mode of MIP may be referred to as "affine linear weighted intra-frame prediction mode" or matrix-based intra-frame prediction mode. For example, the matrix and offset used in the matrix-vector multiplication may be set differently depending on the intra-frame prediction mode of MIP. Here, the matrix may be referred to as an (affine) weight matrix, and the offset may be referred to as an (affine) offset vector or an (affine) bias vector. In this document, the intra-frame prediction mode of MIP may be referred to as MIP intra-frame prediction mode, linear weighted intra-frame prediction mode, matrix weighted intra-frame prediction mode, or matrix-based intra-frame prediction mode. The specific MIP method will be described later.
[0122] The following drawings are prepared to illustrate specific examples of this document. Since the names of specific devices or specific terms or names (eg, grammatical names) described in the drawings are provided as examples, the technical features of this document are not limited to the specific names used in the following drawings.
[0123] Figure 5 An example of an intra-frame prediction-based image encoding method to which the present disclosure may be applied is schematically illustrated. Figure 6 An intra predictor in an encoding device is schematically illustrated. Figure 6 The intra-frame predictor in the encoding device can be combined with the above Figure 2 The intra predictor 222 of the encoding device 200 is applied identically or correspondingly.
[0124] Reference Figure 5 and Figure 6 , S500 may be performed by the intra predictor 222 of the encoding device, and S510 may be performed by the residual processor 230 of the encoding device. Specifically, S510 may be performed by the subtractor 231 of the encoding device. In S520, the prediction information may be derived by the intra predictor 222 and encoded by the entropy encoder 240. In S520, the residual information may be derived by the residual processor 230 and encoded by the entropy encoder 240. The residual information is information about the residual sample. The residual information may include information about the quantized transform coefficient of the residual sample. As described above, the residual sample may be derived as a transform coefficient by the transformer of the encoding device, and the transform coefficient may be derived as a quantized transform coefficient by the quantizer. The information about the quantized transform coefficient may be encoded by the residual coding process in the entropy encoder 240.
[0125] The encoding device performs intra prediction on the current block (S500). The encoding device may derive an intra prediction mode / type of the current block, derive neighboring reference samples of the current block, and generate prediction samples within the current block based on the intra prediction mode / type and the neighboring reference samples. Here, the intra prediction mode / type determination, neighboring reference sample derivation, and prediction sample generation processes may be performed simultaneously, or one process may be performed before the other process.
[0126] For example, the intra-frame predictor 222 of the encoding device may include an intra-frame prediction mode / type determiner 222-1, a reference sample deriver 222-2, and a prediction sample deriver 222-3. The intra-frame prediction mode / type determiner 222-1 determines the intra-frame prediction mode / type of the current block, the reference sample deriver 222-2 derives the neighboring reference samples of the current block, and the prediction sample deriver 222-3 can derive the prediction sample of the current block. In addition, although not shown, when performing the prediction sample filtering process, the intra-frame predictor 222 may also include a prediction sample filter (not shown). The encoding device may determine the mode / type applied to the current block from among a plurality of intra-frame prediction modes / types. The encoding device may compare the RD costs of the intra-frame prediction modes / types and determine the optimal intra-frame prediction mode / type of the current block.
[0127] As described above, the encoding device may perform a prediction sample filtering process. Prediction sample filtering may be referred to as post-filtering. Some or all prediction samples may be filtered by the prediction sample filtering process. In some cases, the prediction sample filtering process may be omitted.
[0128] The encoding apparatus generates residual samples of the current block based on the (filtered) prediction samples (S510). The encoding apparatus may compare the prediction samples with the original samples of the current block based on a phase and derive the residual samples.
[0129] The encoding device may encode image information including intra prediction information (prediction information) and residual information about residual samples (S520). The prediction information may include intra prediction mode information and intra prediction type information. The residual information may include residual coding syntax. The encoding device may transform / quantize the residual samples to derive quantized transform coefficients. The residual information may include information about the quantized transform coefficients.
[0130] The encoding device can output the encoded image information in the form of a bit stream. The output bit stream can be transmitted to the decoding device via a storage medium or a network.
[0131] As described above, the encoding device can generate a reconstructed picture (including reconstructed samples and reconstructed blocks). To this end, the encoding device can derive (modified) residual samples by dequantizing / inverse transforming the quantized transform coefficients again. The reason for performing dequantization / inverse transform after transforming / quantizing the residual samples in this way is to derive the same residual samples as the residual samples derived from the decoding device as described above. The encoding device can generate a reconstructed block including reconstructed samples of the current block based on the predicted samples and the (modified) residual samples. A reconstructed picture of the current picture can be generated based on the reconstructed block. As described above, in-loop filtering processing, etc. can be further applied to the reconstructed picture.
[0132] Figure 7 An example of an image decoding method based on intra-frame prediction to which the embodiments of the present disclosure can be applied is schematically illustrated. Figure 8 An intra predictor in a decoding device is schematically illustrated. Figure 8 The intra-frame predictor in the decoding device can be used with Figure 2 The above-mentioned intra-frame predictor 331 of the decoding device 300 is applied identically or correspondingly.
[0133] Reference Figure 7 and Figure 8 , the decoding device may perform operations corresponding to the operations performed by the above-mentioned encoding device. S700 to S720 may be performed by the intra-frame predictor 331 of the decoding device, and the prediction information of S700 and the residual information of S730 may be obtained from the bitstream by the entropy decoder 310 of the decoding device. The residual processor 320 of the decoding device may derive residual samples of the current block based on the residual information. Specifically, the dequantizer 321 of the residual processor 320 derives the transform coefficient by performing dequantization based on the quantized transform coefficient derived according to the residual information, and the inverse transformer of the residual processor 320 may derive the residual samples of the current block by performing an inverse transform on the transform coefficient. S740 may be performed by the adder 340 or the reconstructor of the decoding device.
[0134] The decoding device may derive the intra prediction mode / type of the current block based on the received prediction information (intra prediction mode / type information) (S700). The decoding device may derive the neighboring reference samples of the current block (S710). The decoding device generates prediction samples within the current block based on the intra prediction mode / type and the neighboring reference samples (S720). In this case, the decoding device may perform a prediction sample filtering process. Prediction sample filtering may be referred to as post filtering. Some or all prediction samples may be filtered by the prediction sample filtering process. In some cases, the prediction sample filtering process may be omitted.
[0135] The decoding device generates a residual sample of the current block based on the received residual information (S730). The decoding device may generate a reconstructed sample of the current block based on the predicted sample and the residual sample, and derive a reconstructed block including the reconstructed sample (S740). A reconstructed picture of the current picture may be generated based on the reconstructed block. As described above, an in-loop filtering process or the like may be further applied to the reconstructed picture.
[0136] Here, the intra-frame predictor 331 of the decoding device may include an intra-frame prediction mode / type determiner 231-1, a reference sample deriver 331-2, and a prediction sample deriver 231-3. The intra-frame prediction mode / type determiner 331-1 determines the intra-frame prediction mode / type of the current block based on the intra-frame prediction mode / type information obtained from the entropy decoder 310, and the reference sample deriver 331-2 can derive the neighboring reference samples of the current block, and the prediction sample deriver 331-3 can derive the prediction sample of the current block. In addition, although not shown, when performing the above-mentioned prediction sample filtering process, the intra-frame predictor 331 may also include a prediction sample filter (not shown).
[0137] For example, the intra prediction mode information may include flag information (e.g., intra_luma_mpm_flag) indicating whether the most probable mode (MPM) is applied to the current block or whether the residual mode should be applied to the current block. At this time, when MPM is applied to the current block, the prediction mode information may further include index information (e.g., intra_luma_mpm_idx) indicating one of the intra prediction mode candidates (MPM candidates). The intra prediction mode candidates (MPM candidates) may be configured as an MPM candidate list or an MPM list. In addition, when MPM is not applied to the current block, the intra prediction mode information may further include residual mode information (e.g., intra_luma_mpm_remainder) indicating one of the remaining intra prediction modes excluding the intra prediction mode candidates (MPM candidates). The decoding device may determine the intra prediction mode of the current block based on the intra prediction mode information. At this time, a separate MPM list may be configured for the above-mentioned MIP.
[0138] In addition, the intra prediction type information may be implemented in various forms. For example, the intra prediction type information may include intra prediction type index information indicating one of the intra prediction types. As another example, the intra prediction type information includes reference sample line information (e.g., intra_luma_ref_idx) indicating whether MRL is applied to the current block, whether to use the reference sample line if MRL is applicable, ISP flag information (e.g., intra_subpartitions_mode_flag) indicating whether ISP is applied to the current block, ISP type information (e.g., intra_subpartitions_split_flag) indicating the partition type of the sub-partition when ISP is applied, flag information indicating whether PDCP is applied, or flag information indicating whether LIP is applied. In addition, the intra prediction type information may include MIP flag information indicating whether MIP is applied to the current block.
[0139] The intra-frame prediction mode information and / or the intra-frame prediction type information can be encoded / decoded by the coding method described in this document. For example, the intra-frame prediction mode information and / or the intra-frame prediction type information can be encoded / decoded by entropy coding (e.g., CABAC, CAVLC) based on truncated (Rice) binary code.
[0140] Fig. 9 An exemplary intra prediction process to which the embodiments of the present disclosure may be applied is exemplarily illustrated.
[0141] Reference Fig. 9 As described above, the intra prediction process may include determining an intra prediction mode / type, deriving neighboring reference samples, and performing intra prediction (generating prediction samples). The intra prediction process may be performed in the encoding device and the decoding device as described above. The coding device in this document may include an encoding device and / or a decoding device.
[0142] The coding apparatus may determine an intra prediction mode / type ( S900 ).
[0143] Among the various intra prediction modes / types described above, the coding device may determine the intra prediction mode / type applied to the current block and generate prediction related information. The prediction related information may include intra prediction mode information indicating the intra prediction mode applied to the current block and / or intra prediction type information indicating the intra prediction type applied to the current block. The decoding device may determine the intra prediction mode / type applied to the current block based on the prediction related information.
[0144] As described above, the intra prediction mode information may include at least one of MPM flag information, non-plane flag information, MPM index information, and / or residual mode (MPM residual) information. As described above, the intra prediction type information includes reference sample line (MRL index) information (e.g., intra_luma_ref_idx), ISP flag information (e.g., intra_subpartitions_mode_flag), ISP type information (e.g., intra_subpartitions_split_flag), and flag information indicating whether PDCP is applied, flag information indicating whether LIP is applied, and / or MIP flag information.
[0145] For example, when intra prediction is applied, the intra prediction mode of the neighboring block may be used to determine the intra prediction mode applied to the current block. For example, the coding device may select one of the MPM candidates in the most probable mode (MPM) list derived from the intra prediction mode and / or additional candidate mode of the neighboring blocks (e.g., left and / or upper neighboring blocks) of the current block based on the received MPM index, or may select one of the remaining intra prediction modes not included in the MPM candidates (and the plane mode) based on the MPM residual information (remaining intra prediction mode information). The MPM list may be configured to include or exclude the plane mode as a candidate. For example, if the MPM list includes the plane mode as a candidate, the MPM list may have 6 candidates, and if the MPM list does not include the plane mode as a candidate, the MPM list may have 5 candidates. When the MPM list does not include the plane mode as a candidate, a non-planar flag (e.g., intra_luma_not_planar_flag) indicating whether the intra prediction mode of the current block is not a plane mode may be signaled. For example, the MPM flag may be signaled first, and when the value of the MPM flag is 1, the MPM index and the non-planar flag may be signaled. Additionally, when the value of the non-planar flag is 1, the MPM index may be signaled. Here, the reason why the MPM list is configured to not include the planar mode as a candidate is that the planar mode is not an MPM, rather than the planar mode being always considered as an MPM, and therefore the non-planar flag is signaled first. This is to first check whether it is a planar mode.
[0146] For example, it can be indicated based on an MPM flag (e.g., intra_luma_mpm_flag) whether the intra prediction mode applied to the current block is among the MPM candidates (and planar mode) or among the remaining modes. An MPM flag with a value of 1 can indicate that the intra prediction mode of the current block is within the MPM candidates (and planar mode), and an MPM flag with a value of 0 can indicate that the intra prediction mode of the current block is not within the MPM candidates (and planar mode). A non-planar flag (e.g., intra_luma_not_planar_flag) value of 0 can indicate that the intra prediction mode of the current block is a planar mode, and a non-planar flag value of 1 can indicate that the intra prediction mode of the current block is not a planar mode. The MPM index can be signaled in the form of an mpm_idx or intra_luma_mpm_idx element, and the remaining intra prediction mode information can be signaled in the form of a rem_intra_luma_pred_mode or intra_luma_mpm_remainder syntax element. For example, the remaining intra prediction mode information may indicate one of all intra prediction modes by indexing the remaining intra prediction modes not included in the MPM candidates (and planar mode) in the order of the prediction mode numbers. The intra prediction mode may be an intra prediction mode of a luminance component (sample). Hereinafter, the intra prediction mode information includes at least one of an MPM flag (e.g., intra_luma_mpm_flag), a non-planar flag (e.g., intra_luma_not_planar_flag), an MPM index (e.g., mpm_idx or intra_luma_mpm_idx), and remaining intra prediction mode information (rem_intra_luma_luma_mpm_mode or intra_luma_mpminder). In this document, the MPM list may be referred to by various terms such as MPM candidate list and candModeList.
[0147] When MIP is applied to the current block, a separate mpm flag (eg, intra_mip_mpm_flag), an mpm index (eg, intra_mip_mpm_idx), and remaining intra prediction mode information (eg, intra_mip_mpm_remainder) for the MIP may be signaled, and a non-planar flag may not be signaled.
[0148] In other words, when an image is roughly partitioned into blocks, the current block and the neighboring blocks to be coded have similar image characteristics. Therefore, the current block and the neighboring blocks are very likely to have the same or similar intra-frame prediction mode. Therefore, the encoder can use the intra-frame prediction mode of the neighboring block to encode the intra-frame prediction mode of the current block.
[0149] A most probable mode (MPM) list of the current block of the coding device may be configured. The MPM list may also be referred to as an MPM candidate list. Here, MPM may mean a mode for improving coding efficiency by considering the similarity between the current block and the neighboring blocks during intra-frame prediction mode coding. As described above, the MPM list may include a planar mode, or may exclude a planar mode. For example, when the MPM list includes a planar mode, the number of candidates in the MPM list may be 6. And when the MPM list does not include a planar mode, the number of candidates in the MPM list may be 5.
[0150] The encoding device may perform prediction based on various intra prediction modes, and may determine the optimal intra prediction mode based on rate distortion optimization (RDO) therefor. In this case, the encoding device may determine the optimal intra prediction mode using only the MPM candidates and plane modes configured in the MPM list, or may use the remaining intra prediction modes in addition to the MPM candidates and plane modes configured in the MPM list. Specifically, if the intra prediction type of the current block is a specific type (e.g., LIP, MRL, or ISP) rather than a normal intra prediction type, the encoding device only considers the MPM candidates and plane modes as intra prediction mode candidates for the current block, and then determines the optimal intra prediction mode. That is, in this case, the intra prediction mode of the current block may be determined only from the MPM candidates and plane modes, and in this case, the mpm flag may not be encoded / signaled. In this case, the decoding device may estimate that the mpm flag is 1 without separately signaling the mpm flag.
[0151] In addition, generally, when the intra prediction mode of the current block is not the planar mode but one of the MPM candidates in the MPM list, the encoding device generates an mpm index (mpm idx) indicating one of the MPM candidates. If the intra prediction mode of the current block is not included in the MPM list, MPM residual information (remaining intra prediction mode information) indicating the same mode as the intra prediction mode of the current block among the remaining intra prediction modes not included in the MPM list (and the planar mode) is generated. For example, the MPM residual information may include an intra_luma_mpm_remainder syntax element.
[0152] The decoding device obtains intra-frame prediction mode information from the bitstream. As described above, the intra-frame prediction mode information may include at least one of an MPM flag, a non-plane flag, an MPM index, or MPM residual information (residual intra-frame prediction mode information). The decoding device may construct an MPM list. The MPM list is configured identically to the MPM list configured in the encoding device. That is, the MPM list may include intra-frame prediction modes of neighboring blocks, or may also include specific intra-frame prediction modes according to a predetermined method.
[0153] The decoding device can determine the intra prediction mode of the current block based on the MPM list and the intra prediction mode information. For example, when the value of the MPM flag is 1, the decoding device (based on the non-planar flag) derives the plane mode as the intra prediction mode of the current block or selects the candidate indicated by the MPM index from the MPM candidates in the MPM list. Here, the MPM candidate may indicate only the candidates included in the MPM list, or may include not only the candidates included in the MPM list, but also the plane mode that can be applied when the value of the MPM flag is 1.
[0154] For another example, when the value of the MPM flag is 0, the decoding device may derive the intra prediction mode indicated by the remaining intra prediction mode information (which may be referred to as mpm remaining information) among the remaining intra prediction modes not included in the MPM list and the plane mode as the intra prediction mode of the current block. In addition, for another example, when the intra prediction type of the current block is a specific type (e.g., LIP, MRL, or ISP), the decoding device may derive the candidate indicated by the MPM flag in the plane mode or the MPM list as the intra prediction mode of the current block without parsing / decoding / confirming the MPM flag.
[0155] The coding device derives neighboring reference samples of the current block (S910). When intra prediction is applied to the current block, neighboring reference samples to be used for intra prediction of the current block may be derived. The neighboring reference samples of the current block include a total of 2×nH samples adjacent to the left boundary of the current block of size nW×nH and samples adjacent to the lower left of the current block of size nW×nH, and a total of 2×nW samples adjacent to the upper boundary of the current block and samples adjacent to the upper right of the current block of size nW×nH, and 1 sample adjacent to the upper left of the current block. Alternatively, the neighboring reference samples of the current block may include upper neighboring samples in multiple columns and left neighboring samples in multiple rows. In addition, the neighboring reference samples of the current block may include a total of nH samples adjacent to the right boundary of the current block of size nW×nH, a total of nW samples adjacent to the lower boundary of the current block of size nW×nH, and 1 sample adjacent to the lower right of the current block of size nW×nH.
[0156] In addition, when MRL is applied (ie, when the value of the MRL index is greater than 0), the neighboring reference sample may be located on lines 1 to 2 instead of line 0 adjacent to the current block on the left / upper side. In this case, the number of neighboring reference samples may be further increased. In addition, when ISP is applied, the neighboring reference sample can be derived in units of sub-partitions.
[0157] The coding device derives a prediction sample by performing intra prediction on the current block (S920). The coding device may derive the prediction sample based on the intra prediction mode / type and the neighboring samples. The coding device may derive a reference sample among neighboring reference samples of the current block according to the intra prediction mode of the current block, and may derive the prediction sample of the current block based on the reference sample.
[0158] In addition, when intra prediction is applied, the intra prediction mode of the neighboring block may be used to determine the intra prediction mode applied to the current block. For example, the encoding device may select one of the mpm candidates in the most probable mode (mpm) list derived from the intra prediction mode of the neighboring blocks (e.g., left and / or upper neighboring blocks) of the current block and the additional candidate mode based on the received mpm index, or may select one of the remaining intra prediction modes not included in the mpm candidates (and the plane mode) based on the remaining intra prediction mode information. The mpm list may be configured to include or exclude the plane mode as a candidate. For example, if the mpm list includes the plane mode as a candidate, the mpm list may have 6 candidates, and if the mpm list does not include the plane mode as a candidate, the mpm list may have 5 candidates. If the mpm list does not include the plane mode as a candidate, a non-planar flag (e.g., intra_luma_not_planar_flag) indicating whether the intra prediction mode of the current block is not a plane mode may be signaled. For example, the mpm flag may be first signaled, and when the value of the mpm flag is 1, the mpm index and the non-planar flag may be signaled. In addition, the mpm index may be signaled when the value of the non-planar flag is 1. Here, the fact that the mpm list is configured to not include the planar mode as a candidate is not that the planar mode is not mpm, but that the planar mode is always considered to be mpm, so the non-planar flag is first signaled to determine whether the planar mode is the planar mode to be checked first.
[0159] For example, it can be indicated based on an mpm flag (e.g., intra_luma_mpm_flag) whether the intra prediction mode applied to the current block is among the mpm candidates (and planar mode) or among the remaining modes. A value of 1 for the mpm flag can indicate that the intra prediction mode of the current block is within the mpm candidates (and planar mode), and a value of 0 for the mpm flag can indicate that the intra prediction mode of the current block is not within the mpm candidates (and planar mode). A value of 0 for a non-planar flag (e.g., intra_luma_not_planar_flag) can indicate that the intra prediction mode of the current block is a planar mode, and a value of 1 for the non-planar flag can indicate that the intra prediction mode of the current block is not a planar mode. The mpm index can be signaled in the form of an mpm_idx or intra_luma_mpm_idx element, and the remaining intra prediction mode information can be signaled in the form of a rem_intra_luma_pred_mode or intra_luma_mpm_remainder syntax element. For example, the remaining intra prediction mode information may indicate one of all intra prediction modes by indexing the remaining intra prediction modes not included in the mpm candidates (and planar mode) in the order of the prediction mode numbers. The intra prediction mode may be an intra prediction mode of a luminance component (sample). Hereinafter, the intra prediction mode information may include at least one of an mpm flag (e.g., intra_luma_mpm_flag), a non-planar flag (e.g., intra_luma_not_planar_flag), an mpm index (e.g., mpm_idx or intra_luma_mpm_idx), or remaining intra prediction mode information (rem_intra_luma_luma_mpm_mode or intra_luma_mpminder). In this document, the mpm list may be referred to by various terms such as an mpm candidate list, a candidate mode list (candModeList), and a candidate intra prediction mode list.
[0160] At the same time, the compiling device may configure an MPM list including 6 MPM list candidates. At this time, 3 types of modes may be considered.
[0161] - Default Intra mode
[0162] - Neighboring intra mode
[0163] - Intra-mode derivation
[0164] At this time, for the neighboring intra mode, two neighboring (or neighboring) blocks may be considered, for example, a left neighboring block and an upper neighboring block.
[0165] For example, a unified 6-MPM list can be used for intra blocks regardless of whether the multi-reference line (MRL) and intra sub-partitioning (ISP) compilation tools are applied. In addition, the MPM list can be configured based on the left neighboring block and the upper neighboring block. For example, when the mode of the left block is given as left and the mode of the upper block is given as top, the unified MPM list can be configured as follows. In other words, when the intra prediction mode of the left block is given as left and the intra prediction mode of the upper block is given as top, the unified MPM list can be configured as follows. Here, V may mean a vertical intra prediction mode, and H may mean a horizontal intra prediction mode.
[0166] - When neighboring blocks are not available, the corresponding intra mode is basically configured as planar mode.
[0167] - When both left and top are in non-directional mode:
[0168] - MPM list can be configured as {Flat, DC, V, H, V-4, V+4}.
[0169] - When one of Left and Top is in directional mode and the other is in non-directional mode:
[0170] - Between the left and the top, the mode with the higher (or larger) mode number is configured as Mode Max.
[0171] - At this time, the MPM list can be configured as {Flat, Max, Max-1, Max+1, Max-2, Max+2}.
[0172] - When both left and top are directional modes and each mode corresponds to a different directional mode:
[0173] - Between left and top, the mode with the higher (or larger) mode number is configured as Mode Max.
[0174] - Between left and top, the mode with the lower (or smaller) mode number is configured as Mode Min.
[0175] - When the Max–Min value is equal to 1:
[0176] - MPM list can be configured as {Plane, Left, Top, Min-1, Max+1, Min-2}.
[0177] - Otherwise, when the Max–Min value is greater than or equal to 62:
[0178] - MPM list can be configured as {Plane, Left, Top, Min+1, Max-1, Min+2}.
[0179] - Otherwise, when the Max–Min value is equal to 2:
[0180] - MPM list can be configured as {Plane, Left, Top, Min+1, Min-1, Max+1}.
[0181] - Otherwise:
[0182] - MPM list can be configured as {Plane, Left, Top, Min-1, Min+1, Max-1}.
[0183] - When both left and top are directional modes and each mode corresponds to the same directional mode:
[0184] - MPM list can be configured as {flat,left,left-1,left+1,left-2,left+2}.
[0185] In addition, the first bin of the MPM index codeword may be CABAC context coded. A total of 3 contexts may be used depending on whether the MPM index codeword enables MRL, whether the MPM index codeword enables ISP, or whether the MPM index codeword is a general intra block.
[0186] At this time, when MIP is not applied to the current block, the above-mentioned MPM list configuration method can be used. For example, the above-mentioned MPM list configuration method can be used for intra-frame prediction mode derivation, which is used in LIP, PDPC, MRL, ISP intra-frame prediction or normal intra-frame prediction. At the same time, the left neighboring block or the upper neighboring block can be coded based on the above-mentioned MIP. That is, when the left neighboring block or the upper neighboring block is coded, MIP can be applied. In this case, for the current block to which MIP is not applied, it is inappropriate to use the same MIP intra-frame prediction mode number of the neighboring block (left neighboring block / upper neighboring block) to which MIP is applied for the MPM list. Therefore, in this case, for example, the intra-frame prediction mode of the neighboring block (left neighboring block / upper neighboring block) to which MIP is applied can be regarded as DC or plane mode. Alternatively, as another example, the intra-frame prediction mode of the neighboring block (left neighboring block / upper neighboring block) to which MIP is applied can be mapped to a general intra-frame prediction mode based on a mapping table, and then used in the MPM list configuration. In this case, mapping may be performed based on the block size type of the current block. For example, the mapping table may be represented as follows.
[0187] Fig.10 An example of an intra prediction mode to which an embodiment of the present disclosure can be applied is illustrated.
[0188] Reference Fig.10, an intra-frame prediction mode having a horizontal direction and an intra-frame prediction mode having a vertical direction can be distinguished left and right in the 34th intra-frame prediction mode having an upper left diagonal prediction direction. Figure 8 The H and V in the table represent the horizontal and vertical directions, respectively, and the numbers -32 to 32 represent displacements of 1 / 32 units on the sample grid position. Intra-prediction modes 2 to 33 have horizontal orientations, and intra-prediction modes 34 to 66 have vertical orientations. The 18th and 50th intra-prediction mode tables represent horizontal intra-prediction modes and vertical intra-prediction modes, respectively, and the 2nd intra-prediction mode is referred to as the lower-left diagonal intra-prediction mode, the 34th intra-prediction mode can be referred to as the upper-right diagonal intra-prediction mode, and the 66th intra-prediction mode can be referred to as the upper-left diagonal intra-prediction mode.
[0189] Hereinafter, a Template-based Intra Mode Derivation (TIMD) mode as an intra prediction method will be described.
[0190] For example, the TIMD mode may also be called a template-based intra-mode derivation mode, a template intra-mode derivation mode, or the like.
[0191] In addition, for example, the TIMD mode may be referred to as a TIMD intra mode. In addition, the TIMD mode may be referred to as a TIMD intra prediction mode or a TIMD prediction mode.
[0192] Furthermore, for example, intra mode may be referred to as intra prediction mode in this document. In addition, intra mode and intra prediction mode may be used interchangeably.
[0193] Fig.11 A template for deriving an intra prediction mode for the TIMD mode is exemplarily illustrated.
[0194] When using the TIMD mode, the decoder can derive the intra mode of the current CU by using the previously decoded neighboring pixels. For example, the prediction samples for the neighboring template can be derived based on the neighboring reference samples of the neighboring template of the current block (or current CU), the derived prediction samples for the neighboring template can be compared with the reconstructed samples of the neighboring template, and then, the intra mode of the current block (or current CU) can be derived accordingly. More specifically, after deriving the sum of absolute transform differences (SATD) between the prediction samples derived based on the neighboring reference samples of the neighboring template and the reconstructed samples of the neighboring template, the mode with the smallest SATD can be selected as the intra mode of the current block.
[0195] For example, the prediction sample of the template can be derived based on the neighboring reference sample (i.e., the reference of the template) located outside the template. After deriving the SATD between the derived prediction sample of the template and the reconstructed sample of the template that has been derived in the reconstruction process, the mode with the smallest SATD can be selected as the intra mode of the current block. Because the template is a region whose reconstruction has been completed based on the decoding order, the above method can be used.
[0196] In addition, for example, for each MPM candidate in the MPM list, after obtaining the SATD between the derived prediction samples of the template and the reconstructed samples of the template that have been derived in the reconstruction process, the mode with the smallest SATD can be selected as the intra mode of the current block.
[0197] Alternatively, after selecting the 2 prediction modes with the minimum SATD, the prediction blocks for the 2 prediction modes may be mixed using a weighted sum method, and then used as the prediction block of the current block. In other words, the prediction mode with the minimum SATD and the prediction mode with the second minimum SATD may be mixed by using a weighted sum method, and then used as the prediction block of the current block.
[0198] Meanwhile, 2 modes with the minimum SATD cost may be used for mixing using a weighting value (or weight) to be used as weighted intra prediction for the current block. When the equation shown below is satisfied, a method for mixing 2 selected modes may be applied.
[0199] [Formula 1]
[0200]
[0201] For example, when Equation 1 is true, 2 modes may be mixed to generate a prediction block. And, otherwise, only one mode with the minimum SATD may be selected.
[0202] In addition, the weighting value when mixing two prediction blocks can be calculated using the formula shown below.
[0203] [Formula 2]
[0204]
[0205] Here, costMode 1 may be the SATD cost of mode 1 , and costMode 2 may be the SATD cost of mode 2 .
[0206] Hereinafter, a decoder-side intra mode derivation (DIMD) mode as an intra prediction method will be described.
[0207] For example, the DIMD mode includes a decoder-side intra mode derivation mode, a decoder intra mode derivation mode, a decoder-side intra prediction mode, and a decoder intra mode prediction mode (decoder intra prediction mode).
[0208] In addition, for example, the DIMD mode may be referred to as a DIMD intra mode. In addition, the DIMD mode may be referred to as a DIMD intra prediction mode or a DIMD prediction mode.
[0209] For example, the DIMD mode may be used by deriving the intra prediction mode from the encoder and decoder without directly transmitting the intra prediction mode information. For example, the horizontal gradient and the vertical gradient may be obtained from the second adjacent column and row, and a gradient histogram (HoG) may be obtained from the obtained horizontal and vertical gradients.
[0210] Fig.12 A Histogram of Gradients (HoG) configuration method used to derive an intra prediction mode for a DIMD mode is exemplarily illustrated.
[0211] For example, Fig.12 (a) exemplarily illustrates a template used to derive an intra prediction mode for DIMD mode. In addition, Fig.12 (b) and Fig.12 (c) illustrates a method for deriving the configuration of the HoG for the intra prediction mode of the DIMD mode.
[0212] For example, according to Fig.12 (b), HoG may be obtained by applying a sobel filter using L-shaped columns and rows of neighboring 3 pixels of the current block. For example, when the boundary of the block exists in different CTUs, the neighboring pixels of the current block may not be used for texture analysis.
[0213] Meanwhile, the Sobel filter may also be referred to as a Sobel operator, and is an efficient filter for edge detection. When using the Sobel filter, there are two types of Sobel filters available: a Sobel filter for a vertical direction and a Sobel filter for a horizontal direction.
[0214] Fig.13 A method for configuring a prediction block by applying a DIMD mode is exemplarily illustrated.
[0215] For example, according to Fig.13, 2 intra-frame modes with the highest histogram amplitudes can be selected, and the prediction blocks predicted by using these 2 modes and the plane mode are mixed to configure the final prediction block. In other words, the intra-frame mode with the highest histogram amplitude and the intra-frame mode with the second highest histogram amplitude can be selected, and the prediction blocks predicted by using these 2 selected modes and the plane mode are mixed to configure the final prediction block. At this time, the weighted value for the mode can be derived from the amplitude of the histogram. In addition, for example, DIMD flag information can be sent in units of blocks, so that it can be verified whether DIMD can be used or not. At this time, the DIMD flag information can indicate whether the DIMD mode is being applied.
[0216] For example, the weighting value for the intra mode with the highest histogram magnitude may be calculated by using the formula shown below.
[0217] [Formula 3]
[0218]
[0219] In addition, the weight value for the intra mode having the second highest histogram magnitude may be calculated by using the equation shown below.
[0220] [Formula 4]
[0221]
[0222] Furthermore, the weighting value for the planar mode can be calculated by using the formula shown below.
[0223] [Formula 5]
[0224]
[0225] Meanwhile, in order to perform an efficient intra mode coding method, the following embodiments may be applied. The items of each embodiment may be applied independently or in combination.
[0226] According to an embodiment, a method for preventing the intra mode of the current block derived by DIMD from being selected multiple times according to the coding mode is proposed herein. For example, DIMD can infer the directionality of the pixel by using the information of the coded neighboring pixels of the current block, and the inferred directionality can be used as the intra mode of the current block. At this time, various directionalities can be derived according to the gradient between neighboring pixels, and each gradient distribution can be sorted by the gradient histogram (HoG) for the intra mode, and the N direction information determined as the most similar by HoG can be mapped to the intra mode and then used.
[0227] For example, if all pixel values of neighboring pixels are the same, the gradient may not be derived. And, therefore, the prediction mode of the current block may be selected as a non-directional mode.
[0228] Alternatively, for example, when the neighboring pixel relationship clearly indicates only one specific directionality, one type of directional information may be derived. For example, after deriving the prediction mode, when 2 intra prediction modes (i.e., N=2) are derived in the process of configuring the DIMD prediction block, a weighted value is calculated by using the magnitude of the gradient indicating the two prediction modes. Thereafter, by adding the weighted value of the fixed plane mode, the intra prediction block may be configured by the weighted sum of the 3 mode types.
[0229] Meanwhile, when only one mode is derived (ie, N=1), the weighted sum with the planar prediction block is not calculated. In other words, when only 1 DIMD mode is derived, the weighted sum with the planar mode may not be calculated.
[0230] In addition, when neighboring pixels cannot be used, or when the directionality of neighboring blocks cannot be specified (ie, N=0 or non-directional blocks), a default mode may be configured. At this time, the default mode may be a planar mode.
[0231] For example, when the current block is coded by using the DIMD mode (i.e., a block having a DIMD flag equal to 1), the above-mentioned intra mode may be derived, and depending on the condition, a weighted sum between prediction blocks may be calculated to generate an intra prediction block. Alternatively, when the current block is not coded by using the DIMD mode, the intra mode derived by the DIMD process may be used as a prediction mode candidate for the current block. That is, the derived intra mode may be used as an MPM candidate, or when the current block is a TIMD mode, the derived intra mode may be used as part of the prediction mode candidate for the current block. In other words, when the current block is not coded by using the DIMD mode, the intra mode derived by the DIMD process may be used as an MPM candidate for the current block, or when the TIMD mode is derived, may be used as part of the prediction mode candidate for the current block.
[0232] At the same time, when the current block is not selected as the DIMD mode and is encoded by using a general intra-frame mode, the neighboring pixels may be located at the coordinates of a block that cannot be used (the boundary of a picture, slice, etc.), or when the prediction direction cannot be specified from the neighboring pixels, the planar mode can be selected as the default mode. For example, according to the MPM configuration method, the planar mode can always be regarded as the first candidate of the MPM candidate. In this case, the planar mode derived by DIMD is always excluded from the MPM candidates. In other words, through the pruning process, the planar mode can always be excluded from the MPM candidates. Therefore, this embodiment proposes to specify the default mode of DIMD as another mode other than the planar mode.
[0233] For example, the default mode of DIMD may be the DC mode. In the case of the DC mode, since the DC mode does not always belong to the MPM candidates, the DC mode is less likely to be selected through multiple selections, and when the directional information cannot be inferred from the neighboring pixels, the DC mode may be suitable to be considered as a non-directional mode. In addition, when the prediction mode of DIMD is the planar direction, there may be a situation where the MPM may select the planar mode even if the current block is not selected as the DIMD mode. However, by using the proposed method, inefficient multiple selections of the coding mode can be prevented.
[0234] Alternatively, for example, the default mode of DIMD may be a horizontal prediction mode or a vertical prediction mode. In this case, by specifying the prediction mode with the highest statistical frequency in the intra-frame mode information as the default mode, more efficient mode coding may be achieved. Alternatively, the default mode of DIMD may be one of the directional prediction modes.
[0235] At the same time, when only one directional mode is derived due to the gradient distribution of the neighboring pixels of the current block, the weighted sum of the corresponding prediction mode and another prediction mode (for example, a planar mode, etc.) may not be calculated. In addition, when the current block is not coded by using the DIMD mode, the DIMD prediction mode may be regarded as some MPM candidates when configuring the MPM. At this time, when the DIMD prediction mode is input in the MPM and selected as the final prediction mode, this may have the same effect as selecting the same prediction mode and performing coding by changing only the mode (DIMD mode or MPM mode). Therefore, when performing intra-frame prediction in order to prevent inefficient multiple selections of coding modes from occurring, the following embodiments may be applied.
[0236] According to an embodiment, a method of calculating a weighted sum with a planar mode is proposed herein, even if the DIMD prediction mode is derived as a directional prediction mode.
[0237] For example, the weighted sum can be calculated by using 2 / 3 for DIMD prediction mode and 1 / 3 for plane mode. Alternatively, when the sum of weighted values is scaled to 64, the DIMD prediction mode can have a weighted value of 43, and the plane mode can have a weighted value of 21. By performing the above method, when the mode is not DIMD, the prediction block of the DIMD mode and the prediction block predicted as the DIMD prediction mode in the MPM can be different from each other. Therefore, inefficient multiple selection of coding modes can be prevented. In other words, when the DIMD prediction mode is derived as a directional prediction mode, the weighted sum of the DIMD prediction mode and the plane mode can be calculated. Therefore, when the mode is not DIMD, the prediction block of the DIMD mode and the prediction block predicted as the DIMD prediction mode in the MPM can be different from each other. Therefore, by preventing the prediction blocks from being the same, efficient intra-frame prediction can be performed.
[0238] In addition, according to an embodiment, when the DIMD prediction mode is derived as a directional prediction mode and the current block is not in the DIMD mode, a method is proposed herein for not inputting the DIMD prediction mode as a candidate mode in a process of configuring candidates such as MPM, TIMD, etc. That is, when the DIMD prediction mode is derived as a directional prediction mode and when the current block is not compiled by using the DIMD mode, a method is proposed herein for not inputting the DIMD prediction mode as a candidate mode in a process of configuring candidates such as MPM, TIMD, etc.
[0239] For example, when the DIMD prediction mode is derived as a directional prediction mode and the current block is not in DIMD mode, a directional prediction mode may not be considered in the process of configuring the MPM candidate. In addition, when the DIMD prediction mode is derived as a directional prediction mode and the current block is not in DIMD mode, this directional prediction mode may not be considered in the process of deriving the TIMD mode. Therefore, even if the current block is not in DIMD mode, since the DIMD prediction mode will not be considered when configuring the MPM candidate or deriving the TIMD mode, inefficient multiple selection of compilation modes can be prevented.
[0240] In addition, according to an embodiment, when the DIMD prediction mode is derived as a directional prediction mode and the current block is not in DIMD mode, a method of not specifying the DIMD prediction mode as the prediction mode of the current block is proposed herein. That is, when the DIMD prediction mode is derived as a directional prediction mode and the current block is not compiled by using the DIMD mode, a method of not specifying the DIMD prediction mode as the prediction mode of the current block is proposed herein.
[0241] For example, not only is the DIMD prediction mode not considered as an MPM candidate or a TIMD candidate, but the DIMD prediction mode is also not included in the remaining modes. Therefore, multiple coding methods for the same mode can be completely prevented. In other words, when the DIMD prediction mode is derived as a directional prediction mode and the current block is not in the DIMD mode, the DIMD prediction mode may also not be included in the remaining modes. Therefore, when the current block is not in the DIMD mode and the DIMD prediction mode is derived as a directional prediction mode, because the DIMD prediction mode cannot be selected as the prediction mode of the current block, inefficient multiple selections of coding modes can be prevented.
[0242] Fig.14 and Fig.15 An example of a video / image encoding method and related components according to an embodiment of the present disclosure is schematically illustrated.
[0243] Fig.14 The method disclosed in can be Figure 2 or Fig.15 More specifically, for example, Fig.14 S1400 to S1430 of the encoding device may be performed by the predictor 220, and S1440 may be performed by the entropy encoder 240 of the encoding device. Fig.14 Not shown in the figure, but the process of generating residual samples based on the prediction samples for the current block and generating residual information based on the residual samples can be performed by the residual processor 230 of the encoding device, and the process of generating a bitstream from the residual information or prediction-related information can be performed by the entropy encoder 240 of the encoding device. Fig.14 The method disclosed in may include the embodiments described above in the present disclosure.
[0244] refer to Fig.14 , the encoding device derives a decoder-side intra mode derivation (DIMD) mode for the current block (S1400). For example, the encoding device may derive the DIMD mode for the current block according to the above-mentioned embodiment.
[0245] The encoding apparatus determines an intra prediction mode for a current block (S1410). For example, the encoding apparatus may determine an intra prediction mode for a current block according to the above-described embodiments.
[0246] For example, the intra prediction mode for the current block may be determined based on whether the DIMD mode is applied to the current block.
[0247] Based on the DIMD mode not being applied to the current block, the default mode of the DIMD mode may be one of the DC mode, the horizontal prediction mode or the vertical prediction mode, and the directional prediction mode.
[0248] For example, based on the DIMD mode being derived as a directional intra mode and the DIMD mode being applied to the current block, the prediction mode can be derived based on performing weighted average calculation according to the directional intra mode and the plane mode, and the intra prediction mode for the current block can be determined based on the prediction mode. At this time, the intra prediction mode for the current block can be determined based on the prediction mode. In addition, the weighted value for the directional intra mode can be 2 / 3, and the weighted value for the plane mode can be 1 / 3, and the weighted average calculation can be performed using various weighted values.
[0249] In addition, the encoding apparatus may configure a most probable mode (MPM) list including intra prediction mode candidates for the current block.
[0250] For example, based on the DIMD mode being derived as a directional intra mode and the DIMD mode not being applied to the current block, the prediction mode may be derived based on a weighted average calculation performed according to a directional intra mode and a planar mode. At this time, the prediction mode may be included in the MPM list, and the intra prediction mode for the current block may be determined based on the MPM list.
[0251] On the other hand, based on the DIMD mode being derived as one directional intra mode and the DIMD mode not being applied to the current block, the one directional intra mode may not be included in the MPM list. At this time, the intra prediction mode for the current block may be determined based on the MPM list.
[0252] For example, based on the DIMD mode being derived as a directional intra mode and the DIMD mode not being applied to the current block, the one directional intra mode may not be included in the MPM list. In this case, the image information may include the remaining mode information, the remaining intra prediction modes excluding the intra prediction mode candidates included in the MPM list, and a directional intra mode may be derived based on the remaining mode information, and the intra prediction mode for the current block may be determined based on the remaining intra prediction mode. That is, when the DIMD mode is derived as a directional intra mode and the DIMD mode is not applied to the current block, the DIMD mode may not be included in the MPM list and may not be included in the remaining modes.
[0253] In addition, the encoding device can derive the TIMD mode for the current block.
[0254] For example, based on the DIMD mode being derived as a directional intra mode and the DIMD mode not being applied to the current block, the TIMD mode may be derived based on the intra prediction modes excluding the one directional intra mode. At this time, the intra prediction mode for the current block may be determined based on the TIMD mode.
[0255] The encoding apparatus may generate a prediction sample for the current block based on the intra prediction mode for the current block (S1420). For example, according to the above-described embodiment, the prediction sample for the current block may be generated based on the intra prediction mode for the current block.
[0256] The encoding apparatus may generate prediction-related information based on the prediction sample for the current block (S1430). For example, according to the above-described embodiment, prediction-related information may be generated based on the prediction sample for the current block.
[0257] The encoding apparatus may encode the image information including the prediction related information (S1440). For example, according to the above-mentioned embodiment, the image information including the prediction related information may be encoded.
[0258] In addition, for example, the encoding device may generate a prediction sample for the current block based on the intra prediction mode determined according to the above embodiment, and the encoding device may derive a residual sample for the current block based on the prediction sample for the current block. In addition, the encoding device may generate residual information based on the residual sample. In addition, the encoding device may encode image information including the remaining mode information and the residual information for the current block according to the above embodiment.
[0259] Fig.16 and Fig.17 An example of a video / image decoding method and related components according to an embodiment of the present disclosure is schematically illustrated.
[0260] Fig.16 The method disclosed in can be Figure 3 or Fig.17 More specifically, for example, S1600 may be performed by the entropy decoder 310 of the decoding device, S1610 to S1630 may be performed by the predictor 330 of the decoding device, and S1640 may be performed by the adder 340 of the decoding device. In addition, although Fig.16 Although not shown in the figure, the process of generating residual samples can be performed by the residual processor 320 of the decoding device, and the process of generating reconstructed samples based on the predicted samples and the residual samples can be performed by the adder of the decoding device. Fig.16 The method disclosed in may include the above-mentioned embodiments in the present disclosure.
[0261] refer to Fig.16 , the decoding device obtains a bit stream including image information (S1600). For example, the decoding device may obtain a bit stream including image information according to the above embodiment.
[0262] The decoding device derives a decoder-side intra mode derivation (DIMD) mode for the current block (S1610). For example, the decoding device may derive the DIMD mode for the current block according to the above-described embodiments.
[0263] The decoding device derives an intra prediction mode for the current block (S1620). For example, the decoding device may derive an intra prediction mode for the current block according to the above-described embodiment.
[0264] For example, the intra prediction mode for the current block may be derived based on whether the DIMD mode is applied to the current block.
[0265] Based on the DIMD mode not being applied to the current block, the default mode of the DIMD mode may be one of the DC mode, the horizontal prediction mode or the vertical prediction mode, and the directional prediction mode.
[0266] For example, based on deriving the DIMD mode as a directional intra mode and applying the DIMD mode to the current block, a prediction mode can be derived based on performing a weighted average calculation according to the one directional intra mode and the plane mode, and the intra prediction mode for the current block can be derived based on the prediction mode. At this time, the intra prediction mode for the current block can be derived based on the prediction mode. In addition, the weighted value of the one directional intra mode can be 2 / 3, and the weighted value of the plane mode can be 1 / 3, and the weighted average calculation can be performed using various weighted values.
[0267] In addition, the decoding apparatus may configure a most probable mode (MPM) list including intra prediction mode candidates for the current block.
[0268] For example, based on the DIMD mode being derived as a directional intra mode and the DIMD mode not being applied to the current block, the prediction mode may be derived based on performing a weighted average calculation according to the one directional intra mode and the planar mode. At this time, the prediction mode may be included in the MPM list, and the intra prediction mode for the current block may be derived based on the MPM list.
[0269] On the other hand, based on the DIMD mode being derived as one directional intra mode and the DIMD mode not being applied to the current block, the one directional intra mode may not be included in the MPM list. At this time, the intra prediction mode for the current block may be derived based on the MPM list.
[0270] In addition, for example, based on the DIMD mode being derived as a directional intra-frame mode and the DIMD mode not being applied to the current block, the one directional intra-frame mode may not be included in the MPM list. In this case, the image information may include residual mode information, and the remaining intra-frame prediction modes other than the intra-frame prediction mode candidates included in the MPM list and the one directional intra-frame mode may be derived based on the residual mode information, and the intra-frame prediction mode for the current block may be derived based on the remaining intra-frame prediction mode. That is, when the DIMD mode is derived as a directional intra-frame mode and the DIMD mode is not applied to the current block, the DIMD mode may not be included in the MPM list, and may not be included in the remaining modes.
[0271] ]In addition, the decoding device can derive the TIMD mode for the current block.
[0272] For example, based on the DIMD mode being derived as one directional intra mode and the DIMD mode not being applied to the current block, the TIMD mode may be derived based on the intra prediction modes excluding the one directional intra mode. At this time, the intra prediction mode for the current block may be derived based on the TIMD mode.
[0273] The decoding device may generate a prediction sample for the current block based on the intra prediction mode for the current block (S1630).For example, according to the above embodiment, the decoding device may generate a prediction sample for the current block based on the intra prediction mode for the current block.
[0274] The decoding device may generate a reconstructed sample for the current block based on the prediction sample for the current block (S1640). For example, according to the above embodiment, the decoding device may generate a reconstructed sample for the current block based on the prediction sample for the current block.
[0275] For example, the decoding device may generate a reconstructed sample of the current block based on the predicted sample and the residual sample of the current block. At this time, the residual sample may be derived based on the residual related information, and the residual related information may include image information sent by the bitstream signal, and the residual related information may be derived from the image information.
[0276] According to the present disclosure described above, when the DIMD mode is not applied to the current block, the default mode of the DIMD mode is configured by excluding the plane mode, and various candidate prediction modes can be used when configuring MPM candidates for intra prediction. Therefore, effective intra prediction can be performed.
[0277] In addition, according to another embodiment of the present disclosure, when the DIMD mode is derived as a directional prediction mode, the prediction mode can be derived using a weighted average with the planar mode. Therefore, by using various candidate prediction modes when configuring MPM candidates for intra prediction, effective intra prediction can be performed.
[0278] In addition, according to another embodiment of the present invention, when the DIMD mode is derived as a directional prediction mode, and when the DIMD mode is not applied to the current block, intra-frame prediction can be performed more efficiently and the prediction accuracy can be enhanced by not considering the DIMD mode as an MPM candidate, or a TIMD mode candidate, or a residual mode candidate.
[0279] When the residual sample of the current block exists, the decoding device may receive information about the residual of the current block. The information about the residual may include a transform coefficient about the residual sample. The decoding device may derive the residual sample (or residual sample array) of the current block based on the residual information. Specifically, the decoding device may derive the quantized transform coefficient based on the residual information. The quantized transform coefficient may have a one-dimensional vector form based on the coefficient scanning order. The decoding device may derive the transform coefficient based on the dequantization process of the quantized transform coefficient. The decoding device may derive the residual sample based on the transform coefficient.
[0280] The decoding device may generate a reconstructed sample based on the (intra-frame) prediction sample and the residual sample, and may derive a reconstructed block or a reconstructed picture based on the reconstructed sample. Specifically, the decoding device may generate a reconstructed sample based on the sum of the (intra-frame) prediction sample and the residual sample. As described above, if necessary, the decoding device may then apply an in-loop filtering process such as a deblocking filter and / or a SAO process to the reconstructed picture to improve the subjective / objective picture quality.
[0281] For example, the decoding device can decode the bitstream or the encoded information to obtain image information including all or some of the above information (or syntax elements). In addition, the bitstream or the encoded information can be stored in a computer-readable storage medium and can cause the above decoding method to be executed.
[0282] In the above-mentioned embodiment, the method is described based on the flowchart with a series of steps or square frames. The present disclosure is not limited to the order of the above steps or square frames. Some steps or square frames can be performed in an order different from the above-mentioned other steps or square frames or performed simultaneously. In addition, it will be understood by those skilled in the art that the steps shown in the flowchart are not exclusive, and other steps may also be included, or one or more steps in the flowchart may be deleted without affecting the scope of the present disclosure.
[0283] The above-mentioned method according to the embodiment of the present document can be implemented in the form of software, and the encoding device and / or decoding device according to the present document can be included in, for example, a TV, a computer, a smart phone, a set-top box, a display device, etc. that performs processing.
[0284] When the embodiments in this document are implemented as software, the above methods can be implemented as modules (processes, functions, etc.) that perform the above functions. The modules can be stored in a memory and executed by a processor. The memory can be inside or outside the processor and can be connected to the processor by various well-known means. The processor may include an application-specific integrated circuit (ASIC), other chipsets, logic circuits, and / or data processing devices. The memory may include a read-only memory (ROM), a random access memory (RAM), flash memory, a memory card, a storage medium, and / or other storage devices. That is, the embodiments described in this document can be implemented and executed on a processor, a microprocessor, a controller, or a chip. For example, the functional units shown in each figure can be implemented and executed on a computer, a processor, a microprocessor, a controller, or a chip. In this case, information (e.g., information about instructions) or algorithms for implementation can be stored in a digital storage medium.
[0285] In addition, the decoding device and encoding device applying the present disclosure may be included in the following devices: multimedia broadcast sending / receiving devices, mobile communication terminals, home theater video devices, digital theater video devices, surveillance cameras, video chat devices, real-time communication devices such as video communication, mobile streaming devices, storage media, portable cameras, VOD service providing devices, over-the-top (OTT) video devices, Internet streaming service providing devices, three-dimensional (3D) video devices, virtual reality (VR) devices, augmented reality (AR) devices, teleconferencing video devices, transportation user devices (e.g., vehicle (including autonomous vehicle) user devices, aircraft user devices, and ship user devices) and medical video devices; and the decoding device and encoding device applying the present disclosure may be used to process video signals or data signals. For example, over-the-top (OTT) video devices may include game consoles, Blu-ray players, Internet access televisions, home theater systems, smart phones, tablet computers, digital video recorders (DVRs), etc.
[0286] In addition, the processing method of the embodiment of the present disclosure can be generated in the form of a program executed by a computer and can be stored in a computer-readable recording medium. The multimedia data with a data structure according to the embodiment of the present disclosure can also be stored in a computer-readable recording medium. The computer-readable recording medium includes all types of storage devices in which computer-readable data is stored. The computer-readable recording medium may include, for example, a BD, a universal serial bus (USB), a ROM, a PROM, an EPROM, an EEPROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device. In addition, the computer-readable recording medium includes a medium implemented in the form of a carrier wave (e.g., transmission via the Internet). In addition, the bit stream generated by the encoding method can be stored in a computer-readable recording medium or transmitted via a wired / wireless communication network.
[0287] In addition, the embodiments of the present disclosure may be implemented using a computer program product according to a program code, and the program code may be executed in a computer through the embodiments of the present disclosure. The program code may be stored on a computer readable carrier.
[0288] Fig.18 An example of a content streaming system to which the embodiments disclosed in the present disclosure can be applied is illustrated.
[0289] Reference Fig.18 The content streaming system to which the embodiments of the present disclosure are applied may broadly include an encoding server, a streaming server, a network server, a media storage, a user device, and a multimedia input device.
[0290] The encoding server compresses the content input from a multimedia input device such as a smartphone, a camera, or a camcorder into digital data to generate a bitstream and transmits the bitstream to the streaming server. As another example, when a multimedia input device such as a smartphone, a camera, or a camcorder directly generates a bitstream, the encoding server may be omitted.
[0291] A bitstream may be generated by an encoding method or a bitstream generating method to which an embodiment of the present disclosure is applied, and a streaming server may temporarily store the bitstream in the process of transmitting or receiving the bitstream.
[0292] The streaming server sends multimedia data to the user device through the network server based on the user request, and the network server is used as a medium to notify the user of the service. When the user requests the required service from the network server, the network server transmits the request to the streaming server, and the streaming server sends the multimedia data to the user. In this case, the content streaming system may include a separate control server. In this case, the control server is used to control the command / response between the devices within the content streaming system.
[0293] The streaming server can receive content from a media storage and / or encoding server. For example, when receiving content from an encoding server, the content can be received in real time. In this case, in order to provide a stable streaming service, the streaming server can store the bitstream for a predetermined time.
[0294] Examples of user devices may include mobile phones, smart phones, laptop computers, digital broadcast terminals, personal digital assistants (PDAs), portable multimedia players (PMPs), navigators, touch-screen PCs, tablet PCs, ultrabooks, wearable devices (e.g., smart watches, smart glasses, and head-mounted displays), digital TVs, desktop computers, and digital signage, etc.
[0295] Each server within the content streaming system may operate as a distributed server, in which case the data received from each server may be distributed.
[0296] The claims described in this disclosure can be combined in various ways. For example, the technical features of the method claims of this disclosure can be combined to be implemented as a device, and the technical features of the device claims of this disclosure can be combined to be implemented as a method. In addition, the technical features of the method claims of this disclosure and the technical features of the device claims can be combined to be implemented as a device, and the technical features of the method claims of this disclosure and the technical features of the device claims can be combined to be implemented as a method.
Claims
1. An image decoding method performed by a decoding device, the image decoding method comprising: obtaining a bit stream including image information; deriving a decoder-side intra mode derivation (DIMD) mode for the current block; deriving an intra prediction mode for the current block; generating prediction samples for the current block based on the intra prediction mode for the current block; as well as generating reconstructed samples for the current block based on the predicted samples for the current block, The intra prediction mode for the current block is derived based on whether the DIMD mode is applied to the current block.
2. The image decoding method according to claim 1, wherein: Based on deriving the DIMD mode as a directional intra mode and applying the DIMD mode to the current block, deriving a prediction mode based on performing a weighted average according to the one directional intra mode and a planar mode, and Wherein, the intra-frame prediction mode for the current block is derived based on the prediction mode.
3. The image decoding method according to claim 2, wherein: The weighting factor for the one directional intra mode is equal to 2 / 3, and the weighting factor for the planar mode is equal to 1 / 3.
4. The image decoding method according to claim 1, further comprising: configuring a most probable mode (MPM) list including intra prediction mode candidates for the current block, wherein, based on the DIMD mode being derived as a directional intra mode and the DIMD mode not being applied to the current block, the prediction mode is derived based on performing a weighted average according to the one directional intra mode and the planar mode, wherein the prediction mode is included in the MPM list, and Wherein, the intra prediction mode for the current block is derived based on the MPM list.
5. The image decoding method according to claim 1, further comprising: configuring a most probable mode (MPM) list including intra prediction mode candidates for the current block, wherein, based on the DIMD mode being derived as a directional intra mode and the DIMD mode not being applied to the current block, the directional intra mode is not included in the MPM list, and Wherein, the intra prediction mode for the current block is derived based on the MPM list.
6. The image decoding method according to claim 1, further comprising: deriving a template based intra mode derivation (TIMD) mode for the current block, wherein, based on the DIMD mode being derived as a directional intra mode and the DIMD mode not being applied to the current block, the TIMD mode is derived based on an intra prediction mode excluding the one directional intra mode, and Wherein, the intra-frame prediction mode for the current block is derived based on the TIMD mode.
7. The image decoding method according to claim 5, wherein: The image information includes residual mode information, wherein the remaining intra prediction modes excluding the intra prediction mode candidates and the one directional intra mode included in the MPM list are derived based on the remaining mode information, and The intra-frame prediction mode for the current block is derived based on the remaining intra-frame prediction modes.
8. The image decoding method according to claim 1, wherein: Based on the DIMD mode not being applied to the current block, a default mode of the DIMD mode is one of a DC mode, a horizontal prediction mode or a vertical prediction mode, and a directional prediction mode.
9. An image encoding method performed by an encoding device, the image encoding method comprising: deriving a decoder-side intra mode derivation (DIMD) mode for the current block; determining an intra prediction mode for the current block; generating prediction samples for the current block based on the intra prediction mode for the current block; generating prediction related information based on the prediction sample for the current block; as well as encoding the image information including the prediction related information, The intra prediction mode for the current block is determined based on whether the DIMD mode is applied to the current block.
10. The image encoding method according to claim 9, wherein: Based on deriving the DIMD mode as a directional intra mode and applying the DIMD mode to the current block, deriving a prediction mode based on performing a weighted average according to the one directional intra mode and a planar mode, and Wherein, the intra prediction mode for the current block is determined based on the prediction mode.
11. The image encoding method according to claim 10, wherein: The weighting factor for the one directional intra mode is equal to 2 / 3, and the weighting factor for the planar mode is equal to 1 / 3.
12. The image decoding method according to claim 9, further comprising: configuring a most probable mode (MPM) list including intra prediction mode candidates for the current block, wherein, based on the DIMD mode being derived as a directional intra mode and the DIMD mode not being applied to the current block, the prediction mode is derived based on performing a weighted average according to the one directional intra mode and the planar mode, wherein the prediction mode is included in the MPM list, and The intra prediction mode for the current block is determined based on the MPM list.
13. The image encoding method according to claim 9, further comprising: configuring a most probable mode (MPM) list including intra prediction mode candidates for the current block, wherein, based on the DIMD mode being derived as a directional intra mode and the DIMD mode not being applied to the current block, the directional intra mode is not included in the MPM list, and Wherein, the intra prediction mode for the current block is determined based on the MPM list.
14. The image encoding method according to claim 9, further comprising: deriving a template based intra mode derivation (TIMD) mode for the current block, wherein, based on the DIMD mode being derived as a directional intra mode and the DIMD mode not being applied to the current block, the TIMD mode is derived based on an intra prediction mode excluding the one directional intra mode, and Wherein, the intra prediction mode for the current block is determined based on the TIMD mode.
15. The image encoding method according to claim 13, wherein: The image information includes residual mode information, wherein the remaining intra prediction modes excluding the intra prediction mode candidates and the one directional intra mode included in the MPM list are derived based on the remaining mode information, and The intra prediction mode for the current block is determined based on the remaining intra prediction modes.
16. The image encoding method according to claim 9, wherein: Based on the DIMD mode not being applied to the current block, a default mode of the DIMD mode is one of a DC mode, a horizontal prediction mode or a vertical prediction mode, and a directional prediction mode. 17 . A computer-readable storage medium storing a bit stream generated by the image encoding method according to claim 9 .
18. A method for transmitting image data, the method comprising: obtaining a bitstream, wherein the bitstream is generated based on: deriving a decoder-side intra mode derivation (DIMD) mode for a current block, determining an intra prediction mode for the current block, generating prediction samples for the current block based on the intra prediction mode for the current block, generating prediction related information based on the prediction samples for the current block, and encoding image information including the prediction related information; as well as sending said data comprising said bit stream, The intra prediction mode for the current block is determined based on whether the DIMD mode is applied to the current block.
