Video signal processing device and method for predicting current block by using relational expression between reference block and current block
The method and device improve video signal processing by generating a prediction block based on the relationship between reference and current blocks, using motion information and filter coefficients, thereby enhancing coding efficiency and addressing existing inefficiencies in video signal encoding and decoding.
Patent Information
- Application Number
- PCT/KR2024/005040
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-23
- Filing Date
- 2024-04-16
- Publication Date
- 2024-10-31
AI Technical Summary
Current video signal processing methods are inefficient in leveraging the relationship between reference blocks and current blocks for improved coding efficiency, particularly in encoding and decoding video signals, due to limitations in spatial and temporal correlation utilization.
A method and device that obtain a relational expression between the template of one or more reference blocks and the current block, using motion information to generate a prediction block, incorporating filter coefficients and adjacent samples, allowing for efficient prediction and encoding/decoding by processing video signals.
Enhances coding efficiency by accurately predicting current blocks using the established relationship, leading to improved compression and transmission of video signals, addressing the limitations of existing methods.
Smart Images

Figure KR2024005040_31102024_PF_FP_ABST
Abstract
Description
A video signal processing device and method for predicting a current block using a relationship between a reference block and a current block.
[0001] The present invention relates to a method and device for processing a video signal, and more particularly, to a method and device for processing a video signal for encoding or decoding a video signal.
[0002] Compression coding refers to a series of signal processing techniques for transmitting digitized information over communication lines or storing it in a format suitable for storage media. Objects subject to compression coding include audio, video, and text, and the technology that performs compression coding on video in particular is called video compression. Compression coding of video signals is achieved by removing redundant information by considering spatial, temporal, and probabilistic correlations. However, with the recent advancements in various media and data transmission media, there is a growing demand for more efficient video signal processing methods and devices.
[0003] The purpose of this specification is to provide a video signal processing method and a device therefor to improve the coding efficiency of a video signal.
[0004] According to an embodiment of the present invention, a decoding device for decoding a video signal includes a processor. The processor obtains a relationship between a template of one or more reference blocks referenced by one or more motion information and a template of a current block, and generates a prediction block based on the relationship, the reference block, and the current block. The template of the reference block includes samples adjacent to the reference block according to a pre-specified form. Furthermore, the template of the current block includes samples adjacent to the reference block according to the pre-specified form.
[0005] The one or more pieces of motion information may be two or more pieces of motion information. Additionally, the one or more reference blocks may be two or more blocks.
[0006] The one or more reference blocks may include reference blocks referenced by multi-hypothesis prediction (MHP).
[0007] The above relationship may be a relationship including multiple filter coefficients.
[0008] The one or more reference blocks may be included in a current picture that includes the current block.
[0009] The one or more reference blocks may be included in a picture other than the current picture containing the current block.
[0010] According to an embodiment of the present invention, a decoding device for encoding a video signal includes a processor. The processor obtains a relationship between a template of one or more reference blocks referred to by one or more motion information and a template of a current block, and generates a prediction block based on the relationship, the reference block, and the current block. The template of the reference block includes samples adjacent to the reference block according to a pre-specified form. Furthermore, the template of the current block includes samples adjacent to the reference block according to the pre-specified form.
[0011] The one or more pieces of motion information may be two or more pieces of motion information. Additionally, the one or more reference blocks may be two or more blocks.
[0012] The one or more reference blocks may include reference blocks referenced by multi-hypothesis prediction (MHP).
[0013] The above relationship may be a relationship including multiple filter coefficients.
[0014] The one or more reference blocks may be included in a current picture that includes the current block.
[0015] The one or more reference blocks may be included in a picture other than the current picture containing the current block.
[0016] According to an embodiment of the present invention, a computer-readable non-transitory storage medium storing a bitstream, wherein the bitstream is decoded by a decoding method. The decoding method includes the steps of: obtaining a relationship between a template of one or more reference blocks referred to by one or more motion information and a template of a current block; and generating a prediction block based on the relationship, the reference block, and the current block. The template of the reference block includes samples adjacent to the reference block according to a pre-specified form. Furthermore, the template of the current block includes samples adjacent to the reference block according to the pre-specified form.
[0017] According to an embodiment of the present invention, a decoding method for decoding a video signal includes the steps of: obtaining a relationship between a template of one or more reference blocks referred to by one or more motion information and a template of a current block; and generating a prediction block based on the relationship, the reference block, and the current block. The template of the reference block includes samples adjacent to the reference block according to a pre-specified shape. Furthermore, the template of the current block includes samples adjacent to the reference block according to the pre-specified shape.
[0018] This specification provides a method for efficiently processing video signals. The effects achieved by this specification are not limited to those mentioned above, and other effects not mentioned will be readily apparent to those skilled in the art, based on the description below.
[0019] FIG. 1 is a schematic block diagram of a video signal encoding device according to one embodiment of the present invention.
[0020] FIG. 2 is a schematic block diagram of a video signal decoding device according to one embodiment of the present invention.
[0021] Figure 3 illustrates an embodiment in which a coding tree unit within a picture is divided into coding units.
[0022] Figure 4 illustrates one embodiment of a method for signaling the splitting of a quad tree and a multi-type tree.
[0023] Figures 5 and 6 illustrate the intra prediction method according to an embodiment of the present invention in more detail.
[0024] Figure 7 is a diagram showing the locations of surrounding blocks used to generate a motion candidate list in inter prediction.
[0025] FIG. 8 shows predicting a sample of a current block using a convolutional model according to an embodiment of the present invention.
[0026] FIG. 9 shows generating a prediction block by applying a filter model to IBC block prediction according to an embodiment of the present invention.
[0027] FIG. 10 shows that when a video signal processing device according to an embodiment of the present invention predicts a current block using bidirectional prediction, the video signal processing device generates a prediction block by weighting and adding reference blocks referenced in the bidirectional prediction.
[0028] FIG. 11 shows a video signal processing device according to an embodiment of the present invention generating a prediction block using a weighted sum between a current block of a unidirectional prediction block and an MHP (Multi-hypothesis prediction) block.
[0029] FIG. 12 shows that when a video signal processing device according to an embodiment of the present invention predicts a current block using bidirectional prediction, the video signal processing device generates a prediction block by weighting and adding a reference block and an MHP reference block referenced in the bidirectional prediction.
[0030] FIG. 13 shows that when a video signal processing device predicts a current block with inter-bidirectional prediction, the video signal processing device generates a prediction block by weighting and adding reference blocks referenced in the inter-bidirectional prediction.
[0031] FIG. 14 shows a method for a video signal processing device according to an embodiment of the present invention to perform GPM blending.
[0032] The terms used in this specification have been selected from widely used and current terms, taking into account the functions of the present invention. However, these terms may vary depending on the intentions of those skilled in the art, customs, or the emergence of new technologies. Furthermore, in certain cases, the applicant may arbitrarily select terms, in which case their meanings will be described in the description of the relevant invention. Therefore, it should be noted that the terms used in this specification should be interpreted based on their substantive meaning and the overall content of this specification, rather than simply their names.
[0033] In this specification, 'A and / or B' may be interpreted to mean 'comprising at least one of A or B'.
[0034] In this specification, some terms may be interpreted as follows. Coding may be interpreted as encoding or decoding, depending on the case. In this specification, a device that encodes a video signal to generate a video signal bitstream is referred to as an encoding device or encoder, and a device that decodes a video signal bitstream to restore a video signal is referred to as a decoding device or decoder. In addition, in this specification, a video signal processing device is used as a term that includes both an encoder and a decoder. Information is a term that includes values, parameters, coefficients, elements, etc., and since the meaning may be interpreted differently depending on the case, the present invention is not limited thereto. 'Unit' is used to mean a basic unit of image processing or a specific location of a picture, and refers to an image area that includes at least one of a luminance component and a chroma component. In addition, 'block' refers to an image area including specific components among luminance components and chrominance components (i.e., Cb and Cr). However, depending on the embodiment, terms such as 'unit', 'block', 'partition', 'signal', and 'region' may be used interchangeably. In addition, in this specification, 'current block' means a block that is currently scheduled to be encoded, and 'reference block' means a block that has already been encoded or decoded and is used as a reference in the current block. In addition, in this specification, terms such as 'luma', 'luminance', and 'Y' may be used interchangeably. In addition, in this specification, terms such as 'chroma', 'chroma', 'color difference', and 'Cb or Cr' may be used interchangeably, and since chrominance components are divided into two, Cb and Cr, each chrominance component may be used separately.In addition, in this specification, 'sample' is a basic element constituting a picture or a frame, and the value of a luminance sample can have a value of 0 to 255 when it is 8 bits, and a value of 0 to 4095 when it is 12 bits, and the terms 'sample', 'pixel', and 'pixel' may be used interchangeably. In addition, in this specification, a unit may be used as a concept including all of a coding unit, a prediction unit, and a transformation unit. A picture refers to a field or a frame, and the above terms may be used interchangeably depending on the embodiment. Specifically, when a captured image is an interlace image, one frame is divided into an odd (or odd, top) field and an even (or even, bottom) field, and each field is generated as one picture unit and can be encoded or decoded. If a captured image is a progressive image, one frame can be generated as a picture and can be encoded or decoded. In addition, in this specification, terms such as 'error signal', 'residual signal', 'residual signal', 'residual signal', and 'differential signal' may be used interchangeably. In addition, in this specification, terms such as 'intra prediction mode', 'intra prediction directional mode', 'intra prediction mode', and 'intra prediction directional mode' may be used interchangeably. In addition, in this specification, terms such as 'motion', 'movement', and the like may be used interchangeably. In addition, in this specification, 'left', 'upper left', 'upper side', 'upper right', 'right', 'lower right', 'lower left' may be used interchangeably with 'left', 'upper left', 'upper', 'upper right', 'right', 'lower right', 'bottom', and 'lower left'. In addition, elements and members may be used interchangeably.POC (Picture Order Count) represents the temporal position information of a picture (or frame), and can be the playback order displayed on the screen, and each picture can have its own unique POC.
[0035] FIG. 1 is a schematic block diagram of a video signal encoding device (100) according to one embodiment of the present invention. Referring to FIG. 1, the encoding device (100) of the present invention includes a transformation unit (110), a quantization unit (115), an inverse quantization unit (120), an inverse transformation unit (125), a filtering unit (130), a prediction unit (150), and an entropy coding unit (160).
[0036] The transform unit (110) obtains a transform coefficient value by transforming the residual signal, which is the difference between the input video signal and the prediction signal generated by the prediction unit (150). For example, a discrete cosine transform (DCT), a discrete sine transform (DST), or a wavelet transform may be used. The discrete cosine transform and the discrete sine transform divide the input picture signal into blocks and perform the transformation. The coding efficiency may vary depending on the distribution and characteristics of the values within the transform domain during the transformation. The transform kernel used for the transformation on the residual block may be a transform kernel having separable characteristics of vertical transformation and horizontal transformation. In this case, the transformation on the residual block may be performed separately as vertical transformation and horizontal transformation. For example, the encoder may perform vertical transformation by applying the transform kernel in the vertical direction of the residual block. Additionally, the encoder can perform horizontal transformation by applying a transformation kernel in the horizontal direction of the residual block. In the present disclosure, the transformation kernel may be used as a term referring to a set of parameters used for transformation of the residual signal, such as a transformation matrix, a transformation array, a transformation function, or a transformation. For example, the transformation kernel may be any one of a plurality of available kernels. Additionally, transformation kernels based on different transformation types may be used for each of the vertical transformation and the horizontal transformation.
[0037] The transformation coefficients are distributed in a way that increases toward the upper left corner of the block, and decreases toward 0 toward the lower right corner. As the current block size increases, there is a high probability of a significant number of 0 coefficients in the lower right corner. To reduce the transformation complexity of large blocks, the remaining regions can be reset to 0, leaving only the upper left corner as an arbitrary region.
[0038] Additionally, error signals may exist only in some regions of a coding block. In this case, the conversion process may be performed only on some arbitrary regions. For example, in a block of size 2Nx2N, an error signal may exist only in the first 2NxN block, and the conversion process may be performed only on the first 2NxN block, but the conversion process may not be performed on the second 2NxN block and may not be encoded or decoded. Here, N can be any positive integer.
[0039] The encoder may perform an additional transform before the transform coefficients are quantized. The aforementioned transform method may be referred to as a primary transform, and the additional transform may be referred to as a secondary transform. The secondary transform may be optional for each residual block. In one embodiment, the encoder may improve coding efficiency by performing the secondary transform on areas where it is difficult to concentrate energy in the low-frequency region using only the primary transform. For example, the secondary transform may be additionally performed on blocks where residual values appear large in directions other than the horizontal or vertical direction of the residual block. Unlike the primary transform, the secondary transform may not be performed separately into a vertical transform and a horizontal transform. Such a secondary transform may be referred to as a Low Frequency Non-Separable Transform (LFNST).
[0040] The quantization unit (115) quantizes the transformation coefficient value output from the transformation unit (110).
[0041] In order to increase coding efficiency, rather than coding the picture signal as it is, a method is used to predict a picture using an already coded area through a prediction unit (150), and to obtain a restored picture by adding the residual value between the original picture and the predicted picture to the predicted picture. In order to prevent mismatches from occurring in the encoder and decoder, when the encoder performs prediction, information that is also available to the decoder must be used. To this end, the encoder performs a process of restoring the encoded current block. The inverse quantization unit (120) inversely quantizes the transform coefficient value, and the inverse transform unit (125) restores the residual value using the inverse quantized transform coefficient value. Meanwhile, the filtering unit (130) performs a filtering operation to improve the quality of the restored picture and enhance the coding efficiency. For example, a deblocking filter, a sample adaptive offset (SAO), and an adaptive loop filter may be included. The filtered picture is stored in the Decoded Picture Buffer (DPB, 156) to be output or used as a reference picture.
[0042] A deblocking filter is a filter that removes distortion within blocks generated at the boundaries between blocks in a reconstructed picture. The encoder can determine whether to apply a deblocking filter to a certain boundary based on the distribution of pixels in several columns or rows based on an arbitrary boundary (edge) within the block. When applying a deblocking filter to a block, the encoder can apply a long filter, a strong filter, or a weak filter depending on the deblocking filtering strength. Additionally, horizontal and vertical filtering can be processed in parallel. Sample adaptive offset (SAO) can be used to correct the offset from the original image on a pixel-by-pixel basis for the residual block to which the deblocking filter has been applied. To correct the offset for a specific picture, the encoder can divide the pixels contained in the image into a certain number of regions, determine the regions to perform offset correction, and apply the offset to those regions (Band Offset). Alternatively, the encoder can use a method (Edge Offset) that applies an offset by considering the edge information of each pixel. An adaptive loop filter (ALF) is a method that divides pixels included in an image into a predetermined group, determines a filter to be applied to each group, and performs filtering differently for each group. Information regarding whether to apply ALF can be signaled on a coding unit basis, and the shape and filter coefficients of the ALF filter to be applied can vary depending on each block. In addition, an ALF filter of the same shape (fixed shape) can be applied regardless of the characteristics of the target block to which it is applied.
[0043] The prediction unit (150) includes an intra prediction unit (152) and an inter prediction unit (154). The intra prediction unit (152) performs intra prediction within a current picture, and the inter prediction unit (154) performs inter prediction to predict the current picture using a reference picture stored in a decoded picture buffer (156). The intra prediction unit (152) performs intra prediction from reconstructed regions within the current picture and transfers intra encoding information to the entropy coding unit (160). The intra encoding information may include at least one of an intra prediction mode, an MPM (Most Probable Mode) flag, an MPM index, and information about a reference sample. The inter prediction unit (154) may be generated by including a motion estimation unit (154a) and a motion compensation unit (154b). The motion estimation unit (154a) refers to a specific area of the restored reference picture to find the part most similar to the current area and obtains a motion vector value, which is the distance between the areas. The motion information (reference direction indication information (L0 prediction, L1 prediction, bidirectional prediction), reference picture index, motion vector information, etc.) for the reference area obtained by the motion estimation unit (154a) is transferred to the entropy coding unit (160) so that it can be included in the bitstream. Using the motion information transferred from the motion estimation unit (154a), the motion compensation unit (154b) performs inter-motion compensation to generate a prediction block for the current block. The inter-prediction unit (154) transfers inter-encoding information including motion information for the reference area to the entropy coding unit (160).
[0044] According to an additional embodiment, the prediction unit (150) may include an intra block copy (IBC) prediction unit (not shown). The IBC prediction unit performs IBC prediction on reconstructed samples in the current picture and transfers IBC encoding information to the entropy coding unit (160). The IBC prediction unit obtains a block vector value indicating a reference region used for prediction of the current region by referring to a specific region in the current picture. The IBC prediction unit may perform IBC prediction using the obtained block vector value. The IBC prediction unit transfers the IBC encoding information to the entropy coding unit (160). The IBC encoding information may include at least one of size information of the reference region, block vector information (index information for block vector prediction of the current block within a motion candidate list, and block vector difference information).
[0045] When the picture prediction as above is performed, the transformation unit (110) obtains a transformation coefficient value by transforming the residual value between the original picture and the predicted picture. At this time, the transformation can be performed in units of specific blocks within the picture, and the size of the specific block can be varied within a preset range. The quantization unit (115) quantizes the transformation coefficient value generated by the transformation unit (110) and transfers the quantized transformation coefficient to the entropy coding unit (160).
[0046] The quantized transform coefficients in the form of a two-dimensional array can be rearranged into a one-dimensional array for entropy coding. The method of scanning the quantized transform coefficients can be determined by which scanning method is used depending on the size of the transform block and the intra prediction mode. For example, diagonal, vertical, and horizontal scanning can be applied. This scanning information can be signaled on a block-by-block basis and can be derived according to predetermined rules.
[0047] The entropy coding unit (160) entropy-codes information representing quantized transform coefficients, intra-coding information, inter-coding information, etc. to generate a video signal bitstream. The entropy coding unit (160) may use a variable length coding (VLC) method and an arithmetic coding method. The variable length coding (VLC) method converts input symbols into continuous codewords, and the length of the codewords may be variable. For example, frequently occurring symbols are expressed as short codewords, and infrequently occurring symbols are expressed as long codewords. A context-based adaptive variable length coding (CAVLC) method may be used as a variable length coding method. Arithmetic coding converts continuous data symbols into a single prime number by using the probability distribution of each data symbol, and arithmetic coding can obtain the optimal prime number bits required to express each symbol. Context-based Adaptive Binary Arithmetic Code (CABAC) can be used as an arithmetic coding.
[0048] CABAC is a binary arithmetic coding method that uses multiple context models generated based on experimentally obtained probabilities. The context models can also be referred to as context models. First, if the symbol is not in binary form, the encoder binarizes each symbol using exp-Golomb, etc. The binarized 0 or 1 can be described as a bin. The CABAC initialization process is divided into context initialization and arithmetic coding initialization. Context initialization is the process of initializing the occurrence probability of each symbol, and is determined by the symbol type, quantization parameter (QP), and slice type (I, P, B). A context model with this initialization information can use probability-based values obtained through experiments. The context model provides the occurrence probability of the Least Probable Symbol (LPS) or Most Probable Symbol (MPS) for the symbol to be currently encoded, as well as information (valMPS) on which bin value corresponds to the MPS between 0 and 1. One of several context models is selected through the context index (ctxIdx), and the context index can be derived from information about the current block to be encoded or information about the surrounding blocks. Initialization for binary arithmetic coding is performed based on the probability model selected from the context model. Binary arithmetic coding is performed by dividing the data into probability intervals based on the occurrence probabilities of 0 and 1, and then encoding is performed through a process in which the probability interval corresponding to the bin to be processed becomes the entire probability interval for the bin to be processed next. The location information within the probability interval in which the last bin has been processed is output. However, since the probability interval cannot be divided infinitely, if it is reduced to a certain size, a renormalization process is performed to expand the probability interval and output the corresponding location information. In addition, after each bin is processed, a probability update process can be performed in which the probability for the next bin to be processed is newly set based on the information of the processed bin.
[0049] The above generated bitstream is encapsulated into NAL (Network Abstraction Layer) units as basic units. NAL units are divided into VCL (Video Coding Layer) NAL units containing video data and non-VCL NAL units containing parameter information for decoding video data, and there are various types of VCL or non-VCL NAL units. NAL units are generated with NAL header information and RBSP (Raw Byte Sequence Payload) data, and the NAL header information includes summary information about the RBSP. The RBSP of the VCL NAL unit includes an integer number of encoded coding tree units. In order for a video decoder to decode a bitstream, the bitstream must first be divided into NAL unit units, and then each divided NAL unit must be decoded. Meanwhile, information necessary for decoding a video signal bitstream can be transmitted by being included in a Picture Parameter Set (PPS), a Sequence Parameter Set (SPS), a Video Parameter Set (VPS), etc.
[0050] Meanwhile, the block diagram of FIG. 1 illustrates an encoding device (100) according to one embodiment of the present invention, and the blocks shown separately logically distinguish elements of the encoding device (100). Accordingly, the elements of the encoding device (100) described above may be mounted as one chip or as multiple chips depending on the design of the device. According to one embodiment, the operations of each element of the encoding device (100) described above may be performed by a processor (not shown).
[0051] Fig. 2 is a schematic block diagram of a video signal decoding device (200) according to one embodiment of the present invention. Referring to Fig. 2, the decoding device (200) of the present invention includes an entropy decoding unit (210), an inverse quantization unit (220), an inverse transformation unit (225), a filtering unit (230), and a prediction unit (250).
[0052] The entropy decoding unit (210) entropy decodes the video signal bitstream to extract transform coefficient information, intra-coding information, inter-coding information, etc. for each region. For example, the entropy decoding unit (210) can obtain a binarization code for transform coefficient information of a specific region from the video signal bitstream. In addition, the entropy decoding unit (210) inversely binarizes the binarization code to obtain a quantized transform coefficient. The inverse quantization unit (220) inversely quantizes the quantized transform coefficient, and the inverse transform unit (225) restores the residual value using the inverse quantized transform coefficient. The video signal processing device (200) restores the original pixel value by adding the residual value obtained by the inverse transform unit (225) and the prediction value obtained by the prediction unit (250).
[0053] Meanwhile, the filtering unit (230) performs filtering on the picture to improve the image quality. This may include a deblocking filter to reduce block distortion and / or an adaptive loop filter to remove distortion from the entire picture. The filtered picture is output or stored in the decoded picture buffer (DPB, 256) to be used as a reference picture for the next picture.
[0054] The prediction unit (250) includes an intra prediction unit (252) and an inter prediction unit (254). The prediction unit (250) generates a prediction picture by utilizing the encoding type decoded through the entropy decoding unit (210) described above, the transform coefficients for each region, intra / inter encoding information, etc. In order to restore the current block on which decoding is performed, the decoded region of the current picture or other pictures including the current block may be used. A picture (or tile / slice) that uses only the current picture for restoration, i.e., performs intra prediction or intra BC prediction, is called an intra picture or I picture (or tile / slice), and a picture (or tile / slice) that can perform all of intra prediction, inter prediction, and intra BC prediction is called an inter picture (or tile / slice). A picture (or tile / slice) that uses at most one motion vector and reference picture index to predict sample values of each block among inter-pictures (or tiles / slices) is called a predictive picture or P-picture (or tile / slice), and a picture (or tile / slice) that uses at most two motion vectors and reference picture indices is called a bi-predictive picture or B-picture (or tile / slice). In other words, a P-picture (or tile / slice) uses at most one motion information set to predict each block, and a B-picture (or tile / slice) uses at most two motion information sets to predict each block. Here, a motion information set includes one or more motion vectors and one reference picture index.
[0055] The intra prediction unit (252) generates a prediction block using intra encoding information and reconstructed samples within the current picture. As described above, the intra encoding information may include at least one of an intra prediction mode, a Most Probable Mode (MPM) flag, and an MPM index. The intra prediction unit (252) predicts sample values of the current block using reconstructed samples located on the left and / or above the current block as reference samples. In the present disclosure, the reconstructed samples, the reference samples, and the samples of the current block may represent pixels. Additionally, the sample values may represent pixel values.
[0056] According to one embodiment, the reference samples may be samples included in a block adjacent to the current block. For example, the reference samples may be samples adjacent to the left boundary of the current block and / or samples adjacent to the upper boundary. In addition, the reference samples may be samples located on a line within a preset distance from the left boundary of the current block and / or samples located on a line within a preset distance from the upper boundary of the current block among samples of a block adjacent to the current block. In this case, the neighboring blocks of the current block may include at least one of a left (L) block, an upper (A) block, a lower left (BL) block, an above right (AR) block, or an above left (AL) block adjacent to the current block.
[0057] The inter prediction unit (254) generates a prediction block using the reference picture and inter encoding information stored in the decoded picture buffer (256). The inter encoding information may include a set of motion information (reference picture index, motion vector information, etc.) of the current block with respect to the reference block. Inter prediction may include L0 prediction, L1 prediction, and bi-prediction. L0 prediction is prediction using one reference picture included in the L0 picture list, and L1 prediction means prediction using one reference picture included in the L1 picture list. For this, one set of motion information (e.g., motion vector and reference picture index) may be required. In the bi-prediction method, up to two reference areas can be used, and these two reference areas may exist in the same reference picture or may exist in different pictures, respectively. That is, in the bi-prediction method, up to two sets of motion information (e.g., motion vectors and reference picture indices) can be used, and the two motion vectors may correspond to the same reference picture index or may correspond to different reference picture indices. In this case, the reference pictures are pictures that are located temporally before or after the current picture, and may be completed pictures that have already been restored. According to one embodiment, the two reference areas used in the bi-prediction method may be areas selected from each of the L0 picture list and the L1 picture list.
[0058] The inter prediction unit (254) can obtain a reference block of the current block using a motion vector and a reference picture index. The reference block exists in a reference picture corresponding to the reference picture index. In addition, a sample value of a block specified by the motion vector or an interpolated value thereof can be used as a predictor of the current block. For motion prediction with sub-pel unit pixel accuracy, for example, an 8-tap interpolation filter can be used for a luminance signal and a 4-tap interpolation filter can be used for a chrominance signal. However, the interpolation filter for sub-pel unit motion prediction is not limited thereto. In this way, the inter prediction unit (254) performs motion compensation to predict the texture of the current unit from a previously restored picture. At this time, the inter prediction unit can use a motion information set.
[0059] According to an additional embodiment, the prediction unit (250) may include an IBC prediction unit (not shown). The IBC prediction unit may reconstruct the current region by referring to a specific region including reconstructed samples within the current picture. The IBC prediction unit may perform IBC prediction using IBC encoding information obtained from the entropy decoding unit (210). The IBC encoding information may include block vector information.
[0060] A restored video picture is generated by adding the predicted value output from the intra prediction unit (252) or inter prediction unit (254) and the residual value output from the inverse transformation unit (225). That is, the video signal decoding device (200) restores the current block using the predicted block generated from the prediction unit (250) and the residual obtained from the inverse transformation unit (225).
[0061] Meanwhile, the block diagram of FIG. 2 illustrates a decoding device (200) according to one embodiment of the present invention, and the blocks shown separately logically distinguish the elements of the decoding device (200). Accordingly, the elements of the aforementioned decoding device (200) may be mounted as one chip or as multiple chips depending on the design of the device. According to one embodiment, the operations of each element of the aforementioned decoding device (200) may be performed by a processor (not shown).
[0062] Meanwhile, the technology proposed in this specification is applicable to both the methods and devices of the encoder and decoder, and the parts described as signaling and parsing may be described for convenience of explanation. In general, signaling can be described as encoding each syntax from the encoder's perspective, and parsing can be described as interpreting each syntax from the decoder's perspective. That is, each syntax can be signaled by being included in the bitstream from the encoder, and the decoder can parse the syntax and use it in the restoration process. At this time, the sequence of bits for each syntax listed according to the specified hierarchical generation can be referred to as a bitstream.
[0063] A picture can be encoded by dividing it into sub-pictures, slices, tiles, etc. A sub-picture can include one or more slices or tiles. When a picture is encoded by dividing it into multiple slices or tiles, all slices or tiles within the picture must be decoded before it can be displayed on the screen. On the other hand, when a picture is encoded into multiple sub-pictures, only any sub-picture can be decoded and displayed on the screen. A slice can include multiple tiles or sub-pictures, or a tile can include multiple sub-pictures or slices. Sub-pictures, slices, and tiles can be encoded or decoded independently, which is effective for parallel processing and improving processing speed. However, there is a disadvantage in that the amount of bits increases because the encoded information of adjacent sub-pictures, slices, and tiles cannot be used. Sub-pictures, slices, and tiles can be encoded by dividing them into multiple coding tree units (CTUs).
[0064] FIG. 3 illustrates an embodiment in which a Coding Tree Unit (CTU) within a picture is divided into Coding Units (CUs). In the process of coding a video signal, a picture may be divided into a sequence of Coding Tree Units (CTUs). A Coding Tree Unit may be generated with a luminance (luma) Coding Tree Block (CTB), two chroma (chroma) Coding Tree Blocks, and their encoded syntax information. One Coding Tree Unit may be generated as one Coding Unit, or one Coding Tree Unit may be split into multiple Coding Units. One Coding Unit may be generated with a luminance Coding Block (CB), two chroma Coding Blocks, and their encoded syntax information. One Coding Block may be split into multiple Sub-Coding Blocks. One Coding Unit may be generated as one Transform Unit (TU), or one Coding Unit may be split into multiple Transform Units. A single transform unit can be generated from a luminance transform block (TB), two chrominance transform blocks, and their encoded syntax information. A coding tree unit can be divided into multiple coding units. A coding tree unit can also be a leaf node without being divided. In this case, the coding tree unit itself can be a coding unit.
[0065] A coding unit refers to a basic unit for processing a picture in the video signal processing described above, such as intra / inter prediction, transformation, quantization, and / or entropy coding. The size and shape of a coding unit within a picture may not be constant. A coding unit may have a square or rectangular shape. A rectangular coding unit (or rectangular block) includes a vertical coding unit (or vertical block) and a horizontal coding unit (or horizontal block). In the present specification, a vertical block is a block whose height is greater than its width, and a horizontal block is a block whose width is greater than its height. In addition, a non-square block in the present specification may refer to a rectangular block, but the present invention is not limited thereto.
[0066] Referring to Fig. 3, the coding tree unit is first partitioned into a Quad Tree (QT) structure. That is, in the Quad Tree structure, one node with a size of 2NX2N can be partitioned into four nodes with a size of NXN. In this specification, the Quad Tree may also be referred to as a quaternary tree. The Quad Tree partitioning can be performed recursively, and not all nodes need to be partitioned to the same depth.
[0067] Meanwhile, the leaf node of the aforementioned quad tree can be further split into a multi-type tree (MTT) structure. According to an embodiment of the present invention, in the multi-type tree structure, one node can be split into a binary or ternary tree structure of horizontal or vertical split. That is, the multi-type tree structure has four split structures: vertical binary split, horizontal binary split, vertical ternary split, and horizontal ternary split. According to an embodiment of the present invention, in each of the above tree structures, the width and height of the node can both have a power of 2 value. For example, in the binary tree (BT) structure, a node of size 2NX2N can be split into two NX2N nodes by vertical binary split, and can be split into two 2NXN nodes by horizontal binary split. Also, in a Ternary Tree (TT) structure, a node of size 2NX2N can be split into nodes of size (N / 2)X2N, NX2N, and (N / 2)X2N by vertical ternary splitting, and into nodes of size 2NX(N / 2), 2NXN, and 2NX(N / 2) by horizontal ternary splitting. This multi-type tree splitting can be performed recursively.
[0068] A leaf node of a multi-type tree can be a coding unit. If the coding unit is not larger than the maximum transformation length, the coding unit can be used as a unit of prediction and / or transformation without further splitting. In one embodiment, if the width or height of the current coding unit is larger than the maximum transformation length, the current coding unit can be split into multiple transformation units without explicit signaling regarding the splitting. Meanwhile, in the quad tree and multi-type tree described above, at least one of the following parameters can be predefined or transmitted through an RBSP of a higher-level set, such as a PPS, an SPS, or a VPS. 1) CTU size: The size of the root node of the quad tree, 2) MinQtSize: The minimum allowed QT leaf node size, 3) MaxBtSize: The maximum allowed BT root node size, 4) MaxTT size (MaxTtSize): The maximum allowed TT root node size, 5) MaxMttDepth: The maximum allowed depth of an MTT split from a leaf node of a QT, 6) MinBT size (MinBtSize): The minimum allowed BT leaf node size, 7) MinTT size (MinTtSize): The minimum allowed TT leaf node size.
[0069] Fig. 4 illustrates one embodiment of a method for signaling splitting of a quad tree and a multi-type tree. Pre-configured flags may be used to signal splitting of the quad tree and the multi-type tree described above. Referring to Fig. 4, at least one of a flag 'split_cu_flag' indicating whether a node is split, a flag 'split_qt_flag' indicating whether a quad tree node is split, a flag 'mtt_split_cu_vertical_flag' indicating a splitting direction of a multi-type tree node, or a flag 'mtt_split_cu_binary_flag' indicating a splitting shape of a multi-type tree node may be used.
[0070] According to an embodiment of the present invention, a flag 'split_cu_flag' indicating whether a current node is split may be signaled first. If the value of 'split_cu_flag' is 0, it indicates that the current node is not split, and the current node becomes a coding unit. If the current node is a coding tree unit, the coding tree unit includes one coding unit that is not split. If the current node is a quad tree node 'QT node', the current node is a leaf node 'QT leaf node' of the quad tree and becomes a coding unit. If the current node is a multi-type tree node 'MTT node', the current node is a leaf node 'MTT leaf node' of the multi-type tree and becomes a coding unit.
[0071] When the value of 'split_cu_flag' is 1, the current node can be split into nodes of a quad tree or a multi-type tree depending on the value of 'split_qt_flag'. The coding tree unit is the root node of the quad tree and can be first split into a quad tree structure. In the quad tree structure, 'split_qt_flag' is signaled for each node 'QT node'. When the value of 'split_qt_flag' is 1, the node is split into four square nodes, and when the value of 'split_qt_flag' is 0, the node becomes a leaf node 'QT leaf node' of the quad tree, and the node is split into multi-type nodes. According to an embodiment of the present invention, quad tree splitting can be limited depending on the type of the current node. Quad tree splitting may be allowed if the current node is a coding tree unit (root node of a quad tree) or a quad tree node, and quad tree splitting may not be allowed if the current node is a multi-type tree node. Each quad tree leaf node 'QT leaf node' may be further split into a multi-type tree structure. As described above, if 'split_qt_flag' is 0, the current node may be split into multi-type nodes. To indicate the splitting direction and splitting shape, 'mtt_split_cu_vertical_flag' and 'mtt_split_cu_binary_flag' may be signaled. If the value of 'mtt_split_cu_vertical_flag' is 1, a vertical split of the node 'MTT node' is indicated, and if the value of 'mtt_split_cu_vertical_flag' is 0, a horizontal split of the node 'MTT node' is indicated.Additionally, if the value of 'mtt_split_cu_binary_flag' is 1, the node 'MTT node' is split into two rectangular nodes, and if the value of 'mtt_split_cu_binary_flag' is 0, the node 'MTT node' is split into three rectangular nodes.
[0072] The tree partitioning structure allows luminance blocks and chrominance blocks to be partitioned in the same manner. That is, the chrominance blocks can be partitioned by referring to the partitioning form of the luminance blocks. If the current chrominance block is smaller than a predetermined size, the chrominance block may not be partitioned even if the luminance block is partitioned.
[0073] The tree partitioning structure may have different forms for luminance blocks and chrominance blocks. In this case, partitioning information for the luminance block and partitioning information for the chrominance block may be signaled separately. Furthermore, not only the partitioning information but also the encoding information for the luminance block and chrominance block may differ. For example, at least one of the intra-coding modes of the luminance block and the chrominance block, and the encoding information for motion information, may differ.
[0074] A node to be divided into the smallest unit can be processed as a single coding block. If the current block is a coding block, the coding block can be divided into multiple sub-blocks (sub-coding blocks), and the prediction information of each sub-block can be the same or different. For example, if the coding unit is an intra mode, the intra prediction modes of each sub-block can be the same or different. Furthermore, if the coding unit is an inter mode, the motion information of each sub-block can be the same or different. Furthermore, each sub-block can be encoded or decoded independently. Each sub-block can be distinguished by a sub-block index (sbIdx). Furthermore, when a coding unit is divided into sub-blocks, it can be divided horizontally, vertically, or diagonally. In intra mode, the mode that divides the current coding unit into two or four sub-blocks horizontally or vertically is called ISP (Intra Sub-Partitions). In inter mode, the mode that divides the current coding block diagonally is called GPM (geometric partitioning mode). In GPM mode, the position and direction of the diagonal line are derived using a pre-specified angle table, and the index information of the angle table is signaled.
[0075] Picture prediction (motion compensation) for coding is performed on coding units that are no longer divisible (i.e., leaf nodes of a coding tree unit). The basic unit performing this prediction is referred to below as a prediction unit or prediction block.
[0076] Hereinafter, the term "unit" used in this specification may be used as a replacement for the prediction unit, which is the basic unit for performing prediction. However, the present invention is not limited thereto, and can be understood more broadly as a concept that includes the coding unit.
[0077] Figures 5 and 6 illustrate an intra prediction method according to an embodiment of the present invention in more detail. As described above, the intra prediction unit predicts sample values of the current block using restored samples located to the left and / or above the current block as reference samples.
[0078] First, FIG. 5 illustrates an embodiment of reference samples used for prediction of a current block in an intra prediction mode. According to an embodiment, the reference samples may be samples adjacent to a left boundary of the current block and / or samples adjacent to an upper boundary. As illustrated in FIG. 5, when the size of the current block is WXH and samples of a single reference line adjacent to the current block are used for intra prediction, reference samples may be set using at most 2W+2H+1 surrounding samples located on the left and / or upper sides of the current block.
[0079] Meanwhile, pixels of multiple reference lines may be used for intra prediction of the current block. The multiple reference lines may be generated by n lines located within a preset range from the current block. According to one embodiment, when pixels of multiple reference lines are used for intra prediction, separate index information indicating the lines to be set as reference pixels may be signaled, and this may be referred to as a reference line index.
[0080] In addition, if at least some of the samples to be used as reference samples have not yet been restored, the intra prediction unit may perform a reference sample padding process to obtain a reference sample. In addition, the intra prediction unit may perform a reference sample filtering process to reduce an error in intra prediction. That is, filtering may be performed on the surrounding samples and / or the reference samples obtained by the reference sample padding process to obtain filtered reference samples. The intra prediction unit predicts samples of the current block using the reference samples obtained in this manner. The intra prediction unit predicts samples of the current block using unfiltered reference samples or filtered reference samples. In the present disclosure, the surrounding samples may include samples on at least one reference line. For example, the surrounding samples may include adjacent samples on a line adjacent to a boundary of the current block.
[0081] Next, FIG. 6 illustrates an embodiment of prediction modes used for intra prediction. For intra prediction, intra prediction mode information indicating an intra prediction direction may be signaled. The intra prediction mode information indicates one of a plurality of intra prediction modes that generate an intra prediction mode set. If the current block is an intra prediction block, the decoder receives intra prediction mode information of the current block from the bitstream. The intra prediction unit of the decoder performs intra prediction on the current block based on the extracted intra prediction mode information.
[0082] According to an embodiment of the present invention, an intra prediction mode set may include all intra prediction modes used for intra prediction (e.g., a total of 67 intra prediction modes). More specifically, the intra prediction mode set may include a planar mode, a DC mode, and a plurality of (e.g., 65) angular modes (i.e., directional modes). Each intra prediction mode may be indicated by a preset index (i.e., an intra prediction mode index). For example, as illustrated in FIG. 6, an intra prediction mode index 0 indicates a planar mode, and an intra prediction mode index 1 indicates a DC mode. In addition, intra prediction mode indices 2 to 66 may each indicate different angular modes. The angular modes each indicate different angles within a preset angular range. For example, an angular mode may indicate an angle within an angular range from 45 degrees to -135 degrees clockwise (i.e., a first angular range). The angular mode may be defined based on the 12 o'clock direction. At this time, intra prediction mode index 2 indicates horizontal diagonal (HDIA) mode, intra prediction mode index 18 indicates horizontal (HOR) mode, intra prediction mode index 34 indicates diagonal (DIA) mode, intra prediction mode index 50 indicates vertical (VER) mode, and intra prediction mode index 66 indicates vertical diagonal (VDIA) mode.
[0083] Meanwhile, the preset angle range may be set differently depending on the shape of the current block. For example, if the current block is a rectangular block, a wide-angle mode indicating an angle exceeding 45 degrees or less than -135 degrees in a clockwise direction may be additionally used. If the current block is a horizontal block, the angle mode may indicate an angle within an angle range (i.e., a second angle range) between (45+offset1) degrees and (-135+offset1) degrees in a clockwise direction. At this time, angle modes 67 to 76 that are outside the first angle range may be additionally used. In addition, if the current block is a vertical block, the angle mode may indicate an angle within an angle range (i.e., a third angle range) between (45-offset2) degrees and (-135-offset2) degrees in a clockwise direction. At this time, angle modes -10 to -1 that are outside the first angle range may be additionally used. According to an embodiment of the present invention, the values of offset1 and offset2 may be determined differently depending on the ratio between the width and height of the rectangular block. Also, offset1 and offset2 can be positive.
[0084] According to a further embodiment of the present invention, the plurality of angular modes for generating the intra prediction mode set may include a basic angular mode and an extended angular mode. In this case, the extended angular mode may be determined based on the basic angular mode.
[0085] According to one embodiment, the basic angle mode may be a mode corresponding to an angle used in intra prediction of the existing HEVC (High Efficiency Video Coding) standard, and the extended angle mode may be a mode corresponding to an angle newly added in intra prediction of the next-generation video codec standard. More specifically, the basic angle mode may be an angle mode corresponding to any one of the intra prediction modes {2, 4, 6, … , 66}, and the extended angle mode may be an angle mode corresponding to any one of the intra prediction modes {3, 5, 7, … , 65}. That is, the extended angle mode may be an angle mode between the basic angle modes within the first angle range. Therefore, the angle indicated by the extended angle mode may be determined based on the angle indicated by the basic angle mode.
[0086] According to another embodiment, the basic angle mode may be a mode corresponding to an angle within a preset first angle range, and the extended angle mode may be a wide-angle mode outside the first angle range. That is, the basic angle mode may be an angle mode corresponding to any one of the intra prediction modes {2, 3, 4, … , 66}, and the extended angle mode may be an angle mode corresponding to any one of the intra prediction modes {-14, –13, –12, … , –1} and {67, 68, … , 80}. The angle indicated by the extended angle mode may be determined as an opposite angle to the angle indicated by the corresponding basic angle mode. Accordingly, the angle indicated by the extended angle mode may be determined based on the angle indicated by the basic angle mode. Meanwhile, the number of extended angle modes is not limited thereto, and additional extended angles may be defined according to the size and / or shape of the current block. Meanwhile, the total number of intra prediction modes included in the intra prediction mode set may vary depending on the generation of the basic angle mode and extended angle mode described above.
[0087] In the above embodiment, the spacing between the extended angular modes may be set based on the spacing between the corresponding basic angular modes. For example, the spacing between the extended angular modes {3, 5, 7, … , 65} may be determined based on the spacing between the corresponding basic angular modes {2, 4, 6, … , 66}. In addition, the spacing between the extended angular modes {-14, -13, … , -1} may be determined based on the spacing between the corresponding opposite basic angular modes {53, 53, … , 66}, and the spacing between the extended angular modes {67, 68, … , 80} may be determined based on the spacing between the corresponding opposite basic angular modes {2, 3, 4, … , 15}. The angular spacing between the extended angular modes may be set to be equal to the angular spacing between the corresponding basic angular modes. In addition, the number of the extended angular modes in the intra prediction mode set may be set to be less than or equal to the number of the basic angular modes.
[0088] According to an embodiment of the present invention, an extended angular mode may be signaled based on a base angular mode. For example, a wide-angle mode (i.e., an extended angular mode) may replace at least one angular mode (i.e., a base angular mode) within a first angular range. The replaced base angular mode may be an angular mode corresponding to an opposite side of the wide-angle mode. That is, the replaced base angular mode is an angular mode corresponding to an angle in an opposite direction to an angle indicated by the wide-angle mode or an angle that is different from the angle in the opposite direction by a preset offset index. According to an embodiment of the present invention, the preset offset index is 1. An intra prediction mode index corresponding to the replaced base angular mode may be remapped to the wide-angle mode to signal the corresponding wide-angle mode. For example, the wide-angle modes {-14, -13, … , -1} may be signaled by intra prediction mode indices {52, 53, … , 66}, and the wide-angle modes {67, 68, … , 69} may be signaled by intra prediction mode indices {52, 53, … , 66}, respectively. , 80} can be signaled by intra prediction mode indices {2, 3, … , 15}, respectively. By having the intra prediction mode index for the basic angular mode signal the extended angular mode in this way, even if the generation of the angular modes used for intra prediction of each block is different, the same set of intra prediction mode indices can be used to signal the intra prediction mode. Therefore, the signaling overhead due to the change in intra prediction mode generation can be minimized.
[0089] Meanwhile, whether to use the extended angle mode may be determined based on at least one of the shape and size of the current block. In one embodiment, if the size of the current block is larger than a preset size, the extended angle mode may be used for intra prediction of the current block, and otherwise, only the default angle mode may be used for intra prediction of the current block. In another embodiment, if the current block is a non-square block, the extended angle mode may be used for intra prediction of the current block, and if the current block is a square block, only the default angle mode may be used for intra prediction of the current block.
[0090] The intra prediction unit determines reference samples and / or interpolated reference samples to be used for intra prediction of the current block based on intra prediction mode information of the current block. If the intra prediction mode index indicates a specific angular mode, the reference sample or interpolated reference sample corresponding to the specific angle from the current sample of the current block is used for prediction of the current pixel. Therefore, different sets of reference samples and / or interpolated reference samples can be used for intra prediction depending on the intra prediction mode. After intra prediction of the current block is performed using the reference samples and intra prediction mode information, the decoder restores the sample values of the current block by adding the residual signal of the current block obtained from the inverse transform unit to the intra prediction value of the current block.
[0091] Motion information used for inter prediction may include reference direction indication information (inter_pred_idc), reference picture indexes (ref_idx_l0, ref_idx_l1), and motion vectors (mvL0, mvL1). Reference picture list utilization information (predFlagL0, predFlagL1) may be set according to the reference direction indication information. As an example, in case of unidirectional prediction using an L0 reference picture, predFlagL0=1, predFlagL1=0 may be set. In case of unidirectional prediction using an L1 reference picture, predFlagL0=0, predFlagL1=1 may be set. In case of bidirectional prediction using both L0 and L1 reference pictures, predFlagL0=1, predFlagL1=1 may be set.
[0092] If the current block is a coding unit, the coding unit can be divided into multiple sub-blocks, and the prediction information of each sub-block can be the same or different. For example, if the coding unit is an intra mode, the intra prediction modes of each sub-block can be the same or different. In addition, if the coding unit is an inter mode, the motion information of each sub-block can be the same or different. In addition, each sub-block can be encoded or decoded independently. Each sub-block can be distinguished through a sub-block index (sbIdx).
[0093] The motion vector of the current block is likely to be similar to that of the surrounding blocks. Therefore, the motion vectors of the surrounding blocks can be used as motion vector predictors (mvp), and the motion vector of the current block can be derived using the motion vectors of the surrounding blocks. Furthermore, to improve the accuracy of the motion vector, the difference in motion vectors (mvd) between the optimal motion vector of the current block, found from the original image by the encoder, and the motion vector predictor can be signaled.
[0094] Motion vectors can have various resolutions, and the resolution of motion vectors can vary on a block-by-block basis. Motion vector resolution can be expressed in integer units, half-pixel units, quarter-pixel units, sixteenth-pixel units, and integer-4 pixel units. Since images such as screen content are in simple graphical forms such as characters, interpolation filters do not need to be applied, integer units and integer-4 pixel units can be selectively applied on a block-by-block basis. Blocks encoded in affine mode, which can express rotation and scale, have significant shape changes, so integer units, quarter-pixel units, and sixteenth-pixel units can be selectively applied on a block-by-block basis. Information on whether to selectively apply motion vector resolution on a block-by-block basis is signaled with amvr_flag. If applicable, which motion vector resolution to apply to the current block is signaled with amvr_precision_idx.
[0095] For blocks to which bidirectional prediction is applied, the weights between the two predicted blocks may be the same or different when applying weighted averaging, and information about the weights is signaled via bcw_idx.
[0096] To improve the accuracy of motion information prediction values, Merge or advanced motion vector prediction (AMVP) methods can be selectively used on a block-by-block basis. The Merge method generates the motion information of the current block identical to the motion information of neighboring blocks adjacent to the current block, and has the advantage of increasing the encoding efficiency of motion information by spatially propagating motion information without change in a homogeneous motion region. On the other hand, the AMVP method predicts motion information in the L0 and L1 prediction directions respectively to express accurate motion information and signals the most optimal motion information. After the decoder derives motion information for the current block through the AMVP or Merge method, it uses the reference block located in the motion information derived from the reference picture as the prediction block for the current block.
[0097] A method for deriving motion information in Merge or AMVP may be to generate a motion candidate list using predicted values of motion information derived from neighboring blocks of the current block, and then signal index information for the optimal motion candidate. In the case of AMVP, since motion candidate lists are derived for each of L0 and L1, optimal motion candidate indices (mvp_l0_flag, mvp_l1_flag) for each of L0 and L1 are signaled. In the case of Merge, since one motion candidate list is derived, one merge index (merge_idx) is signaled. The motion candidate lists derived from one coding unit may vary, and a motion candidate index or merge index may be signaled for each motion candidate list. In this case, a mode in which there is no information about the remaining blocks in a block encoded in Merge mode can be referred to as MergeSkip mode.
[0098] Bidirectional motion information for the current block can be derived using a combination of AMVP and Merge modes. For example, motion information in the L0 direction can be derived using AMVP, while motion information in the L1 direction can be derived using Merge. Conversely, Merge can be applied to L0, while AMVP can be applied to L1. This encoding mode can be referred to as AMVP-merge mode.
[0099] SMVD (Symmetric MVD) is a method for reducing the bit volume of transmitted motion information by ensuring that the MVD (Motion Vector Difference) values in the L0 and L1 directions are symmetrical in the case of bidirectional prediction. The MVD information in the L1 direction, which is symmetrical to the L0 direction, is not transmitted, and reference picture information in the L0 and L1 directions is also not transmitted, but is derived during the decoding process.
[0100] OBMC (Overlapped Block Motion Compensation) is a method that generates prediction blocks for the current block using motion information from surrounding blocks when the motion information between blocks differs. It then weights and averages these prediction blocks to generate a final prediction block for the current block. This method effectively reduces blocking artifacts that occur at block boundaries in motion-compensated images.
[0101] Typically, merge motion candidates have low motion accuracy. To improve the accuracy of these merge motion candidates, the MMVD (Merge mode with MVD) method can be used. The MMVD method corrects motion information using one candidate selected from several motion difference candidates. Information about the compensation value of the motion information obtained through the MMVD method (e.g., an index indicating one candidate selected from among the motion difference candidates) can be included in the bitstream and transmitted to the decoder. Compared to the conventional method of including the motion information difference in the bitstream, including information about the compensation value of the motion information in the bitstream can save bits.
[0102] The Template Matching (TM) method generates a template using the surrounding pixels of the current block, finds the matching area with the highest similarity to the template, and then compensates for motion information. TM (Template Matching) is a method that performs motion prediction in the decoder without including motion information in the bitstream to reduce the size of the encoded bitstream. Since the decoder does not have the original image, it can roughly derive motion information for the current block using already reconstructed surrounding blocks.
[0103] The DMVR (Decoder-side Motion Vector Refinement) method is a method of compensating motion information through the correlation of already restored reference images to find slightly more accurate motion information. It is a method of using the bidirectional motion information of the current block to use the best matching point between reference blocks within an arbitrary set area of two reference pictures as a new bidirectional motion. When this DMVR is performed, the encoder performs DMVR on a block basis to compensate for the motion information, and then divides the block into sub-blocks and performs DMVR on each sub-block basis to compensate for the motion information of the sub-block again. This can be called MP-DMVR (Multi-pass DMVR).
[0104] The LIC (Local Illumination Compensation) method is a method of compensating for luminance changes between blocks. It is a method of deriving a linear model using neighboring pixels adjacent to the current block, and then compensating the luminance information of the current block through the linear model.
[0105] Existing video encoding methods perform motion compensation that only considers parallel translation in all directions, which reduces encoding efficiency when encoding videos containing motions commonly encountered in the real world, such as zooming in, zooming out, and rotation. To express such motions, an affine model-based motion prediction technique utilizing a four-parameter (rotation) or six-parameter (zoom in, zoom out, rotation) model can be applied.
[0106] Bi-Directional Optical Flow (BDOF) is used to compensate for predicted blocks by estimating pixel changes based on optical flow from a reference block of a block generated by bidirectional motion. The motion information derived from BDOF in VVC can be used to compensate for the motion of the current block.
[0107] PROF (Prediction Refinement with Optical Flow) is a technique for improving the accuracy of sub-block-level affine motion prediction to be similar to that of pixel-level motion prediction. Similar to BDOF, PROF calculates a correction value on a pixel-by-pixel basis for affine motion-compensated pixel values on a sub-block-by-subblock basis based on optical flow to obtain a final prediction signal.
[0108] CIIP (Combined Inter- / Intra-picture Prediction) is a method of generating a final prediction block by weighting and averaging prediction blocks generated by the intra prediction method and prediction blocks generated by the inter prediction method when generating a prediction block for the current block.
[0109] The Intra Block Copy (IBC) method finds the most similar part to the current block in a previously restored area within the current picture and uses that reference block as a prediction block for the current block. At this time, information related to the block vector, which represents the distance between the current block and the reference block, can be included in the bitstream. The decoder can parse the block vector information contained in the BeastStream to calculate or set the block vector for the current block.
[0110] The BCW (Bi-prediction with CU-level Weights) method is a method that performs a weighted average on two motion-compensated prediction blocks by adaptively applying weights on a block-by-block basis, rather than generating a prediction block by averaging two motion-compensated prediction blocks from different reference pictures.
[0111] The MHP (Multi-hypothesis prediction) method is a method of performing weight prediction using various prediction signals by transmitting additional motion information to unidirectional and bidirectional motion information during inter prediction.
[0112] CCLM (Cross-component linear model) is a method that predicts chrominance signals by creating a linear model using the high correlation between a luminance signal and the chrominance signals located at the same location as the luminance signal. A template is created using a reconstructed block adjacent to the current block, and the parameters for the linear model are derived from the template. Next, the reconstructed current luminance block is selectively downsampled to match the size of the chrominance block depending on the image format. Finally, the chrominance block of the current block is predicted using the downsampled luminance block and the linear model. At this time, a method that uses two or more linear models is called MMLM (Multi-model Linear mode). Furthermore, a prediction method that utilizes the correlation between different signals, such as CCLM and MMLM, can be called CCP (Cross-Component Prediction). CCLM uses a single linear model, so it can be called a single CCP model, while MMLM uses multiple linear models, so it can be called a multiple (or composite) CCP model.
[0113] In the encoder and decoder, a reconstructed luminance block can be constructed by adding an error signal for the luminance prediction block and the luminance block of the current block, and then a CCP model can be constructed using the correlation between the reconstructed luminance block and the luminance prediction block. At this time, the CCP model can be one of CCLM, MMLM, GLM, CCCM, MM-CCCM, GL-CCCM, CCCM-ND, and CCCM-MDF. The CCP model derived from the luminance block can be applied to the chrominance prediction block to generate a first chrominance prediction block to which the CCP model is applied. The final chrominance block can be generated by adding the error signal for the first chrominance prediction block and the chrominance block.
[0114] In addition, a CCP model means that at least one type among the types of the above CCP models is used. A CCP model can be composed of at least one CCP model. One CCP model can be composed of two CCLMs, which can be called an MMLM. A new CCP model can be a case where the types of the CCP models are different, or a case where the types of the CCP models are the same but the parameters of the CCP models have different values. If the types of the CCP models are different between CCP models, they can be said to be different CCP models. If the types of the CCP models are the same between CCP models but the parameters are different between CCP models, they can be said to be different CCP models. If the number of CCP models between CCP models is different (for example, a first CCP model is composed of one CCLM, and a second CCP model is composed of two CCLMs), they can be said to be different CCP models. A CCP model may include at least one of the following: type information of the CCP model, parameter information of the CCP model, information on whether multiple CCPs such as MMLM or MM-CCCM are used, average value information of the luminance block, and downsampling filter information.
[0115] CCCM (Convolutional cross-component model) is a method of constructing a nonlinear model using the correlation between a luminance signal and a chrominance signal at the same location as the luminance signal, and then predicting the chrominance signal using the nonlinear model.
[0116] GLM (Gradient Linear Model) is a method of constructing a model by additionally reflecting the slope of luminance samples in a linear model such as CCLM, and then predicting the color difference signal using the model.
[0117] MM-CCCM (multi-model CCCM) is a method of deriving two CCCM parameters based on the average value of the reference area (or the restored current luminance block).
[0118] GL-CCCM (Gradient and location based convolutional cross-component model) is an additional CCCM mode that utilizes gradient and location information. The existing CCCM mode can derive a chrominance sample for the current block using a luminance sample at a corresponding location from a predicted chrominance sample location, four samples around that luminance sample, and coefficient information. At this time, the GL-CCCM mode can derive a chrominance sample for the current block using a luminance sample at a location corresponding to a predicted chrominance sample, the vertical and horizontal differences for eight samples around that luminance sample, the horizontal coordinate and vertical coordinate of the current luminance sample, and the coefficient information of the prediction model.
[0119] In CCCM, which predicts chrominance blocks based on luminance blocks, the luminance block must be downscaled to the resolution of the chrominance block to match the resolution difference between the luminance and chrominance blocks. Various downsampling filters can be applied at this time. This mode is referred to as CCCM-MDF (CCCM with multiple downsampling filters).
[0120] In independent scalar quantization, the input coefficient t k Restored coefficients t' for k is the associated quantization index q k depends only on t'. That is, the quantization index for any restored coefficient has a different value from the quantization indices for other restored coefficients. In this case, t' k is t k may be a value that includes quantization error, and may be different or the same depending on the quantization parameter. Here, t' k can be named restored transform coefficients or inverse quantized transform coefficients, and the quantization indices can also be named quantized transform coefficients.
[0121] In Uniform Reconstruction Quantizers (URQ), the reconstructed coefficients are spaced at equal intervals. The distance between two adjacent reconstructed values is referred to as the quantization step size. Reconstructed values can include zeros, and the entire set of available reconstructed values can be uniquely defined by the quantization step size. The quantization step size can vary depending on the quantization parameter.
[0122] In conventional methods, quantization reduces the set of acceptable reconstructed transform coefficients, and the number of elements in this set can be finite. This limits the ability to minimize the average error between the original and reconstructed images. Vector quantization can be used as a method to minimize this average error.
[0123] A simple form of vector quantization used in video encoding is sign data hiding. This is a method in which the encoder does not encode the sign of a non-zero coefficient, and the decoder determines the sign of the coefficient based on whether the sum of the absolute values of all coefficients is even or odd. To achieve this, the encoder may increase or decrease the value of at least one coefficient, and at least one coefficient may be selected and adjusted to be optimal in terms of rate-distortion cost. In one implementation, a coefficient having a value close to the boundary of the quantization interval may be selected.
[0124] Another vector quantization method is trellis-coded quantization, which is used in video coding as an optimal path search technique to obtain optimized quantization values in dependent quantization. Block-wise, quantization candidates for all coefficients in the block are arranged in a trellis graph, and the optimal trellis path between the optimized quantization candidates is searched for by considering the cost for rate-distortion. Specifically, dependent quantization applied to video coding can be designed so that the set of allowable reconstructed transform coefficients for a transform coefficient depends on the value of the transform coefficient preceding the current transform coefficient in the restoration order. At this time, by selectively using multiple quantizers according to the transform coefficients, the average error between the original image and the reconstructed image can be minimized, thereby increasing the encoding efficiency.
[0125] Among intra prediction encoding techniques, the MIP (Matrix Intra Prediction) method is a matrix-based intra prediction method. Unlike the prediction method that has directionality from the pixels of the surrounding blocks adjacent to the current block, it is a method of obtaining a prediction signal using a predefined matrix and offset values for the pixels on the left and top of the surrounding blocks.
[0126] To derive the intra-prediction mode of the current block, a template, which is a random region adjacent to the current block and reconstructed, is used. The intra-prediction mode derived from the template's surrounding pixels can be used to reconstruct the current block. First, the decoder generates a prediction template for the template using the surrounding pixels (reference) adjacent to the template. The intra-prediction mode that generates the prediction template most similar to the already reconstructed template can then be used to reconstruct the current block. This method is called TIMD (Template intra-mode derivation).
[0127] Typically, an encoder can determine a prediction mode for generating a prediction block and generate a bitstream containing information about the determined prediction mode. The decoder can parse the received bitstream to set an intra-prediction mode. At this time, the bit amount of information about the prediction mode can be about 10% of the total bitstream size. To reduce the bit amount of information about the prediction mode, the encoder may not include information about the intra-prediction mode in the bitstream. Accordingly, the decoder can derive (determine) an intra-prediction mode for restoring the current block using the characteristics of the surrounding blocks, and can reconstruct the current block using the derived intra-prediction mode. At this time, the decoder can use a method of applying a Sobel filter in the horizontal and vertical directions to each neighboring pixel of the current block to infer directional information, and then mapping the directional information to the intra-prediction mode. The method by which the decoder derives an intra-prediction mode using the surrounding blocks can be described as Decoder-side intra-mode derivation (DIMD).
[0128] Blocks predicted using intra prediction directional mode may have discontinuous edges at the top and left edges of the block. For example, if the current block is predicted using vertical mode, discontinuous edges may appear at the left edge of the block. To mitigate this discontinuity, the encoder and decoder may apply filtering to samples at the boundary within the prediction block. The filtering may determine whether to apply filtering and / or a filtering weight using at least one of the reconstructed samples adjacent to the current prediction block, the position information of the reconstructed samples adjacent to the current prediction block, the samples at the boundary within the current prediction block, the position information of the samples at the boundary within the current prediction block, the intra prediction directional mode of the current prediction block, and the horizontal and vertical sizes of the current prediction block. The filtering weight refers to the weight for the samples at the boundary within the current prediction block and the weight for the reconstructed samples adjacent to the current prediction block. This filtering method may be referred to as Position-dependent intra prediction combination (PDPC).
[0129] Figure 7 is a diagram showing the locations of surrounding blocks used to generate a motion candidate list in inter prediction.
[0130] Surrounding blocks can be blocks of spatial position or blocks of temporal position. A neighboring block spatially adjacent to a current block can be at least one of a left (A1) block, a left below (A0) block, an above (B1) block, an above right (B0) block, and an above left (B2) block. A neighboring block temporally adjacent to a current block can be a block that includes an upper left pixel position of a bottom right (BR) block of the current block in a corresponding picture (collocated picture). If a neighboring block temporally adjacent to the current block is encoded in intra mode or a neighboring block temporally adjacent to the current block exists in an unusable position, a block that includes a horizontal and vertical center (Center, Ctr) pixel position of the current block in the picture corresponding to the current picture (collocated picture) can be used as a temporal neighboring block. Motion candidate information derived from corresponding pictures can be referred to as a Temporal Motion Vector Predictor (TMVP). Only one TMVP can be derived from a single block, or a block can be divided into multiple sub-blocks, and then a separate TMVP candidate can be derived for each sub-block. The method for deriving TMVPs at the sub-block level can be referred to as a sub-block Temporal Motion Vector Predictor (sbTMVP).
[0131] Whether the methods described in this specification are applied can be determined based on at least one of information about the slice type (e.g., whether it is an I slice, a P slice, or a B slice), whether it is a tile, whether it is a subpicture, the size of the current block, the depth of the coding unit, whether the current block is a luminance block or a chrominance block, whether it is a reference frame or a non-reference frame, the temporal hierarchy according to the reference order and layer, etc. The information used to determine whether the methods described in this specification are applied can be information agreed upon in advance between the decoder and the encoder. In addition, such information can be determined according to a profile and a level. Such information can be expressed as a variable value, and information about the variable value can be included in the bitstream. That is, the decoder can determine whether the above-described methods are applied by parsing information about the variable value included in the bitstream. For example, whether the above-described methods are applied can be determined based on the horizontal length or the vertical length of the coding unit. The above-described methods can be applied if the horizontal or vertical length is 32 or more (e.g., 32, 64, 128, etc.). In addition, the above-described methods can be applied if the horizontal or vertical length is less than 32 (e.g., 2, 4, 8, 16). In addition, the above-described methods can be applied if the horizontal or vertical length is 4 or 8.
[0132]
[0133] FIG. 8 shows predicting a sample of a current block using a convolutional model according to an embodiment of the present invention.
[0134] A video signal processing device can obtain a convolutional model by deriving a filter relationship between a template of a current block and a template of a reference block. The video signal processing device can predict the current block using the obtained convolutional model. The convolutional model can include a plurality of filter coefficients. At this time, the number of filter coefficients can be predetermined. In another specific embodiment, the number of filter coefficients can be variable. The video signal processing device can obtain a coefficient that minimizes the mean square error (MSE) between a value obtained when applying the template of a reference block to the convolutional model and the template of the current block as the filter coefficient of the convolutional model. At this time, the video signal processing device can obtain the filter coefficient of the convolutional model using Cholesky decomposition or LDL decomposition. Specifically, in a matrix operation of Ax=B, x can be obtained using the operation x=B / A. When decomposing matrix A to calculate 1 / A, Cholesky decomposition or LDL decomposition can be used.
[0135] In Cholesky decomposition, the target matrix can be decomposed into the product of a lower triangular matrix or an upper triangular matrix and its transpose. In LDL decomposition, the target matrix can be decomposed into the product of a lower triangular matrix or an upper triangular matrix and a diagonal matrix and its transpose. A lower triangular matrix has components only below the diagonal matrix in the matrix, and only zero components can exist above the diagonal matrix. A superimposed matrix, on the contrary to a lower triangular matrix, has components only above the diagonal matrix, and only zero components can exist below it. In the matrix operation Ax=B, A may be a value of a luminance template of a reference block. B may be a value of a luminance template of a current block. In another specific embodiment, A may be a value of a luminance template of a current block, and B may be a value of a luminance template of a reference block. Specifically, the video signal processing device can obtain an autocorrelation matrix for A and a cross-correlation vector between A and B. The autocorrelation matrix can be decomposed through LDL decomposition. This can be expressed by the following mathematical equation.
[0136] U'*D*U*x=B
[0137] U can be an upper triangular matrix, D can be a diagonal matrix, and U' can be the transpose of U. The video signal processing device can obtain filter coefficients by applying back substitution of Gauss-Jordan elimination to the matrix relation.
[0138] Figure 8 (a) illustrates the location of templates used to acquire a convolutional model according to one embodiment of the present invention. Samples labeled "Reference area samples" are template samples. The shape and location of the template for the current block may be identical to those of the template for the reference block. Furthermore, the size of the template may be defined in various ways.
[0139] If the size of the current block is W (width) x H (height), the size of the template can be 2W x n + 2H x n + n x n. n is a predetermined value. The value of N can be a positive integer greater than or equal to 1. For example, the value of n can be 6. Side samples can be located outside the boundary between the current block and the template. (a) of Fig. 8 shows samples with horizontal hatching. (b) of Fig. 8 shows the locations of samples used in a convolutional model to predict a sample at location C according to an embodiment of the present invention. (c) of Fig. 8 shows a convolutional model according to an embodiment of the present invention. The value of the sample corresponding to the location of the sample indicated by (b) of Fig. 8 is applied to the convolutional model of (c) of Fig. 8. If a sample used in the convolutional model is outside the area of the template, the video signal processing device may require additional samples in addition to the template to apply the value of the sample to the convolutional model. At this time, the video signal processing device may pad with the value of any one sample within the template region. Specifically, the location of any one sample may be any one of the locations of samples used in the convolutional model. The location of any one sample may be C as indicated in (b) of Fig. 8.
[0140] Templates can be configured for each component. Specifically, templates corresponding to luma samples and templates corresponding to chroma samples can be configured separately. If the ratios of luma and chroma samples are the same, the form of the template corresponding to the luma sample, for example, the size and shape, may be the same as the form of the template corresponding to the chroma sample. If the ratios of the luma and chroma samples are different, the form of the template corresponding to the luma sample, for example, the size and shape, may be different from the form of the template corresponding to the luma sample.
[0141] The number of filter coefficients of the convolutional model can be 7. The filter coefficients of the convolutional model can be composed of 5 cross-shaped neighboring samples, 1 nonlinear element, and 1 bias element, as shown in (b) of Fig. 8. In (b) of Fig. 8, C is a sample located in the center of the predicted current sample, N is a sample located above the current predicted sample C, S is a sample located below the current predicted sample C, W is a sample located to the left of the current predicted sample C, and E is a sample located to the right of the current predicted sample C. All or part of the filter coefficients can be used to express a relationship as shown in (c) of Fig. 8. In (c) of Fig. 8, the predicted sample values can be obtained for each component (Luma, Cr, and Cb). Each filter coefficient value can also be different for each component.
[0142] In (c) of Fig. 8, P can be obtained for each nonlinear element according to the formulas described below. The bit depth (bitDepth) below is the bit depth for each component and can be a positive integer value. The bit depth can be any one of 8, 10, and 12.
[0143] The video signal processing device can obtain the value of P by performing the following operation for each component according to the sample value at position C of (b) of Fig. 8. At this time, bitDepth represents the bit depth, and C Luma is the luma component sample at position C, C Cb is the chroma Cb component sample at position C, C Cr is the chroma Cr component sample at position C. Also, <<, >> are bit shift operators.
[0144] P = (C Luma *C Luma + 1<<(bitDepth-1))>>bitDepth
[0145] P = (C Cb *C Cb+ 1<<(bitDepth-1))>>bitDepth
[0146] P = (C Cr *C Cr + 1<<(bitDepth-1))>>bitDepth
[0147] The video signal processing device can obtain the value of P by performing the following operation based on the component-wise average value (meanSamples) of all samples (N, W, S, E, C) of (b) of Fig. 8. meanSamples Luma represents the average value of all luma component sample values, meanSamples Cb represents the average value of all chroma Cb component sample values, and meanSamples Cr represents the average value of all chroma Cr component sample values.
[0148] P = (meanSamples Luma * meanSamples Luma + 1<<(bitDepth-1))>>bitDepth
[0149] P = (meanSamples Cb * meanSamples Cb + 1<<(bitDepth-1))>>bitDepth
[0150] P = (meanSamples Cr * meanSamples Cr + 1<<(bitDepth-1))>>bitDepth
[0151] The video signal processing device can obtain the value of P by performing the following operation based on the average values (meanY, meanCb, meanCr) of each component of the sample of the template of (a) of Fig. 8.
[0152] P = (meanY* meanY + 1<<(bitDepth-1))>>bitDepth,
[0153] P = (meanCb* meanCb + 1<<(bitDepth-1))>>bitDepth,
[0154] P = (meanCr* meanCr + 1<<(bitDepth-1))>>bitDepth
[0155] In (b) of Fig. 8, B can be expressed as an integer value as a bias value. In this case, the bias can be an offset. Specifically, the value of B can be the median value of the bit depth for each component. For example, if the bit depth is 10 bits, the value of B can be 512.
[0156] The relational expression of Fig. 8 (c) may be composed of the values of samples at pre-designated locations, such as Fig. 8 (b), and the values of P and B obtained according to the previously described embodiment. In addition, the sample values used to obtain the coefficients in the relational expression of Fig. 8 (c) may be values obtained by subtracting a pre-designated value from the sample values. Specifically, the coefficients of the relational expression may be obtained according to the following mathematical expression. In this case, midValue represents the middle value of the bit depth for each component.
[0157] C' = C - offsetLuma
[0158] N' = N - offsetLuma
[0159] S' = S - offsetLuma
[0160] E' = E - offsetLuma
[0161] W' = W - offsetLuma
[0162] P' = nonLinear(C')
[0163] B = midValue = 1 << (bitDepth - 1)
[0164] Additionally, the filter relation of (c) in Fig. 8 may further include a pre-specified offset value.
[0165]
[0166] FIG. 9 shows generating a prediction block by applying a filter model to IBC block prediction according to an embodiment of the present invention.
[0167] In IBC, a video signal processing device can use a reference block corresponding to a block vector as a prediction block. At this time, the video signal processing device can apply the filter model described through FIG. 8 to the reference block to generate a prediction block. Specifically, the video signal processing device can derive a filter model using the relationship between the sample of the template of the reference block and the sample of the template of the current block. The video signal processing device can apply the derived filter model to the sample of the reference block to generate a prediction sample of the current block. The video signal processing device can derive a filter model for each component (Y, Cb, Cr) of the IBC block and apply the filter model for each component. In another specific embodiment, the video signal processing device can apply the filter model only to the luma component. The video signal processing device can obtain a filter model using the luma component and apply the obtained filter model to all components. In another specific embodiment, the filter model can be derived only from one of the luma and chroma components and applied only to the corresponding component.
[0168] The prediction mode of a prediction block to which IBC is applied may be set to MODE_IBC. When IBC is applied to a prediction block, the bitstream may include a flag indicating whether the filter model described above is applied to the prediction block. For convenience of explanation, the flag is referred to as IBCFilterFlag. The number of IBCFilterFlags per prediction block may vary depending on the filter model application method. The bitstream may include IBCFilterFlags indicating whether a filter model is applied to all components for one prediction block. In another specific embodiment, the bitstream may include multiple IBCFilterFlags indicating whether a filtering model is indicated for each component for one prediction block. In this case, the IBCFilterFlags may be parsed for each component. In addition, the bitstream may include IBCFilterFlags for each of Y, Cb, and Cr. In another specific embodiment, the bitstream may include a flag indicating whether a filter model is applied to a luma component of a prediction block and a flag indicating whether a filter model is applied to a chroma component of the prediction block. In this case, the video signal processing device may parse each of the IBCFilterFlag for the luma component of the prediction block and the IBCFilterFlag for the chroma component of the prediction block.
[0169] Additionally, the bitstream may not include the IBCFilterFlag for blocks to which IBCCIIP or IBCGPM is applied. In this case, the video signal processing device may infer the value of the IBCFilterFlag for blocks to which IBCCIIP or IBCGPM is applied as a predefined value. In this case, the predefined value indicates that the filter model is not applied. In addition, the predefined value may be 0.
[0170] In another specific embodiment, a video signal processing device may predict an intra prediction block used in CIIP in IBCCIIP prediction using an IBC filter model. The video signal processing device may predict an intra prediction block used in IBCGPM prediction using an IBC filter model. If IBCFilterFlag indicates that a filter model is used for a prediction block, the bitstream may not include a flag indicating whether LIC is applied to the prediction block. For convenience of explanation, the flag is referred to as IbcLicFlag. If IBCFilterFlag indicates that a filter model is used for a prediction block, the video signal processing device may infer a value of IbcLicFlag as a predetermined value. In this case, the predetermined value may indicate that LIC is not applied to the prediction block. In addition, the predetermined value may be 0.
[0171] In another specific embodiment, when IBC is used to predict a prediction block, a filter model may always be applied to predict the prediction block.
[0172] Even for general inter-prediction blocks, a filter model can be applied and an indicator indicating whether or not it is applied can be signaled / parsed. The method described in Fig. 8 can be applied.
[0173]
[0174] A video signal processing device according to an embodiment of the present invention can obtain a relationship between a template of one or more reference blocks referenced by one or more motion information and a template of a current block. At this time, the video signal processing device can generate a prediction block based on the obtained relationship, the reference block, and the current block. At this time, the template of the reference block may include samples adjacent to the reference block according to a pre-specified shape. In addition, the template of the current block may include samples adjacent to the reference block according to the pre-specified shape. At this time, the shape of the template may be the same as the shape of the template for CCCM described in FIG. 9. The template shape may include at least one of L-shape, Left only, and Above only. Hereinafter, an L-shape template will be described as an example. In the embodiments described below, unless otherwise specified, the shape of the template may be the same as the shape of the template for CCCM described in FIG. 9. These embodiments will be described with reference to FIGS. 10 to 13.
[0175] FIG. 10 shows that when a video signal processing device according to an embodiment of the present invention predicts a current block using bidirectional prediction, the video signal processing device generates a prediction block by weighting and adding reference blocks referenced in the bidirectional prediction.
[0176] When a video signal processing device generates a prediction sample using different predictors in an inter prediction mode, the video signal processing device can derive a prediction value by weighting and adding the samples of the first reference block and the samples of the second reference block. At this time, the weight used in the weighted addition can be referred to as a bi-predicted weight (BCW). The video signal processing device can select and use the value of the BCW within {1,2,3,4,5,6,7}. Specifically, when the video signal processing device performs prediction in a merge mode, the video signal processing device can select and use the value of the BCW within {1,2,3,4,5,6,7}. When the video signal processing device performs inter prediction rather than a merge mode, the video signal processing device can select and use the value of the BCW within {1, 7}. The encoder can signal the value of the BCW using a BCW index. The decoder can select the value of the BCW by parsing the BCW index from the non-stream.
[0177] In another specific embodiment, the video signal processing device can select the BCW value as the weight that minimizes the TM (Template Matching) cost value. For convenience of explanation, this will be referred to as a TM-based BCW index derivation method. The video signal processing device can use the TM-based BCW index derivation method in the normal merge mode, the TM mode, the adaptive DMVR mode, and the MMVD mode. When bi-predictive prediction is performed in the IBC MODE, the video signal processing device can perform encoding by assuming that a prediction sample is generated using the BCW value determined using the TM-based BCW index derivation method. In addition, the decoder can generate a prediction sample using the BCW value determined using the TM-based BCW index derivation method.
[0178] A video signal processing device can generate a prediction block by weighting reference blocks referenced in bidirectional prediction. Specifically, the video signal processing device can derive a relationship between the template of the current block and the template of the reference block, and generate a prediction block using the derived relationship. At this time, the video signal processing device can apply a weight value to each reference block on a sample-by-sample or block-by-block basis. Accordingly, the weight value varies for each reference block, but a single weight value can be applied within each reference block.
[0179] When a video signal processing device generates a prediction block of a current block using a plurality of reference blocks referenced by a plurality of motion information, the video signal processing device may generate a prediction block by weighting and adding the plurality of reference blocks. At this time, the video signal processing device may use a template including samples adjacent to the current block and a template including samples adjacent to the reference block to obtain a relationship between the reference blocks used for the weighted addition and the current block. At this time, the shape of the template may be the same as the shape of the template for CCCM described in FIG. 9. The template shape may include at least one of L-shape, Left only, and Above only. Hereinafter, an L-shape template will be described as an example. In the embodiments described below, unless otherwise specified, the shape of the template may be the same as the shape of the template for CCCM described in FIG. 9.
[0180] A template including samples adjacent to the current block is referred to as a first template. When bidirectional prediction is used, two motion information (MV0, MV1) are used. A template based on samples adjacent to a reference block referenced by the MV0 motion information is referred to as a second template. A template based on samples adjacent to a reference block referenced by the MV1 motion information is referred to as a third template. A video signal processing device can obtain coefficients of a relational expression using the first to third templates described above. For example, the relational expression can have a form such as the following mathematical expression.
[0181] predSample=a0*P1+a1*P2+a2*offset,
[0182] predSample represents a sample value of the current block. Here, a0, a1, and a2 are filter coefficients. In addition, P1 and P2 may be values obtained based on multiple reference blocks. For example, P1 may be a sample value of a second reference block. In addition, P2 may be a sample value of a third template. Offset may be a median value of the bit depth of the image. If the bitstream is for an image with a 10-bit depth, the value of Offset may be 512. In another specific embodiment, Offset may be an average value of samples included in the template of one reference block or an average value of samples included in multiple reference blocks. In this case, the number of multiple reference blocks may be 2. In another specific embodiment, Offset may be a predefined value. In another specific embodiment, the above relationship may be replaced with the following relationship.
[0183] predSample (x, y) = a0*P1 + a1*P2+ a2*x + a3*y + a4*offset
[0184] At this time, x and y each represent the x-coordinate and y-coordinate of the current sample, which may be relative positions to the upper left coordinate of the template or reference block.
[0185] Additionally, the final result of the previously described relationships may be one of the weight values instead of the predicted sample value of the current block. In this case, the relationship can be expressed as follows.
[0186] First weight (x,y) = a0*P1 + a1*P2+ a2*x + a3*y + a4*offset
[0187] When two weight values (first weight value, second weight value) are used, the second weight value may be 1-first weight value. In this case, the final predicted sample value may be expressed as follows. The final predicted sample value may be expressed as follows.
[0188] Final predicted sample value = average of (weight value x P0 + (1-weight value) x P2).
[0189] The video signal processing device can also apply the aforementioned embodiments to bidirectional prediction of Intra Block Copy (IBC). Specifically, in bidirectional prediction of IBC, the video signal processing device can derive a relationship using a reference block based on two motion information, a template of the reference block, and a template of the current block. At this time, the video signal processing device can use the derived relationship to generate a final prediction sample.
[0190] A video signal processing device can obtain the filter coefficients of the above mathematical expression using the template of the current block and the templates of a plurality of reference convex blocks. Specifically, the video signal processing device can obtain the filter coefficients by applying the sample values of the template of the current block to the value of predSample, and applying the sample values of the templates of the plurality of reference blocks to each of P1 and P2. For example, the video signal processing device can obtain the filter coefficients of the above mathematical expression by applying the sample values of the first template to the value of predSample, the sample values of the second template to P2, and the sample values of the third template to P3. This may be similar to the method of deriving the filter coefficients in the CCCM described with reference to FIG. 8. The video signal processing device can obtain the sample values of the current block by applying the sample values of the reference block to the derived relation. Embodiments in which values obtain the filter coefficients may replace embodiments in which the value of the BCW is signaled via the BCW index. Specifically, when the value of the BCW flag is a predefined value, for example, true, the filter coefficient values may be derived.
[0191] Although the embodiments described above are bidirectional predictions, the remaining operations, except for weight combining, can also be applied to generating prediction blocks using unidirectional prediction. The filter coefficients used can be reused in subsequent unidirectional and bidirectional blocks. Even when bidirectional prediction is performed in IBC mode, BCW can be applied according to the embodiments described above.
[0192]
[0193] FIG. 11 shows a video signal processing device according to an embodiment of the present invention generating a prediction block using a weighted sum between a current block of a unidirectional prediction block and an MHP (Multi-hypothesis prediction) block.
[0194] When a video signal processing device performs MHP, one or more additional motion-compensated prediction signals may be used. In this case, the video signal processing device may use sample-wise weighted summation. Specifically, the video signal processing device may perform sample-wise weighted summation using the following mathematical formula.
[0195]
[0196] P n can be a uni-prediction signal or a bi-prediction sample. h n+1 may be a sample added to MHP. can represent weights. Weights can be the same as the values in the following table and can be indicated by add_hyp_weight_idx.
[0197]
[0198] When a video signal processing device generates a prediction block using a reference block referenced by motion information and a reference block added by MHP, the video signal processing device can generate a prediction block by weighting the reference block referenced by motion information and the reference block added by MHP. Specifically, the video signal processing device can derive a relationship between a template included in the reference block referenced by motion information, a template included in the reference block added by MHP, and a template of a current block, and can predict the current block using the derived relationship. The video signal processing device can apply a weight value to each reference block on a sample basis or a block basis. Therefore, the weight value is different for each reference block, but a single weight value can be applied within each reference block.
[0199] In addition, a plurality of reference blocks may include a reference block by motion information used for unidirectional prediction, motion information used for additional prediction blocks of MV0 and MHP, and a reference block referenced by MV1. A template including a sample adjacent to the current block is referred to as a first template. In addition, a template including a sample adjacent to the reference block referenced by MV0 is referred to as a second template. A template including a sample adjacent to the reference block referenced by MV1 is referred to as a third template. Specifically, the reference block referenced by MV1 may be an additional reference block of MHP. A video signal processing device may obtain coefficients of a relational expression using the first to third templates described above. For example, a filter expression may be as follows.
[0200]
[0201] P n+1 represents the sample value of the current block. , , and is the filter coefficient. P n is the sample value of the reference block referenced by MV0, h n+1 may be a sample value of a reference block referenced by MV1. Offset may be a median value of a bit depth of an image. If the bitstream is for an image with a 10-bit depth, the value of Offset may be 512. In another specific embodiment, Offset may be an average value of samples included in a template of one reference block or an average value of samples included in multiple reference blocks. In this case, the number of multiple reference blocks may be 2. In another specific embodiment, Offset may be a pre-specified value.
[0202]
[0203] The video signal processing device can obtain the filter coefficients of the above relationship using the template of the current block and the templates of multiple reference convexities. Specifically, the video signal processing device P n+1 The filter coefficients can be obtained by applying the sample values of the first template to the values of P1 and P2, and applying the sample values of the templates of multiple reference blocks to each of P1 and P2. Specifically, the video signal processing device is P n Sample values of the second template, h n+1 The sample values of the third template can be applied to the video signal processing device through these embodiments. The filter coefficients , , and can be obtained. At this time, the Offset value can be determined according to the embodiments described above. In addition, this operation can be identical to the filter coefficient derivation method of CCCM described in FIG. 8. In another specific embodiment, the above relationship can be replaced with the following relationship.
[0204] P n+1 (x, y) = a0*P n + a1*h n+1 + a2*x + a3*y + a4*offset
[0205] At this time, x and y each represent the x-coordinate and y-coordinate of the sample of the current block.
[0206] Additionally, the final result value of the filter relations described above may be one of the weight values instead of the predicted sample value of the current block. In this case, the relation may be expressed as follows.
[0207] First weight (x, y) = a0*P n + a1*h n+1 + a2*x + a3*y + a4*offset
[0208] When two weight values (a first weight value and a second weight value) are used, the second weight value may be 1-the first weight value. In this case, the final predicted sample value may be expressed as follows.
[0209] Final predicted sample value = average of (weight value x P0 + (1-weight value) x P2).
[0210]
[0211] Instead of using the weight flag of the MHP, the video signal processing device can use this relationship to generate a prediction block. Furthermore, the video signal processing device can use this relationship to generate a prediction block in a sub-mode of the mode that uses the weight flag of the MHP.
[0212]
[0213] FIG. 12 shows that when a video signal processing device according to an embodiment of the present invention predicts a current block using bidirectional prediction, the video signal processing device generates a prediction block by weighting and adding a reference block and an MHP reference block referenced in the bidirectional prediction.
[0214] When a video signal processing device generates a prediction block using a plurality of reference blocks referenced by a plurality of motion information pieces and a reference block added by an MHP, the video signal processing device can generate a prediction block by weighting and adding the plurality of reference blocks referenced by the plurality of motion information pieces and the reference block added by the MHP. The video signal processing device can derive a relationship between templates included in the plurality of reference blocks referenced by the plurality of motion information pieces, templates included in the reference blocks added by the MHP, and templates of a current block, and can predict the current block using the derived relationship. The video signal processing device can apply a weight value to each reference block on a sample basis or a block basis. Therefore, the weight values are different for each reference block, but one weight value can be applied within each reference block.
[0215] A template including samples adjacent to the current block is referred to as a first template. When bidirectional prediction is used, two pieces of motion information (MV0, MV1) are used. A template based on samples adjacent to a reference block referenced by the MV0 motion information is referred to as a second template. A template based on samples adjacent to a reference block referenced by the MV1 motion information is referred to as a third template. A template of a reference block referenced by motion information, MV3, used for additional prediction of MHP is referred to as a fourth template. A video signal processing device can obtain coefficients of a relational expression using the first to fourth templates described above. For example, the relational expression may have the following form.
[0216]
[0217] P n+1 represents the sample value of the current block. , , and is the filter coefficient. P nis the sample value of the reference block referenced by MV0, P n is the sample value of the reference block referenced by MV1, h n+1 may be a sample value of a reference block referenced by MV2. Offset may be a median value of the bit depth of the image. If the bitstream is for an image with a 10-bit depth, the value of Offset may be 512. In another specific embodiment, Offset may be an average value of samples included in the template of one reference block or an average value of samples included in multiple reference blocks. In this case, the number of multiple reference blocks may be 3. In another specific embodiment, Offset may be a pre-specified value.
[0218] The video signal processing device can obtain the filter coefficients of the above relationship using the template of the current block and the templates of multiple reference convexities. Specifically, the video signal processing device P n+1 The filter coefficients can be obtained by applying the sample values of the first template to the values of P1, P2, and P3, and applying the sample values of the templates of the plurality of reference blocks to each of P1, P2, and P3. Specifically, the video signal processing device is P n Sample values of the second template, P n1 Sample values of the third template, h n+1 The sample values of the fourth template can be applied to the video signal processing device through these embodiments. The filter coefficients , , , and can be obtained. At this time, the Offset value can be determined according to the embodiments described above. In addition, this operation can be identical to the filter coefficient derivation method of CCCM described in Fig. 8.
[0219] Instead of using the weight flag of the MHP, the video signal processing device can use this relationship to generate a prediction block. Furthermore, the video signal processing device can use this relationship to generate a prediction block in a sub-mode of the mode that uses the weight flag of the MHP.
[0220] The video signal processing device can use the coefficients of the relational expression obtained through the embodiments described with reference to FIGS. 11 to 12, i.e., filter coefficients, in the prediction performed thereafter. At this time, the prediction can include at least one of MHP prediction, unidirectional prediction, and bidirectional prediction. In addition, the video signal processing device can store the coefficients of the relational expression obtained through the embodiments described with reference to FIGS. 10 to 13, i.e., filter coefficients, in a separate memory and use them in the prediction performed thereafter.
[0221]
[0222] FIG. 13 shows that when a video signal processing device predicts a current block with inter-bidirectional prediction, the video signal processing device generates a prediction block by weighting and adding reference blocks referenced in the inter-bidirectional prediction.
[0223] A video signal processing device can generate a prediction block by weighting reference blocks referenced in inter-directional prediction. Specifically, the video signal processing device can derive a relationship between the template of the current block and the template of the reference block, and generate a prediction block using the derived relationship. At this time, the video signal processing device can apply a weight value to each reference block on a sample-by-sample or block-by-block basis. Therefore, the weight value is different for each reference block, but a single weight value can be applied within each reference block.
[0224] A video signal processing device may use a template including samples adjacent to the current block and a template including samples adjacent to the reference block to obtain a relationship between a reference block used for weighted sum and a current block. The template composed of samples adjacent to the current block is referred to as a first template. When inter-bidirectional prediction is used, two motion information (MV0, MV1) are used. A template based on samples adjacent to the reference block referenced by the MV0 motion information is referred to as a second template. A template based on samples adjacent to the reference block referenced by the MV1 motion information is referred to as a third template. The video signal processing device may obtain coefficients of the relationship using the first to third templates described above. Specifically, the video signal processing device may obtain a relationship representing the relationship between the current block and the reference block using the CCCM filter relationship described through (c) of FIG. 8. In a specific embodiment, the video signal processing device may derive the first filter relationship according to the form of the CCCM filter relationship of (c) of FIG. 8 using the first template and the second template. In addition, the video signal processing device can derive the second filter relation according to the form of the CCCM filter relation of Fig. 8 (c) using the first template and the third template. The video signal processing device can apply the first filter relation to the first reference block to generate a first filtered block. In addition, the video signal processing device can apply the second filter relation to the first reference block to generate a second filtered block. The video signal processing device can generate a prediction block by weighting the first filtered block and the second filtered block. At this time, the weights used in the weighted sum can be obtained through the embodiments described with reference to Fig. 9.
[0225] In addition, when MHP is used as in the embodiments described through FIGS. 11 and 12, the video signal processing device can obtain a CCCM filter relation using the first template and the template of the reference block added by MHP, and apply the obtained filter relation to the reference block added by MHP to generate a third filtered block. At this time, the video signal processing device can generate a prediction block by weighting the third filtered block and one or more filtered blocks. At this time, the one or more filtered blocks may be obtained by filtering a reference block referenced by one or more motion vectors by applying the CCCM filter relation of FIG. 8 (c). For example, the one or more filtered blocks may include at least one of the first filtered block and the second filtered block described above. In addition, the video signal processing device can obtain the weights applied to the weighted sum according to the embodiments described through FIGS. 11 and 12.
[0226] In the embodiments described above, the filter relations can be reused in subsequent unidirectional or bidirectional predictions. Furthermore, in the embodiments described above, the filter relations can be stored in a separate memory of the video signal processing device.
[0227] The embodiments described through FIGS. 10 to 12 can be individually applied to each of the components of each sample, Y, Cb, and Cr. In another specific embodiment, the embodiments described through FIGS. 10 to 12 can be applied only to the luma sample (Y).
[0228]
[0229] FIG. 14 shows a method for a video signal processing device according to an embodiment of the present invention to perform GPM blending.
[0230] In GPM (geometric partitioning mode), a video signal processing device can blend two geometrically divided regions to predict samples corresponding to the boundaries of the two regions. This is referred to as GPM blending. At this time, in order to blend the two regions, the video signal processing device can obtain a weighted sum of the sample values of the first region and the sample values of the second region by multiplying the sample values of the first region by a first weight value (W0) and multiplying the sample values of the second region by a second weight value (W1). In addition, the encoding device can include information indicating the first weight value and the second weight value in the bitstream. The decoding device can obtain information indicating the first weight value and the second weight value from the bitstream. In another specific embodiment, the video signal processing device can obtain the weight value using the filter relational expression of FIG. 8 described above. The following mathematical expression shows the filter relational expression applied to the blending of GPM.
[0231] w0(x, y) = ax+by+c, w1=1-w0(x, y)
[0232] a, b, and c are filter coefficients, and the video signal processing device can derive them using the filter relationship of Fig. 8 described above. The above w0(x, y) can be re-expressed as the following relationship.
[0233] w0(x, y) =a*(P1-P0) * x+b*(P1-P0) * y+(P1-P0) * c
[0234] P0 and P1 may be sample values corresponding to sample positions (x, y) of a template or predictor block. In addition, if the inter-prediction method of P0 and P1 is unidirectional prediction, the values of P0 and P1 may be changed values based on the internal sample processing accuracy of 14 bits and the image depth (bitdepth) value. In addition, the filter relationship used for blending GPM may use three filter coefficients. In addition, the filter relationship used for blending GPM may additionally include a bias term. In this case, an intermediate value of the image depth (bitdepth) may be used as the value of the bias term. Specifically, the video signal processing device may use any one of the following filter relationships.
[0235] w0(x, y) =a*(P1-P0) * x+b*(P1-P0) * y+(P1-P0) * (bitdepth>>1) * c
[0236] w0(x, y) =a*(P1-P0) * x+b*(P1-P0) * y+(bitdepth>>1) * c
[0237] w0(x, y) =a*(P1-P0) * x+b*(P1-P0) * y+(P1-P0) * c+ (bitdepth>>1) * d
[0238] Here, bitdeth represents the image depth value. Furthermore, the last relation uses four filter coefficients. In the above relations, the positions and orders of P1 and P0 are interchangeable.
[0239]
[0240] The methods described herein may be performed by a processor of a decoder or encoder. Furthermore, the encoder may generate a bitstream that is decoded by a video signal processing method. Furthermore, the bitstream generated by the encoder may be stored on a computer-readable, non-transitory storage medium (recording medium).
[0241] While this specification primarily addresses the decoder's perspective, the same functionality can be applied to an encoder. While the term "parsing" in this specification focuses on the process of obtaining information from a bitstream, it can also be interpreted as generating corresponding information in the bitstream from an encoder's perspective. Therefore, the term "parsing" is not limited to the decoder's operations, but can also be interpreted as the act of generating a bitstream in an encoder. Furthermore, such a bitstream can be generated by being stored on a computer-readable recording medium.
[0242] The embodiments of the present invention described above may be implemented through various means. For example, the embodiments of the present invention may be implemented through hardware, firmware, software, or a combination thereof.
[0243] In the case of hardware implementation, the method according to embodiments of the present invention may be implemented by one or more ASICs (Application Specific Integrated Circuits), DSPs (Digital Signal Processors), DSPDs (Digital Signal Processing Devices), PLDs (Programmable Logic Devices), FPGAs (Field Programmable Gate Arrays), processors, controllers, microcontrollers, microprocessors, etc.
[0244] When implemented via firmware or software, the methods according to embodiments of the present invention may be implemented in the form of modules, procedures, or functions that perform the functions or operations described above. The software code may be stored in memory and executed by the processor. The memory may be located internally or externally to the processor and may exchange data with the processor via various known means.
[0245] Some embodiments may also be implemented in the form of a recording medium containing computer-executable instructions, such as program modules, executed by a computer. Computer-readable media can be any available media that can be accessed by a computer, and includes both volatile and nonvolatile media, removable and non-removable media. Furthermore, computer-readable media can include both computer storage media and communication media. Computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information, such as computer-readable instructions, data structures, program modules, or other data. Communication media typically contains computer-readable instructions, data structures, or other data in a modulated data signal, such as program modules, or other transport mechanisms, and includes any information delivery media.
[0246] The foregoing description of the present invention is provided for illustrative purposes only, and those skilled in the art will readily appreciate that the present invention can be readily modified into other specific forms without altering the technical spirit or essential characteristics of the present invention. Therefore, the embodiments described above should be construed as illustrative and not restrictive in all respects. For example, each generating element described as a single entity may be implemented in a distributed manner, and similarly, generating elements described as distributed may be implemented in a combined manner.
[0247] The scope of the present invention is indicated by the claims described below rather than the detailed description above, and all changes or modifications derived from the meaning and scope of the claims and their equivalent concepts should be interpreted as being included in the scope of the present invention.
Claims
1. In a decoding device that decodes a video signal, Contains a processor, The above processor Obtaining a relationship between the template of one or more reference blocks to which one or more motion information refers and the template of the current block, and Generate a prediction block based on the above relation, the reference block, and the current block, The template of the above reference block includes samples adjacent to the above reference block according to a pre-specified form, The template of the current block includes samples adjacent to the reference block according to the above-described form. Decoding device.
2. In paragraph 1, The above one or more motion information is two or more motion information, The above one or more reference blocks are two or more blocks Decoding device.
3. In paragraph 1, The one or more reference blocks include reference blocks referenced by MHP (multi-hypothesis prediction). Decoding device.
4. In paragraph 1, The above relationship is a relationship that includes multiple filter coefficients. Decoding device.
5. In paragraph 1, The one or more reference blocks are included in the current picture including the current block. Decoding device.
6. In paragraph 1, The one or more reference blocks are included in a picture other than the current picture containing the current block. Decoding device.
7. In a decoding device that encodes a video signal, Contains a processor, The above processor Obtaining a relationship between the template of one or more reference blocks to which one or more motion information refers and the template of the current block, and Generate a prediction block based on the above relation, the reference block, and the current block, The template of the above reference block includes samples adjacent to the above reference block according to a pre-specified form, The template of the current block includes samples adjacent to the reference block according to the above-described form. Encoding device.
8. In paragraph 7, The above one or more motion information is two or more motion information, The above one or more reference blocks are two or more blocks Encoding device.
9. In paragraph 7, The one or more reference blocks include reference blocks referenced by MHP (multi-hypothesis prediction). Encoding device.
10. In paragraph 7, The above relationship is a relationship that includes multiple filter coefficients. Encoding device.
11. In paragraph 7, The one or more reference blocks are included in the current picture including the current block. Encoding device.
12. In paragraph 1, The one or more reference blocks are included in a picture other than the current picture containing the current block. Encoding device.
13. In a computer-readable non-transitory storage medium storing a bitstream, The above bitstream is decoded by a decoding method, The above decoding method A step of obtaining a relationship between a template of one or more reference blocks to which one or more pieces of motion information refer and a template of a current block; and A step of generating a prediction block based on the above relation, the reference block, and the current block, The template of the above reference block includes samples adjacent to the above reference block according to a pre-specified form, The template of the current block includes samples adjacent to the reference block according to the above-described form. Non-transitory storage media.
14. In a decoding method for decoding a video signal, A step of obtaining a relationship between a template of one or more reference blocks to which one or more pieces of motion information refer and a template of a current block; and A step of generating a prediction block based on the above relation, the reference block, and the current block, The template of the above reference block includes samples adjacent to the above reference block according to a pre-specified form, The template of the current block includes samples adjacent to the reference block according to the above-described form. How to decode.
Citation Information
Patent Citations
Beef jerky production method using heart
KR1020230144675A
LIC signaling methods
US20200404282A1
Encoder, decoder, encoding method, and decoding method
US20210044811A1
Video signal processing method and apparatus therefor
WO2023033486A1
Method for processing video signal by using local illumination compensation (LIC) mode, and apparatus therefor
WO2023033617A1
