Image coding using transform index

The use of transformation index information and matrix-based intra prediction in video coding enhances compression efficiency for high-resolution and immersive media, addressing the increased costs and data volume challenges in video transmission and storage.

JP2024150650AActive Publication Date: 2024-10-23LG ELECTRONICS INC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2024117878
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2019-04-16
Filing Date
2024-07-23
Publication Date
2024-10-23
Estimated Expiration
2040-04-16

AI Technical Summary

Technical Problem

The increasing demand for high-resolution and high-quality images/videos, such as 4K or 8K UHD, and immersive media like VR and AR, has led to higher transmission and storage costs due to the increased amount of information, necessitating more efficient video compression techniques.

Method used

A method and apparatus for video coding using transformation index information, including matrix-based intra prediction (MIP) and signaling transformation index information, with binary or entropy coding, to enhance video compression efficiency.

Benefits of technology

This approach increases overall video compression efficiency by efficiently transforming blocks with MIP, minimizes mutual interference between MIP and LFNST, and reduces complexity while maintaining optimal coding efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024150650000001_ABST
    Figure 2024150650000001_ABST
Patent Text Reader

Abstract

To provide an image decoding method.SOLUTION: An image decoding method includes: deriving prediction samples of a current block by performing intra prediction based on prediction mode information; generating residual samples of the current block based on information on transform coefficients; and generating restoration samples for the current block based on the prediction samples and the residual samples. Image information includes a MIP flag. Based on the prediction mode information representing an intra mode and the MIP flag representing that the MIP is not applied, the image information includes LFNST index information associated with one transform kernel in a LFNST transform set for the current block. The MIP flag is parsed before the LFNST index information, and based on the MIP flag representing that the MIP is applied, the LFNST index information does not exist and the value of the LFNST index information is derived as 0.SELECTED DRAWING: Figure 12
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] TECHNICAL FIELD This document relates to video coding techniques, and more particularly, to video coding using transform indexes. [Background technology]

[0002] In recent years, the demand for high-resolution, high-quality images / videos such as 4K or 8K or higher UHD (Ultra High Definition) images / videos is increasing in various fields. As the image / video data has higher resolution and quality, the amount of information or bits to be transmitted increases relatively compared to existing image / video data, so that when image data is transmitted using a medium such as an existing wired or wireless broadband line or image / video data is stored using an existing storage medium, the transmission cost and storage cost increase.

[0003] In addition, in recent years, interest in and demand for immersive media such as virtual reality (VR), artificial reality (AR) content, and holograms has been increasing, and the broadcast of images / videos having different image characteristics from real images, such as game images, has been increasing.

[0004] Therefore, there is a demand for highly efficient image / video compression technology to effectively compress and transmit, store, and play back high-resolution, high-quality image / video information having the various characteristics described above. Summary of the Invention [Means for solving the problem]

[0005] According to one embodiment of the present document, a method and apparatus for increasing image / video coding efficiency is provided.

[0006] According to one embodiment of the present document, a video coding method and apparatus using transform index information is provided.

[0007] According to one embodiment of the present document, a transformation method and apparatus for a block to which matrix based intra prediction (MIP) is applied is provided.

[0008] According to one embodiment of the present document, a method and apparatus are provided for signaling transformation index information to transform a block to which MIP is applied.

[0009] According to one embodiment of the present document, a method and apparatus are provided for signaling transformation index information only for blocks to which MIP is not applied.

[0010] According to one embodiment of the present document, a method and apparatus are provided for deriving transformation index information to transform a block to which MIP is applied.

[0011] According to one embodiment of the present document, a method and apparatus for binarizing or entropy coding transform index information is provided.

[0012] According to one embodiment of the present document, there is provided a video / image decoding method performed by a decoding device.

[0013] According to one embodiment of the present document, there is provided a decoding device for performing video / image decoding.

[0014] According to one embodiment of the present document, there is provided a video / image encoding method performed by an encoding device.

[0015] According to one embodiment of the present document, an encoding device for performing video / image encoding is provided.

[0016] According to one embodiment of the present document, a computer-readable digital storage medium is provided having encoded video / image information generated by the video / image encoding method disclosed in at least one of the embodiments of the present document stored thereon.

[0017] According to one embodiment of the present document, a computer-readable digital storage medium is provided having encoded information or encoded video / image information stored thereon, which enables a decoding device to perform the video / image decoding method disclosed in at least one of the embodiments of the present document. Effect of the Invention

[0018] According to the document, it can improve the overall image / video compression efficiency.

[0019] According to this document, the transformation index can be efficiently signaled to efficiently (inverse) transform blocks to which MIP (Matrix based Intra Prediction) is applied.

[0020] According to this document, it is possible to efficiently code the transformation index for the block to which MIP is applied.

[0021] According to this document, the transformation index for the block to which MIP is applied can be derived without separate signaling.

[0022] According to this document, when MIP and LFNST (Low Frequency Non-Separable Transform) are both applied, mutual interference can be minimized, optimal coding efficiency can be maintained, and complexity can be reduced.

[0023] The effects that can be obtained through a specific example of this document are not limited to the effects listed above. For example, there may be various technical effects that a person having ordinary skill in the related art can understand or derive from this document. Therefore, the specific effects of this document are not limited to those explicitly described in this document, but may include various effects that can be understood or derived from the technical features of this document. [Brief description of the drawings]

[0024] [Figure 1] 1 illustrates generally an example of a video / image coding system to which this document can be applied; [Diagram 2] 1 is a diagram illustrating the configuration of a video / image encoding device to which this document can be applied. [Diagram 3] 1 is a diagram illustrating the configuration of a video / image decoding device to which this document can be applied. [Figure 4] 1 illustrates a schematic of a multiple conversion technique according to one embodiment of the present document; [Diagram 5] An intra-directional mode with 65 prediction directions is shown as an example. [Figure 6] FIG. 1 is a diagram for explaining a RST according to one embodiment of this document. [Figure 7] FIG. 1 is a diagram for explaining a RST according to one embodiment of this document. [Figure 8] Illustrates an exemplary context-adaptive binary arithmetic coding (CABAC) for encoding syntax elements. [Figure 9] 1 shows an example in which a block to which an ISP is applied is divided into sub-blocks based on the size of the block. [Figure 10] 1 shows an example in which a block to which an ISP is applied is divided into sub-blocks based on the size of the block. [Figure 11]FIG. 1 is a diagram for explaining MIP for an 8×8 block. [Figure 12] 1 is a flow diagram illustrating how MIP and LFNST are applied. [Figure 13] 1 illustrates a schematic diagram of an example video / image encoding method and associated components according to an embodiment of the present document; [Figure 14] 1 illustrates a schematic diagram of an example video / image encoding method and associated components according to an embodiment of the present document; [Figure 15] 1 illustrates a schematic diagram of an example of a video / image decoding method and related components according to an embodiment of the present document; [Figure 16] 1 illustrates a schematic diagram of an example of a video / image decoding method and related components according to an embodiment of the present document; [Figure 17] 1 illustrates an example of a content streaming system in which the embodiments disclosed herein can be applied. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0025] This document may have various modifications and may have various embodiments, and a specific embodiment will be illustrated in the drawings and described in detail. However, this is not intended to limit this document to a specific embodiment. Terms commonly used in this specification are used merely to describe a specific embodiment, and are not intended to limit the technical ideas of this document. A singular expression includes a plural expression unless the context clearly indicates otherwise. In this specification, the terms "include" or "have" are intended to specify the presence of features, numbers, steps, operations, components, parts, or combinations thereof described in the specification, and should be understood not to preclude the presence or addition of one or more other features, numbers, steps, operations, components, parts, or combinations thereof.

[0026] Meanwhile, each component in the drawings described in this document is illustrated independently for the convenience of explaining the different characteristic functions, and does not mean that each component is realized by separate hardware or software. For example, two or more components among the components may be combined to form one component, or one component may be divided into multiple components. An embodiment in which each component is integrated and / or separated is also included in the scope of the rights of this document as long as it does not deviate from the essence of this document.

[0027] In this document, the terms " / " and "," should be interpreted to indicate "and / or." For instance, "A / B" means "A and / or B," and "A, B" means "A and / or B." Additionally, "A / B / C" means "at least one of A, B, and / or C." Also, "A, B, C" means "at least one of A, B, and / or C." (In this document, the term " / " and "," should be interpreted to indicate "and / or." For instance, the expression "A / B" may mean "A and / or B." Further, "A,B" may mean "A and / or B." Further, "A / B / C" may mean "at least one of A,B,and / or C." Also, "A / B / C" may mean "at least one of A,B,and / or C.")

[0028] Additionally, in this document, the term "or" should be interpreted to indicate "and / or." For example, "A or B" may comprise 1) only A, 2) only B, and / or 3) both A and B. In other words, the term "or" in this document should be interpreted to indicate "additionally or alternatively."

[0029] In this specification, "at least one of A and B" can mean "only A", "only B", or "both A and B". In addition, in this specification, the expressions "at least one of A or B" and "at least one of A and / or B" can be interpreted as "at least one of A and B".

[0030] In addition, in this specification, "at least one of A, B and C" can mean "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" can mean "at least one of A, B and C".

[0031] Furthermore, parentheses used in the present specification may mean "for example." Specifically, when "prediction (intra prediction)" is displayed, "intra prediction" is proposed as an example of "prediction." In other words, "prediction" in the present specification is not limited to "intra prediction," and "intra prediction" is proposed as an example of "prediction." Also, when "prediction (i.e., intra prediction)" is displayed, "intra prediction" is proposed as an example of "prediction."

[0032] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the following, the same reference numerals are used for the same components in the drawings, and duplicated descriptions of the same components will be omitted.

[0033] In this specification, technical features individually described in one drawing may be embodied individually or simultaneously.

[0034] FIG. 1 illustrates a schematic diagram of an example of a video / image coding system to which this document can be applied.

[0035] Referring to Figure 1, the video / image coding system may include a source device and a receiving device. The source device may transmit encoded video / image information or data to the receiving device via a digital storage medium or a network in the form of a file or streaming.

[0036] The source device may include a video source, an encoding device, and a sending unit. The receiving device may include a receiving unit, a decoding device, and a renderer. The encoding device may be referred to as a video / video encoding device, and the decoding device may be referred to as a video / video decoding device. The transmitter may be included in the encoding device. The receiver may be included in the decoding device. The renderer may also include a display unit, which may be a separate device or an external component.

[0037] A video source may acquire video / images through a video / image capture, synthesis, or generation process. A video source may include a video / image capture device and / or a video / image generation device. A video / image capture device may include, for example, one or more cameras, a video / image archive containing previously captured video / images, etc. A video / image generation device may include, for example, a computer, a tablet, a smartphone, etc., and may (electronically) generate video / images. For example, a virtual video / image may be generated via a computer, etc., in which case the video / image capture process may be replaced with a process in which related data is generated.

[0038] An encoding device may encode an input video / image. The encoding device may perform a series of steps such as prediction, transformation, quantization, etc. for compression and coding efficiency. The encoded data (encoded video / image information) may be output in the form of a bitstream.

[0039] The transmitting unit can transmit the encoded video / image information or data output in the form of a bitstream to a receiving unit of a receiving device via a digital storage medium or a network in the form of a file or streaming. The digital storage medium can include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. The transmitting unit can include elements for generating a media file through a predetermined file format and can include elements for transmission via a broadcasting / communication network. The receiving unit can receive / extract the bitstream and transmit it to a decoding device.

[0040] The decoding device can decode the video / image by performing a series of steps such as inverse quantization, inverse transformation, and prediction that correspond to the operations of the encoding device.

[0041] The renderer may render the decoded video / image, and the rendered video / image may be displayed via a display unit.

[0042] This document relates to video / image coding. For example, the methods / embodiments disclosed in this document may be related to the Versatile Video Coding (VVC) standard (ITU-T Rec. H.266), a 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 essential video coding (EVC) standard, the AVS2 standard, etc.).

[0043] This document presents various embodiments for video / image coding, which embodiments may also be implemented in combination with each other, unless otherwise stated.

[0044] In this document, video may refer to a collection of a series of images over time. A picture generally refers to a unit that indicates one image at a specific time, and a slice / tile is a unit that constitutes a part of a picture in coding. A slice / tile may include one or more coding tree units (CTUs). One picture may be composed of one or more slices / tiles. One picture may be composed of one or more tile groups. One tile group may include one or more tiles.

[0045] A pixel or a pel may refer to the smallest unit constituting one picture (or image). A term corresponding to a pixel may also be used as a "sample." A sample may generally refer to a pixel or a pixel value, may refer to only a pixel / pixel value of a luma component, or may refer to only a pixel / pixel value of a chroma component. Alternatively, a sample may refer to a pixel value in the spatial domain, or may refer to a transform coefficient in the frequency domain when such a pixel value is transformed into the frequency domain.

[0046] A unit may indicate a basic unit of image processing. A unit may include at least one of a specific region of a picture and information related to the region. One unit may include one luma block and two chroma (e.g., cb, cr) blocks. A unit may be used interchangeably with terms such as block or area depending on the case. In a general case, an M×N block may include a sample (or sample array) consisting of M columns and N rows, or a set (or array) of transform coefficients.

[0047] 2 is a diagram for briefly explaining the configuration of a video / image encoding device to which this document can be applied. Hereinafter, the video encoding device may include an image encoding device.

[0048] As shown in FIG. 2, the encoding apparatus 200 may be configured to include an image partitioner 210, a predictor 220, a residual processor 230, an entropy encoder 240, an adder 250, a filter 260, and a memory 270. The predictor 220 may include an inter predictor 221 and an intra predictor 222. The residual processor 230 may include a transformer 232, a quantizer 233, a dequantizer 234, and an inverse transformer 235. The residual processor 230 may further include a subtractor 231. The adder 250 may be referred to as a reconstructor or a reconstructed block generator. The image division unit 210, the prediction unit 220, the residual processing unit 230, the entropy encoding unit 240, the addition unit 250, and the filtering unit 260 may be configured by one or more hardware components (e.g., an encoder chip set or a processor) according to an embodiment. In addition, the memory 270 may include a decoded picture buffer (DPB) and may be configured by a digital storage medium. The hardware components may further include the memory 270 as an internal / external component.

[0049] The image division unit 210 may divide an input image (or picture, frame) input to the encoding device 200 into one or more processing units. As an example, the processing units may be called coding units (CUs). In this case, the coding units may be recursively divided from a coding tree unit (CTU) or a largest coding unit (LCU) according to a quad-tree binary-tree ternary-tree (QTBTTT) structure. For example, one coding unit may be divided into a plurality of coding units of a deeper depth based on a quad-tree structure, a binary tree structure, and / or a ternary structure. In this case, for example, the quad-tree structure may be applied first, and then the binary tree structure and / or the ternary structure may be applied. Alternatively, the binary tree structure may be applied first. The coding procedure according to the present disclosure may be performed based on a final coding unit that is not further 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 the coding unit may be recursively divided into coding units of lower depths as necessary, and a coding unit of an optimal size may be used as the final coding unit. Here, the coding procedure may include procedures such as prediction, transformation, and restoration, which will be described later. As another example, the processing unit may further include a prediction unit (PU: Prediction Unit) or a transform unit (TU: Transform Unit). In this case, the prediction unit and the transform unit may each be divided or partitioned from the final coding unit described above.The prediction unit may be a unit of sample prediction, and the transform unit may be a unit for deriving transform coefficients and / or a unit for deriving a residual signal from the transform coefficients.

[0050] The unit may be used interchangeably with terms such as block or area. In general, an M×N block may refer to a collection of samples or transform coefficients consisting of M columns and N rows. A sample may generally refer to a pixel or pixel value, may refer to only a pixel / pixel value of a luma component, or may refer to only a pixel / pixel value of a chroma component. A sample may be used as a term that corresponds to a pixel or pel of one picture (or image).

[0051] The subtraction unit 231 may subtract a prediction signal (predicted block, prediction sample, or prediction sample array) output from the prediction unit 220 from an 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 transmitted to the conversion unit 232. The prediction unit 220 may perform prediction on a block to be processed (hereinafter, referred to as a current block) and generate a predicted block including a prediction sample for the current block. The prediction unit 220 may determine whether intra prediction or inter prediction is applied in units of the current block or CU. The prediction unit may generate various information related to prediction, such as prediction mode information, and transmit the information to the entropy encoding unit 240, as described below in the description of each prediction mode. The prediction information may be encoded by the entropy encoding unit 240 and output in the form of a bitstream.

[0052] The intra prediction unit 222 may predict the current block by referring to samples in the current picture. The referenced samples may be located in the neighborhood of the current block or may be located away from the current block depending on the prediction mode. In the intra prediction, the prediction mode may include a plurality of non-directional modes and a plurality of directional modes. The non-directional modes may include, for example, a DC mode and a planar mode. The directional modes may include, for example, 33 directional prediction modes or 65 directional prediction modes depending on the fineness of the prediction direction. However, this is merely an example, and more or less directional prediction modes may be used depending on the setting. The intra prediction unit 222 may also determine the prediction mode to be applied to the current block using the prediction modes applied to the neighboring blocks.

[0053] The inter prediction unit 221 may derive a predicted block for a current block based on a reference block (reference sample array) identified by a motion vector on a reference picture. In this case, in order to reduce the amount of motion information transmitted in the inter prediction mode, the motion information may be predicted in units of blocks, sub-blocks, or samples based on the correlation of motion information between a neighboring block and the current block. The motion information may include a motion vector and a reference picture index. The motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter prediction, the neighboring block may include a spatial neighboring block present in the current picture and a temporal neighboring block present in the reference picture. The reference picture including the reference block and the reference picture including the temporal neighboring block may be the same or different. The temporal neighboring block may be called a collocated reference block, a collocated CU (col CU), etc., and the reference picture including the temporal neighboring block may be called a collocated picture (colPic). For example, the inter prediction unit 221 may generate information indicating which candidate is used to derive a motion vector and / or a reference picture index of the current block by forming a motion information candidate list based on neighboring blocks. Inter prediction may be performed based on various prediction modes, and for example, in the case of a skip mode and a merge mode, the inter prediction unit 221 may use motion information of a neighboring block as motion information of the current block. In the case of the skip mode, unlike the 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 can be used as a motion vector predictor, and the motion vector of the current block can be indicated by signaling the motion vector difference.

[0054] The prediction unit 220 may generate a prediction signal based on various prediction methods described below. For example, the prediction unit may apply intra prediction or inter prediction for prediction of one block, and may simultaneously apply intra prediction and inter prediction. This may be called combined inter and intra prediction (CIIP). The prediction unit may also perform intra block copy (IBC) for prediction of a block. The intra block copy may be used for content image / moving image coding such as games, for example, as in screen content coding (SCC). IBC basically performs prediction within a current picture, but may be performed similarly to inter prediction in that a reference block is derived within the current picture. That is, IBC may use at least one of the inter prediction techniques described in this document.

[0055] The prediction signal generated through the inter prediction unit 221 and / or the intra prediction unit 222 may be used to generate a restored signal or may be used to generate a residual signal. The transform unit 232 may generate transform coefficients 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 conditionally non-linear transform (CNT). Here, the GBT refers to a transform obtained from a graph when the relationship information between pixels is expressed as a graph. The CNT refers to a transform obtained based on a prediction signal generated using all previously reconstructed pixels. In addition, the transform process may be applied to pixel blocks having the same square size, or may be applied to non-square blocks of variable size.

[0056] The quantizer 233 quantizes the transform coefficients and transmits the quantized transform coefficients to the entropy encoding unit 240, which may encode the quantized signal (information on the quantized transform coefficients) and output the quantized signal as a bitstream. The information on the quantized transform coefficients may be referred to as residual information. The quantizer 233 may rearrange the quantized transform coefficients in a block form into a one-dimensional vector form based on a coefficient scan order, and may generate information on the quantized transform coefficients based on the quantized transform coefficients in the one-dimensional vector form. The entropy encoding unit 240 may perform various encoding methods, such as exponential Golomb, context-adaptive variable length coding (CAVLC), and context-adaptive binary arithmetic coding (CABAC). The entropy encoding unit 240 may also encode information required for video / image restoration (e.g., values ​​of syntax elements, etc.) together with or separately from the quantized transform coefficients. The encoded information (e.g., encoded video / image information) may be transmitted or stored in the form of a bitstream in network abstraction layer (NAL) unit units. The video / image information may further include information on various parameter sets, such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). The video / image information may further include general constraint information. Signaling / transmitted information and / or syntax elements described later in this document may be encoded through the above-mentioned encoding procedure and included in the bitstream.The bitstream may be transmitted via a network or may be stored in a digital storage medium, where the network may include a broadcasting network and / or a communication network, and the digital storage medium may include various storage media such as a USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. A transmitter (not shown) for transmitting the signal output from the entropy encoding unit 240 and / or a storage unit (not shown) for storing the signal may be configured as an internal / external element of the encoding apparatus 200, or the transmitter may be included in the entropy encoding unit 240.

[0057] The quantized transform coefficients output from the quantizer 233 may be used to generate a prediction signal. For example, a residual signal (residual block or residual sample) may be reconstructed by applying inverse quantization and inverse transform to the quantized transform coefficients via the inverse quantizer 234 and the inverse transformer 235. The adder 250 may generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample, or reconstructed sample array) by adding the reconstructed residual signal to the prediction signal output from the predictor 220. If there is no residual for the current block, such as when a skip mode is applied, the predicted block may be used as a reconstructed block. The generated reconstructed signal may be used for intra prediction of the next current block in the current picture, and may also be used for inter prediction of the next picture after filtering, as described below.

[0058] Meanwhile, luma mapping with chrominance scaling (LMCS) may be applied during picture encoding and / or restoration.

[0059] The filtering unit 260 may apply filtering to the reconstructed signal to improve subjective / objective image quality. For example, the filtering unit 260 may apply various filtering methods to the reconstructed picture to generate a modified reconstructed picture, and may store the modified reconstructed picture in the memory 270, specifically, in the DPB of the memory 270. The various filtering methods may include, for example, deblocking filtering, sample adaptive offset (SAO), an adaptive loop filter, a bilateral filter, etc. The filtering unit 260 may generate various information related to filtering and transmit it to the entropy encoding unit 290, as will be described later in the description of each filtering method. The filtering information may be encoded by the entropy encoding unit 290 and output in the form of a bitstream.

[0060] The modified reconstructed picture transmitted to the memory 270 can be used as a reference picture in the inter prediction unit 280. When inter prediction is applied through this, the encoding apparatus can avoid prediction mismatch between the encoding apparatus 200 and the decoding apparatus, and can also improve encoding efficiency.

[0061] The DPB of the memory 270 may store a modified reconstructed picture for use as a reference picture in the inter prediction unit 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 block in an already reconstructed picture. The stored motion information may be transmitted to the inter prediction unit 221 to be used as motion information of a spatial neighboring block or motion information of a temporal neighboring block. The memory 270 may store reconstructed samples of reconstructed blocks in the current picture and transmit them to the intra prediction unit 222.

[0062] FIG. 3 is a diagram illustrating a schematic configuration of a video / image decoding device to which this document can be applied.

[0063] As shown in FIG. 3, the decoding device 300 may be configured to 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 predictor 331 and an intra predictor 332. The residual processor 320 may include a dequantizer 321 and an inverse transformer 321. The entropy decoding unit 310, the residual processor 320, the predictor 330, the adder 340, and the filter 350 may be configured as one hardware component (e.g., a decoder chipset or processor) according to an embodiment. Also, the memory 360 may include a decoded picture buffer (DPB) and may be configured as a digital storage medium. The hardware components may further include a memory 360 as an internal / external component.

[0064] If a bitstream including video / image information is input, the decoding apparatus 300 can restore an image corresponding to a process in which the video / image information is processed by the encoding apparatus of FIG. 3. For example, the decoding apparatus 300 can derive a unit / block based on block division related information obtained from the bitstream. The decoding apparatus 300 can perform decoding using a processing unit applied in the encoding apparatus. Thus, the processing unit for decoding can be, for example, a coding unit, and the coding unit can be divided from a coding tree unit or a maximal coding unit according to a quad tree structure, a binary tree structure, and / or a ternary tree structure. One or more transform units can be derived from the coding unit. And, the restored image signal decoded and output by the decoding apparatus 300 can be reproduced by a reproduction device.

[0065] The decoding apparatus 300 may receive a signal output from the encoding apparatus of FIG. 2 in the form of a bitstream, and the received signal may be decoded via the entropy decoding unit 310. For example, the entropy decoding unit 310 may derive information (e.g., video / image information) required for image restoration (or picture restoration) by parsing the bitstream. The video / image information may further include information on various parameter sets, such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). In addition, the video / image information may further include general constraint information. The decoding apparatus may decode a picture based on information on the parameter set and / or the general constraint information. Signaling / received information and / or syntax elements described later in this document may be obtained from the bitstream by being decoded via the decoding procedure. For example, the entropy decoding unit 310 may decode information in a bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, and output syntax element values ​​required for image restoration and quantized values ​​of transform coefficients related to residuals. More specifically, the CABAC entropy decoding method may receive bins corresponding to each syntax element in a bitstream, determine a context model using syntax element information to be decoded and decoding information of adjacent and to-be-decoded blocks or symbol / bin information decoded in a previous step, predict the occurrence probability of bins according to the determined context model, and perform arithmetic decoding of the bins to generate symbols corresponding to the values ​​of each syntax element.In this case, the CABAC entropy decoding method may update the context model using information of the decoded symbol / bin for the context model of the next symbol / bin after determining the context model. Prediction information from the information decoded by the entropy decoding unit 310 may be provided to the prediction unit 330, and information on the residual on which entropy decoding is performed by the entropy decoding unit 310, i.e., quantized transform coefficients and related parameter information, may be input to the inverse quantization unit 321. In addition, filtering information from the information decoded by the entropy decoding unit 310 may be provided to the filtering unit 350. Meanwhile, a receiving unit (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 receiving unit may be a component of the entropy decoding unit 310. Meanwhile, the decoding device according to the present document may be called a video / image / picture decoding device, and the decoding device may be divided into an information decoder (video / image / picture information decoder) and a sample decoder (video / image / picture sample decoder). The information decoder may include the entropy decoding unit 310, and the sample decoder may include at least one of the inverse quantization unit 321, the inverse transform unit 322, the prediction unit 330, the addition unit 340, the filtering unit 350, and the memory 360.

[0066] The inverse quantization unit 321 may inverse quantize the quantized transform coefficients to output transform coefficients. The inverse quantization unit 321 may rearrange the quantized transform coefficients in a two-dimensional block form. In this case, the rearrangement may be performed based on a coefficient scan order performed in an encoding apparatus. The inverse quantization unit 321 may perform inverse quantization on the quantized transform coefficients using a quantization parameter (e.g., quantization step size information) to obtain transform coefficients.

[0067] The inverse transform unit 322 inversely transforms the transform coefficients to obtain a residual signal (residual block, residual sample array).

[0068] The prediction unit may perform prediction on a current block and generate a predicted block including prediction samples for the current block. The prediction unit may determine whether intra prediction or inter prediction is applied to the current block based on information on the prediction output from the entropy decoding unit 310, and may determine a specific intra / inter prediction mode.

[0069] The predictor may generate a prediction signal based on various prediction methods described below. For example, the predictor may apply intra prediction or inter prediction for prediction of one block, and may simultaneously apply intra prediction and inter prediction. This may be called combined inter and intra prediction (CIIP). The predictor may also perform intra block copy (IBC) for prediction of a block. The intra block copy may be used for content image / moving image coding such as games, for example, as in screen content coding (SCC). IBC basically performs prediction within a current picture, but may be performed similarly to inter prediction in that a reference block is derived within the current picture. That is, IBC may use at least one of the inter prediction techniques described in this document.

[0070] The intra prediction unit 332 may predict the current block by referring to samples in the current picture. The referenced samples may be located in the neighborhood of the current block or may be located far away depending on the prediction mode. In intra prediction, the prediction mode may include a plurality of non-directional modes and a plurality of directional modes. The intra prediction unit 332 may also determine the prediction mode to be applied to the current block by using the prediction mode applied to the neighboring block.

[0071] The inter prediction unit 331 may derive a predicted block for the current block based on a reference block (reference sample array) identified by a motion vector on a reference picture. In this case, in order to reduce the amount of motion information transmitted in the inter prediction mode, the motion information may be predicted in units of blocks, sub-blocks, or samples based on the correlation of motion information between neighboring blocks and the current block. The motion information may include a motion vector and a reference picture index. The motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter prediction, the neighboring blocks may include a spatial neighboring block present in the current picture and a temporal neighboring block present in the reference picture. For example, the inter prediction unit 331 may configure a motion information candidate list based on the neighboring blocks, and derive a motion vector and / or a reference picture index for the current block based on the received candidate selection information. Inter prediction may be performed based on various prediction modes, and the information regarding the prediction may include information indicating a mode of inter prediction for the current block.

[0072] The adder 340 may generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the acquired residual signal to the prediction signal (predicted block, predicted sample array) output from the prediction unit 330. When there is no residual for the current block, such as when the skip mode is applied, the predicted block may be used as the reconstructed block.

[0073] The adder 340 may be referred to as a reconstruction unit or a reconstruction block generator. The generated reconstruction signal may be used for intra prediction of a next block to be processed in a current picture, may be output after filtering as described below, or may be used for inter prediction of a next picture.

[0074] Meanwhile, luma mapping with chroma scaling (LMCS) can be applied during the picture decoding process.

[0075] The filtering unit 350 may apply filtering to the reconstructed signal to improve subjective / objective image quality. For example, the filtering unit 350 may apply various filtering methods to the reconstructed picture to generate a modified reconstructed picture, and may transmit the modified reconstructed picture to the memory 360, specifically, to the DPB of the memory 360. The various filtering methods may include, for example, deblocking filtering, sample adaptive offset, an adaptive loop filter, a bilateral filter, etc.

[0076] The (modified) reconstructed picture stored in the DPB of the memory 360 may be used as a reference picture in the inter prediction unit 331. The memory 360 may store motion information of a block from which motion information in the current picture is derived (or decoded) and / or motion information of a block in an already reconstructed picture. The stored motion information may be transmitted to the inter prediction unit 331 to be used as motion information of a spatial neighboring block or motion information of a temporal neighboring block. The memory 360 may store reconstructed samples of reconstructed blocks in the current picture and transmit them to the intra prediction unit 332.

[0077] In this specification, the embodiments described for the prediction unit 330, inverse quantization unit 321, inverse transform unit 322, and filtering unit 350 of the decoding device 300 can be applied identically or correspondingly to the prediction unit 220, inverse quantization unit 234, inverse transform unit 235, and filtering unit 260 of the encoding device 200, respectively.

[0078] Meanwhile, as described above, prediction is performed to improve compression efficiency when performing video coding. As a result, a predicted block including predicted samples for a current block, which is a block to be coded, can be generated. Here, the predicted block includes predicted samples in a spatial domain (or a pixel domain). The predicted block is derived in the same way by an encoding device and a decoding device, and the encoding device can improve image coding efficiency by signaling information (residual information) about the residual between the original block and the predicted block, which is not an original sample value of the original block, to a decoding device. The decoding device can derive a residual block including residual samples based on the residual information, and generate a reconstructed block including reconstructed samples by adding the residual block and the predicted block, and generate a reconstructed picture including the reconstructed block.

[0079] The residual information may be generated through a transform and quantization procedure. For example, the encoding apparatus may derive a residual block between the original block and the predicted block, perform a transform procedure on the residual samples (residual sample array) included in the residual block to derive transform coefficients, and perform a quantization procedure on the transform coefficients to derive quantized transform coefficients, and then signal the related residual information (through a bitstream) to the decoding apparatus. Here, the residual information may include information such as value information, position information, transform technique, transform kernel, and quantization parameter of the quantized transform coefficients. The decoding apparatus may derive a residual sample (or a residual block) by performing an inverse quantization / inverse transform procedure based on the residual information. The decoding apparatus may generate a reconstructed picture based on the predicted block and the residual block. In addition, the encoding apparatus may derive a residual block by inverse quantizing / inverse transforming the quantized transform coefficients for reference for inter-prediction of a future picture, and generate a reconstructed picture based on the residual block.

[0080] FIG. 4 illustrates a schematic of the multiple conversion technique according to this document.

[0081] Referring to FIG. 4, the conversion unit may correspond to the conversion unit in the encoding device of FIG. 2 described above, and the inverse conversion unit may correspond to the inverse conversion unit in the encoding device of FIG. 2 described above or the inverse conversion unit in the decoding device of FIG. 3.

[0082] The transform unit may derive (primary) transform coefficients by performing a primary transform based on the residual samples (residual sample array) in the residual block (S410). Such a primary transform may be called a core transform. Here, the primary transform may be based on Multiple Transform Selection (MTS), and may be called a multiple core transform when multiple transforms are applied in the primary transform.

[0083] For example, the multi-kernel transform may refer to a method of transforming by additionally using a Discrete Cosine Transform (DCT) type 2 (DCT-II), a Discrete Sine Transform (DST) type 7 (DST-VII), a DCT type 8 (DCT-VIII), and / or a DST type 1 (DST-I). That is, the multi-kernel transform may refer to a transform method of transforming a residual signal (or a residual block) in a spatial domain into a transform coefficient (or a first transform coefficient) in a frequency domain based on a plurality of transform kernels selected from the DCT type 2, the DST type 7, the DCT type 8, and the DST type 1. Here, the first transform coefficient may be called a temporary transform coefficient on the transform unit side.

[0084] That is, when the existing transform method is applied, a transform coefficient may be generated by applying a spatial domain to frequency domain transform to the residual signal (or residual block) based on DCT type 2. However, differently, when the multi-kernel transform is applied, a transform coefficient (or primary transform coefficient) may be generated by applying a spatial domain to frequency domain transform to the residual signal (or residual block) based on DCT type 2, DST type 7, DCT type 8, and / or DST type 1, etc. Here, DCT type 2, DST type 7, DCT type 8, DST type 1, etc. may be called a transform type, a transform kernel, or a transform core. Such DCT / DST transform types may be defined based on basis functions.

[0085] When the multi-kernel transform is performed, a vertical transform kernel and / or a horizontal transform kernel for a current block may be selected from the transform kernels, and a vertical transform for the current block may be performed based on the vertical transform kernel, and a horizontal transform for the current block may be performed based on the horizontal transform kernel. Here, the horizontal transform may indicate a transform for a horizontal component of the current block, and the vertical transform may indicate a transform for a vertical component of the current block. The vertical transform kernel / horizontal transform kernel may be adaptively determined based on a prediction mode and / or a transform index of a current block (CU or sub-block) including a residual block.

[0086] Alternatively, for example, when applying MTS to perform a linear transform, a specific basis function may be set to a predetermined value, and a mapping relationship for a transform kernel may be set by combining what basis function is applied when performing a vertical transform or horizontal transform. For example, when a horizontal transform kernel is represented by trTypeHor and a vertical transform kernel is represented by trTypeVer, trTypeHor or trTypeVer having a value of 0 may be set to DCT2, trTypeHor or trTypeVer having a value of 1 may be set to DST7, and trTypeHor or trTypeVer having a value of 2 may be set to DCT8.

[0087] Alternatively, for example, an MTS index may be encoded to indicate any one of a number of transform kernel sets, and the MTS index information may be signaled to a decoding device. Here, the MTS index may be represented by a tu_mts_idx syntax element or an mts_idx syntax element. For example, when the MTS index is 0, it may indicate that the trTypeHor and trTypeVer values ​​are all 0, when the MTS index is 1, it may indicate that the trTypeHor and trTypeVer values ​​are all 1, when the MTS index is 2, it may indicate that the trTypeHor value is 2 and the trTypeVer value is 1, when the MTS index is 3, it may indicate that the trTypeHor value is 1 and the trTypeVer value is 2, and when the MTS index is 4, it may indicate that the trTypeHor and trTypeVer values ​​are all 2. For example, the transform kernel set according to the MTS index may be represented as shown in the following table.

[0088] [Table 1]

[0089] The transform unit may perform a secondary transform based on the (primary) transform coefficients to derive modified (secondary) transform coefficients (S420). The primary transform is a transform from a spatial domain to a frequency domain, and the secondary transform may be used to transform the (primary) transform coefficients into a more compressed representation by utilizing correlations existing between the (primary) transform coefficients.

[0090] For example, the secondary transform may include a non-separable transform. In this case, the secondary transform may be referred to as a non-separable secondary transform (NSST) or a mode-dependent non-separable secondary transform (MDNSST). The non-separable secondary transform may refer to a transform in which the (primary) transform coefficients derived through the primary transform are subjected to a secondary transform based on a non-separable transform matrix to generate modified transform coefficients (or secondary transform coefficients) for a residual signal. Here, a transform may be applied at once to the (primary) transform coefficients based on the non-separable transform matrix without applying a vertical transform and a horizontal transform separately (or a horizontal transform and a vertical transform independently).

[0091] That is, the non-separable secondary transform may refer to a transform method in which, for example, a two-dimensional signal (transform coefficient) is realigned to a one-dimensional signal via a specific direction (e.g., row-first direction or column-first direction) without separating the vertical and horizontal components of the (first-order) transform coefficients, and then modified transform coefficients (or second-order transform coefficients) are generated based on the non-separable transform matrix.

[0092] For example, row-major orientation (or ordering) may refer to an M×N block being arranged in a row order of 1st row, 2nd row, ..., Nth row, and column-major orientation (or ordering) may refer to an M×N block being arranged in a row order of 1st column, 2nd column, ..., Mth column, where M and N may refer to the width (W) and height (H) of the block, respectively, and are all positive integers.

[0093] For example, the non-separable secondary transform may be applied to a top-left region of a block (hereinafter, referred to as a transform coefficient block) composed of (first-order) transform coefficients. For example, if the width (W) and height (H) of the transform coefficient block are all equal to or greater than 8, an 8×8 non-separable secondary transform may be applied to the top-left 8×8 region of the transform coefficient block. Also, if the width (W) and height (H) of the transform coefficient block are all equal to or greater than 4 and the width (W) or height (H) of the transform coefficient block is less than 8, a 4×4 non-separable secondary transform may be applied to the top-left min(8,W)×min(8,H) region of the transform coefficient block. However, the embodiment is not limited thereto. For example, even if only the condition that the width (W) or height (H) of the transform coefficient block is equal to or greater than 4 is satisfied, a 4×4 non-separable secondary transform may be applied to the top-left min(8,W)×min(8,H) region of the transform coefficient block.

[0094] Specifically, for example, if a 4×4 input block is used, the non-separable quadratic transform can be performed as follows:

[0095] The 4×4 input block X is denoted as follows:

[0096]

number

[0097] For example, the vector form of X may be represented as follows:

[0098]

number

[0099] Referring to Equation 2, TIFF2024150650000005.tif64 can represent a vector X, which is represented by rearranging the two-dimensional block of X in Equation 1 into a one-dimensional vector in row-first order.

[0100] In this case, the second-order non-separable transform can be calculated as follows:

[0101]

number

[0102] Where: TIFF2024150650000007.tif64 may indicate a transform coefficient vector, and T may indicate a 16x16 (non-separable) transform matrix.

[0103] Based on the formula 3, the size of 16×1 TIFF2024150650000008.tif64 can be derived, TIFF2024150650000009.tif64 can be re-organized into 4x4 blocks via the scan order (horizontal, vertical, diagonal, etc.). However, the above calculation is only an example, and in order to reduce the computational complexity of the non-separable quadratic transform, HyGT (Hypercube-Givens Transform) etc. can also be used to calculate the non-separable quadratic transform.

[0104] Meanwhile, the non-separable secondary transform may be a mode dependent transform kernel (or transform core, transform type), where the mode may include an intra prediction mode and / or an inter prediction mode.

[0105] For example, as described above, the non-separable secondary transform may be performed based on an 8×8 transform or a 4×4 transform determined based on the width (W) and height (H) of the transform coefficient block. For example, the 8×8 transform may indicate a transform that may be applied to an 8×8 region included in a corresponding transform coefficient block when W and H are all equal to or greater than 8, and the 8×8 region is an upper left 8×8 region in the corresponding transform coefficient block. Similarly, the 4×4 transform may indicate a transform that may be applied to a 4×4 region included in a corresponding transform coefficient block when W and H are all equal to or greater than 4, and the 4×4 region is an upper left 4×4 region in the corresponding transform coefficient block. For example, the 8×8 transform kernel matrix may be a 64×64 / 16×64 matrix, and the 4×4 transform kernel matrix may be a 16×16 / 8×16 matrix.

[0106] At this time, for mode-based transform kernel selection, two non-separable quadratic transform kernels may be configured per transform set for non-separable quadratic transform for both 8×8 transform and 4×4 transform, and the number of transform sets is four. That is, four transform sets may be configured for the 8×8 transform, and four transform sets may be configured for the 4×4 transform. In this case, each of the four transform sets for the 8×8 transform may include two 8×8 transform kernels, and each of the four transform sets for the 4×4 transform may include two 4×4 transform kernels.

[0107] However, the size of the transform, the number of sets, and the number of transform kernels in a set are merely examples, and sizes other than 8×8 or 4×4 may be used, or n sets may be constructed with k transform kernels in each set, where n and k are each a positive integer.

[0108] For example, the transform set may be referred to as an NSST set, and the transform kernels in the NSST set may be referred to as NSST kernels. For example, the selection of a particular set from among the transform sets may be performed based on an intra-prediction mode of a current block (CU or sub-block).

[0109] For example, the intra prediction modes may include two non-directional or non-angular intra prediction modes and 65 directional or angular intra prediction modes. The non-directional intra prediction modes may include a planar intra prediction mode numbered 0 and a DC intra prediction mode numbered 1, and the directional intra prediction modes may include 65 intra prediction modes numbered 2 to 66. However, this is merely an example, and the embodiment of this document may be applied to cases where the number of intra prediction modes is different. Meanwhile, in some cases, a 67th intra prediction mode may also be used, and the 67th intra prediction mode may indicate a linear model (LM) mode.

[0110] FIG. 5 exemplarily shows intra-directional modes of 65 prediction directions.

[0111] Referring to Figure 5, intra prediction modes having horizontal directionality and intra prediction modes having vertical directionality may be distinguished with respect to the 34th intra prediction mode having a left-up diagonal prediction direction. H and V in Figure 5 may represent horizontal directionality and vertical directionality, respectively, and numbers from -32 to 32 may represent displacements of 1 / 32 units on a sample grid position. This may represent an offset for a mode index value.

[0112] For example, the 2nd to 33rd intra prediction modes may have a horizontal directionality, and the 34th to 66th intra prediction modes may have a vertical directionality. Meanwhile, the 34th intra prediction mode may be considered to have neither horizontal nor vertical directionality strictly speaking, but may be classified as belonging to the horizontal directionality in terms of determining a transformation set for the secondary transformation. This is because the input data is transposed and used for the vertical direction modes symmetrical with respect to the 34th intra prediction mode, and the input data arrangement method for the horizontal direction modes is used for the 34th intra prediction mode. Here, transposing the input data may mean that rows become columns and columns become rows for 2D block data M×N to form N×M data.

[0113] In addition, the 18th intra prediction mode and the 50th intra prediction mode may indicate a horizontal intra prediction mode and a vertical intra prediction mode, respectively, and the 2nd intra prediction mode may be called a right-upper diagonal intra prediction mode because it predicts in a right-upper direction using a left reference pixel. Similarly, the 34th intra prediction mode may be called a right-downper diagonal intra prediction mode, and the 66th intra prediction mode may be called a left-downper diagonal intra prediction mode.

[0114] Meanwhile, when it is determined that a specific set is used for non-separable transform, one of k transform kernels in the specific set may be selected through a non-separable secondary transform index. For example, the encoding apparatus may derive a non-separable secondary transform index indicating a specific transform kernel based on a rate-distortion (RD) check, and may signal the non-separable secondary transform index to a decoding apparatus. For example, the decoding apparatus may select one of k transform kernels in the specific set based on the non-separable secondary transform index. For example, an NSST index having a value of 0 may indicate a first non-separable secondary transform kernel, an NSST index having a value of 1 may indicate a second non-separable secondary transform kernel, and an NSST index having a value of 2 may indicate a third non-separable secondary transform kernel. Alternatively, an NSST index having a value of 0 may indicate that a first non-separable secondary transform is not applied to a target block, and an NSST index having a value of 1 to 3 may indicate the three transform kernels.

[0115] The transform unit may perform the non-separable quadratic transform based on a selected transform kernel to obtain modified (quadratic) transform coefficients. The modified transform coefficients may be derived as quantized transform coefficients via a quantizer as described above, and may be encoded and signaled to a decoding device and transmitted to an inverse quantization / inverse transform unit in the encoding device.

[0116] On the other hand, as described above, when the secondary transform is omitted, the (primary) transform coefficients, which are the output of the primary (separate) transform, can be derived as quantized transform coefficients through a quantization unit as described above, and can be encoded and signaled to a decoding device and transmitted to an inverse quantization / inverse transform unit within the encoding device.

[0117] Referring again to FIG. 4, the inverse transform unit may perform a series of steps in the reverse order of the steps performed by the transform unit described above. The inverse transform unit may receive (dequantized) transform coefficients, perform a secondary (inverse) transform to derive (primary) transform coefficients (S450), and perform a primary (inverse) transform on the (primary) transform coefficients to obtain residual blocks (residual samples) (S460). Here, the primary transform coefficients may be referred to as modified transform coefficients at the inverse transform unit side. As described above, the encoding device and / or the decoding device may generate a reconstructed block based on the residual block and a predicted block, and may generate a reconstructed picture based on the reconstructed block.

[0118] Meanwhile, the decoding apparatus may further include a secondary inverse transform application determining unit (or an element for determining whether to apply the secondary inverse transform) and a secondary inverse transform determining unit (or an element for determining the secondary inverse transform). For example, the secondary inverse transform application determining unit may determine whether to apply the secondary inverse transform. For example, the secondary inverse transform is NSST or RST, and the secondary inverse transform application determining unit may determine whether to apply the secondary inverse transform based on a secondary transform flag parsed or acquired from the bitstream. Alternatively, for example, the secondary inverse transform application determining unit may determine whether to apply the secondary inverse transform based on a transform coefficient of a residual block.

[0119] The secondary inverse transform decision unit may determine a secondary inverse transform. At this time, the secondary inverse transform decision unit may determine a secondary inverse transform to be applied to a current block based on an NSST (or RST) transform set designated according to an intra prediction mode. Alternatively, the secondary transform decision method may be determined depending on a primary transform decision method. Alternatively, various combinations of the primary transform and the secondary transform may be determined according to an intra prediction mode. For example, the secondary inverse transform decision unit may determine an area to which the secondary inverse transform is applied based on a size of the current block.

[0120] Meanwhile, as described above, when the second (inverse) transform is omitted, a residual block (residual sample) can be obtained by receiving (dequantized) transform coefficients and performing the first (separate) inverse transform. The encoding device and / or the decoding device can generate a reconstructed block based on the residual block and a predicted block, and can generate a reconstructed picture based on the reconstructed block, as described above.

[0121] Meanwhile, in this paper, in order to reduce the computational complexity and memory requirements due to non-separable secondary transform, RST (reduced secondary transform) can be applied, in which the size of the transformation matrix (kernel) is reduced based on the concept of NSST.

[0122] In this document, RST may refer to a (simplified) transformation performed on residual samples for a target block based on a transform matrix whose size is reduced by a simplification factor. When this is performed, the amount of calculation required during transformation can be reduced by reducing the size of the transform matrix. That is, RST can be used to solve the computational complexity problem that occurs during transformation of a large block or non-separable transformation.

[0123] For example, the RST may be called by various terms such as a reduced transform, a reduced secondary transform, a reduction transform, a simplified transform, or a simple transform, and the names by which the RST is called are not limited to the listed examples. Alternatively, the RST may be called a Low-Frequency Non-Separable Transform (LFNST) since it is mainly performed in a low-frequency domain including non-zero coefficients in a transform block.

[0124] Meanwhile, when the secondary inverse transform is performed based on the RST, the inverse transform unit 235 of the encoding apparatus 200 and the inverse transform unit 322 of the decoding apparatus 300 may include an inverse RST unit for deriving modified transform coefficients based on the inverse RST for the transform coefficients, and an inverse linear transform unit for deriving residual samples for the target block based on an inverse linear transform for the modified transform coefficients. The inverse linear transform refers to an inverse transform of a linear transform applied to the residual. In this document, deriving transform coefficients based on a transform may refer to deriving transform coefficients by applying the corresponding transform.

[0125] 6 and 7 are diagrams for explaining a RST according to an embodiment of this document.

[0126] For example, Figure 6 is a diagram for explaining application of a forward reduced transform, and Figure 7 is a diagram for explaining application of an inverse reduced transform. In this document, a target block may refer to a current block, a residual block, or a transformed block on which coding is performed.

[0127] For example, in RST, an N-dimensional vector can be mapped to an R-dimensional vector located in a different space to determine a reduced transformation matrix. Here, N and R are each positive integers, and R is smaller than N. N may represent the square of the length of one side of a block to which a transformation is applied or the total number of transformation coefficients corresponding to a block to which a transformation is applied, and the simplification factor may represent an R / N value. The simplification factor may be referred to by various terms such as a reduced factor, a reduction factor, a simplified factor, or a simple factor. Meanwhile, R may be referred to as a reduced coefficient, but in some cases, the simplification factor may represent R. In addition, in some cases, the simplification factor may represent an N / R value.

[0128] For example, but not limited to, the simplification factors or reduced coefficients may be signaled via a bitstream. For example, predefined values ​​for the simplification factors or reduced coefficients may be stored in each encoding device 200 and decoding device 300, in which case the simplification factors or reduced coefficients are not separately signaled.

[0129] For example, the size of the simplified transformation matrix (R×N) is smaller than the size of the normal transformation matrix (N×N), and can be defined as the following formula:

[0130]

number

[0131] For example, the matrix T in the reduced transform block shown in FIG. 6 is the matrix T in Equation 4. R×N As shown in Fig. 6, the simplified transformation matrix T R×N When multiplied by, the transform coefficients for the current block can be derived.

[0132] For example, if the size of the block to which the transform is applied is 8×8 and R is 16 (i.e., R / N=16 / 64=1 / 4), the RST according to Fig. 6 can be expressed by a matrix operation as shown in the following Equation 5. In this case, the memory and multiplication operations can be reduced to about 1 / 4 due to the simplification factor.

[0133] In this document, a matrix operation may be understood as an operation in which a matrix is ​​placed to the left of a column vector and the matrix and the column vector are multiplied to obtain the column vector.

[0134]

number

[0135] In Formula 5, r1 to r 64 may represent a residual sample for the current block, or may be a transform coefficient generated by applying a linear transform. i can be derived.

[0136] For example, if R is 16, the transform coefficients c1 to c2 for the current block are 16can be derived. If a regular transform is applied instead of the RST and a transform matrix having a size of 64×64 (N×N) is multiplied by the residual samples having a size of 64×1 (N×1), 64 (N) transform coefficients for the current block are derived, but since the RST is applied, only 16 (R) transform coefficients for the current block are derived. Since the total number of transform coefficients for the current block is reduced from N to R, the amount of data transmitted from the encoding apparatus 200 to the decoding apparatus 300 is reduced, and therefore the transmission efficiency between the encoding apparatus 200 and the decoding apparatus 300 can be increased.

[0137] Considering the size of the transformation matrix, the size of the normal transformation matrix is ​​64x64 (NxN), whereas the size of the simplified transformation matrix is ​​reduced to 16x64 (RxN), so compared to performing normal transformation, memory usage can be reduced by the ratio R / N when performing RST. Also, compared to the number of multiplications NxN when using the normal transformation matrix, the number of multiplications can be reduced by the ratio R / N when using the simplified transformation matrix (RxN).

[0138] In one embodiment, the transform unit 232 of the encoding apparatus 200 may derive transform coefficients for the current block by performing a primary transform and an RST-based secondary transform on the residual samples for the current block. Such transform coefficients may be transmitted to an inverse transform unit of the decoding apparatus 300, and the inverse transform unit 322 of the decoding apparatus 300 may derive modified transform coefficients based on an inverse reduced secondary transform (RST) for the transform coefficients, and derive residual samples for the current block based on an inverse primary transform for the modified transform coefficients.

[0139] Inverse RST matrix T according to one embodiment N×RThe size of the simplified transformation matrix T R×N It is in a transpose relationship with.

[0140] The matrix T in the reduced inverse transform block shown in FIG. t is the inverse RST matrix T R×N T Here, the superscript T can indicate a transpose. As shown in FIG. 7, the inverse RST matrix T R×N T When the inverse RST matrix T is multiplied, modified transform coefficients for the current block or residual samples for the current block can be derived. R×N T is (T R×N ) T N×R It can also be expressed as:

[0141] More specifically, when the inverse RST is applied to the secondary inverse transform, the inverse RST matrix T R×N T Alternatively, an inverse RST may be applied to the inverse linear transform, in which case the inverse RST matrix T R×N T Once multiplied by, the residual sample for the current block can be derived.

[0142] In one embodiment, when the size of the block to which the inverse transform is applied is 8×8 and R is 16 (i.e., R / N=16 / 64=1 / 4), the RST according to FIG. 7 can be expressed by a matrix operation as shown in Equation 6 below.

[0143]

number

[0144] In Formula 6, c1 to c 16 may represent the transform coefficients for the target block. r represents the modified transform coefficients for the target block or the residual samples for the target block based on the calculation result of Equation 6. j That is, r1 through r2 denote the modified transform coefficients for the current block or the residual samples for the current block. N can be derived.

[0145] Considering the size of the inverse transformation matrix, the size of the normal inverse transformation matrix is ​​64×64 (N×N), whereas the size of the simplified inverse transformation matrix is ​​reduced to 64×16 (N×R), so compared to performing normal inverse transformation, memory usage can be reduced by a ratio of R / N when performing inverse RST. Also, compared to the number of multiplications N×N when using the normal inverse transformation matrix, the number of multiplications can be reduced by a ratio of R / N when using the simplified inverse transformation matrix (N×R).

[0146] Meanwhile, a transform set can be configured and applied to the 8x8 RST. That is, the corresponding 8x8 RST can be applied depending on the transform set. Since one transform set is composed of two or three transform kernels according to the prediction mode in the screen, it can be configured to select one from up to four transforms including the case where the secondary transform is not applied. When the secondary transform is not applied, the transform is considered to be applied with an identity matrix. When the four transforms are assigned indexes of 0, 1, 2, or 3 (for example, the 0th index can be assigned to the identity matrix, i.e., when the secondary transform is not applied), a syntax element called an NSST index can be signaled for each transform coefficient block to specify the transform to be applied. That is, an 8x8 NSST can be specified for an 8x8 upper left block through the NSST index, and an 8x8 RST can be specified in the RST configuration. 8×8NSST and 8×8RST may indicate a transformation that can be applied to an 8×8 region included in a corresponding transform coefficient block when W and H of a target block to be transformed are all equal to or greater than 8, and the 8×8 region is an upper left 8×8 region inside the corresponding transform coefficient block. Similarly, 4×4NSST and 4×4RST may indicate a transformation that can be applied to a 4×4 region included in a corresponding transform coefficient block when W and H of a target block are all equal to or greater than 4, and the 4×4 region is an upper left 4×4 region inside the corresponding transform coefficient block.

[0147] Meanwhile, for example, the encoding apparatus may derive a bitstream by encoding the values ​​of syntax elements or quantized values ​​of transform coefficients related to residuals based on various coding methods such as exponential Golomb, CAVLC (context-adaptive variable length coding), CABAC (context-adaptive binary arithmetic coding), etc. Also, the decoding apparatus may decode the bitstream based on various coding methods such as exponential Golomb coding, CAVLC, CABAC, etc., and derive the values ​​of syntax elements required for image restoration or quantized values ​​of transform coefficients related to residuals, etc.

[0148] For example, the coding method described above can be performed as follows.

[0149] FIG. 8 illustrates an exemplary context-adaptive binary arithmetic coding (CABAC) for encoding syntax elements.

[0150] For example, in the process of coding CABAC, if an input signal is a syntax element that is not a binary value, the encoding apparatus may convert the input signal into a binary value by binarizing the value of the input signal. Also, if the input signal is already a binary value (i.e., the value of the input signal is a binary value), the input signal may be used as is without performing binarization. Here, each binary digit 0 or 1 constituting a binary value may be referred to as a bin. For example, if a binary string after binarization is 110, each of 1, 1, and 0 may be represented as one bin. The bin for one syntax element may indicate the value of the syntax element. Such binarization may be based on various binarization methods such as a truncated rice binarization process or a fixed-length binarization process, and the binarization method for a target syntax element may be predefined. The binarization procedure may be performed by a binarization unit in an entropy encoding unit.

[0151] Thereafter, the binarized bin of the syntax element may be input to a regular coding engine or a bypass coding engine. The regular coding engine of the encoding device may assign a context model reflecting a probability value to the corresponding bin, and may encode the corresponding bin based on the assigned context model. The regular coding engine of the encoding device may update the context model for the corresponding bin after performing coding for each bin. A bin coded as described above may be referred to as a context-coded bin.

[0152] Meanwhile, when the binarized bin of the syntax element is input to the bypass coding engine, it can be coded as follows. For example, the bypass coding engine of the encoding device can omit a procedure of estimating a probability for an input bin and a procedure of updating a probability model applied to the bin after coding. When bypass coding is applied, the encoding device can code the input bin by applying a uniform probability distribution instead of allocating a context model, thereby improving the encoding speed. A bin coded as described above can be referred to as a bypass bin.

[0153] Entropy decoding can refer to a process of performing the same process as the entropy encoding in reverse order.

[0154] A decoding device (entropy decoding unit) may decode encoded image / video information. The image / video information may include partitioning-related information, prediction-related information (e.g., inter / intra prediction classification information, intra prediction mode information, inter prediction mode information, etc.), residual information, in-loop filtering-related information, etc., or may include various syntax elements related thereto. The entropy coding may be performed on a syntax element basis.

[0155] The decoding apparatus may perform binarization on the target syntax element. Here, the binarization may be based on various binarization methods, such as a truncated rice binarization process or a fixed-length binarization process, and the binarization method for the target syntax element may be predefined. The decoding apparatus may derive usable bin strings (bin string candidates) for usable values ​​of the target syntax element through the binarization procedure. The binarization procedure may be performed by a binarization unit in an entropy decoding unit.

[0156] The decoding device can sequentially decode or parse each bin for the target syntax element from the input bits in the bitstream, and compare the derived bin string with the available bin string for the corresponding syntax element. If the derived bin string is the same as one of the available bin strings, a value corresponding to the corresponding bin string is derived as the value of the corresponding syntax element. If not, the next bit in the bitstream can be parsed again and the above procedure can be performed again. Through this process, the corresponding information can be signaled using variable length bits without using start bits or end bits for specific information (or specific syntax element) in the bitstream. This allows relatively fewer bits to be allocated to low values, improving overall coding efficiency.

[0157] The decoding device may decode each bin in the bin string from the bitstream based on an entropy coding technique such as CABAC or CAVLC based on a context model or based on a bypass.

[0158] When a syntax element is decoded based on a context model, a decoding device may receive a bin corresponding to the syntax element through a bitstream, may determine a context model using the syntax element and decoding information of a block to be decoded or an adjacent block, or information of a symbol / bin decoded in a previous step, and may derive a value of the syntax element by predicting an occurrence probability of the received bin according to the determined context model and performing arithmetic decoding of the bin. Thereafter, a context model of a bin to be decoded next may be updated based on the determined context model.

[0159] A context model may be assigned and updated for each bin that is context coded (regularly coded), and the context model may be indicated based on a context index (ctxIdx: context index) or a context index increment (ctxInc: context index increment). ctxIdx may be derived based on ctxInc. Specifically, for example, ctxIdx indicating a context model for each of the normally coded bins may be derived as a sum of ctxInc and a context index offset (ctxIdxOffset: context index offset). For example, the ctxInc may be derived differently for each bin. The ctxIdxOffset is indicated by the lowest value of the ctxIdx. The ctxIdxOffset is a value generally used for distinction from context models for other syntax elements, and a context model for one syntax element may be distinguished or derived based on ctxInc.

[0160] In the entropy encoding procedure, it can be determined whether to perform encoding through a regular coding engine or through a bypass coding engine, and the coding path can be switched accordingly. Entropy decoding can perform the same process as entropy encoding in the reverse order.

[0161] Meanwhile, for example, when a syntax element is bypass decoded, the decoding device may receive a bin corresponding to the syntax element through a bitstream and may decode the input bin by applying a uniform probability distribution. In this case, the decoding device may omit a procedure of deriving a context model of the syntax element and a procedure of updating the context model applied to the bin after decoding.

[0162] As described above, the residual samples may be derived as quantized transform coefficients through a transform and quantization process. The quantized transform coefficients are also called transform coefficients. In this case, the transform coefficients in the block may be signaled in the form of residual information. The residual information may include syntax or syntax elements related to residual coding. For example, an encoding device may encode the residual information and output it in the form of a bitstream, and a decoding device may decode the residual information from the bitstream to derive the residual (quantized) transform coefficients. The residual information may include syntax elements indicating whether a transform has been applied to the corresponding block, where the last valid transform coefficient in the block is located, whether a valid transform coefficient exists in a sub-block, or what the magnitude / sign of the valid transform coefficient is, as described below.

[0163] Meanwhile, for example, a predictor in the encoding apparatus of Fig. 2 or a predictor in the decoding apparatus of Fig. 3 may perform intra prediction. The intra prediction will be described in more detail below.

[0164] Intra prediction may refer to a prediction that generates a prediction sample for a current block based on a reference sample in a picture to which the current block belongs (hereinafter, referred to as a current picture). When intra prediction is applied to a current block, neighboring reference samples used for intra prediction of the current block may be derived. The neighboring reference samples of the current block may include a sample adjacent to the left boundary of the current block having a size of nW×nH and a total of 2×nH samples adjacent to the bottom-left side, a sample adjacent to the top boundary of the current block and a total of 2×nW samples adjacent to the top-right side, and one sample adjacent to the top-left side of the current block. Alternatively, the neighboring reference samples of the current block may include upper neighboring samples of multiple columns and left neighboring samples of 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 having a size of nW×nH, a total of nW samples adjacent to the bottom boundary of the current block, and one sample adjacent to the bottom-right of the current block.

[0165] However, some of the neighboring reference samples of the current block may not yet be decoded or may not be available. In this case, the decoder may substitute the unavailable samples as available samples to construct neighboring reference samples to be used for prediction. Alternatively, the decoder may construct neighboring reference samples to be used for prediction through interpolation of available samples.

[0166] When a neighboring reference sample is derived, (i) a predicted sample can be derived based on an average or an interpolation of neighboring reference samples of the current block, or (ii) the predicted sample can be derived based on a reference sample that exists in a specific (prediction) direction with respect to the predicted sample among the neighboring reference samples of the current block. The case (i) can be called a non-directional mode or a non-angular mode, and the case (ii) can be called a directional mode or an angular mode.

[0167] In addition, the prediction sample may be generated by interpolating the second adjacent sample and the first adjacent sample located in the opposite direction of the prediction direction of the intra prediction mode of the current block based on the adjacent reference samples. The above case may be called Linear Interpolation Intra Prediction (LIP). Also, a chroma prediction sample may be generated based on a luma sample using a linear model. In this case, it may be called a linear model (LM) mode. Also, a temporary prediction sample of the current block may be derived based on a filtered adjacent reference sample, and the prediction sample of the current block may be derived by performing a weighted sum of at least one reference sample derived according to the intra prediction mode among the existing adjacent reference samples, i.e., the non-filtered adjacent reference samples, and the temporary prediction sample. The above case may be called Position Dependent Intra Prediction (PDPC). Also, the intra prediction coding can be performed by selecting a reference sample line with the highest prediction accuracy from among the adjacent multiple reference sample lines of the current block, deriving a prediction sample using a reference sample located in the prediction direction on the corresponding line, and instructing (signaling) the reference sample line used at this time to a decoding device. The above case can be called multi-reference line (MRL) intra prediction or MRL-based intra prediction. Also, the current block can be divided into vertical or horizontal sub-partitions, and intra prediction can be performed based on the same intra prediction mode, and adjacent reference samples can be derived and used in the sub-partition unit. That is, in this case, the intra prediction mode for the current block is applied to the sub-partitions in the same way, and adjacent reference samples can be derived and used in the sub-partition unit, thereby improving intra prediction performance in some cases.Such a prediction method can be called intra sub-partitions (ISP) or ISP-based intra prediction.

[0168] The above-mentioned intra prediction method may be called an intra prediction type, distinguished from the intra prediction mode. The intra prediction type may be called various terms such as an intra prediction technique or an additional intra prediction mode. For example, the intra prediction type (or the additional intra prediction mode, etc.) may include at least one of the above-mentioned LIP, PDPC, MRL, and ISP. A general intra prediction method excluding a specific intra prediction type such as the LIP, PDPC, MRL, or ISP may be called a normal intra prediction type. The normal intra prediction type may be generally applied when the above-mentioned specific intra prediction type is not applied, and prediction may be performed based on the above-mentioned intra prediction mode. Meanwhile, post-processing filtering may be performed on the derived prediction sample, if necessary.

[0169] That is, the intra prediction procedure may include an intra prediction mode / type determination step, a neighboring reference sample derivation step, and an intra prediction mode / type-based prediction sample derivation step. If necessary, a post-processing filtering step may be performed on the derived prediction sample.

[0170] 9 and 10 show an example in which a block to which an ISP is applied is divided into sub-blocks based on the size of the block.

[0171] Meanwhile, among the above-mentioned intra prediction types, the ISP may divide a current block horizontally or vertically and perform intra prediction in divided block units. That is, the ISP may derive sub-blocks by dividing the current block horizontally or vertically and perform intra prediction for each of the sub-blocks. In this case, a reconstructed block may be generated by performing encoding / decoding in divided sub-block units, and the reconstructed block may be used as a reference block for the next divided sub-block. Here, the sub-block may also be called an intra sub-partition.

[0172] For example, when ISP is applied, based on the size of the current block, the current block may be divided into two or four sub-partitions vertically or horizontally.

[0173] Referring to Fig. 9, if the size of the current block is 4x8 or 8x4, the current block may be divided into two sub-blocks. Referring to Fig. 10, if the size of the current block is a size other than 4x4, 4x8, and 8x4 (i.e., larger than 4x8 or 8x4), the current block may be divided into four sub-blocks.

[0174] For example, for application of an ISP, a flag indicating whether the ISP is applicable may be transmitted on a block basis, and if the ISP is applied to the current block, a flag indicating whether the partition type is horizontal or vertical, i.e., whether the partition direction is horizontal or vertical, may be encoded / decoded. The flag indicating whether the ISP is applicable may be called an ISP flag, and the ISP flag is indicated by an intra_subpartitions_mode_flag syntax element. Also, the flag indicating the partition type may be called an ISP split flag, and the ISP split flag is indicated by an intra_subpartitions_split_flag syntax element.

[0175] For example, the ISP flag or the ISP split flag indicates information indicating that ISP is not applied to the current block (IntraSubPartitionsSplitType==ISP_NO_SPLIT), information indicating that it is split horizontally (IntraSubPartitionsSplitType==ISP_HOR_SPLIT), or information indicating that it is split vertically (IntraSubPartitionsSplitType==ISP_VER_SPLIT). For example, the ISP flag or the ISP split flag is also referred to as ISP-related information regarding subpartitioning of the block.

[0176] Meanwhile, affine linear weighted intra prediction (ALWIP) can be used in addition to the above-mentioned intra prediction types. The ALWIP is also called linear weighted intra prediction (LWIP), matrix weighted intra prediction (MWIP) or matrix based intra prediction (MIP). When the ALWIP is applied to a current block, a prediction sample for the current block can be derived by i) using adjacent reference samples on which an averaging procedure has been performed, ii) performing a matrix-vector-multiplication procedure, and iii) further performing a horizontal / vertical interpolation procedure as necessary.

[0177] The intra prediction mode used for the ALWIP may be configured to be different from the intra prediction mode used in the above-mentioned LIP, PDPC, MRL or ISP intra prediction or normal intra prediction. The intra prediction mode for the ALWIP may be called an ALWIP mode. For example, a matrix and an offset used in the matrix vector multiplication may be set differently depending on the intra prediction mode for the ALWIP. Here, the matrix may be called an (affine) weighted value metric, and the offset may be called an (affine) offset vector or an (affine) bias vector. In this document, the intra prediction mode for ALWIP may also be called an ALWIP mode, an ALWIP intra prediction mode, an LWIP mode, an LWIP intra prediction mode, a MWIP mode, an MWIP intra prediction mode, an MIP mode, or an MIP intra prediction mode. A specific ALWIP method will be described later.

[0178] FIG. 11 is a diagram for explaining MIP for an 8×8 block.

[0179] To predict samples of a rectangular block of width W and height H, MIP can use samples adjacent to the left boundary and samples adjacent to the top boundary of the block. Here, the samples adjacent to the left boundary may indicate samples located on a line adjacent to the left boundary of the block and may indicate reconstructed samples. The samples adjacent to the top boundary may indicate samples located on a line adjacent to the top boundary of the block and may indicate reconstructed samples.

[0180] For example, if reconstructed samples are not available, reconstructed samples can be generated or derived and utilized, similar to conventional intra prediction.

[0181] The predicted signal (or the predicted samples) can be generated based on an averaging process, a matrix vector multiplication process, and a (linear) Interpolation process.

[0182] For example, the averaging process is a process of extracting samples outside the boundary through averaging. For example, the samples to be extracted are 4 samples when the width W and height H are both 4, and 8 samples in other cases. For example, in FIG. 11, bdry left and bdry top may denote the extracted left and top samples, respectively.

[0183] For example, the matrix vector multiplication process is a process of inputting the averaged samples and performing matrix vector multiplication. Or, an offset can be further added. For example, in FIG. 11, A k can be expressed as a matrix, b kcan indicate an offset, bdry red is the reduced signal for the samples extracted through the averaging process. red , bdry left and bdry top The result is a reduced prediction signal (pred red ).

[0184] For example, the (linear) interpolation process is a process in which a predicted signal is generated at the remaining positions from a predicted signal for a subsampled set by linear interpolation. Here, the linear interpolation can refer to a single linear interpolation in each direction. For example, in FIG. 11, the reduced predicted signal (pred red ) and adjacent boundary samples, linear interpolation can be performed through which all prediction samples in the block can be derived.

[0185] For example, the matrix required to generate a predicted signal (or a predicted block, a predicted sample) (in FIG. 11, A k ) and the offset vector (in FIG. 11, b k ) can come from three sets of matrices (S0, S1, and S2). For example, set S0 contains 18 matrices (A0 i , i = 0, 1, ..., 17) and 18 offset vectors (b0 i , i=0, 1, ..., 17), where each of the 18 matrices may have 16 rows and 4 columns, and each of the 18 offset vectors may have a size of 16. The matrices and offset vectors in the set S0 may be used for blocks of size 4x4. For example, the set S1 may consist of 10 matrices (A1 i , i = 0, 1, ..., 9) and 10 offset vectors (b1 i, i=0, 1, ..., 9), where each of the 10 matrices may have 16 rows and 8 columns, and each of the 10 offset vectors may have a size of 16. The matrices and offset vectors in set S1 may be used for blocks of size 4x8, 8x4, or 8x8. For example, set S2 may consist of 6 matrices (A2 i , i = 0, 1, ..., 5) and six offset vectors (b2 i , i=0, 1, ..., 5), where each of the six matrices may have 64 rows and 8 columns, and each of the six offset vectors may have a size of 64. The matrices and offset vectors in set S2 may be used for all remaining blocks.

[0186] Meanwhile, in one embodiment of the present document, LFNST index information for a block to which MIP is applied may be signaled, or an encoding device may generate a bitstream by encoding LFNST index information for transformation of a block to which MIP is applied, and a decoding device may obtain LFNST index information for transformation of a block to which MIP is applied by parsing or decoding the bitstream.

[0187] For example, the LFNST index information is information for distinguishing an LFNST transform set according to the number of transforms constituting the LFNST transform set. For example, an optimal LFNST kernel may be selected for a block on which MIP-applied intra prediction is performed based on the LFNST index information. For example, the LFNST index information may be indicated by the st_idx syntax element or the lfnst_idx syntax element.

[0188] For example, the LFNST index information (or the st_idx syntax element) can be included in the syntax as shown in the following table.

[0189] [Table 2]

[0190] [Table 3]

[0191] [Table 4]

[0192] [Table 5]

[0193] The above Tables 2 to 5 show one syntax or information in sequence.

[0194] For example, in Tables 2 to 5, the information or semantics indicated by the intra_mip_flag syntax element, the intra_mip_mpm_flag syntax element, the intra_mip_mpm_idx syntax element, the intra_mip_mpm_remainder syntax element, or the st_idx syntax element are as shown in the following table.

[0195] [Table 6]

[0196] For example, the intra_mip_flag syntax element may indicate information on whether MIP is applied to a luma sample or a current block. Or, for example, the intra_mip_mpm_flag syntax element, the intra_mip_mpm_idx syntax element, or the intra_mip_mpm_remainder syntax element may indicate information on an intra prediction mode applied to a current block when MIP is applied. Or, for example, the st_idx syntax element may indicate information on a transform kernel (LFNST kernel) applied to LFNST for a current block. That is, the st_idx syntax element is information indicating one of the transform kernels in an LFNST transform set. Here, the st_idx syntax element may be represented by an lfnst_idx syntax element or LFNST index information.

[0197] FIG. 12 is a flow diagram illustrating how MIP and LFNST are applied.

[0198] Meanwhile, in other embodiments of the present document, LFNST index information may not be signaled for blocks to which MIP is applied, or an encoding device may generate a bitstream by encoding image information excluding LFNST index information for transforming blocks to which MIP is applied, and a decoding device may parse or decode the bitstream and perform a transform process for the blocks to which MIP is applied without LFNST index information for transforming the blocks to which MIP is applied.

[0199] For example, when LFNST index information is not signaled, the LFNST index information may be induced as a base value. For example, the LFNST index information induced as the base value is a value of 0. For example, LFNST index information with a value of 0 may indicate that LFNST is not applied to a corresponding block. In this case, by not transmitting the LFNST index information, the amount of bits for coding the LFNST index information can be reduced. In addition, the complexity can be reduced by preventing the simultaneous application of MIP and LFNST, which also has the effect of reducing latency.

[0200] Referring to FIG. 12, first, it may be determined whether MIP is applied to a corresponding block. That is, it may be determined whether the value of the intra_mip_flag syntax element is 1 or 0 (S1200). For example, if the value of the intra_mip_flag syntax element is 1, it may be regarded as true or yes, and it may indicate that MIP is applied to the corresponding block. Therefore, MIP prediction may be performed on the corresponding block (S1210). That is, a predicted block for the corresponding block may be derived by performing MIP prediction. Thereafter, an inverse primary transform procedure may be performed (S1220), and an intra reconstruction procedure may be performed (S1230). That is, a residual block may be derived by performing an inverse primary transform on transform coefficients obtained from a bitstream, and a reconstructed block may be generated based on the predicted block and the residual block according to the MIP prediction. That is, LFNST index information for a block to which MIP is applied is not included. Or, LFNST is not applied to a block to which MIP is applied.

[0201] Alternatively, for example, if the value of the intra_mip_flag syntax element is 0, it may be regarded as false or no, and may indicate that MIP is not applied to the corresponding block. That is, conventional intra prediction may be applied to the corresponding block (S1240). That is, a predicted block for the corresponding block may be derived by performing conventional intra prediction. Thereafter, it may be determined whether LFNST is applied to the corresponding block based on LFNST index information for the corresponding block. That is, it may be determined whether the value of the st_idx syntax element is greater than 0 (S1250). For example, if the value of the st_idx syntax element is greater than 0, an inverse LFNST transform procedure may be performed using a transform kernel indicated by the st_idx syntax element (S1260). Alternatively, if the value of the st_idx syntax element is not greater than 0, this may indicate that LFNST is not applied to the corresponding block, and the inverse LFNST transform procedure is not performed. Thereafter, an inverse primary transform procedure can be performed (S1220), and an intra reconstruction procedure can be performed (S1230). That is, a residual block can be derived by performing an inverse primary transform on transform coefficients obtained from a bitstream, and a reconstruction block can be generated based on the residual block and a prediction block according to the conventional intra prediction.

[0202] In summary, when MIP is applied, an MIP predicted block can be generated without decoding LFNST index information, and a final intra-reconstructed signal can be generated by applying an inverse linear transform to the received coefficients.

[0203] On the other hand, if MIP is not applied, the LFNST index information is decoded, and if the flag (or LFNST index information or st_idx syntax element) value is greater than 0, the inverse LFNST transform and the inverse linear transform are applied to the received coefficients to generate the final intra-reconstructed signal.

[0204] For example, for the above-mentioned procedures, the LFNST index information (or the st_idx syntax element) may be included in the syntax or image information and may be signaled based on information on whether MIP is applied (or the intra_mip_flag syntax element). Alternatively, the LFNST index information (or the st_idx syntax element) may be selectively constructed / parsed / signaled / transmitted / received with reference to information on whether MIP is applied (or the intra_mip_flag syntax element). For example, the LFNST index information is indicated by the st_idx syntax element or the lfnst_idx syntax element.

[0205] For example, the LFNST index information (or the st_idx syntax element) may be included as shown in Table 7.

[0206] [Table 7]

[0207] For example, referring to Table 7, the st_idx syntax element may be included based on the intra_mip_flag syntax element, i.e., if the value of the intra_mip_flag syntax element is 0 (!intra_mip_flag), the st_idx syntax element may be included.

[0208] Or, for example, the LFNST index information (or the lfnst_idx syntax element) can be included as shown in Table 8.

[0209] [Table 8]

[0210] For example, referring to Table 8, the lfnst_idx syntax element may be included based on the intra_mip_flag syntax element, i.e., if the value of the intra_mip_flag syntax element is 0 (!intra_mip_flag), the lfnst_idx syntax element may be included.

[0211] For example, referring to Table 7 or Table 8, the st_idx syntax element or the lfnst_idx syntax element may be included based on ISP (Intra Sub-Partitions) related information regarding subpartitioning of a block. For example, the ISP related information may include an ISP flag or an ISP split flag, through which information on whether subpartitioning is performed on a block may be indicated. For example, information on whether subpartitioning is performed may be indicated by IntraSubPartitionsSplitType, where ISP_NO_SPLIT may indicate that subpartitioning is not performed, ISP_HOR_SPLIT may indicate that subpartitioning is performed horizontally, and ISP_VER_SPLIT may indicate that subpartitioning is performed vertically.

[0212] The residual-related information includes the LFNST index information based on the MIP flag and the ISP-related information.

[0213] Meanwhile, in another embodiment of the present document, LFNST index information for a block to which MIP is applied may be derived without being separately signaled, or an encoding apparatus may generate a bitstream by encoding image information excluding LFNST index information for transformation of a block to which MIP is applied, and a decoding apparatus may parse or decode the bitstream to induce and obtain LFNST index information for transformation of a block to which MIP is applied, and perform a transformation process of the block based on the LFNST index information.

[0214] That is, LFNST index information for a corresponding block is not decoded, but an index for distinguishing transforms constituting an LFNST transform set can be determined through a guiding process. Alternatively, a separate optimized transform kernel can be determined through a guiding process to be used for a block to which MIP is applied. In this case, it is possible to have an effect of reducing the amount of bits required for coding an optimal LFNST kernel for a block to which MIP is applied.

[0215] For example, the LFNST index information may be derived based on at least one of reference line index information for intra prediction, intra prediction mode information, block size information, or MIP applicability information.

[0216] Meanwhile, in another embodiment of this document, binarization can be performed to signal LFNST index information for a block to which MIP is applied. For example, the number of applicable LFNST transformations varies depending on whether MIP is applied to the current block, and therefore the binarization method for the LFNST index information can be selectively switched.

[0217] For example, one LFNST kernel can be used for blocks to which MIP is applied, and this kernel is one of the LFNST kernels applied to blocks to which MIP is not applied, or a separate kernel optimized for blocks to which MIP is applied can be defined and used instead of using the existing LFNST kernel for blocks to which MIP is applied.

[0218] In this case, a reduced number of LFNST kernels are used for blocks to which MIP is applied compared to blocks to which it is not applied, thereby reducing the overhead of signaling LFNST index information and reducing complexity.

[0219] For example, the LFNST index information can be binarized using the binarization method shown in the table below.

[0220] [Table 9]

[0221] Referring to Table 9, for example, the st_idx syntax element may be binarized to TR (Truncated Rice) if MIP is not applied to the corresponding block, if intra_mip_flag[][]==false, or if the value of the intra_mip_flag syntax element is 0. For example, in this case, the input parameter cMax may have a value of 2, and cRiceParam may have a value of 0.

[0222] Or, for example, the st_idx syntax element may be binarized to FL (Fixed-Length) if MIP is applied to the corresponding block, if intra_mip_flag[][]==true or if the value of the intra_mip_flag syntax element is 1. For example, in this case, the input parameter cMax may have a value of 1.

[0223] Here, the st_idx syntax element can indicate LFNST index information and can also be expressed as the lfnst_idx syntax element.

[0224] Meanwhile, other embodiments of this document may signal LFNST-related information for blocks to which MIP is applied.

[0225] For example, the LFNST index information may include one syntax element, and may indicate whether LFNST is applied based on the one syntax element and information on the type of transform kernel used for LFNST. In this case, the LFNST index information may be represented by, for example, the st_idx syntax element or the lfnst_idx syntax element.

[0226] Alternatively, for example, the LFNST index information may include one or more syntax elements, and may indicate information on whether LFNST is applied and information on the type of transform kernel used for LFNST based on the one or more syntax elements. For example, the LFNST index information may include two syntax elements. In this case, the LFNST index information may include a syntax element indicating information on whether LFNST is applied and a syntax element indicating information on the type of transform kernel used for LFNST. For example, the information on whether LFNST is applied may be indicated as an LFNST flag, and may be represented by an st_flag syntax element or an lfnst_flag syntax element. Alternatively, for example, the information on the type of transform kernel used for LFNST may be indicated as a transform kernel index flag, and may be represented by an st_idx_flag syntax element, an st_kernel_flag syntax element, an lfnst_idx_flag syntax element, or an lfnst_kernel_flag syntax element. For example, when the LFNST index information includes one or more syntax elements as described above, the LFNST index information is also referred to as LFNST-related information.

[0227] For example, LFNST-related information (eg, the st_flag syntax element or the st_idx_flag syntax element) may be included as shown in Table 10.

[0228] [Table 10]

[0229] Meanwhile, a different number of LFNST transformations (kernels) may be used for blocks to which MIP is applied than for blocks to which MIP is not applied. For example, only one LFNST transformation kernel may be used for blocks to which MIP is applied. For example, the one LFNST transformation kernel is one of the LFNST kernels applied to blocks to which MIP is not applied. Alternatively, instead of using the LFNST kernel that was previously used for blocks to which MIP is applied, a separate kernel optimized for blocks to which MIP is applied may be defined and used.

[0230] In this case, among the LFNST-related information, information regarding the type of transform kernel used for LFNST (e.g., transform kernel index flag) may be selectively signaled depending on whether MIP is applied, and the LFNST-related information at this time may be included, for example, as shown in Table 11.

[0231] [Table 11]

[0232] That is, referring to Table 11, information on the type of transform kernel used for LFNST (or st_idx_flag syntax element) can be included based on information on whether MIP is applied to the corresponding block (or intra_mip_flag syntax element), or, for example, the st_idx_flag syntax element can be signaled when MIP is not applied to the corresponding block (!intra_mip_flag).

[0233] For example, in Table 10 or Table 11, the information or semantics indicated by the st_flag syntax element or the st_idx_flag syntax element are as shown in the table below.

[0234] [Table 12]

[0235] For example, the st_flag syntax element may indicate information on whether a secondary transformation is applied. For example, if the value of the st_flag syntax element is 0, it may indicate that a secondary transformation is not applied, and if the value is 1, it may indicate that a secondary transformation is applied. For example, the st_idx_flag syntax element may indicate information on a secondary transformation kernel to be applied among two candidate kernels in a selected transformation set.

[0236] For example, the LFNST related information can be binarized using the binarization method shown in the table below.

[0237] [Table 13]

[0238] With reference to Table 13, for example, the st_flag syntax element may be binarized to FL. For example, in this case, the input parameter cMax may have a value of 1. Or, for example, the st_idx_flag syntax element may be binarized to FL. For example, in this case, the input parameter cMax may have a value of 1.

[0239] For example, referring to Table 10 or Table 11, the descriptor of the st_flag syntax element or the st_idx_flag syntax element is ae(v). Here, ae(v) may indicate context-adaptive arithmetic entropy-coding. Or, the syntax element whose descriptor is ae(v) is a context-adaptive arithmetic entropy-coded syntax element. That is, the LFNST-related information (e.g., the st_flag syntax element or the st_idx_flag syntax element) may be applied with context-adaptive arithmetic entropy coding. Or, the LFNST-related information (e.g., the st_flag syntax element or the st_idx_flag syntax element) is information or a syntax element to which the context-adaptive arithmetic entropy coding is applied. Alternatively, LFNST-related information (e.g., the bins of the bin string of the st_flag syntax element or the st_idx_flag syntax element) may be encoded / decoded based on the above-mentioned CABAC, etc. Here, the context-adaptive arithmetic entropy coding may also be referred to as context model-based coding, context coding, or regular coding.

[0240] For example, a context index increment (ctxInc) of LFNST-related information (e.g., st_flag syntax element or st_idx_flag syntax element) or ctxInc according to the bin position of the st_flag syntax element or st_idx_flag syntax element may be assigned or determined as shown in Table 14. Alternatively, a context model may be selected according to the bin position of the st_flag syntax element or st_idx_flag syntax element as shown in Table 14. Alternatively, a context model may be selected based on ctxInc according to the bin position of the st_flag syntax element or st_idx_flag syntax element assigned or determined as shown in Table 14.

[0241] [Table 14]

[0242] Referring to Table 14, for example, the st_flag syntax element (bin or the first bin of the bin string) can use two context models (or ctxIdx), and the context model can be selected based on ctxInc having a value of 0 or 1. Alternatively, for example, the st_idx_flag syntax element (bin or the first bin of the bin string) can be applied with bypass coding, or can be coded by applying a uniform probability distribution.

[0243] For example, the ctxInc of the st_flag syntax element (the bin or the first bin of the bin string) can be determined based on Table 15 below.

[0244] [Table 15]

[0245] With reference to Table 15, for example, ctxInc of (the bin or the first bin of the bin string of) the st_flag syntax element may be determined based on the MTS index (or the tu_mts_idx syntax element) or the tree type information (treeType). For example, ctxInc may be derived as 1 if the value of the MTS index is 0 and the tree type is not a single tree. Or, ctxInc may be derived as 0 if the value of the MTS index is not 0 or the tree type is a single tree.

[0246] In this case, a reduced number of LFNST kernels are used for blocks to which MIP is applied compared to blocks to which it is not applied, thereby reducing the overhead of signaling LFNST index information and reducing complexity.

[0247] Meanwhile, in another embodiment of the present document, an LFNST kernel can be derived and used for a block to which MIP is applied. That is, information regarding the LFNST kernel can be derived without separately signaling. Alternatively, an encoding apparatus can generate a bitstream by encoding video information excluding LFNST index information for transformation of a block to which MIP is applied or information regarding (the type of) transformation kernel used for LFNST, and a decoding apparatus can parse or decode the bitstream to induce and obtain LFNST index information for transformation of a block to which MIP is applied or information regarding the transformation kernel used for LFNST, and perform a transformation process of the block based on the obtained information.

[0248] That is, LFNST index information or information on the transform kernel used for LFNST for the corresponding block is not decoded, but an index for distinguishing transforms constituting an LFNST transform set can be determined through a guiding process. Alternatively, it can be determined through a guiding process that a separate optimized transform kernel is to be used for the block to which MIP is applied. In this case, it is possible to have an effect of reducing the amount of bits required for coding the LFNST kernel while selecting the optimal LFNST kernel for the block to which MIP is applied.

[0249] For example, LFNST index information or information on a transform kernel used for LFNST can be derived based on at least one of reference line index information for intra prediction, intra prediction mode information, block size information, or MIP applicability information.

[0250] In the above-mentioned embodiment of the present document, the fixed-length (FL) binarization may indicate a method of binarizing with a fixed length such as a specific number of bits, and the specific number of bits may be predefined or may be indicated based on cMax. The truncated unary (TU) binarization may indicate a method of binarizing with a variable length using 1's and one 0 as many as the number of symbols to be represented, and when the number of symbols to be represented is the same as the maximum length, no 0's are added, and the maximum length may be indicated based on cMax. The truncated rice (TR) binarization may indicate a method of binarizing in a form in which a prefix and a suffix are connected, such as TU+FL, and uses a maximum length and shift information, and when the shift information has a value of 0, it is the same as TU. Here, the maximum length may be indicated based on cMax, and the shift information may be indicated based on cRiceParam.

[0251] 13 and 14 show a schematic diagram of an example of a video / image encoding method and associated components according to an embodiment of the present document.

[0252] The method disclosed in FIG. 13 may be performed by the encoding device disclosed in FIG. 2 or FIG. 14. Specifically, for example, S1300 to S1310 in FIG. 13 may be performed by the prediction unit 220 of the encoding device in FIG. 14, S1320 to S1330 in FIG. 13 may be performed by the residual processing unit 230 of the encoding device in FIG. 14, and S1340 in FIG. 13 may be performed by the entropy encoding unit 240 of the encoding device in FIG. 14. Also, although not shown in FIG. 13, in FIG. 14, the prediction unit 220 of the encoding device may derive prediction samples or prediction-related information, the residual processing unit 230 of the encoding device may derive residual information from original samples or prediction samples, and the entropy encoding unit 240 of the encoding device may generate a bitstream from the residual information or prediction-related information. The method disclosed in FIG. 13 may include the embodiments detailed in this document.

[0253] Referring to FIG. 13, an encoding apparatus may generate a prediction sample of the current block by performing intra prediction on the current block (S1300), and may generate intra prediction type information for the current block based on the performed intra prediction (S1310). For example, the encoding apparatus may determine an intra prediction mode and / or an intra prediction type for the current block by considering a rate distortion (RD) cost. The intra prediction mode information is information indicating the determined intra prediction mode, and the intra prediction type information is information indicating the determined intra prediction type. That is, the encoding apparatus may generate intra prediction mode information based on the determined intra prediction mode. Or, the encoding apparatus may generate intra prediction type information based on the determined intra prediction type.

[0254] The intra prediction type information may indicate whether a normal intra prediction type that uses a reference line adjacent to the current block, MRL (Multi-Reference Line) that uses a reference line that is not adjacent to the current block, ISP (Intra Sub-Partitions) that performs sub-partitioning on the current block, or MIP (Matrix based Intra Prediction) that uses a matrix, etc., is applicable.

[0255] For example, the intra prediction type information may include a MIP flag indicating whether MIP is applied to the current block. Or, for example, the intra prediction type information may include ISP (Intra Sub-Partitions) related information regarding subpartitioning of an ISP to the current block. For example, the ISP related information may include an ISP flag indicating whether an ISP is applied to the current block or an ISP split flag indicating a split direction. Or, for example, the intra prediction type information may include the MIP flag and the ISP related information. For example, the MIP flag may indicate an intra_mip_flag syntax element. Or, for example, the ISP flag may indicate an intra_subpartitions_mode_flag syntax element, and the ISP split flag may indicate an intra_subpartitions_split_flag syntax element.

[0256] The intra prediction mode information may indicate an intra prediction mode applied to a current block among the intra prediction modes. For example, the intra prediction modes may include intra prediction modes 0 to 66. For example, the intra prediction mode 0 may indicate a planar mode, and the intra prediction mode 1 may indicate a DC mode. Also, the intra prediction modes 2 to 66 may indicate directional or angular intra prediction modes and indicate a reference direction. Alternatively, the intra prediction modes 0 and 1 may indicate non-directional or non-angular intra prediction modes. This has been described in detail with reference to FIG. 5.

[0257] For example, the encoding apparatus may generate prediction-related information for a current block, and the prediction-related information may include intra-prediction mode information and / or intra-prediction type information. For example, the encoding apparatus may generate the prediction samples based on the intra-prediction mode and / or intra-prediction type. Alternatively, the encoding apparatus may generate the prediction samples based on the prediction-related information.

[0258] The encoding apparatus may generate a residual sample of the current block based on the predicted sample (S1320). For example, the encoding apparatus may generate the residual sample based on an original sample (e.g., an input video signal) and the predicted sample. Or, for example, the encoding apparatus may generate the residual sample based on a difference between the original sample and the predicted sample.

[0259] The encoding apparatus may generate residual information including information about transform coefficients for a current block based on a residual sample (S1330). For example, the encoding apparatus may derive transform coefficients by performing a primary transform based on the residual sample. Alternatively, for example, the encoding apparatus may derive temporary transform coefficients by performing a primary transform based on the residual sample, and may derive transform coefficients by applying LFNST to the temporary transform coefficients. For example, the encoding apparatus may generate the LFNST index information when the LFNST is applied. That is, the encoding apparatus may generate the LFNST index information based on a transform kernel used to generate the information about the transform coefficients.

[0260] For example, the encoding apparatus may perform quantization based on transform coefficients to derive quantized transform coefficients. The encoding apparatus may also generate information about the quantized transform coefficients based on the quantized transform coefficients. The residual information may include information about the quantized transform coefficients. Here, the information about the quantized transform coefficients may be simply referred to as information about transform coefficients.

[0261] The encoding apparatus may encode the video information including the intra prediction type information and the residual information (S1340). For example, the residual information may include information on the (quantized) transform coefficients as described above. Also, for example, the video information may include the LFNST index information. Alternatively, for example, the residual information of the video information may not include the LFNST index information.

[0262] For example, the image information may include LFNST index information indicating information on non-separable transform for low frequency transform coefficients of the current block based on the MIP flag. Alternatively, for example, the residual-related information may include LFNST index information based on the MIP flag or a size of the current block. Alternatively, for example, the residual-related information may include LFNST index information based on the MIP flag or information on the current block. Here, the information on the current block may include at least one of a size of the current block, tree structure information indicating a single tree or a dual tree, an LFNST usable flag, or ISP-related information. For example, the MIP flag is one of a plurality of conditions for determining whether the residual-related information includes LFNST index information, and the residual-related information may include LFNST index information based on other conditions such as the size of the current block in addition to the MIP flag. However, the following description will be centered on the MIP flag. Here, the LFNST index information may be represented as transform index information. Alternatively, the LFNST index information may be represented by a st_idx syntax element or an lfnst_idx syntax element.

[0263] For example, the image information may include the LFNST index information based on the MIP flag indicating that the MIP is not applied. Or, for example, the image information may not include the LFNST index information based on the MIP flag indicating that the MIP is applied. That is, when the MIP flag indicates that MIP is applied to the current block (e.g., when a value of an intra_mip_flag syntax element is 1), the image information may not include the LFNST index information, and when the MIP flag indicates that MIP is not applied to the current block (e.g., when a value of an intra_mip_flag syntax element is 0), the image information may include the LFNST index information.

[0264] Alternatively, for example, the image information may include the LFNST index information based on the MIP flag and the ISP-related information. For example, when the MIP flag indicates that MIP is not applied to the current block (e.g., when a value of an intra_mip_flag syntax element is 0), the residual-related information may include the LFNST index information with reference to the ISP-related information (IntraSubPartitionsSplitType). Here, IntraSubPartitionsSplitType may indicate that ISP is not applied (ISP_NO_SPLIT), is applied horizontally (ISP_HOR_SPLIT), or is applied vertically (ISP_VER_SPLIT), and may be derived based on the ISP flag or the ISP split flag.

[0265] For example, the LFNST index information may be induced or derived and used when the MIP flag indicates that the MIP is applied to the current block, and in this case, the image information does not include the LFNST index information. That is, the encoding apparatus does not signal the LFNST index information. For example, the LFNST index information may be induced or derived and used based on at least one of reference line index information for the current block, intra prediction mode information of the current block, size information of the current block, and the MIP flag.

[0266] Alternatively, for example, the LFNST index information may include an LFNST flag indicating whether a non-separable transform is applied to the low frequency transform coefficients of the current block and / or a transform kernel index flag indicating a transform kernel applied to the current block among transform kernel candidates. That is, the LFNST index information may indicate information on a non-separable transform for the low frequency transform coefficients of the current block based on one syntax element or one piece of information, or may indicate information based on two syntax elements or two pieces of information. For example, the LFNST flag may be represented by a st_flag syntax element or an lfnst_flag syntax element, and the transform kernel index flag may be represented by a st_idx_flag syntax element, a st_kernel_flag syntax element, an lfnst_idx_flag syntax element, or an lfnst_kernel_flag syntax element. Here, the transform kernel index flag may be included in the LFNST index information based on the LFNST flag indicating that the non-separable transform is applied and the MIP flag indicating that the MIP is not applied. That is, when the LFNST flag indicates that the non-separable transform is applied and the MIP flag indicates that the MIP is applied, the LFNST index information may include the transform kernel index flag.

[0267] For example, the LFNST flag and the transform kernel index flag may be induced or derived and used by the MIP flag indicating that the MIP is applied to the current block, and in this case, the image information does not include the LFNST flag and the transform kernel index flag. That is, the encoding apparatus does not signal the LFNST flag and the transform kernel index flag. For example, the LFNST flag and the transform kernel index flag may be induced or derived and used based on at least one of reference line index information for the current block, intra prediction mode information of the current block, size information of the current block, and the MIP flag.

[0268] For example, when the video information includes the LFNST index information, the LFNST index information is represented through binarization. For example, based on the MIP flag indicating that the MIP is not applied, the LFNST index information (e.g., st_idx syntax element or lfnst_idx syntax element) is represented through TR (Truncated Rice)-based binarization, and based on the MIP flag indicating that the MIP is applied, the LFNST index information (e.g., st_idx syntax element or lfnst_idx syntax element) is represented through FL (Fixed Length)-based binarization. That is, when the MIP flag indicates that MIP is not applied to the current block (e.g., when the intra_mip_flag syntax element is 0 or false), the LFNST index information (e.g., the st_idx syntax element or the lfnst_idx syntax element) is represented via TR-based binarization, and when the MIP flag indicates that MIP is applied to the current block (e.g., when the intra_mip_flag syntax element is 1 or true), the LFNST index information (e.g., the st_idx syntax element or the lfnst_idx syntax element) is represented via FL-based binarization.

[0269] Or, for example, if the video information includes the LFNST index information, and the LFNST index information includes the LFNST flag and the transform kernel index flag, the LFNST flag and the transform kernel index flag are represented through FL (Fixed Length) based binarization.

[0270] For example, the LFNST index information can be represented as a bin string (of bins) through binarization as described above, and can be coded to generate a bit, a bit string, or a bit stream.

[0271] For example, the (first) bin of the bin string of the LFNST flag may be coded based on context coding, and the context coding may be performed based on a context index increment / decrement value related to the LFNST flag. Here, the context coding is coding performed based on a context model and is also called regular coding. In addition, the context model is indicated by a context index (ctxIdx), and the context index is indicated based on a context index increment / decrement (ctxInc) and a context index offset (ctxIdxOffset). For example, the context index increment / decrement value is indicated as one of candidates including 0 and 1. For example, the context index increment / decrement value may be determined based on an MTS index (e.g., an mts_idx syntax element or a tu_mts_idx syntax element) indicating a transform kernel set to be used for the current block from among transform kernel sets, and tree type information indicating a partition structure of the current block. Here, the tree type information may indicate a single tree indicating that the partition structures of the luma component and the chroma component of the current block are the same, or a dual tree indicating that the partition structures of the luma component and the chroma component of the current block are different from each other.

[0272] For example, the (first) bin of the bin string of the transform kernel index flag may be coded based on bypass coding, where bypass coding may indicate that context coding is performed based on uniform probability distribution, and the coding efficiency may be improved by omitting an update procedure of context coding.

[0273] Alternatively, although not shown in Fig. 13, for example, the encoding apparatus may generate reconstructed samples based on the residual samples and the predicted samples, and reconstructed blocks and reconstructed pictures may be derived based on the reconstructed samples.

[0274] For example, an encoding device may generate a bitstream or encoded information by encoding video information including all or a part of the above-mentioned information (or syntax elements), or may output the information in the form of a bitstream. The bitstream or encoded information may be transmitted to a decoding device via a network or a storage medium. Alternatively, the bitstream or encoded information may be stored in a computer-readable storage medium, and the bitstream or encoded information may be generated by the above-mentioned video encoding method.

[0275] 15 and 16 show a schematic diagram of an example of a video / image decoding method and associated components according to an embodiment of the present document.

[0276] The method disclosed in FIG 15 may be performed by the decoding device disclosed in FIG 3 or FIG 16. Specifically, for example, S1500 of FIG 15 may be performed by the entropy decoding unit 310 of the decoding device in FIG 16, S1510 of FIG 15 may be performed by the residual processing unit 320 of the decoding device in FIG 16, and S1520 of FIG 15 may be performed by the adder 340 of the decoding device in FIG 16. Also, although not shown in FIG 15, in FIG 16, the entropy decoding unit 310 of the decoding device may derive prediction related information or residual information from a bitstream, the residual processing unit 320 of the decoding device may derive residual samples from the residual information, the prediction unit 330 of the decoding device may derive prediction samples from the prediction related information, and the adder 340 of the decoding device may derive reconstructed blocks or reconstructed pictures from the residual samples or prediction samples. The method disclosed in FIG. 15 may include the embodiments detailed herein.

[0277] Referring to FIG 15, a decoding apparatus may receive image information including residual information for a current block (S1500). For example, the image information may further include intra-prediction type information. For example, the decoding apparatus may obtain intra-prediction type information or residual-related information by passing or decoding a bitstream. Here, the bitstream is also referred to as encoded (image) information.

[0278] For example, the decoding device may obtain prediction-related information from a bitstream, and the prediction-related information may include intra-prediction mode information and / or intra-prediction type information. For example, the decoding device may generate a prediction sample for a current block based on the prediction-related information.

[0279] The intra prediction mode information may indicate an intra prediction mode applied to a current block among the intra prediction modes. For example, the intra prediction modes may include intra prediction modes 0 to 66. For example, the intra prediction mode 0 may indicate a planar mode, and the intra prediction mode 1 may indicate a DC mode. Also, the intra prediction modes 2 to 66 may indicate directional or angular intra prediction modes and indicate a reference direction. Alternatively, the intra prediction modes 0 and 1 may indicate non-directional or non-angular intra prediction modes. This has been described in detail with reference to FIG. 5.

[0280] In addition, the intra prediction type information may indicate information regarding the applicability of a normal intra prediction type that uses a reference line adjacent to the current block, MRL (Multi-Reference Line) that uses a reference line that is not adjacent to the current block, ISP (Intra Sub-Partitions) that performs sub-partitioning on the current block, or MIP (Matrix based Intra Prediction) that uses a matrix.

[0281] For example, a decoding device may obtain residual information from a bitstream. Here, the residual information may indicate information used to derive a residual sample, and may include information about the residual sample, (inverse) transform-related information, and / or (inverse) quantization-related information. For example, the residual information may include information about (quantized) transform coefficients.

[0282] For example, the intra prediction type information may include a MIP flag indicating whether MIP is applied to the current block. Or, for example, the intra prediction type information may include ISP (Intra Sub-Partitions) related information regarding subpartitioning of an ISP to the current block. For example, the ISP related information may include an ISP flag indicating whether an ISP is applied to the current block or an ISP split flag indicating a split direction. Or, for example, the intra prediction type information may include the MIP flag and the ISP related information. For example, the MIP flag may indicate an intra_mip_flag syntax element. Or, for example, the ISP flag may indicate an intra_subpartitions_mode_flag syntax element, and the ISP split flag may indicate an intra_subpartitions_split_flag syntax element.

[0283] For example, the image information may include Low Frequency Non Separable Transform (LFNST) index information indicating information on non-separable transform for low frequency transform coefficients of the current block based on the MIP flag. Alternatively, for example, the residual-related information may include LFNST index information based on the MIP flag or a size of the current block. Alternatively, for example, the residual-related information may include LFNST index information based on the MIP flag or information on the current block. Here, the information on the current block may include at least one of a size of the current block, tree structure information indicating a single tree or a dual tree, an LFNST usable flag, or ISP-related information. For example, the MIP flag is one of a plurality of conditions for determining whether the residual-related information includes LFNST index information, and the residual-related information may include LFNST index information based on other conditions such as the size of the current block in addition to the MIP flag. However, the following description will be centered on the MIP flag. Here, the LFNST index information may be referred to as transform index information. Alternatively, the LFNST index information can be expressed by the st_idx or lfnst_idx syntax element.

[0284] For example, the image information may include the LFNST index information based on the MIP flag indicating that the MIP is not applied. Or, for example, the image information may not include the LFNST index information based on the MIP flag indicating that the MIP is applied. That is, when the MIP flag indicates that MIP is applied to the current block (e.g., when a value of an intra_mip_flag syntax element is 1), the image information may not include the LFNST index information, and when the MIP flag indicates that MIP is not applied to the current block (e.g., when a value of an intra_mip_flag syntax element is 0), the image information may include the LFNST index information.

[0285] Alternatively, for example, the image information may include the LFNST index information based on the MIP flag and the ISP-related information. For example, when the MIP flag indicates that MIP is not applied to the current block (e.g., when a value of an intra_mip_flag syntax element is 0), the image information may include the LFNST index information by referring to the ISP-related information (IntraSubPartitionsSplitType). Here, IntraSubPartitionsSplitType may indicate that ISP is not applied (ISP_NO_SPLIT), is applied horizontally (ISP_HOR_SPLIT), or is applied vertically (ISP_VER_SPLIT), and may be derived based on the ISP flag or the ISP split flag.

[0286] For example, when the image information does not include the LFNST index information, i.e., when the LFNST index information is not signaled, because the MIP flag indicates that the MIP is applied to the current block, the LFNST index information may be induced or derived. For example, the LFNST index information may be derived based on at least one of reference line index information for the current block, intra prediction mode information of the current block, size information of the current block, and the MIP flag.

[0287] Alternatively, for example, the LFNST index information may include an LFNST flag indicating whether a non-separable transform is applied to the low frequency transform coefficients of the current block and / or a transform kernel index flag indicating a transform kernel applied to the current block among transform kernel candidates. That is, the LFNST index information may indicate information on a non-separable transform for the low frequency transform coefficients of the current block based on one syntax element or one piece of information, or may indicate information based on two syntax elements or two pieces of information. For example, the LFNST flag may be represented by a st_flag syntax element or an lfnst_flag syntax element, and the transform kernel index flag may be represented by a st_idx_flag syntax element, a st_kernel_flag syntax element, an lfnst_idx_flag syntax element, or an lfnst_kernel_flag syntax element. Here, the transform kernel index flag may be included in the LFNST index information based on the LFNST flag indicating that the non-separable transform is applied and the MIP flag indicating that the MIP is not applied. That is, when the LFNST flag indicates that the non-separable transform is applied and the MIP flag indicates that the MIP is applied, the LFNST index information may include the transform kernel index flag.

[0288] For example, when the image information does not include the LFNST flag and the transform kernel index flag, i.e., when the LFNST flag and the transform kernel index flag are not signaled, by the MIP flag indicating that the MIP is applied to the current block, the LFNST flag and the transform kernel index flag may be induced or derived. For example, the LFNST flag and the transform kernel index flag may be derived based on at least one of reference line index information for the current block, intra prediction mode information of the current block, size information of the current block, and the MIP flag.

[0289] For example, if the video information includes the LFNST index information, the LFNST index information may be derived through binarization. For example, based on the MIP flag indicating that the MIP is not applied, the LFNST index information (e.g., st_idx syntax element or lfnst_idx syntax element) may be derived through TR (Truncated Rice)-based binarization, and based on the MIP flag indicating that the MIP is applied, the LFNST index information (e.g., st_idx syntax element or lfnst_idx syntax element) may be derived through FL (Fixed Length)-based binarization. That is, if the MIP flag indicates that MIP is not applied to the current block (e.g., if the intra_mip_flag syntax element is 0 or false), the LFNST index information (e.g., the st_idx syntax element or the lfnst_idx syntax element) can be derived via TR-based binarization, and if the MIP flag indicates that MIP is applied to the current block (e.g., if the intra_mip_flag syntax element is 1 or true), the LFNST index information (e.g., the st_idx syntax element or the lfnst_idx syntax element) can be derived via FL-based binarization.

[0290] Or, for example, if the video information includes the LFNST index information and the LFNST index information includes the LFNST flag and the transform kernel index flag, the LFNST flag and the transform kernel index flag can be derived through FL (Fixed Length) based binarization.

[0291] For example, the LFNST index information can derive candidates through binarization as described above, and the bins indicated by passing or decoding the bitstream can be compared with the candidates, thereby obtaining the LFNST index information.

[0292] For example, the (first) bin of the bin string of the LFNST flag may be derived based on context coding, and the context coding may be performed based on a context index increment / decrement value related to the LFNST flag. Here, the context coding is coding performed based on a context model and is also called regular coding. In addition, the context model is indicated by a context index (ctxIdx), and the context index may be derived based on a context index increment / decrement (ctxInc) and a context index offset (ctxIdxOffset). For example, the context index increment / decrement value may be derived as one of candidates including 0 and 1. For example, the context index increment / decrement value may be derived based on an MTS index (e.g., an mts_idx syntax element or a tu_mts_idx syntax element) indicating a transform kernel set to be used for the current block from among transform kernel sets, and tree type information indicating a partition structure of the current block. Here, the tree type information may indicate a single tree indicating that the partition structures of the luma component and the chroma component of the current block are the same, or a dual tree indicating that the partition structures of the luma component and the chroma component of the current block are different from each other.

[0293] For example, the (first) bin of the bin string of the transform kernel index flag may be derived based on bypass coding, where bypass coding may indicate that context coding is performed based on a uniform probability distribution, and may improve coding efficiency by omitting an update procedure of context coding.

[0294] For example, the decoding apparatus may generate the residual sample from information related to the transform coefficients based on the LFNST index information. For example, the residual information may include information related to the transform coefficients of the current block. Or, for example, the residual-related information may include information related to quantized transform coefficients, and the decoding apparatus may derive quantized transform coefficients for the current block based on the information related to the quantized transform coefficients. For example, the decoding apparatus may derive transform coefficients for the current block by performing inverse quantization on the quantized transform coefficients. Or, for example, the decoding apparatus may generate a residual sample from the derived transform coefficients using the LFNST index information.

[0295] For example, if the LFNST index information is included in the video information or if the LFNST index information is induced or derived, the LFNST may be performed on the transform coefficients according to the LFNST index information, and modified transform coefficients may be derived. Thereafter, a decoding apparatus may generate the residual samples based on the modified transform coefficients. Alternatively, for example, if the LFNST index information is not included in the video information or indicates that LFNST is not to be performed, the decoding apparatus may generate residual samples based on the transform coefficients without performing LFNST on the transform coefficients.

[0296] The decoding apparatus may generate a reconstructed sample for the current block based on the residual sample (S1520). For example, the decoding apparatus may generate a reconstructed sample based on the prediction sample and the residual sample. Also, for example, a reconstructed block and a reconstructed picture may be derived based on the reconstructed sample.

[0297] For example, a decoding device may decode a bitstream or encoded information to obtain video information including all or a part of the above-mentioned information (or syntax elements), and the bitstream or encoded information may be stored in a computer-readable storage medium, and the above-mentioned decoding method may be performed.

[0298] In the above embodiments, the methods are described with reference to flow charts as a series of steps or blocks, but the embodiments are not limited to the order of steps, and certain steps may occur in a different order or simultaneously with other steps than those described. Additionally, those skilled in the art will appreciate that the steps shown in the flow charts are not exclusive, and other steps may be included, or one or more steps of the flow charts may be omitted without affecting the scope of the embodiments herein.

[0299] The methods according to the embodiments of the present document described above may be embodied in software form, and the encoding device and / or decoding device according to the present document may be included in a device that performs video processing, such as a TV, a computer, a smartphone, a set-top box, or a display device.

[0300] In this document, when the embodiments are implemented in software, the methods described above may be implemented with modules (processes, functions, etc.) that perform the functions described above. The modules may be stored in a memory and executed by a processor. The memory may be internal or external to the processor and may be coupled to the processor in various well-known ways. 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), a flash memory, a memory card, a storage medium, and / or other storage devices. That is, the embodiments described in this document may be implemented and executed on a processor, microprocessor, controller, or chip. For example, the functional units shown in each drawing may be implemented and executed on a computer, processor, microprocessor, controller, or chip. In this case, information (e.g., information on instructions) or algorithms for implementation may be stored on a digital storage medium.

[0301] In addition, the decoding device and encoding device to which the embodiment of the present document is applied may be included in a multimedia broadcast transmitting / receiving device, a mobile communication terminal, a home cinema video device, a digital cinema video device, a surveillance camera, a video interactive device, a real-time communication device such as video communication, a mobile streaming device, a storage medium, a camcorder, a custom video (VoD) service providing device, an over-the-top video (OTT) device, an internet streaming service providing device, a three-dimensional (3D) video device, a virtual reality (VR) device, an argument reality (AR) device, an image telephone video device, a vehicle terminal (e.g., a vehicle (including an autonomous vehicle) terminal, an airplane terminal, a ship terminal, etc.), and a medical video device, and may be used to process a video signal or a data signal. For example, the over-the-top video (OTT) device may include a game console, a Blu-ray player, an internet-connected TV, a home theater system, a smartphone, a tablet PC, a digital video recorder (DVR), etc.

[0302] In addition, the processing method to which the embodiments of the present document are applied may be produced in the form of a program executed by a computer and may be stored in a computer-readable recording medium. In addition, multimedia data having a data structure according to the embodiments of the present document may also be stored in a computer-readable recording medium. The computer-readable recording medium includes all kinds of storage devices and distributed storage devices in which computer-readable data is stored. The computer-readable recording medium may include, for example, a Blu-ray Disc (BD), a Universal Serial Bus (USB), a ROM, a PROM, an EPROM, an EEPROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device. In addition, the computer-readable recording medium may include a medium embodied in the form of a carrier wave (e.g., transmission via the Internet). In addition, a bitstream generated by the encoding method may be stored in a computer-readable recording medium or transmitted via a wired or wireless communication network.

[0303] Furthermore, the embodiments of the present document may be embodied in a computer program product having program code, the program code being executable by a computer in accordance with the embodiments of the present document. The program code may be stored on a computer readable carrier.

[0304] FIG. 17 illustrates an example of a content streaming system in which the embodiments disclosed herein can be applied.

[0305] Referring to FIG. 17, a content streaming system to which the embodiments of the present document are applied can broadly include an encoding server, a streaming server, a web server, a media repository, a user device, and a multimedia input device.

[0306] The encoding server compresses content input from a multimedia input device such as a smartphone, camera, camcorder, etc. into digital data to generate a bitstream and transmits the bitstream to the streaming server. As another example, if a multimedia input device such as a smartphone, camera, camcorder, etc. directly generates a bitstream, the encoding server may be omitted.

[0307] The bitstream may be generated by an encoding method or a bitstream generation method applied to an embodiment of this document, and the streaming server may temporarily store the bitstream in the process of transmitting or receiving the bitstream.

[0308] The streaming server transmits multimedia data to a user device based on a user request via a web server, and the web server acts as a medium to inform the user of available services. When a user requests a desired service from the web server, the web server transmits the request to the streaming server, and the streaming server transmits multimedia data to the user. In this case, the content streaming system may include a separate control server, and in this case, the control server controls commands / responses between devices in the content streaming system.

[0309] The streaming server can receive content from a media repository and / or an encoding server. For example, when the content is received from the encoding server, the content can be received in real time. In this case, the streaming server can store the bitstream for a certain period of time to provide a smooth streaming service.

[0310] Examples of the user devices include mobile phones, smart phones, laptop computers, digital broadcasting terminals, personal digital assistants (PDAs), portable multimedia players (PMPs), navigation systems, slate PCs, tablet PCs, ultrabooks, wearable devices (e.g., smartwatches, smart glass, head mounted displays (HMDs), digital TVs, desktop computers, and digital signage.

[0311] Each server in the content streaming system can be operated as a distributed server, in which case data received at each server can be processed in a distributed manner.

[0312] The claims described herein may be combined in various ways. For example, the technical features of the method claims herein may be combined and embodied in an apparatus, and the technical features of the apparatus claims herein may be combined and embodied in a method. Also, the technical features of the method claims herein and the technical features of the apparatus claims herein may be combined and embodied in an apparatus, and the technical features of the method claims herein and the technical features of the apparatus claims herein may be combined and embodied in a method.

Claims

1. 1. A video decoding method performed by a decoding device, comprising: receiving image information including prediction mode information and information regarding transformation coefficients for a current block; deriving a prediction sample of the current block by performing intra prediction based on the prediction mode information; generating a residual sample of the current block based on the information about the transform coefficients; generating a reconstructed sample for the current block based on the predicted sample and the residual sample; the image information includes intra-prediction type information for the current block, The intra prediction type information includes a matrix based intra prediction (MIP) flag indicating whether matrix based intra prediction (MIP) is applied to the current block based on whether a tree type of the current block is single tree or dual tree luma; In response to the MIP being applied to the current block because the value of the MIP flag is equal to 1, the predicted samples of the current block are derived by: decreasing neighboring reference samples of the current block; performing matrix multiplication on the decreased neighboring reference samples; and adding an offset to the matrix multiplied values; a size of a matrix used for the matrix multiplication is determined corresponding to a size of the current block; the size of the matrix is ​​16×8, corresponding to the size of the current block being 8×8; The image information includes a Low Frequency Non Separable Transform (LFNST) index information associated with one of transform kernels in a LFNST transform set for the current block, based on the fact that intra sub-partitions (ISP) are not applied to the current block, the width and height of the current block being 4 or more, the prediction mode information indicating an intra mode, and the MIP flag indicating that the MIP is not applied; The MIP flag is parsed before the LFNST index information; Based on the MIP flag indicating that the MIP is applied, the LFNST index information is not present and the value of the LFNST index information is derived as 0; The residual samples are generated based on the information about the transform coefficients by using the LFNST index information.

2. 1. A video encoding method performed by an encoding device, comprising: performing intra prediction on a current block to generate a predicted sample of the current block; generating prediction mode information and intra-prediction type information for the current block based on the performed intra-prediction; generating a residual sample of the current block based on the predicted sample; generating information about transform coefficients based on the residual samples; encoding video information including the prediction mode information, the intra-prediction type information, and the information regarding the transform coefficients; The intra prediction type information includes a matrix based intra prediction (MIP) flag indicating whether matrix based intra prediction (MIP) is applied to the current block based on whether a tree type of the current block is single tree or dual tree luma; In response to the value of the MIP flag being equal to 1 because the MIP is applied to the current block, the predicted samples of the current block are derived by: decreasing neighboring reference samples of the current block; performing matrix multiplication on the decreased neighboring reference samples; and adding an offset to the matrix multiplied values; a size of a matrix used for the matrix multiplication is determined corresponding to a size of the current block; the size of the matrix is ​​16×8, corresponding to the size of the current block being 8×8; The image information includes a Low Frequency Non Separable Transform (LFNST) index information associated with one of transform kernels in a LFNST transform set for the current block, based on the fact that intra sub-partitions (ISP) are not applied to the current block, the width and height of the current block being 4 or more, the prediction mode information indicating an intra mode, and the MIP flag indicating that the MIP is not applied; The MIP flag is signaled before the LFNST index information; The video encoding method, wherein based on the MIP flag indicating that the MIP is applied, the LFNST index information is not present and a value of the LFNST index information is equal to 0.

3. A method for transmitting data for video, comprising the steps of: obtaining a bitstream for the video, the bitstream comprising: performing intra prediction on a current block to generate a predicted sample of the current block; generating prediction mode information and intra-prediction type information for the current block based on the performed intra-prediction; generating a residual sample of the current block based on the predicted sample; generating information about transform coefficients based on the residual samples; encoding video information including the prediction mode information, the intra-prediction type information, and the information regarding the transform coefficients; transmitting the data including the bitstream; The intra prediction type information includes a matrix based intra prediction (MIP) flag indicating whether matrix based intra prediction (MIP) is applied to the current block based on whether a tree type of the current block is single tree or dual tree luma; In response to the value of the MIP flag being equal to 1 because the MIP is applied to the current block, the predicted samples of the current block are derived by: decreasing neighboring reference samples of the current block; performing matrix multiplication on the decreased neighboring reference samples; and adding an offset to the matrix multiplied values; a size of a matrix used for the matrix multiplication is determined corresponding to a size of the current block; the size of the matrix is ​​16×8, corresponding to the size of the current block being 8×8; The image information includes a Low Frequency Non Separable Transform (LFNST) index information associated with one of transform kernels in a LFNST transform set for the current block, based on the fact that intra sub-partitions (ISP) are not applied to the current block, the width and height of the current block being 4 or more, the prediction mode information indicating an intra mode, and the MIP flag indicating that the MIP is not applied; The MIP flag is signaled before the LFNST index information; A transmission method, wherein based on the MIP flag indicating that the MIP is applied, the LFNST index information is not present and a value of the LFNST index information is equal to 0.

Citation Information

Patent Citations

  • Transform coding based on matrix-based intra prediction

    WO2020207493A1

  • An encoder, a decoder and corresponding methods harmonzting matrix-based intra prediction and secoundary transform core selection

    WO2020211765A1

  • Encoding device, decoding device, encoding method, and decoding method

    WO2020213677A1