Intra prediction-based image encoding / decoding method and device, and recording medium storing bitstream

The video encoding/decoding method improves efficiency by using intra and chroma prediction with block vector information to generate prediction blocks, addressing the challenge of high bit costs for high-resolution video data, and achieving efficient transmission and storage.

WO2024225784A1PCT designated stage expired Publication Date: 2024-10-31LG ELECTRONICS INC

Patent Information

Application Number
PCT/KR2024/005623
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-27
Filing Date
2024-04-25
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

The increasing demand for high-resolution, high-quality video data leads to higher bit transmission and storage costs, necessitating highly efficient video compression technologies for effective transmission, storage, and reproduction.

Method used

A video encoding/decoding method and device that utilizes intra prediction and chroma prediction based on block vector information, including generating prediction parameters and final chroma prediction blocks by identifying and utilizing block vector information from neighboring luma blocks, and performing weighted summation of prediction blocks.

Benefits of technology

This approach enhances encoding/decoding efficiency, effectively performs intra and chroma prediction, and reduces bitstream size, thereby lowering transmission and storage costs while maintaining high video quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure KR2024005623_31102024_PF_FP_ABST
    Figure KR2024005623_31102024_PF_FP_ABST
Patent Text Reader

Abstract

An image encoding / decoding method and device are provided. The image decoding method according to the present disclosure may comprise the steps of: obtaining block vector information of a corresponding luma block corresponding to a current chroma block; identifying a chroma reference block of the current chroma block and a luma reference block of the corresponding luma block on the basis of the block vector information; generating a prediction parameter on the basis of the chroma reference block and the luma reference block; and generating a final chroma prediction block of the current chroma block on the basis of the generated prediction parameter.
Need to check novelty before this filing date? Find Prior Art

Description

Video encoding / decoding method and device based on intra prediction and recording medium for storing bitstream

[0001] The present disclosure relates to a video encoding / decoding method, a device, and a recording medium for storing a bitstream, and more particularly, to a video encoding / decoding method and device based on intra prediction, and a recording medium for storing a bitstream generated by the video encoding method / device of the present disclosure.

[0002] Recently, demand for high-resolution, high-quality images, such as HD (High Definition) and UHD (Ultra High Definition) images, has been increasing across various fields. As image data becomes higher resolution and higher quality, the amount of information transmitted, or bits, increases relative to conventional image data. This increase in information or bits transmitted leads to increased transmission and storage costs.

[0003] Accordingly, a highly efficient image compression technology is required to effectively transmit, store, and play high-resolution, high-quality image information.

[0004] The present disclosure aims to provide a video encoding / decoding method and device with improved encoding / decoding efficiency.

[0005] In addition, the present disclosure aims to provide an image encoding / decoding method and device that effectively performs intra prediction.

[0006] In addition, the present disclosure aims to provide a video encoding / decoding method and device that effectively performs chroma prediction by utilizing block vector information.

[0007] In addition, the present disclosure aims to provide a non-transitory computer-readable recording medium that stores a bitstream generated by an image encoding method or device according to the present disclosure.

[0008] In addition, the present disclosure aims to provide a non-transitory computer-readable recording medium that stores a bitstream received and decoded by an image decoding device according to the present disclosure and used for restoring an image.

[0009] In addition, the present disclosure aims to provide a method for transmitting a bitstream generated by an image encoding method or device according to the present disclosure.

[0010] The technical problems to be achieved in the present disclosure are not limited to the technical problems mentioned above, and other technical problems not mentioned can be clearly understood by a person having ordinary skill in the technical field to which the present disclosure belongs from the description below.

[0011] According to one embodiment of the present disclosure, a video decoding method performed by a video decoding device may include the steps of: obtaining block vector information of a corresponding luma block corresponding to a current chroma block; identifying a chroma reference block of the current chroma block and a luma reference block of the corresponding luma block based on the block vector information; generating a prediction parameter based on the chroma reference block and the luma reference block; and generating a final chroma prediction block of the current chroma block based on the generated prediction parameter.

[0012] According to one embodiment of the present disclosure, based on the number of corresponding luma blocks, the block vector information may include block vector information of a predetermined position within the plurality of corresponding luma blocks.

[0013] According to one embodiment of the present disclosure, the plurality of corresponding luma blocks include an upper left corresponding luma block, an upper right corresponding luma block, a lower left corresponding luma block, a lower right corresponding luma block, and a central corresponding luma block, and the predetermined position may include at least one of an upper left luma sample position within the upper left corresponding luma block, an upper right luma sample position within the upper right corresponding luma block, a lower left luma sample position within the lower left corresponding luma block, a lower right luma sample position within the lower right corresponding luma block, or an upper left luma sample position within the central corresponding luma block.

[0014] According to one embodiment of the present disclosure, based on the N pieces of block vector information of the predetermined position, the method further includes the step of constructing a block vector candidate list and the step of obtaining a first block vector index indicating first block vector information included in the block vector candidate list, wherein the final chroma prediction block is generated based on the first block vector index, and N may be a natural number.

[0015] According to one embodiment of the present disclosure, based on N pieces of block vector information of the predetermined position, the method further includes the steps of constructing a block vector candidate list, obtaining a second block vector index indicating second block vector information included in the block vector candidate list, and obtaining a third block vector index indicating third block vector information included in the block vector candidate list, wherein the final chroma prediction block is generated by weighting a first chroma prediction block generated based on the second block vector index and a second chroma prediction block generated based on the third block vector index, and N may be a natural number.

[0016] According to one embodiment of the present disclosure, block vector information at the predetermined location for constructing the block vector candidate list can be searched in a predetermined order.

[0017] According to one embodiment of the present disclosure, the step of generating the prediction parameter may further include the step of downsampling the luma reference block based on the size of the chroma reference block.

[0018] According to one embodiment of the present disclosure, the step of generating the final chroma prediction block may further include the step of generating a third chroma prediction block based on an intra prediction mode, the step of generating a fourth chroma prediction block based on the prediction parameter, and the step of generating the final chroma prediction block by weighting the third chroma prediction block and the fourth chroma prediction block.

[0019] According to one embodiment of the present disclosure, the intra prediction mode may be one of a PLANAR mode, a DC mode, or a directional mode.

[0020] According to one embodiment of the present disclosure, the prediction parameter may be one of a filter coefficient used in a convolutional cross-component intra prediction model (CCCM) or a linear model parameter used in a cross-component linear model (CCLM).

[0021] According to one embodiment of the present disclosure, the block vector information of the corresponding luma block may include block vector information of a surrounding block of the corresponding luma block.

[0022] According to one embodiment of the present disclosure, a video encoding method performed by a video encoding device may include: encoding block vector information of a corresponding luma block corresponding to a current chroma block; identifying a chroma reference block of the current chroma block and a luma reference block of the corresponding luma block based on the block vector information; generating a prediction parameter based on the chroma reference block and the luma reference block; and generating a final chroma prediction block of the current chroma block based on the generated prediction parameter.

[0023] According to one embodiment of the present disclosure, there may be a computer-readable recording medium storing a bitstream generated by an image encoding method.

[0024] According to one embodiment of the present disclosure, in a method for transmitting a bitstream generated by a video encoding method, the video encoding method may include: encoding block vector information of a corresponding luma block corresponding to a current chroma block; identifying a chroma reference block of the current chroma block and a luma reference block of the corresponding luma block based on the block vector information; generating a prediction parameter based on the chroma reference block and the luma reference block; and generating a final chroma prediction block of the current chroma block based on the generated prediction parameter.

[0025] According to the present disclosure, a video encoding / decoding method and device with improved encoding / decoding efficiency can be provided.

[0026] In addition, according to the present disclosure, an image encoding / decoding method and device that effectively perform intra prediction can be provided.

[0027] In addition, according to the present disclosure, a video encoding / decoding method and device that effectively perform chroma prediction by utilizing block vector information can be provided.

[0028] In addition, according to the present disclosure, a non-transitory computer-readable recording medium for storing a bitstream generated by an image encoding method or device according to the present disclosure can be provided.

[0029] In addition, according to the present disclosure, a non-transitory computer-readable recording medium can be provided that stores a bitstream received and decoded by an image decoding device according to the present disclosure and used for restoring an image.

[0030] Additionally, according to the present disclosure, a method for transmitting a bitstream generated by an image encoding method or device according to the present disclosure can be provided.

[0031] The effects that can be obtained from the present disclosure are not limited to the effects mentioned above, and other effects that are not mentioned will be clearly understood by a person having ordinary skill in the art to which the present disclosure pertains from the description below.

[0032] FIG. 1 is a diagram schematically illustrating a video coding system to which an embodiment according to the present disclosure can be applied.

[0033] FIG. 2 is a schematic diagram of an image encoding device to which an embodiment according to the present disclosure can be applied.

[0034] FIG. 3 is a schematic diagram illustrating an image decoding device to which an embodiment according to the present disclosure can be applied.

[0035] Figure 4 is a flowchart illustrating an intra prediction-based video / image encoding method.

[0036] FIG. 5 is a diagram exemplarily illustrating the configuration of an intra prediction unit according to the present disclosure.

[0037] Fig. 6 is a flowchart illustrating an intra prediction-based video / image decoding method.

[0038] FIG. 7 is a diagram exemplarily illustrating the configuration of an intra prediction unit according to the present disclosure.

[0039] FIG. 8 is a diagram illustrating a template area used in a TIMD (Template-based Intra Mode Derivation) mode according to the present disclosure.

[0040] FIG. 9 is a diagram for explaining a template matching-based encoding / decoding method according to the present disclosure.

[0041] FIG. 10 is a diagram illustrating a block vector in an IBC (Intra block copy) mode according to one embodiment of the present disclosure.

[0042] FIG. 11 is a diagram illustrating a reference area in IBC mode according to one embodiment of the present disclosure.

[0043] FIG. 12 is a diagram illustrating the locations of neighboring samples used in the MDM (Multiple Direct Modes) mode according to one embodiment of the present disclosure.

[0044] FIG. 13 is a diagram illustrating a method for classifying neighboring samples into two groups according to one embodiment of the present disclosure.

[0045] FIG. 14 is a diagram illustrating the locations of neighboring samples used to derive CCLM (Cross-component linear model) parameters according to one embodiment of the present disclosure.

[0046] FIG. 15 is a diagram illustrating a gradient pattern for a GLM (Gradient linear model) according to one embodiment of the present disclosure.

[0047] FIG. 16 is a diagram illustrating a gradient pattern for GLM according to one embodiment of the present disclosure.

[0048] FIG. 17 is a diagram illustrating a block vector when a corresponding luma block according to one embodiment of the present disclosure is in IBC mode.

[0049] FIG. 18 is a diagram illustrating a corresponding luma block according to one embodiment of the present disclosure.

[0050] FIG. 19 and FIG. 20 are flowcharts of a method for generating a chroma prediction block according to one embodiment of the present disclosure.

[0051] FIG. 21 is a diagram illustrating reference blocks when there are multiple block vectors according to one embodiment of the present disclosure.

[0052] FIG. 22 is a diagram illustrating a plurality of luma reference blocks and a current chroma block according to one embodiment of the present disclosure.

[0053] FIG. 23 is a flowchart of an encoding method according to one embodiment of the present disclosure.

[0054] Figure 24 is a flowchart of a decryption method according to one embodiment of the present disclosure.

[0055] FIG. 25 is a diagram illustrating an example of a content streaming system to which an embodiment according to the present disclosure can be applied.

[0056] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the attached drawings so that those skilled in the art can easily implement the present disclosure. However, the present disclosure may be implemented in various different forms and is not limited to the embodiments described herein.

[0057] In describing embodiments of the present disclosure, detailed descriptions of known configurations or functions will be omitted if they are deemed to obscure the gist of the present disclosure. Furthermore, portions unrelated to the description of the present disclosure in the drawings have been omitted, and similar portions have been designated with similar reference numerals.

[0058] In the present disclosure, when a component is said to be "connected," "coupled," or "connected" to another component, this may include not only a direct connection, but also an indirect connection in which another component exists in between. Furthermore, when a component is said to "include" or "have" another component, unless otherwise specifically stated, this does not exclude the other component, but rather implies that the other component may be included.

[0059] In this disclosure, terms such as first, second, etc. are used solely to distinguish one component from another, and do not limit the order or importance of components unless specifically stated otherwise. Accordingly, within the scope of this disclosure, a first component in one embodiment may be referred to as a second component in another embodiment, and similarly, a second component in one embodiment may be referred to as a first component in another embodiment.

[0060] In this disclosure, distinct components are used to clearly illustrate their respective characteristics, and do not necessarily imply that the components are separated. That is, multiple components may be integrated into a single hardware or software unit, or a single component may be distributed into multiple hardware or software units. Therefore, even if not specifically mentioned, such integrated or distributed embodiments are also included within the scope of this disclosure.

[0061] In the present disclosure, the components described in various embodiments are not necessarily essential components, and some may be optional components. Therefore, embodiments comprising a subset of the components described in one embodiment are also within the scope of the present disclosure. Furthermore, embodiments including other components in addition to the components described in various embodiments are also within the scope of the present disclosure.

[0062] The present disclosure relates to encoding and decoding of images, and terms used in the present disclosure may have their usual meanings commonly used in the technical field to which the present disclosure belongs, unless newly defined in the present disclosure.

[0063] In the present disclosure, “video” may mean a collection of a series of images over time.

[0064] In the present disclosure, a "picture" generally refers to a unit representing one image of a specific time period, and a slice / tile is a coding unit that constitutes a part of a picture, and a single picture may be composed of one or more slices / tiles. In addition, a slice / tile may include one or more coding tree units (CTUs).

[0065] In the present disclosure, "pixel" or "pel" may refer to the smallest unit that constitutes a picture (or image). Additionally, "sample" may be used as a term corresponding to a pixel. A sample may generally represent a pixel or a pixel value, and may represent only a pixel / pixel value of a luma component or only a pixel / pixel value of a chroma component.

[0066] In the present disclosure, a "unit" may represent a basic unit of image processing. A unit may include at least one of a specific region of a picture and information related to the region. In some cases, the term "unit" may be used interchangeably with terms such as "sample array," "block," or "area." In general, an MxN block may include a set (or array) of samples (or sample array) or transform coefficients consisting of M columns and N rows.

[0067] In the present disclosure, the "current block" may mean one of the following: a "current coding block," a "current coding unit," a "block to be encoded," a "block to be decoded," or a "block to be processed." When prediction is performed, the "current block" may mean a "current prediction block" or a "block to be predicted." When transformation (inverse transformation) / quantization (inverse quantization) is performed, the "current block" may mean a "current transformation block" or a "block to be transformed." When filtering is performed, the "current block" may mean a "block to be filtered."

[0068] In the present disclosure, a "current block" may mean a block that includes both a luma component block and a chroma component block, or a "luma block of the current block," unless explicitly described as a chroma block. The luma component block of the current block may be explicitly expressed by including an explicit description of the luma component block, such as "luma block" or "current luma block." Additionally, the chroma component block of the current block may be explicitly expressed by including an explicit description of the chroma component block, such as "chroma block" or "current chroma block."

[0069] In this disclosure, " / " and "," can be interpreted as "and / or". For example, "A / B" and "A, B" can be interpreted as "A and / or B". Additionally, "A / B / C" and "A, B, C" can mean "at least one of A, B, and / or C."

[0070] In this disclosure, "or" may be interpreted as "and / or." For example, "A or B" may mean 1) "A" only, 2) "B" only, or 3) "A and B." Alternatively, "or" in this disclosure may mean "additionally or alternatively."

[0071] In this disclosure, "at least one of A, B, and C" may mean "only A," "only B," "only C," or "any and all combinations of A, B, and C." Additionally, "at least one of A, B, or C" or "at least one of A, B, and / or C" may mean "at least one of A, B, and C."

[0072] The parentheses used in this disclosure may mean "for example." For example, when "prediction (intra-prediction)" is indicated, "intra-prediction" may be suggested as an example of "prediction." In other words, "prediction" in this disclosure is not limited to "intra-prediction," and "intra-prediction" may be suggested as an example of "prediction." Furthermore, even when "prediction (i.e., intra-prediction)" is indicated, "intra-prediction" may be suggested as an example of "prediction."

[0073] Overview of Video Coding Systems

[0074] FIG. 1 is a diagram schematically illustrating a video coding system to which an embodiment according to the present disclosure can be applied.

[0075] A video coding system according to one embodiment may include an encoding device (10) and a decoding device (20). The encoding device (10) may transmit encoded video and / or image information or data to the decoding device (20) in the form of a file or streaming through a digital storage medium or a network.

[0076] An encoding device (10) according to one embodiment may include a video source generation unit (11), an encoding unit (12), and a transmission unit (13). A decoding device (20) according to one embodiment may include a reception unit (21), a decoding unit (22), and a rendering unit (23). The encoding unit (12) may be referred to as a video / image encoding unit, and the decoding unit (22) may be referred to as a video / image decoding unit. The transmission unit (13) may be included in the encoding unit (12). The reception unit (21) may be included in the decoding unit (22). The rendering unit (23) may include a display unit, and the display unit may be configured as a separate device or an external component.

[0077] The video source generation unit (11) can obtain video / images through a process of capturing, synthesizing, or generating video / images. The video source generation unit (11) can include a video / image capture device and / or a video / image generation device. The video / image capture device can include, for example, one or more cameras, a video / image archive including previously captured video / images, etc. The video / image generation device can include, for example, a computer, a tablet, a smartphone, etc., and can (electronically) generate video / images. For example, a virtual video / image can be generated through a computer, etc., in which case the video / image capture process can be replaced with a process of generating related data.

[0078] The encoding unit (12) can encode input video / images. The encoding unit (12) can perform a series of procedures such as prediction, transformation, and quantization to improve compression and encoding efficiency. The encoding unit (12) can output encoded data (encoded video / image information) in the form of a bitstream.

[0079] The transmission unit (13) can obtain encoded video / image information or data output in the form of a bitstream, and transmit it to the reception unit (21) of the decoding device (20) or another external object through a digital storage medium or a network in the form of a file or streaming. The digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. The transmission unit (13) may include an element for generating a media file through a predetermined file format, and may include an element for transmission through a broadcasting / communication network. The transmission unit (13) may be provided as a separate transmission device from the encoding unit (120), and in this case, the transmission device may include at least one processor for obtaining encoded video / image information or data output in the form of a bitstream, and a transmission unit for transmitting it in the form of a file or streaming. The reception unit (21) can extract / receive the bitstream from the storage medium or network and transmit it to the decoding unit (22).

[0080] The decoding unit (22) can decode video / image by performing a series of procedures such as inverse quantization, inverse transformation, and prediction corresponding to the operation of the encoding unit (12).

[0081] The rendering unit (23) can render the decrypted video / image. The rendered video / image can be displayed through the display unit.

[0082] Overview of the video encoding device

[0083] FIG. 2 is a schematic diagram illustrating an image encoding device to which an embodiment according to the present disclosure can be applied.

[0084] As illustrated in FIG. 2, the image encoding device (100) may include an image segmentation unit (110), a subtraction unit (115), a transformation unit (120), a quantization unit (130), an inverse quantization unit (140), an inverse transformation unit (150), an addition unit (155), a filtering unit (160), a memory (170), an inter prediction unit (180), an intra prediction unit (185), and an entropy encoding unit (190). The inter prediction unit (180) and the intra prediction unit (185) may be collectively referred to as a “prediction unit.” The transformation unit (120), the quantization unit (130), the inverse quantization unit (140), and the inverse transformation unit (150) may be included in a residual processing unit. The residual processing unit may further include a subtraction unit (115).

[0085] All or at least some of the plurality of components constituting the video encoding device (100) may be implemented as a single hardware component (e.g., an encoder or a processor) according to an embodiment. In addition, the memory (170) may include a decoded picture buffer (DPB) and may be implemented by a digital storage medium.

[0086] The image segmentation unit (110) can segment an input image (or picture, frame) input to the image encoding device (100) into one or more processing units. For example, the processing unit may be called a coding unit (CU). The coding unit may be obtained by recursively segmenting a coding tree unit (CTU) or a largest coding unit (LCU) according to a QT / BT / TT (Quad-tree / binary-tree / ternary-tree) structure. For example, one coding unit may be segmented into a plurality of coding units of deeper depth based on a quad-tree structure, a binary-tree structure, and / or a ternary-tree structure. For segmenting the coding unit, the quad-tree structure may be applied first, and the binary-tree structure and / or the ternary-tree structure may be applied later. The coding procedure according to the present disclosure may be performed based on the final coding unit that is no longer segmented. The maximum coding unit can be used directly as the final coding unit, and the coding unit of the lower depth obtained by dividing the maximum coding unit can be used as the final concatenated unit. Here, the coding procedure may include procedures such as prediction, transformation, and / or restoration described below. As another example, the processing unit of the coding procedure may be a prediction unit (PU) or a transformation unit (TU). The prediction unit and the transformation unit may each be divided or partitioned from the final coding unit. The prediction unit may be a unit of sample prediction, and the transformation unit may be a unit that derives a transform coefficient and / or a unit that derives a residual signal from a transform coefficient.

[0087] The prediction unit (inter-prediction unit (180) or intra-prediction unit (185)) can perform prediction on a block to be processed (current block) and generate a predicted block including prediction samples for the current block. The prediction unit can determine whether intra-prediction or inter-prediction is applied to the current block or CU unit. The prediction unit can generate various information regarding the prediction of the current block and transmit the information to the entropy encoding unit (190). The information regarding the prediction can be encoded by the entropy encoding unit (190) and output in the form of a bitstream.

[0088] The intra prediction unit (185) can predict the current block by referring to samples within the current picture. The referenced samples may be located in the neighborhood of the current block or may be located away from it, depending on the intra prediction mode and / or intra prediction technique. The intra prediction modes may include a plurality of non-directional modes and a plurality of directional modes. The non-directional modes may include, for example, a DC mode and a planar mode. The directional modes may include, for example, 33 directional prediction modes or 65 directional prediction modes, depending on the degree of detail in the prediction direction. However, this is merely an example, and a greater or lesser number of directional prediction modes may be used depending on the settings. The intra prediction unit (185) may also determine the prediction mode applied to the current block by using the prediction mode applied to the neighboring blocks.

[0089] The inter prediction unit (180) can derive a predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on a reference picture. At this time, in order to reduce the amount of motion information transmitted in the inter prediction mode, the motion information can be predicted in units of blocks, sub-blocks, or samples based on the correlation of the motion information between the neighboring blocks and the current block. The motion information can include a motion vector and a reference picture index. The motion information can further include information on the inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.). In the case of inter prediction, the neighboring block can include a spatial neighboring block existing in the current picture and a temporal neighboring block existing in the reference picture. The reference picture including the reference block and the reference picture including the temporal neighboring block may be the same or different. The temporal neighboring block may be called a collocated reference block, a collocated CU (colCU), etc. A reference picture including the above temporal neighboring blocks may be called a collocated picture (colPic). For example, the inter prediction unit (180) may construct a motion information candidate list based on neighboring blocks and generate information indicating which candidate is used to derive the motion vector and / or reference picture index of the current block. Inter prediction may be performed based on various prediction modes, and for example, in the case of skip mode and merge mode, the inter prediction unit (180) may use the motion information of neighboring blocks as the motion information of the current block. In the case of skip mode, unlike the merge mode, a residual signal may not be transmitted.In the motion vector prediction (MVP) mode, the motion vector of the current block can be signaled by using the motion vector of the surrounding blocks as the motion vector predictor and encoding the motion vector difference and an indicator for the motion vector predictor. The motion vector difference can mean the difference between the motion vector of the current block and the motion vector predictor.

[0090] The prediction unit can generate a prediction signal based on various prediction methods and / or prediction techniques described below. For example, the prediction unit can apply intra prediction or inter prediction to predict the current block, and can also apply intra prediction and inter prediction simultaneously. A prediction method that simultaneously applies intra prediction and inter prediction to predict the current block may be called combined inter and intra prediction (CIIP). In addition, the prediction unit may perform intra block copy (IBC) to predict the current block. Intra block copy can be used for video / image coding of content such as games, such as screen content coding (SCC). IBC is a method of predicting the current block using a previously restored reference block within the current picture located at a predetermined distance from the current block. When IBC is applied, the location of the reference block within the current picture can be encoded as a vector (block vector) corresponding to the predetermined distance. IBC basically performs prediction within the current picture, but can be performed similarly to inter prediction in that it derives reference blocks within the current picture. That is, IBC can utilize at least one of the inter prediction techniques described in the present disclosure.

[0091] The prediction signal generated through the prediction unit can be used to generate a restoration signal or a residual signal. The subtraction unit (115) can generate a residual signal (residual block, residual sample array) by subtracting the prediction signal (predicted block, predicted sample array) output from the prediction unit from the input image signal (original block, original sample array). The generated residual signal can be transmitted to the conversion unit (120).

[0092] The transform unit (120) can apply a transform technique to the residual signal to generate transform coefficients. For example, the transform technique can include at least one of a Discrete Cosine Transform (DCT), a Discrete Sine Transform (DST), a Karhunen-Loeve Transform (KLT), a Graph-Based Transform (GBT), or a Conditionally Non-linear Transform (CNT). Here, GBT refers to a transform obtained from a graph when the relationship information between pixels is expressed as a graph. CNT refers to a transform obtained based on generating a prediction signal using all previously reconstructed pixels. The transform process can be applied to a pixel block having a square equal size, or can be applied to a block of a non-square variable size.

[0093] The quantization unit (130) can quantize the transform coefficients and transmit them to the entropy encoding unit (190). The entropy encoding unit (190) can encode the quantized signal (information about the quantized transform coefficients) and output it as a bitstream. The information about the quantized transform coefficients can be called residual information. The quantization unit (130) can rearrange the quantized transform coefficients in a block form into a one-dimensional vector form based on a coefficient scan order, and can also generate information about the quantized transform coefficients based on the quantized transform coefficients in the one-dimensional vector form.

[0094] The entropy encoding unit (190) can perform various encoding methods, such as, for example, exponential Golomb, context-adaptive variable length coding (CAVLC), and context-adaptive binary arithmetic coding (CABAC). The entropy encoding unit (190) can also encode, together or separately, information necessary for video / image restoration (e.g., values ​​of syntax elements) in addition to quantized transform coefficients. The encoded information (e.g., encoded video / image information) can be transmitted or stored in the form of a bitstream in the form of a network abstraction layer (NAL) unit. The video / image information may further include information on various parameter sets, such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). In addition, the video / image information may further include general constraint information. The signaling information, transmitted information and / or syntax elements mentioned in the present disclosure may be encoded through the encoding procedure described above and included in the bitstream.

[0095] The above bitstream may be transmitted via a network or stored in a digital storage medium. Here, the network may include a broadcasting network and / or a communication network, and the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. A transmission unit (not shown) for transmitting the signal output from the entropy encoding unit (190) and / or a storage unit (not shown) for storing the signal may be provided as an internal / external element of the video encoding device (100), or the transmission unit may be provided as a component of the entropy encoding unit (190).

[0096] The quantized transform coefficients output from the quantization unit (130) can be used to generate a residual signal. For example, by applying inverse quantization and inverse transformation to the quantized transform coefficients through the inverse quantization unit (140) and inverse transformation unit (150), a residual signal (residual block or residual samples) can be restored.

[0097] The addition unit (155) can generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the reconstructed residual signal to the prediction signal output from the inter prediction unit (180) or the intra prediction unit (185). When there is no residual for the block to be processed, such as when skip mode is applied, the predicted block can be used as the reconstructed block. The addition unit (155) can be called a reconstructor or a reconstructed block generation unit. The generated reconstructed signal can be used for intra prediction of the next block to be processed within the current picture, and can also be used for inter prediction of the next picture after filtering as described below.

[0098] Meanwhile, LMCS (luma mapping with chroma scaling) may be applied during the picture encoding and / or restoration process.

[0099] The filtering unit (160) can improve subjective / objective picture quality by applying filtering to the restoration signal. For example, the filtering unit (160) can apply various filtering methods to the restoration picture to generate a modified restoration picture, and store the modified restoration picture in the memory (170), specifically, in the DPB of the memory (170). The various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, etc. The filtering unit (160) can generate various information regarding filtering and transmit the information to the entropy encoding unit (190), as described later in the description of each filtering method. The information regarding filtering may be encoded by the entropy encoding unit (190) and output in the form of a bitstream.

[0100] The modified restored picture transmitted to the memory (170) can be used as a reference picture in the inter prediction unit (180). Through this, when inter prediction is applied, the image encoding device (100) can avoid prediction mismatch between the image encoding device (100) and the image decoding device, and can also improve encoding efficiency.

[0101] The DPB in the memory (170) can store a modified reconstructed picture to be used as a reference picture in the inter prediction unit (180). The memory (170) can store motion information of a block from which motion information in the current picture is derived (or encoded) and / or motion information of blocks in a picture that has already been reconstructed. The stored motion information can be transferred to the inter prediction unit (180) to be used as motion information of a spatial neighboring block or motion information of a temporal neighboring block. The memory (170) can store reconstructed samples of reconstructed blocks in the current picture and transfer them to the intra prediction unit (185).

[0102] Video Decryption Device Overview

[0103] FIG. 3 is a schematic diagram illustrating an image decoding device to which an embodiment according to the present disclosure can be applied.

[0104] As illustrated in FIG. 3, the image decoding device (200) may be configured to include an entropy decoding unit (210), an inverse quantization unit (220), an inverse transformation unit (230), an addition unit (235), a filtering unit (240), a memory (250), an inter prediction unit (260), and an intra prediction unit (265). The inter prediction unit (260) and the intra prediction unit (265) may be collectively referred to as a “prediction unit.” The inverse quantization unit (220) and the inverse transformation unit (230) may be included in a residual processing unit.

[0105] All or at least some of the plurality of components constituting the video decoding device (200) may be implemented as a single hardware component (e.g., a decoder or processor) depending on the embodiment. In addition, the memory (170) may include a DPB and may be implemented by a digital storage medium.

[0106] The video decoding device (200) that receives a bitstream including video / image information can restore the image by performing a process corresponding to the process performed in the video encoding device (100) of FIG. 2. For example, the video decoding device (200) can perform decoding using a processing unit applied in the video encoding device. Therefore, the processing unit for decoding may be, for example, a coding unit. The coding unit may be a coding tree unit or may be obtained by dividing a maximum coding unit. In addition, the restored image signal decoded and output by the video decoding device (200) can be reproduced through a reproduction device (not shown).

[0107] The video decoding device (200) can receive a signal output from the video encoding device of FIG. 2 in the form of a bitstream. The received signal can be decoded through the entropy decoding unit (210). For example, the entropy decoding unit (210) can parse the bitstream to derive information (e.g., video / image information) necessary for image restoration (or picture restoration). The video / image information may further include information on various parameter sets, such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). In addition, the video / image information may further include general constraint information. The video decoding device may additionally use information on the parameter set and / or the general constraint information to decode the image. The signaling information, received information, and / or syntax elements mentioned in the present disclosure can be obtained from the bitstream by being decoded through the decoding procedure. For example, the entropy decoding unit (210) can decode information in the bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, and output the values ​​of syntax elements required for image restoration and the quantized values ​​of transform coefficients for residuals. More specifically, the CABAC entropy decoding method receives a bin corresponding to each syntax element in the bitstream, determines a context model using information of the syntax element to be decoded and the decoding information of the surrounding block and the decoding target block or the information of the symbol / bin decoded in the previous step, and predicts the occurrence probability of the bin according to the determined context model to perform arithmetic decoding of the bin to generate a symbol corresponding to the value of each syntax element.At this time, the CABAC entropy decoding method can update the context model using the information of the decoded symbol / bin for the context model of the next symbol / bin after determining the context model. Information regarding prediction among the information decoded by the entropy decoding unit (210) is provided to the prediction unit (inter prediction unit (260) and intra prediction unit (265)), and the residual value on which entropy decoding is performed by the entropy decoding unit (210), i.e., quantized transform coefficients and related parameter information, can be input to the inverse quantization unit (220). In addition, information regarding filtering among the information decoded by the entropy decoding unit (210) can be provided to the filtering unit (240). Meanwhile, a receiving unit (not shown) that receives a signal output from an image encoding device may be additionally provided as an internal / external element of the image decoding device (200), or the receiving unit may be provided as a component of an entropy decoding unit (210).

[0108] Meanwhile, the video decoding device according to the present disclosure may be referred to as a video / video / picture decoding device. The video decoding device may include an information decoder (video / video / picture information decoder) and / or a sample decoder (video / video / picture sample decoder). The information decoder may include an entropy decoding unit (210), and the sample decoder may include at least one of an inverse quantization unit (220), an inverse transformation unit (230), an addition unit (235), a filtering unit (240), a memory (250), an inter prediction unit (260), and an intra prediction unit (265).

[0109] The inverse quantization unit (220) can inverse quantize the quantized transform coefficients and output the transform coefficients. The inverse quantization unit (220) can rearrange the quantized transform coefficients into a two-dimensional block form. In this case, the rearrangement can be performed based on the coefficient scanning order performed in the image encoding device. The inverse quantization unit (220) can perform inverse quantization on the quantized transform coefficients using quantization parameters (e.g., quantization step size information) and obtain transform coefficients.

[0110] In the inverse transform unit (230), the transform coefficients can be inversely transformed to obtain a residual signal (residual block, residual sample array).

[0111] The prediction unit can perform a prediction on the current block and generate a predicted block containing prediction samples for the current block. The prediction unit can determine whether intra-prediction or inter-prediction is applied to the current block based on the prediction information output from the entropy decoding unit (210), and can determine a specific intra / inter-prediction mode (prediction technique).

[0112] The fact that the prediction unit can generate a prediction signal based on various prediction methods (techniques) described below is the same as that mentioned in the description of the prediction unit of the image encoding device (100).

[0113] The intra prediction unit (265) can predict the current block by referring to samples within the current picture. The description of the intra prediction unit (185) can be equally applied to the intra prediction unit (265).

[0114] The inter prediction unit (260) can derive a predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on a reference picture. At this time, in order to reduce the amount of motion information transmitted in the inter prediction mode, the motion information can be predicted in units of blocks, sub-blocks, or samples based on the correlation of the motion information between the neighboring blocks and the current block. The motion information can include a motion vector and a reference picture index. The motion information can further include information on the inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.). In the case of inter prediction, the neighboring blocks can include spatial neighboring blocks existing in the current picture and temporal neighboring blocks existing in the reference picture. For example, the inter prediction unit (260) can construct a motion information candidate list based on the neighboring blocks, and derive the motion vector and / or reference picture index of the current block based on the received candidate selection information. Inter prediction can be performed based on various prediction modes (techniques), and the information about the prediction can include information indicating the mode (technique) of inter prediction for the current block.

[0115] The addition unit (235) can generate a restoration signal (restored picture, restoration block, restoration sample array) by adding the acquired residual signal to the prediction signal (predicted block, prediction sample array) output from the prediction unit (including the inter prediction unit (260) and / or the intra prediction unit (265)). When there is no residual for the block to be processed, such as when the skip mode is applied, the predicted block can be used as the restoration block. The description of the addition unit (155) can be equally applied to the addition unit (235). The addition unit (235) can be called a restoration unit or a restoration block generation unit. The generated restoration signal can be used for intra prediction of the next block to be processed within the current picture, and can also be used for inter prediction of the next picture after going through filtering as described below.

[0116] The filtering unit (240) can improve subjective / objective image quality by applying filtering to the restored signal. For example, the filtering unit (240) can apply various filtering methods to the restored picture to generate a modified restored picture, and store the modified restored picture in the memory (250), specifically, in the DPB of the memory (250). The various filtering methods can include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, etc.

[0117] The (modified) reconstructed picture stored in the DPB of the memory (250) can be used as a reference picture in the inter prediction unit (260). The memory (250) can store motion information of a block from which motion information is derived (or decoded) within the current picture and / or motion information of blocks within a picture that has already been reconstructed. The stored motion information can be transferred to the inter prediction unit (260) to be used as motion information of a spatial neighboring block or motion information of a temporal neighboring block. The memory (250) can store reconstructed samples of reconstructed blocks within the current picture and transfer them to the intra prediction unit (265).

[0118] In this specification, the embodiments described in the filtering unit (160), the inter prediction unit (180), and the intra prediction unit (185) of the image encoding device (100) can be applied to the filtering unit (240), the inter prediction unit (260), and the intra prediction unit (265) of the image decoding device (200) in the same or corresponding manner, respectively.

[0119] Overview of Intra Prediction

[0120] Hereinafter, intra prediction according to the present disclosure will be described.

[0121] Intra prediction may refer to a prediction that generates prediction samples for a current block based on reference samples within a picture to which the current block belongs (hereinafter, referred to as the current picture). When intra prediction is applied to a current block, neighboring reference samples to be used for intra prediction of the current block may be derived. The neighboring reference samples of the current block may include a sample adjacent to the left boundary of the current block of a size nWxnH and a total of 2xnH samples adjacent to the bottom-left, a sample adjacent to the top boundary of the current block and a total of 2xnW samples adjacent to the top-right, and one sample adjacent to the top-left of the current block. Alternatively, the neighboring reference samples of the current block may include upper neighboring samples of multiple columns and left neighboring samples of multiple rows. Additionally, the surrounding reference samples of the current block may include a total of nH samples adjacent to the right boundary of the current block of size nWxnH, a total of nW samples adjacent to the bottom boundary of the current block, and one sample adjacent to the bottom-right of the current block.

[0122] However, some of the surrounding reference samples of the current block may not yet be decoded or available. In this case, the decoder can construct the surrounding reference samples to be used for prediction by substituting the unavailable samples with available samples. Alternatively, the decoder can construct the surrounding reference samples to be used for prediction by interpolating the available samples.

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

[0124] In addition, the prediction sample may be generated through interpolation between a first surrounding sample located in the prediction direction of the intra prediction mode of the current block and a second surrounding sample located in the opposite direction based on the prediction target sample of the current block among the surrounding reference samples. The above-described case may be referred to as linear interpolation intra prediction (LIP).

[0125] Additionally, chroma prediction samples can be generated based on luma samples using a linear model. This case may be called LM (Linear Model) mode.

[0126] In addition, a temporary prediction sample of the current block may be derived based on filtered peripheral reference samples, and a prediction sample of the current block may be derived by weighting at least one reference sample derived according to the intra prediction mode among the existing peripheral reference samples, i.e., unfiltered peripheral reference samples, with the temporary prediction sample. This case may be called PDPC (Position dependent intra prediction).

[0127] In addition, a reference sample line with the highest prediction accuracy among the surrounding multiple reference sample lines of the current block can be selected, and a prediction sample can be derived using the reference samples located in the prediction direction of the selected line. At this time, information about the used reference sample line (e.g., intra_luma_ref_idx) can be encoded and signaled in the bitstream. This case may be called multi-reference line intra prediction (MRL) or MRL-based intra prediction. If MRL is not applied, reference samples can be derived from reference sample lines directly adjacent to the current block, and in this case, information about the reference sample line may not be signaled.

[0128] In addition, the current block can be divided into vertical or horizontal subpartitions, and intra prediction can be performed based on the same intra prediction mode for each subpartition. At this time, surrounding reference samples for intra prediction can be derived for each subpartition unit. That is, the reconstructed sample of the previous subpartition in the encoding / decoding order can be used as the surrounding reference sample of the current subpartition. In this case, the intra prediction mode for the current block is applied equally to the subpartitions, and by deriving and using surrounding reference samples for each subpartition unit, the intra prediction performance can be improved in some cases. This prediction method can be called intra sub-partitions (ISP) or ISP-based intra prediction.

[0129] The intra prediction techniques described above may be referred to by various terms, such as intra prediction types or additional intra prediction modes, to distinguish them from directional or non-directional intra prediction modes. For example, the intra prediction technique (intra prediction type or additional intra prediction mode, etc.) may include at least one of the above-described LIP, LM, PDPC, MRL, and ISP. A general intra prediction method excluding specific intra prediction types such as the above-described LIP, LM, PDPC, MRL, and ISP may be referred to as a normal intra prediction type. The normal intra prediction type may be generally applied when the above-described specific intra prediction types are not applied, and prediction may be performed based on the above-described intra prediction mode. Meanwhile, post-processing filtering may be performed on the derived prediction samples, if necessary.

[0130] Specifically, the intra prediction procedure may include an intra prediction mode / type determination step, a surrounding reference sample derivation step, and an intra prediction mode / type-based prediction sample derivation step. Additionally, a post-processing filtering step may be performed on the derived prediction samples, if necessary.

[0131] Meanwhile, in addition to the intra prediction types described above, affine linear weighted intra prediction (ALWIP) may be used. The ALWIP may also be called linear weighted intra prediction (LWIP) or matrix weighted intra prediction (MIP or matrix based intra prediction). When the MIP is applied to the current block, prediction samples for the current block may be derived by i) performing a matrix-vector-multiplication procedure using surrounding reference samples on which an averaging procedure has been performed, ii) further performing a horizontal / vertical interpolation procedure as necessary. The intra prediction modes used for the MIP may be configured differently from the intra prediction modes used in the LIP, PDPC, MRL, ISP intra prediction, or normal intra prediction described above. The intra prediction mode for the MIP may be called a MIP intra prediction mode, a MIP prediction mode, or a MIP mode. For example, the metrics and offsets used in the matrix vector multiplication may be set differently depending on the intra prediction mode for the MIP. Here, the metrics may be referred to as (MIP) weight metrics, and the offset may be referred to as (MIP) offset vectors or (MIP) bias vectors. A specific MIP method will be described later.

[0132] The block restoration procedure based on intra prediction and the intra prediction unit within the encoding device are described below with reference to FIGS. 4 and 5.

[0133] Figure 4 is a flowchart illustrating an intra prediction-based video / image encoding method.

[0134] The encoding method of FIG. 4 can be performed by the video encoding device of FIG. 2. Specifically, step S410 can be performed by the intra prediction unit (185), and step S420 can be performed by the residual processing unit. Specifically, step S420 can be performed by the subtraction unit (115). Step S430 can be performed by the entropy encoding unit (190). The prediction information of step S430 is derived by the intra prediction unit (185), and the residual information of step S430 can be derived by the residual processing unit. The residual information is information about the residual samples. The residual information can include information about quantized transform coefficients for the residual samples. As described above, the residual samples are derived as transform coefficients through the transform unit (120) of the image encoding device, and the transform coefficients can be derived as quantized transform coefficients through the quantization unit (130). Information about the quantized transform coefficients can be encoded in the entropy encoding unit (190) through a residual coding procedure.

[0135] An image encoding device can perform intra prediction on a current block (S410). The image encoding device can determine an intra prediction mode / type for the current block, derive peripheral reference samples of the current block, and then generate prediction samples within the current block based on the intra prediction mode / type and the peripheral reference samples. Here, the procedures of determining the intra prediction mode / type, deriving peripheral reference samples, and generating prediction samples may be performed simultaneously, or one procedure may be performed before the other.

[0136] FIG. 5 is a diagram exemplarily illustrating the configuration of an intra prediction unit (185) according to the present disclosure.

[0137] As illustrated in FIG. 5, the intra prediction unit (185) of the video encoding device may include an intra prediction mode / type determination unit (186), a reference sample derivation unit (187), and / or a prediction sample derivation unit (188). The intra prediction mode / type determination unit (186) may determine an intra prediction mode / type for the current block. The reference sample derivation unit (187) may derive surrounding reference samples of the current block. The prediction sample derivation unit (188) may derive prediction samples of the current block. Meanwhile, although not illustrated, when a prediction sample filtering procedure described below is performed, the intra prediction unit (185) may further include a prediction sample filtering unit (not illustrated).

[0138] The video encoding device can determine a mode / type to be applied to the current block among a plurality of intra prediction modes / types. The video encoding device can compare rate distortion costs (RD costs) for the intra prediction modes / types and determine an optimal intra prediction mode / type for the current block.

[0139] Meanwhile, the video encoding device may also perform a predictive sample filtering procedure. Predictive sample filtering may be referred to as post-filtering. Some or all of the predictive samples may be filtered through the predictive sample filtering procedure. In some cases, the predictive sample filtering procedure may be omitted.

[0140] Referring again to FIG. 4, the video encoding device can generate residual samples for the current block based on the predicted samples or the filtered predicted samples (S420). The video encoding device can derive the residual samples by subtracting the predicted samples from the original samples of the current block. In other words, the video encoding device can derive the residual sample value by subtracting the corresponding predicted sample value from the original sample value.

[0141] The video encoding device can encode video information including information about the intra prediction (prediction information) and residual information about the residual samples (S430). The prediction information can include the intra prediction mode information and / or the intra prediction technique information. The video encoding device can output the encoded video information in the form of a bitstream. The output bitstream can be transmitted to the video decoding device via a storage medium or a network.

[0142] The residual information may include the residual coding syntax described below. The video encoding device may transform / quantize the residual samples to derive quantized transform coefficients. The residual information may include information about the quantized transform coefficients.

[0143] Meanwhile, as described above, the video encoding device can generate a restored picture (including restored samples and restored blocks). To this end, the video encoding device can inversely quantize / inversely transform the quantized transform coefficients to derive (corrected) residual samples. The reason for performing inverse quantization / inverse transformation on the residual samples after transforming / quantizing them in this way is to derive residual samples that are identical to the residual samples derived from the video decoding device. The video encoding device can generate a restored block including restored samples for the current block based on the predicted samples and the (corrected) residual samples. A restored picture for the current picture can be generated based on the restored block. As described above, an in-loop filtering procedure, etc. can be further applied to the restored picture.

[0144] Fig. 6 is a flowchart illustrating an intra prediction-based video / image decoding method.

[0145] The image decoding device can perform an operation corresponding to an operation performed by the image encoding device.

[0146] The decoding method of FIG. 6 can be performed by the image decoding device of FIG. 3. Steps S610 to S630 can be performed by the intra prediction unit (265), and the prediction information of step S610 and the residual information of step S640 can be obtained from the bitstream by the entropy decoding unit (210). The residual processing unit of the image decoding device can derive residual samples for the current block based on the residual information (S640). Specifically, the inverse quantization unit (220) of the residual processing unit can derive transform coefficients by performing inverse quantization based on the quantized transform coefficients derived based on the residual information, and the inverse transform unit (230) of the residual processing unit can derive residual samples for the current block by performing inverse transformation on the transform coefficients. Step S650 can be performed by the addition unit (235) or the restoration unit.

[0147] Specifically, the video decoding device can derive an intra prediction mode / type for the current block based on the received prediction information (intra prediction mode / type information) (S610). In addition, the video decoding device can derive surrounding reference samples of the current block (S620). The video decoding device can generate prediction samples within the current block based on the intra prediction mode / type and the surrounding reference samples (S630). In this case, the video decoding device can perform a prediction sample filtering procedure. The prediction sample filtering may be referred to as post-filtering. Some or all of the prediction samples may be filtered by the prediction sample filtering procedure. In some cases, the prediction sample filtering procedure may be omitted.

[0148] The video decoding device can generate residual samples for the current block based on the received residual information (S640). The video decoding device can generate reconstructed samples for the current block based on the prediction samples and the residual samples, and derive a reconstructed block including the reconstructed samples (S650). A reconstructed picture for the current picture can be generated based on the reconstructed block. As described above, an in-loop filtering procedure, etc. can be further applied to the reconstructed picture.

[0149] FIG. 7 is a diagram exemplarily illustrating the configuration of an intra prediction unit (265) according to the present disclosure.

[0150] As illustrated in FIG. 7, the intra prediction unit (265) of the video decoding apparatus may include an intra prediction mode / type determination unit (266), a reference sample derivation unit (267), and a prediction sample derivation unit (268). The intra prediction mode / type determination unit (266) determines the intra prediction mode / type for the current block based on intra prediction mode / type information generated and signaled by the intra prediction mode / type determination unit (186) of the video encoding apparatus, and the reference sample derivation unit (266) may derive surrounding reference samples of the current block from a reconstructed reference region within the current picture. The prediction sample derivation unit (268) may derive prediction samples of the current block. Meanwhile, although not illustrated, when the above-described prediction sample filtering procedure is performed, the intra prediction unit (265) may further include a prediction sample filtering unit (not illustrated).

[0151] The intra prediction mode information may include flag information (e.g., intra_luma_mpm_flag) indicating, for example, whether the most probable mode (MPM) or the remaining mode is applied to the current block, and when the MPM is applied to the current block, the intra prediction mode information may further include index information (e.g., intra_luma_mpm_idx) indicating one of the intra prediction mode candidates (MPM candidates). The intra prediction mode candidates (MPM candidates) may be configured as an MPM candidate list or an MPM list. In addition, when the MPM is not applied to the current block, the intra prediction mode information may further include remaining mode information (e.g., intra_luma_mpm_remainder) indicating one of the remaining intra prediction modes excluding the intra prediction mode candidates (MPM candidates). The image decoding device may determine the intra prediction mode of the current block based on the intra prediction mode information.

[0152] In addition, the intra prediction technique information may be implemented in various forms. For example, the intra prediction technique information may include intra prediction technique index information indicating one of the intra prediction techniques. As another example, the intra prediction technique information may include at least one of reference sample line information (e.g., intra_luma_ref_idx) indicating whether the MRL is applied to the current block and, if so, which reference sample line is used, ISP flag information (e.g., intra_subpartitions_mode_flag) indicating whether the ISP is applied to the current block, ISP type information (e.g., intra_subpartitions_split_flag) indicating a split type of subpartitions if the ISP is applied, flag information indicating whether PDPC is applied, or flag information indicating whether LIP is applied. In addition, the intra prediction type information may include a MIP flag indicating whether MIP is applied to the current block. In the present disclosure, the ISP flag information may be referred to as an ISP application indicator.

[0153] The intra prediction mode information and / or the intra prediction technique information may be encoded / decoded using the coding method described in the present disclosure. For example, the intra prediction mode information and / or the intra prediction technique information may be encoded / decoded using entropy coding (e.g., CABAC, CAVLC) based on a truncated (rice) binary code.

[0154] Meanwhile, the intra prediction mode may further include a CCLM (cross-component linear model) mode for chroma samples in addition to the PLANAR mode, DC mode, and directional intra prediction modes. The CCLM mode may be divided into L_CCLM, T_CCLM, and LT_CCLM depending on whether left samples, upper samples, or both are considered for deriving CCLM parameters, and may only be applied to chroma components.

[0155] Intra prediction modes can be indexed, for example, as shown in Table 1 below.

[0156]

[0157] Meanwhile, the intra prediction type (or additional intra prediction mode, etc.) may include at least one of the above-described LIP, PDPC, MRL, ISP, and MIP. The intra prediction type may be indicated based on intra prediction type information, and the intra prediction type information may be implemented in various forms. For example, the intra prediction type information may include intra prediction type index information indicating one of the intra prediction types. As another example, the intra prediction type information may include at least one of reference sample line information (e.g., intra_luma_ref_idx) indicating whether the MRL is applied to the current block and, if so, which reference sample line is used, ISP flag information (e.g., intra_subpartitions_mode_flag) indicating whether the ISP is applied to the current block, ISP type information (e.g., intra_subpartitions_split_flag) indicating a split type of subpartitions if the ISP is applied, flag information indicating whether PDCP is applied, or flag information indicating whether LIP is applied. Additionally, the intra prediction type information may include a MIP flag (or may be called intra_mip_flag) indicating whether MIP is applied to the current block.

[0158] Overview of TIMD (Template-based intra mode derivation)

[0159] FIG. 8 is a diagram illustrating a template region used in the TIMD mode according to the present disclosure. For the intra prediction mode (IPM) of adjacent intra blocks and inter blocks in the surrounding area, as shown in FIG. 8, the SATD (sum of absolute transformed differences) between the predicted block predicted from the template region and the actual restored sample is calculated, and then the mode with the smallest SATD can be selected as the intra mode of the current block.

[0160] That is, the first two intra prediction modes with the minimum SATD are selected as the TIMD modes. These two TIMD modes are fused with weights, and this weighted intra prediction is used to encode the current CU. Position-dependent intra prediction combination (PDPC) can be included in the derivation of the TIMD mode.

[0161] The costs of the two selected modes are compared with a threshold, and the two cost factors are applied in the test as follows.

[0162] costMode2 < 2*costMode1

[0163] If the above conditions are true, fusion is applied, otherwise only mode 1 is used.

[0164] The weights of the modes are calculated by their SATD costs as follows:

[0165] weight1 = costMode2 / (costMode1+ costMode2)

[0166] weight2 = 1 - weight1

[0167] Template matching(TM)

[0168] FIG. 9 is a diagram for explaining a template matching-based encoding / decoding method according to the present disclosure.

[0169] Template Matching (TM) is a motion vector derivation method performed at the decoder stage. It is a method that can refine the motion information of the current block by finding a template (hereinafter referred to as a “reference template”) within a reference picture that is most similar to a template (hereinafter referred to as a “current template”) adjacent to the current block (e.g., current coding unit, current CU). The current template may be an upper neighboring block and / or a left neighboring block of the current block, or a part of these neighboring blocks. In addition, the reference template may be determined to have the same size as the current template.

[0170] As illustrated in Fig. 9, once the initial motion vector of the current block is derived, a search for a better motion vector can be performed in a surrounding area of ​​the initial motion vector. For example, the range of the surrounding area where the search is performed can be within a [-8, +8]-pel search area centered on the initial motion vector. In addition, the size of the search step for performing the search can be determined based on the AMVR mode of the current block. In addition, template matching can also be performed continuously with the bilateral matching process in merge mode.

[0171] If the prediction mode of the current block is AMVP mode, a motion vector predictor candidate (MVP candidate) may be determined based on a template matching error. For example, a motion vector predictor candidate (MVP candidate) that minimizes the error between the current template and a reference template may be selected. Thereafter, template matching for improving a motion vector may be performed on the selected motion vector predictor candidate. At this time, template matching for improving a motion vector may not be performed on motion vector predictor candidates that are not selected.

[0172] More specifically, the improvement of the selected motion vector predictor candidate can be started from full-pel accuracy within the [-8, +8]-pel search region using an iterative diamond search. Alternatively, it can be started from 4-pel accuracy in the case of 4-pel AMVR mode. This can be followed by a search for half-pel and / or quarter-pel accuracy depending on the AMVR mode. According to the search process, the motion vector predictor candidate can maintain the same motion vector accuracy as indicated by the AMVR mode even after the template matching process. In the iterative search process, the search process is terminated if the difference between the previous minimum cost and the current minimum cost is less than an arbitrary threshold. The threshold can be equal to the area of ​​the block, i.e., the number of samples in the block. Table 2 shows examples of search patterns according to the AMVR mode and the merge mode accompanied by AMVR.

[0173]

[0174] If the prediction mode of the current block is merge mode, a similar search method can be applied to the merge candidate indicated by the merge index. As shown in Table 2 above, template matching can be performed up to 1 / 8-pel accuracy or can skip half-pel accuracy or lower, which can be determined depending on whether an alternative interpolation filter is used according to merge motion information. In this case, the alternative interpolation filter can be a filter used when AMVR is half-pel mode. In addition, if template matching is available, depending on whether bilateral matching (BM) is available, the template matching can operate as an independent process, or can operate as an additional motion vector improvement process between block-based bilateral matching and sub-block-based bilateral matching. The availability of template matching and / or bilateral matching can be determined based on an availability condition check. The accuracy of the motion vector as described above can refer to the accuracy of the motion vector difference (MVD).

[0175] Intra block copy (IBC) mode

[0176] The IBC mode may be a mode that finds an optimal block vector (BV) through block matching between the current block and a reference block. Furthermore, the IBC mode may manage multiple block vector candidates as a candidate list. One of the block vector candidates configured in the candidate list may be signaled, and block vector information may also be signaled. Fig. 10 is a diagram illustrating a block vector in the IBC mode according to an embodiment of the present disclosure. Here, the block vector may represent a displacement from the current block to a reference block already reconstructed within the current picture.

[0177] Fraction-pel extension

[0178] The representation of an IBC block vector can be extended to fractional-pel resolution. Therefore, an interpolation filter may be required to derive prediction samples located at non-integer phases within the reconstructed region of the current picture. The block vector resolution options can be extended to include 1 / 4-pel resolution in addition to full-pel and 4-pel. In this case, information indicating 1 / 4-pel, full-pel, or 4-pel can be signaled. The interpolation filter applied to the luma and chroma components of the IBC block may be the same filter as the 8-tap luma filter and the chroma filter used for motion compensation, respectively.

[0179] IBC reference area

[0180] The reference region in IBC mode can be extended to two CTU rows above the current CTU. Fig. 11 is a diagram illustrating a reference region in the IBC mode according to an embodiment of the present disclosure. That is, Fig. 11 is a diagram illustrating a reference region of CTU (m, n). Specifically, in order to code CTU (m, n), the reference region can include CTUs of indices (m-2, n-2)쪋(W, n-2),(0, n-1)쪋(W, n-1),(0, n)쪋(m, n). Here, W can mean the maximum horizontal index within the current tile, slice, or picture. That is, W can mean the maximum width within the current tile, slice, or picture. When the CTU size (width) is 256, the reference region can be limited to one CTU row above the current CTU. These settings (limits) can ensure that IBC does not require additional memory on current ETM platforms when the CTU size is 128 or 256. The sample-by-sample block vector search (or local search) range can be limited horizontally to [-(C << 1), C >> 2] and vertically to [-C, C >> 2] to accommodate reference region expansion, where C can represent the size of the CTU.

[0181] General prediction sample derivation for chroma components

[0182] When intra prediction is performed on the current block, prediction for the luma component block (luma block) of the current block and prediction for the chroma component block (chroma block) can be performed, and in this case, the intra prediction mode for the chroma component (chroma block) can be set separately from the intra prediction mode for the luma component (luma block).

[0183] For example, an intra prediction mode for a chroma component may be indicated based on intra chroma prediction mode information, and the intra chroma prediction mode information may be signaled in the form of an intra_chroma_pred_mode syntax element. For example, the intra chroma prediction mode information may indicate one of candidate modes including at least one of a planar mode, a DC mode, a vertical mode, a horizontal mode, a DM (Derived Mode), L_CCLM, T_CCLM, and LT_CCLM modes. DM may be referred to as a direct mode. CCLM may be referred to as LM.

[0184] Meanwhile, DM and CCLM are dependent intra prediction modes that predict chroma blocks using information of luma blocks. The DM may represent a mode in which the same intra prediction mode as the intra prediction mode for the luma component is applied as the intra prediction mode for the chroma component. In addition, the CCLM may represent an intra prediction mode in which, in the process of generating a prediction block for a chroma block, reconstructed samples of a luma block are subsampled, and then CCLM parameters (e.g., α and / or β) are applied to the subsampled samples, and the derived samples are used as prediction samples of the chroma block.

[0185] Multiple Direct Modes (DM) for chroma intra coding overview

[0186] Multiple Direct Modes (MDM) can be applied to the current chroma block. MDM can be a mode that expands the existing single-mode DM mode into multiple modes. FIG. 12 is a diagram illustrating the locations of neighboring samples used in the MDM mode according to one embodiment of the present disclosure. When determining the intra prediction mode of a chroma image, a DM mode candidate list as shown below can be constructed, and then the final DM mode can be selected.

[0187] - Intra prediction mode for CR, TL, TR, BL, and BR positions of the same luma block

[0188] - Intra prediction mode of L, A, BL, AR, AL blocks, which are blocks surrounding the current chroma block.

[0189] - PLANAR mode, DC mode

[0190] - Angular mode of -1 and / or +1 to the previously selected angular mode

[0191] - Vertical, Horizontal, 2, 34, 66, 10, 26 modes (if there are 65 directional modes)

[0192] - If 5 prediction modes are not selected, copy the previously selected mode and select it.

[0193] MMLM (Multi-model LM) Overview

[0194] The CCLM mode can be extended to the MMLM mode. For example, three MMLM modes can be added. In each MMLM mode, the reconstructed neighboring samples can be classified into two groups using a threshold. The threshold can be, for example, the mean value of the reconstructed luma samples. A linear model for each group can be derived using the Linear-Mean-Square (LMS) method. For the CCLM mode, the LMS method can also be used to derive a linear model.

[0195] Using MMLM, there can be more than one linear model between luma samples and chroma samples within a CU. In this method, neighboring luma samples and neighboring chroma samples of the current block can be classified into several groups. Furthermore, each group can be used as a training set for deriving a linear model. That is, CCLM parameters (e.g., α and / or β) can be derived for each group. Furthermore, samples within the current luma block can be classified in the same manner as the classification of neighboring luma samples.

[0196] In this method, neighboring samples can be classified into M groups, where M can be 2 or 3. When M is 2 or 3, the MMLM method can be designed with two additional chroma prediction modes, MMLM2 and MMLM3, in addition to the original LM mode. The video encoding device can select the optimal mode in the RDO process and signal the mode.

[0197] FIG. 13 is a diagram illustrating a method for classifying neighboring samples into two groups according to one embodiment of the present disclosure. FIG. 13 illustrates a case where M is 2. Referring to FIG. 13, a threshold value can be calculated as an average value of restored neighboring luma samples. Neighboring luma samples with Rec'L[x, y] below the threshold value can be classified into group 1, and neighboring luma samples with Rec'L[x, y] above the threshold value can be classified into group 2. The two models of group 1 and group 2 can be derived using the following mathematical expression 1.

[0198]

[0199] Cross-component linear model (CCLM) overview

[0200] The CCLM mode may be applied to the current chroma block. The CCLM mode is an intra prediction mode that utilizes the correlation between a luma block and a chroma block corresponding to the luma block, and may represent a mode in which a linear model is derived based on surrounding samples of the luma block and surrounding samples of the chroma block, and prediction samples of the chroma block are derived based on the linear model and reconstructed samples of the luma block. Specifically, when the CCLM mode is applied to the current chroma block, parameters for the linear model may be derived based on surrounding samples used for intra prediction of the current chroma block and surrounding samples used for intra prediction of the current luma block.

[0201] To reduce cross-component redundancy, the CCLM prediction mode can be used in the present disclosure. Here, chroma samples can be predicted based on reconstructed luma samples of the same CU using a linear model. For example, the linear model can be expressed as the following mathematical expression (2).

[0202]

[0203] Here, Pred c (i,j) can represent the predicted sample at the (i,j) coordinate of the current chroma block in the current CU, and rec' L (i,j) may represent a restored sample at the (i,j) coordinate of the current luma block within the CU. Or, rec' L (i,j) can represent the down-sampled restored sample of the current luma block.

[0204] FIG. 14 is a diagram illustrating the locations of neighboring samples used to derive CCLM parameters according to one embodiment of the present disclosure. FIG. 9 illustrates the locations of left neighboring samples, the locations of upper neighboring samples, and examples of samples adjacent to the current block in relation to the CCLM mode.

[0205] CCLM parameters (e.g., α and / or β) can be derived using up to four adjacent chroma samples and their corresponding downsampled luma samples. Alternatively, CCLM parameters can be derived using N adjacent chroma samples and their corresponding downsampled luma samples. When the size of the current chroma block is W×H, W' and H' can be set as follows. W' can mean a range in which upper adjacent chroma samples used for deriving CCLM parameters are located. H' can mean a range in which left adjacent chroma samples used for deriving CCLM parameters are located.

[0206] - When CCLM mode is applied, W'=W, H'=H

[0207] - When CCLM_A mode is applied, W'=W+H

[0208] - When CCLM_L mode is applied, H'=H+W

[0209] The positions of the upper neighboring samples can be represented as S[0, -1]… S[W'-1, -1], and the positions of the left neighboring samples can be represented as S[-1, 0]… S[-1, H'-1]. In this case, four samples can be selected as follows.

[0210] - When CCLM mode is applied and both upper and left neighboring samples are available: S[W' / 4, -1], S[3W' / 4, -1], S[-1, H' / 4], S[-1, 3H' / 4]

[0211] - When CCLM_A mode is applied or only upper neighbor samples are available: S[W' / 8, -1], S[3W' / 8, -1], S[5W' / 8, -1], S[7W' / 8, -1]

[0212] - When CCLM_L mode is applied or only left neighboring samples are available: S[-1, H' / 8], S[-1, 3H' / 8], S[-1, 5H' / 8], S[-1, 7H' / 8]

[0213] Four neighboring luma samples at the locations selected in the above manner can be obtained by down sampling. Two smaller values ​​(x) among the four luma samples 0 A and x 1 A ) and two large values ​​(x 0 B and x 1 B ) can be performed four times to find the chroma sample values ​​corresponding to the four neighboring samples y 0 A , y 1 A , y 0 B and y 1 B can be expressed as . In this case, X a , X b , Y a and Y b can be derived through the following mathematical formula 3.

[0214]

[0215] The above CCLM parameters α and β can be obtained through the following mathematical expression 4.

[0216]

[0217] An embodiment of the present disclosure can derive CCLM parameters using upper neighboring samples and left neighboring samples, and can also be used in two other LM modes (LM_A mode and LM_L mode). According to an embodiment of the present disclosure, in LM_A mode, only upper neighboring samples can be used to derive CCLM parameters. In this case, to obtain more samples, the upper neighboring samples can be extended to samples at positions W+H. On the other hand, in LM_L mode, only left neighboring samples can be used to derive CCLM parameters. In this case, to obtain more samples, the left neighboring samples can be extended to samples at positions H+W. As another example, in a non-square block, the upper neighboring samples can be extended to positions W+W, and the left neighboring samples can be extended to positions H+H.

[0218] In order to match the positions of chroma samples for a 4:2:0 video sequence, two types of downsampling filters can be applied to luma samples to achieve a 2:1 downsampling ratio in both horizontal and vertical directions. The downsampling filters can be specified by SPS level flags. The downsampling filters can be applied to obtain a luma sample corresponding to the chroma sample at a given position (i, j). The two downsampling filters can be expressed by the following mathematical expressions 5 and 6.

[0219]

[0220]

[0221] If the boundary of the current luma block coincides with the CTU boundary, only one luma reference line can be used to create downsampled luma samples.

[0222] The derivation of the above parameters may be performed as part of the image decoding process and may not be performed solely by the encoder search operation. Consequently, no syntax may be used to transmit the values ​​of α and / or β to the image decoding device.

[0223] According to the present disclosure, a total of eight intra prediction modes can be utilized in the intra chroma prediction mode encoding process. The eight intra prediction modes can include five existing intra prediction modes and three CCLM modes (CCLM, LM_A, and LM_L). The intra chroma prediction mode signaling and derivation process is described below with reference to Tables 3 and 4.

[0224]

[0225]

[0226] Intra chroma prediction mode encoding can depend on the intra prediction mode of the corresponding luma block. Since separate block partitioning structures for luma and chroma components are enabled in I-slices, a single chroma block can correspond to multiple luma blocks. Therefore, in the case of chroma DM mode, the intra prediction mode of the corresponding luma block covering the center position of the current chroma block can be directly applied.

[0227] Table 3 shows a matching table for deriving an intra chroma prediction mode when CCLM is not applicable, and Table 4 shows a mapping table for deriving an intra chroma prediction mode when CCLM is applicable. As shown in the table, the intra chroma prediction mode can be determined based on the intra luma prediction mode for a luma block covering the center lower right sample of the current block or chroma block (e.g., when DUAL_TREE is applied) and the value of the signaled intra chroma prediction mode (intra_chroma_pred_mode) information. The indices of IntraPredModeC[ xCb ][ yCb ] derived from the above tables can correspond to the indices of the intra prediction modes disclosed in Table 1 described above.

[0228] Overview of the Gradient Linear Model (GLM)

[0229] For the YUV 4:2:0 color format, GLM can be used to predict chroma samples from luma sample gradients. GLM supports two modes: a two-parameter GLM prediction mode and a three-parameter GLM prediction mode.

[0230] Compared to the CCLM prediction mode, the GLM prediction mode can use a two-parameter GLM that uses the gradients of luma samples to derive a linear model instead of downsampling the values ​​of the corresponding luma samples. Specifically, when the two-parameter GLM prediction mode is applied, the downsampled luma samples L used as inputs to the CCLM prediction process can be replaced with luma sample gradients G. Other processes performed in the CCLM prediction mode (e.g., parameter derivation, linear transformation of the prediction sample, etc.) are equally applied to the GLM prediction mode. The following mathematical expression 7 can be an expression used to generate a prediction sample in the two-parameter GLM prediction mode.

[0231]

[0232] In the 3-parameter GLM prediction mode, chroma samples can be predicted based on both luma sample gradients and downsampled luma values ​​using other parameters. The model parameters of the 3-parameter GLM prediction mode can be derived from the rows and columns of six adjacent samples using the LDL decomposition-based MSE minimization method used in CCCM. Mathematical equation 8 below can be used to generate prediction samples in the 3-parameter GLM prediction mode.

[0233]

[0234] FIG. 15 is a diagram illustrating a gradient pattern for GLM according to one embodiment of the present disclosure. For signaling, if the CCLM prediction mode is available for the current CU, a flag indicating whether the GLM prediction mode is available for both Cb and Cr components may be signaled. If the GLM prediction mode is available, another flag indicating which of the two GLM modes to use and a syntax element for selecting one of the four gradient filters for gradient computation may be further signaled.

[0235] Overview of Convolutional Cross-Component Model (CCCM)

[0236] Chroma samples can be predicted from reconstructed luma samples by applying a concept similar to that performed by the CCLM mode(s) described above. For example, when performing the CCCM prediction mode, the reconstructed luma samples can be used to predict chroma samples. When chroma subsampling is used, the reconstructed luma samples can be downsampled to match a lower-resolution chroma grid (block). In addition, the CCCM mode can include a single model or a multi-model. Here, the multi-model can be a model that uses two models. One of the two models included in the multi-model can be applied to samples having values ​​greater than or equal to the average value of luma reference samples. The other of the two models included in the multi-model can be applied to samples having values ​​less than or equal to the average value of luma reference samples. Here, the luma reference samples can refer to samples included in a luma reference region adjacent to the corresponding luma block. The multi-model CCCM mode can be applied to a PU having at least 128 available reference samples. However, the present disclosure is not limited thereto, and the multi-model CCCM mode may also be applied to a PU having less than 128 available reference samples. The number of available reference samples that serve as a basis for a PU to which the CCCM mode can be applied is not limited to 128, and may be, for example, 256 or 64. Alternatively, the number of available reference samples may be determined differently depending on the size of the PU.

[0237] Convolutional filter

[0238] The proposed 7-tap filter in CCCM prediction mode can be composed of a 5-tap filter, a nonlinear term, and a bias term. Here, the 5-tap filter can be a plus sign-shaped spatial filter that utilizes neighboring luma samples located at plus-shaped positions relative to the corresponding luma sample within the corresponding luma block. The components constituting the 5-tap filter will be described in detail with reference to FIG. 16 below.

[0239] Figure 16 is a diagram illustrating corresponding luma samples and neighboring luma samples. Components constituting a 5-tap filter may include a corresponding luma sample (C) (1610) corresponding to a target chroma sample to be predicted, an upper / north (N) neighboring luma sample (1620) of the corresponding luma sample, a lower / south (S) neighboring luma sample (1630), a right / east (E) neighboring luma sample (1640), and a left / west (W) neighboring luma sample (1650).

[0240] The nonlinear term P, which is one of the components of the 7-tap filter, can be expressed as the square of the corresponding luma sample value C and can be scaled to the sample value range of the content. Mathematical expression 9 below can be an example of deriving the nonlinear term P. In addition, Mathematical expression 10 can be an example of deriving the nonlinear term P in the case of 10-bit content.

[0241]

[0242]

[0243] The bias term B, one of the components of the 7-tap filter, can be expressed as a scalar offset between the input and output. This can be similar to the offset term in CCLM. Furthermore, the bias term B can be set to the median value of the chroma sample. For example, in the case of 10-bit content, the bias term B can be 512.

[0244] The output of a 7-tap filter can be computed as a convolution between the filter coefficients Ci and the input value, and can be clipped to the range of valid chroma samples. Mathematical expression 11 below can be an example of deriving a predicted sample value of a chroma sample using the CCCM prediction mode.

[0245]

[0246] Hereinafter, a video encoding / decoding method according to one embodiment of the present disclosure will be described in detail.

[0247] Example 1

[0248] An embodiment of the present disclosure proposes a method for improving chroma prediction performance by utilizing block vector information. A chroma block can be predicted using the correlation between a luma block and its corresponding chroma block. An example of a linear model-based prediction mode, such as CCLM or CCCM, may be used. In this case, the present disclosure can obtain a relationship using neighboring reconstructed samples of a current chroma block and neighboring reconstructed samples of a luma block at a corresponding location. However, if the luma block at the corresponding location is in IBC mode, the correlation with the neighboring blocks may be relatively low. Therefore, utilizing neighboring reconstructed samples of the corresponding luma block may degrade prediction performance.

[0249] Accordingly, the present disclosure can obtain a relationship used for prediction of the current chroma block by utilizing block vector information of a luma block corresponding to the current chroma block. FIG. 17 is a diagram illustrating a block vector when the corresponding luma block is in IBC mode according to an embodiment of the present disclosure. Specifically, the present disclosure can obtain a relationship by utilizing the correlation between the luma reference block indicated by the block vector information of the corresponding luma block and the chroma reference block indicated by the block vector. By applying the obtained relationship to the corresponding luma block of the current chroma block, a prediction block of the current chroma block can be generated. In this case, in order to generate a relationship by utilizing the correlation between the luma reference block of the corresponding luma block and the chroma reference block of the current chroma block, the luma reference block can be scaled (i.e., downsampled) to match the chroma reference block. In addition, when the corresponding luma block is coded by intraTMP, IBC, etc., the block vector information of the corresponding luma block can utilize the block vector information stored in the intraTMP, IBC process.

[0250] Embodiments according to the present disclosure can be applied to CCLM, Above CCLM (T_CCLM) derived / applied with above reconstructed neighboring samples, Left CCLM (L_CCLM) derived / applied with left reconstructed neighboring samples, multi-model CCLM derived / applied with multiple models, GLM, CCCM, multi-model CCCM derived / applied with multiple models, Above CCCM derived / applied with above reconstructed neighboring samples, Left CCLM derived / applied with left reconstructed neighboring samples, GL-CCCM, non-downsampled CCCM, etc.

[0251] A chroma prediction block generated according to an embodiment of the present disclosure can be weighted-convolved with a non-CCLM and / or non-CCCM intra chroma mode. That is, a chroma prediction block generated according to the above-described embodiment can be weighted-convolved with a prediction block generated according to a non-CCLM and / or non-CCCM intra chroma mode. For example, a prediction block generated according to a DM, DIMD (Decoder-side intra mode derivation), or one of four default modes (Planar, Vertical, Horizontal, DC mode) and a chroma prediction block generated according to an embodiment of the present disclosure can be weighted-convolved to generate a final prediction block.

[0252] Whether or not a method utilizing block vector information according to the present disclosure is applied can be signaled. Alternatively, it can be derived using a method determined in advance in an image encoding device (100) and / or an image decoding device (200).

[0253] According to one embodiment of the present disclosure, in order to generate a prediction block of a current chroma block, block vector information stored in one or more luma blocks corresponding to the current chroma block and / or block vector information stored around one or more corresponding luma blocks may be utilized. For example, referring to FIG. 18, the present disclosure may perform prediction on the current chroma block by utilizing block vector information stored in N positions including a luma block corresponding to the current chroma block. In this case, N is an integer of one or more, and the positions may include positions defined in advance. Accordingly, the present disclosure may obtain a relationship by utilizing a correlation between a luma reference block pointed to by one of the block vector information stored in N positions including the corresponding luma block and the chroma reference block pointed to by the corresponding block vector. The obtained relationship may be applied to the corresponding luma block of the current chroma block, and thus a chroma prediction block, which is a prediction block of the current chroma block, may be generated.

[0254] According to the present disclosure, when IntraTMP or IBC mode is applied to a corresponding luma block, block vector information of the corresponding luma block may be block vector information stored when IntraTMP or IBC mode is applied to the corresponding luma block. When there are multiple block vector candidates, one of the block vector candidates may be signaled. Alternatively, block vector information may be derived using a method defined in advance between an image encoding device (100) / an image decoding device (200) without signaling block vector information. For example, multiple block vector candidates may all be used. Alternatively, a multi-model may be generated using only some of the block vector candidates. Alternatively, a single or multi-model may be generated using one or more block vector candidates at a specific luma block position.

[0255] According to one embodiment of the present disclosure, there may be various methods for searching for block vectors, as described below, and the order may be defined in advance between the image encoding device (100) and the image decoding device (200). The block vector search order below is described with reference to FIG. 18.

[0256] - Method 1. Use the first appearing (stored) block vector. In this case, the search order could be C(1810), TL(1820), TR(1830), BL(1840), BR(1850). That is, search in the order of C(1810), TL(1820), TR(1830), BL(1840), BR(1850), and then use the first appearing block vector.

[0257] - Method 2. Use the block vector at the location where multiple block vectors first appear (are stored). The search order can be C (1810), TL (1820), TR (1830), BL (1840), BR (1850). For example, if a single block vector is stored at location C (1810), that block vector may not be used. If a single block vector is stored at all locations or no block vectors are stored, use the same method as Method 1. That is, if there is no location where multiple block vectors are stored, use the same method as Method 1.

[0258] - Method 3. Use the block vector of the location where a single block vector first appears (is stored). The search order can be C (1810), TL (1820), TR (1830), BL (1840), BR (1850). For example, if multiple block vectors are stored at location C (1810), the storage of those block vectors can be skipped. If multiple block vectors are stored at all locations or no block vectors are stored, use the same method as Method 1. That is, if there is no location where only a single block vector is stored, use the same method as Method 1.

[0259] - Method 4. When generating a multi-model, the search order may be C (1810), TL (1820), TR (1830), BL (1840), BR (1850). At this time, all or part of the block vectors stored in the search order may be used. For example, if multiple block vectors are stored at a specific location during the search, only the block vectors at that location may be used. That is, block vectors at locations where multiple block vectors are stored may be used to generate a multi-model. Alternatively, in order to utilize K block vectors, all defined search locations may be searched until K block vectors are filled. K may be a natural number and may be a value defined in advance between the image encoding device (100) / the image decoding device (200).

[0260] C (1810) mentioned in the above-described methods 1 to 4 may be an upper left luma sample in a central corresponding luma block among a plurality of corresponding luma blocks. TL (1820) may be an upper left luma sample in an upper left corresponding luma block among a plurality of corresponding luma blocks. TR (1830) may be an upper right luma sample in an upper right corresponding luma block among a plurality of corresponding luma blocks. BL (1840) may be a lower left luma sample in a lower left corresponding luma block among a plurality of corresponding luma blocks. BR (1850) may be a lower right luma sample in a lower right corresponding luma block among a plurality of corresponding luma blocks.

[0261] The search order C (1810), TL (1820), TR (1830), BL (1840), BR (1850) mentioned in the above-described methods 1 to 4 are only examples and may be searched in various orders. Alternatively, the search order may be determined by an agreement between the image encoding device (100) and the image decoding device (200).

[0262] According to one embodiment of the present disclosure, block vectors can be searched for using different methods depending on whether a single model or multiple models are used. For example, a single model can obtain block vectors using method 3, and a multi-model can obtain block vectors using method 2.

[0263] The embodiments according to the present disclosure may be applied only when the dual tree method is applied. In addition, whether or not to apply the method using block vector information may be signaled or may be derived in a predefined manner in the video encoding device (100) / video decoding device (200). For example, whether or not to utilize block vector information may be determined at the SPS, PPS, APS (adaptation parameter set), Picture, slice, CTU, or CU level.

[0264] FIG. 19 is a flowchart of a method for generating a chroma prediction block according to an embodiment of the present disclosure. Referring to FIG. 19, the video decoding device (200) can check whether the value of the CCCM flag is 1 (S1910). Here, the CCCM flag may be a flag indicating whether CCCM is applied. Alternatively, the CCCM flag may be a flag indicating whether CCCM is available.

[0265] If the value of the CCCM flag is 1 (YES in S1910), the video decoding device (200) can check whether the value of the BVGCCCM (block vector guided CCCM) flag is 1 (S1930). The BVGCCCM flag may be a flag indicating whether BVGCCCM is applied. Alternatively, the BVGCCCM flag may be a flag indicating whether BVGCCCM is available.

[0266] If the value of the BVGCCCM flag is 1 (YES in S1930), the video decoding device (200) can obtain a block vector (S1950). That is, the video decoding device (200) can obtain a block vector (or block vector information) of a luma block corresponding to the current chroma block. In addition, the video decoding device (200) can obtain a block vector (or block vector information) stored around a luma block corresponding to the current chroma block.

[0267] The video decoding device (200) can calculate BVG filter coefficients (S1955). The video decoding device (200) can calculate BVG filter coefficients by using the correlation between the luma reference block indicated by one or more block vectors among the acquired block vectors (or block vector information) and the chroma reference block indicated by the corresponding block vector. Here, the BVG filter coefficients may be a relational expression calculated by using the correlation between the luma reference block and the chroma reference block. The method for obtaining the BVG filter coefficients may be the same as the method used in CCCM, multi-model CCCM, GL-CCCM, GLM, non-downsampled CCCM, etc.

[0268] The video decoding device (200) can apply BVG CCCM (S1960). That is, the video decoding device (200) can apply BVG filter coefficients to the corresponding luma block. By applying BVG filter coefficients to the corresponding luma block, the video decoding device (200) can generate a chroma prediction block.

[0269] If the value of the BVGCCCM flag is not 1 (NO in S1930), the video decoding device (200) can calculate the CCCM filter coefficients (S1970). Specifically, the video decoding device (200) can calculate the filter coefficients between the corresponding luma block and the current chroma block in the same manner as the conventional CCCM.

[0270] The video decoding device (200) can apply CCCM (S1975). That is, the video decoding device (200) can apply the calculated CCCM filter coefficients to the corresponding luma block. By applying the calculated CCCM filter coefficients to the corresponding luma block, the video decoding device (200) can generate a chroma prediction block.

[0271] FIG. 20 is a flowchart of a method for generating a chroma prediction block according to an embodiment of the present disclosure. Referring to FIG. 20, the video decoding device (200) can check whether the value of the CCLM flag is 1 (S2010). Here, the CCLM flag may be a flag indicating whether CCLM is applied. Alternatively, the CCLM flag may be a flag indicating whether CCLM is available.

[0272] If the value of the CCLM flag is 1 (YES in S2010), the video decoding device (200) can check whether the value of the BVGCCLM (block vector guided CCLM) flag is 1 (S2030). The BVGCCLM flag may be a flag indicating whether BVGCCLM is applied. Alternatively, the BVGCCLM flag may be a flag indicating whether BVGCCLM is available.

[0273] If the value of the BVGCCLM flag is 1 (YES in S2030), the video decoding device (200) can obtain a block vector (S2050). That is, the video decoding device (200) can obtain a block vector (or block vector information) of a luma block corresponding to the current chroma block. In addition, the video decoding device (200) can obtain a block vector (or block vector information) stored around a luma block corresponding to the current chroma block.

[0274] The video decoding device (200) can calculate BVG linear model parameters (S2055). The video decoding device (200) can calculate BVG linear model parameters by using the correlation between the luma reference block indicated by one or more block vectors among the acquired block vectors (or block vector information) and the chroma reference block indicated by the corresponding block vector. Here, the BVG linear model parameters may be a relational expression calculated by using the correlation between the luma reference block and the chroma reference block. The method for obtaining the BVG linear model parameters may be the same as the method used in CCLM, multi-model CCLM, etc.

[0275] The video decoding device (200) can apply a BVG linear model (S2060). That is, the video decoding device (200) can apply BVG linear model parameters to the corresponding luma block. By applying the BVG linear model parameters to the corresponding luma block, the video decoding device (200) can generate a chroma prediction block.

[0276] If the value of the BVGCCLM flag is not 1 (NO in S2030), the video decoding device (200) can calculate linear model parameters (S2070). Specifically, the video decoding device (200) can calculate linear model parameters between the corresponding luma block and the current chroma block in the same manner as the conventional CCLM.

[0277] The video decoding device (200) can apply a linear model (S2075). That is, the video decoding device (200) can apply the calculated linear model parameters to the corresponding luma block. By applying the calculated linear model parameters to the corresponding luma block, the video decoding device (200) can generate a chroma prediction block.

[0278] According to one embodiment of the present disclosure, the video encoding device (100) and / or the video decoding device (200) can generate a chroma prediction block by utilizing block vector information of a current chroma block and a corresponding luma block or block vector information stored around the current chroma block and the corresponding luma block. For example, if the corresponding luma block is coded in IntraTMP or IBC mode, block vector information of the corresponding luma block may be present. Alternatively, if the corresponding luma block is coded in IntraTMP or IBC mode, multiple block vector information may be present at the corresponding position. If a final prediction block is generated by weighting multiple reference blocks in IntraTMP mode, if Bi-predictive IBC is applied, or if the IBC mode includes two or more reference blocks, multiple block vector information may be present. In this case, the present disclosure can effectively perform prediction on the current chroma block by utilizing the multiple block vector information. At this time, multiple block vector information (multiple block vector information) may be obtained from the following locations.

[0279] - Block vector at position C(1810)

[0280] - Block vector at TL(1820) location

[0281] - Block vector at position TR(1830)

[0282] - Block vector at position BL(1840)

[0283] - Block vector at position BR(1850)

[0284] Multiple block vector information may be stored at each location, and the stored block vector information may be included as candidate block vectors in a candidate list. When constructing a block vector candidate list, block vectors existing at all of the above-described locations may be included as candidates, or only some of the block vectors may be included as candidates.

[0285] FIG. 21 is a diagram illustrating reference blocks when there are multiple block vectors according to one embodiment of the present disclosure. Referring to FIG. 21, the video encoding device (100) and / or the video decoding device (200) can generate / apply a multi-model by using the correlation between the luma reference block (2110, 2130) at the position indicated by each block vector and the chroma reference block (2150, 2170) indicated by the corresponding block vector, for each of the multiple block vector information. Specifically, the video encoding device (100) and / or the video decoding device (200) can obtain a relationship by using the correlation between the luma reference block 1 (2110) and the chroma reference block 1 (2150). Additionally, the video encoding device (100) and / or the video decoding device (200) can obtain a relationship by utilizing the correlation between the luma reference block 2 (2130) and the chroma reference block 2 (2170). In this case, a multi-model can be generated. That is, two relationships can be generated. One of the two models (relationships) can be signaled and applied in the chroma prediction block generation step. Accordingly, one chroma prediction block can be generated.

[0286] Alternatively, the video encoding device (100) and / or the video decoding device (200) may apply both models (relationships) to generate two chroma prediction blocks, and then weight them to generate a final prediction block. In this case, the weight applied to each prediction block may be 0.5. Alternatively, the weight value used in the luma block may be inherited and used in the chroma block. For example, if the corresponding luma block is coded in IntraTMP fusion mode, prediction for the luma block may be performed by weighting multiple reference blocks. That is, the final luma prediction block may be generated by weighting multiple luma prediction blocks. Accordingly, if the block vector of the corresponding luma block is utilized in the current chroma block, the weight value used to generate the final luma prediction block may be applied as is to multiple chroma prediction blocks in order to generate the final chroma prediction block.

[0287] When a relationship is derived by utilizing the correlation between a luma reference block and a chroma reference block, the luma reference block can be scaled (i.e., downsampled) to match the chroma reference block. The above-described embodiments can be applied to CCLM, Above CCLM derived / applied with above reconstructed neighboring samples, Left CCLM derived / applied with left reconstructed neighboring samples, multi-model CCLM derived / applied with multiple models, GLM, CCCM, multi-model CCCM derived / applied with multiple models, Above CCCM derived / applied with above reconstructed neighboring samples, Left CCLM derived / applied with left reconstructed neighboring samples, GL-CCCM, and non-downsampled CCCM.

[0288] According to the present disclosure, there may be K pieces of block vector information. The present disclosure may use only P pieces of block vector information among the K pieces of block vector information. Here, K and P may be natural numbers, and P may be a natural number less than or equal to K.

[0289] Additionally, the generated chroma prediction block can be weighted-combined with a prediction block generated with non-CCLM and / or non-CCCM intrachroma modes. For example, the chroma prediction block generated according to the present embodiment can be weighted-combined with a prediction block generated with DM, DIMD, or one of the four default modes (Planar, Vertical, Horizontal, DC mode). Whether weighted-combining is performed can be known through signaling or by an agreement between the video encoding device (100) and the video decoding device (200).

[0290] FIG. 22 is a diagram illustrating a plurality of luma reference blocks and a current chroma block according to one embodiment of the present disclosure. The present disclosure can derive filter coefficients by utilizing the correlation between a plurality of luma reference blocks indicated by each block vector and a current chroma block for each of a plurality of block vector information. Through this, the video encoding device (100) and / or the video decoding device (200) can predict the current chroma block using the plurality of luma reference blocks. For example, the video encoding device (100) and / or the video decoding device (200) can train filter coefficients such that the MSE is minimized between the current chroma template region (2215) of the current chroma block (2210) and the plurality of reference template regions (2220, 2230, 2240). As shown in Mathematical Expression 12 below, the video encoding device (100) and / or the video decoding device (200) can generate a chroma prediction block by utilizing the trained filter coefficients.

[0291]

[0292] - Output i : i-th sample of the current chroma block (predicted sample value)

[0293] - C0, C1, ..., C n-1 , C n : Filter coefficient

[0294] - S1: Output within Luma Reference Block 1 i Luma sample at the corresponding position

[0295] - S2: Output within Luma Reference Block 2 i Luma sample at the corresponding position

[0296] - S3: Output within Luma Reference Block 3 i Luma sample at the corresponding position

[0297] - S n-1 : Output in luma reference block n-1 iLuma sample at the corresponding position

[0298] - B: bias term, for example, can have a value of (1<<(bit depth-1))

[0299] Whether or not to apply a filter according to the present disclosure may be signaled by a flag or determined by an agreement between the video encoding device (100) and / or the video decoding device (200). In addition, whether or not to fuse a number of luma reference blocks may also be signaled by index information or the like or determined by an agreement between the video encoding device (100) and / or the video decoding device (200).

[0300] The current chroma block and corresponding luma block may also be included as candidate luma reference blocks. In addition, the generated chroma prediction block may be weighted-combined with a prediction block generated with non-CCLM and / or non-CCCM intrachroma modes. For example, the chroma prediction block generated according to the present embodiment may be weighted-combined with a prediction block generated with DM, DIMD, or 4 default modes (Planar, Vertical, Horizontal, DC mode). Whether or not to perform weighted-combination may be signaled and may be determined by an agreement between the video encoding device (100) and / or the video decoding device (200).

[0301] Example 2

[0302] In Example 2, a signaling method according to embodiments of the present disclosure is proposed. According to one embodiment of the present disclosure, information required for application of the present embodiment can be signaled as shown in Tables 5 to 13 below.

[0303]

[0304]

[0305]

[0306]

[0307]

[0308]

[0309]

[0310]

[0311]

[0312] cccmflag in Tables 5 to 13 may be a flag for whether to apply CCCM. cccmNoSubFlag may be a flag indicating whether to apply CCCM without performing subsampling. glCccmFlag may be a flag indicating whether to apply Gradient and Location based CCCM. hasChromaBvCheck may be a condition for checking whether a block vector is stored in a luma block corresponding to the current chroma block or a surrounding luma block of a luma block corresponding to the current chroma block. bvgChromaFlag may be a flag indicating whether to apply CCCM by obtaining a relationship between a luma reference block pointed to by a block vector and a chroma reference block pointed to by the block vector. multiBvCheck may be a condition for checking whether multiple block vectors are stored in a luma block corresponding to the current chroma block or a surrounding luma block corresponding to the current chroma block.

[0313] isChromaFusion can be information on whether fusion will be performed. For example, isChromaFusion can indicate whether the weighted model generated by prediction blocks in modes such as DM, DIMD, and the four default modes (Planar, Vertical, Horizontal, and DC modes) is a single model or a multi-model model.

[0314] modeIdx may be index information indicating which model to apply, such as CCCM, multi-CCCM, Above CCCM, or Left CCCM. Here, Above CCCM refers to a CCCM mode that uses upper reconstructed neighboring samples when deriving filter coefficients. Left CCCM refers to a CCCM mode that uses left reconstructed neighboring samples when deriving filter coefficients. Alternatively, according to another embodiment of the present disclosure, modeIdx may be index information indicating which model to apply among single model, multi model, Left shape single model, Above shape single model, Left shape multi model, and Above shape multi model. Here, Left shape refers to a model that derives filter coefficients using only an adjacent left shape template region of a reference block. Above shape refers to a model that derives filter coefficients using only an adjacent above shape template region of a reference block.

[0315] multiBvfusionFlag may be information indicating whether to generate a chroma prediction block by weighting luma prediction blocks generated based on multiple luma reference block vectors. glmFlag may be a flag indicating whether to apply Gradient and Location-based CCCM.

[0316] FIG. 23 is a flowchart of an encoding method according to an embodiment of the present disclosure. Referring to FIG. 23, the video encoding device (100) can encode block vector information of a corresponding luma block corresponding to a current chroma block (S2310). The video encoding device (100) can identify a chroma reference block of the current chroma block and a luma reference block of the corresponding luma block based on the block vector information (S2330). The video encoding device (100) can generate prediction parameters based on the chroma reference block and the luma reference block (S2350). The video encoding device (100) can generate a final chroma prediction block of the current chroma block based on the generated prediction parameters (S2370).

[0317] FIG. 24 is a flowchart of a decoding method according to an embodiment of the present disclosure. Referring to FIG. 24, the video decoding device (200) can obtain block vector information of a corresponding luma block corresponding to a current chroma block (S2410). The video decoding device (200) can identify a chroma reference block of the current chroma block and a luma reference block of the corresponding luma block based on the block vector information (S2430). The video decoding device (200) can generate prediction parameters based on the chroma reference block and the luma reference block (S2450). The video decoding device (200) can generate a final chroma prediction block of the current chroma block based on the generated prediction parameters (S2470).

[0318] According to one embodiment of the present disclosure, when there are a plurality of corresponding luma blocks, the block vector information may include block vector information of a predetermined position within the plurality of corresponding luma blocks. Here, the plurality of corresponding luma blocks may include an upper left corresponding luma block, an upper right corresponding luma block, a lower left corresponding luma block, a lower right corresponding luma block, and a central corresponding luma block. In addition, the predetermined position may include at least one of an upper left luma sample position within the upper left corresponding luma block, an upper right luma sample position within the upper right corresponding luma block, a lower left luma sample position within the lower left corresponding luma block, a lower right luma sample position within the lower right corresponding luma block, or an upper left luma sample position within the central corresponding luma block. The upper left luma sample in the upper left corresponding luma block, the upper right luma sample in the upper right corresponding luma block, the lower left luma sample in the lower left corresponding luma block, the lower right luma sample in the lower right corresponding luma block, and the upper left luma sample in the center corresponding luma block may be TL (1820), TR (1830), BL (1840), BR (1850), and C (1810) as shown in FIG. 18, respectively, in that order.

[0319] According to one embodiment of the present disclosure, when there are N pieces of block vector information at a predetermined position, the video encoding device (100) and / or the video decoding device (200) can configure a block vector candidate list. N can be a natural number. That is, the video encoding device (100) and / or the video decoding device (200) can configure a block vector candidate list including N pieces of block vector information. In this case, the video encoding device (100) can encode a first block vector index indicating the first block vector information included in the block vector candidate list. Alternatively, the video decoding device (200) can obtain a first block vector index indicating the first block vector information included in the block vector candidate list. Based on the encoded or obtained index, the video encoding device (100) and / or the video decoding device (200) can generate a final chroma prediction block.

[0320] According to one embodiment of the present disclosure, when there are N pieces of block vector information at a predetermined position, the video encoding device (100) and / or the video decoding device (200) can configure a block vector candidate list. N may be a natural number. In this case, the video encoding device (100) can encode a second block vector index indicating second block vector information included in the block vector candidate list and a third block vector index indicating third block vector information. Alternatively, the video decoding device (200) can obtain a second block vector index indicating second block vector information included in the block vector candidate list and a third block vector index indicating third block vector information. The video encoding device (100) and / or the video decoding device (200) can generate a first chroma prediction block based on the second block vector index, and can generate a second chroma prediction block based on the third block vector index. The video encoding device (100) and / or the video decoding device (200) can generate a final chroma prediction block by weighting the first chroma prediction block and the second chroma prediction block.

[0321] At this time, block vector information at a predetermined position for constructing a block vector candidate list can be searched in a predetermined order. For example, in order to construct a block vector candidate list, the image encoding device (100) and / or the image decoding device (200) can search for block vector information in the following order: an upper left luma sample in a central corresponding luma block, an upper left luma sample in an upper left corresponding luma block, an upper right luma sample in an upper right corresponding luma block, a lower left luma sample in a lower left corresponding luma block, and a lower right luma sample in a lower right corresponding luma block. The present disclosure is not limited thereto, and block vector information can be searched in various orders.

[0322] According to one embodiment of the present disclosure, the video encoding device (100) and / or the video decoding device (200) may weight-sum two chroma prediction blocks to generate a final chroma prediction block. Specifically, the video encoding device (100) and / or the video decoding device (200) may generate a chroma prediction block (e.g., a third chroma prediction block) based on an intra prediction mode. In addition, the video encoding device (100) and / or the video decoding device (200) may generate a chroma prediction block (e.g., a fourth chroma prediction block) based on a prediction parameter. The video encoding device (100) and / or the video decoding device (200) may generate the final chroma prediction block by weight-summing a chroma prediction block based on an intra prediction mode (e.g., a third chroma prediction block) and a chroma prediction block based on a prediction parameter (e.g., a fourth chroma prediction block). Here, the intra prediction mode used to generate the third chroma prediction block may be one of the PLANAR mode, the DC mode, or the directional mode. Additionally, the prediction parameters may be one of the filter coefficients used in the convolutional cross-component intra prediction model (CCCM) or the linear model parameters used in the cross-component linear model (CCLM).

[0323] While the exemplary methods of this disclosure are presented as a series of operations for clarity of description, this is not intended to limit the order in which the steps are performed, and individual steps may be performed simultaneously or in different orders, if desired. To implement a method according to this disclosure, additional steps may be included in addition to the steps illustrated, some steps may be excluded and the remaining steps included, or some steps may be excluded and additional steps included.

[0324] In the present disclosure, a video encoding device or video decoding device performing a predetermined operation (step) may perform an operation (step) of checking the conditions or circumstances under which the operation (step) is performed. For example, if it is described that a predetermined operation is performed when a predetermined condition is satisfied, the video encoding device or video decoding device may perform an operation of checking whether the predetermined condition is satisfied and then perform the predetermined operation.

[0325] The various embodiments of the present disclosure are not intended to list all possible combinations but rather to illustrate representative aspects of the present disclosure, and the matters described in the various embodiments may be applied independently or in combination of two or more.

[0326] Additionally, various embodiments of the present disclosure may be implemented by hardware, firmware, software, or a combination thereof. In the case of hardware implementation, the embodiments may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general processors, controllers, microcontrollers, microprocessors, etc.

[0327] In addition, the video decoding device and the video encoding device to which the embodiments of the present disclosure are applied may be included in a multimedia broadcasting transmitting and receiving device, a mobile communication terminal, a home cinema video device, a digital cinema video device, a surveillance camera, a video conversation device, a real-time communication device such as a video communication, a mobile streaming device, a storage medium, a camcorder, a video-on-demand (VoD) service providing device, an OTT (Over the top video) device, an Internet streaming service providing device, a three-dimensional (3D) video device, a video phone video device, and a medical video device, and may be used to process a video signal or a data signal. For example, the OTT (Over the top video) device may include a game console, a Blu-ray player, an Internet-connected TV, a home theater system, a smartphone, a tablet PC, a DVR (Digital Video Recorder), and the like.

[0328] FIG. 25 is a diagram illustrating an example of a content streaming system to which an embodiment according to the present disclosure can be applied.

[0329] As illustrated in FIG. 25, a content streaming system to which an embodiment of the present disclosure is applied may largely include an encoding server, a streaming server, a web server, a media storage, a user device, and a multimedia input device.

[0330] The encoding server compresses content input from multimedia input devices such as smartphones, cameras, and camcorders into digital data, generates a bitstream, and transmits it to the streaming server. Alternatively, if multimedia input devices such as smartphones, cameras, and camcorders directly generate bitstreams, the encoding server may be omitted.

[0331] The above bitstream can be generated by an image encoding method and / or an image encoding device to which an embodiment of the present disclosure is applied, and the streaming server can temporarily store the bitstream during the process of transmitting or receiving the bitstream.

[0332] The streaming server transmits multimedia data to a user device based on a user request via a web server, and the web server can act as an intermediary to inform the user of available services. When a user requests a desired service from the web server, the web server transmits the request to the streaming server, and the streaming server can transmit multimedia data to the user. At this time, the content streaming system may include a separate control server, and in this case, the control server may control commands / responses between each device within the content streaming system.

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

[0334] Examples of the user devices may include mobile phones, smart phones, laptop computers, digital broadcasting terminals, personal digital assistants (PDAs), portable multimedia players (PMPs), navigation devices, slate PCs, tablet PCs, ultrabooks, wearable devices (e.g., smartwatches, smart glasses, HMDs), digital TVs, desktop computers, digital signage, etc.

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

[0336] The scope of the present disclosure includes software or machine-executable instructions (e.g., operating systems, applications, firmware, programs, etc.) that cause operations according to the methods of various embodiments to be executed on a device or a computer, and a non-transitory computer-readable medium having such software or instructions stored thereon and executable on the device or computer.

[0337] Embodiments according to the present disclosure can be used to encode / decode images.

Claims

1. An image decoding method performed by an image decoding device, A step of obtaining block vector information of a corresponding luma block corresponding to the current chroma block; A step of identifying a chroma reference block of the current chroma block and a luma reference block of the corresponding luma block based on the block vector information; A step of generating prediction parameters based on the chroma reference block and the luma reference block; and A step of generating a final chroma prediction block of the current chroma block based on the generated prediction parameters, How to decrypt video.

2. In paragraph 1, Based on the fact that there are multiple corresponding luma blocks, the block vector information includes block vector information of a predetermined position within the multiple corresponding luma blocks. How to decrypt video.

3. In paragraph 2, The above plurality of corresponding luma blocks include an upper left corresponding luma block, an upper right corresponding luma block, a lower left corresponding luma block, a lower right corresponding luma block, and a central corresponding luma block, The above-determined position includes at least one of an upper left luma sample position within the upper left corresponding luma block, an upper right luma sample position within the upper right corresponding luma block, a lower left luma sample position within the lower left corresponding luma block, a lower right luma sample position within the lower right corresponding luma block, or an upper left luma sample position within the central corresponding luma block. How to decrypt video.

4. In paragraph 2, A step of constructing a block vector candidate list based on N pieces of block vector information of the above-determined location; and A step of obtaining a first block vector index indicating first block vector information included in the block vector candidate list; further comprising: The final chroma prediction block is generated based on the first block vector index, The above N is a natural number, How to decrypt video.

5. In paragraph 2, A step of constructing a block vector candidate list based on N pieces of block vector information of the above-determined location; A step of obtaining a second block vector index indicating second block vector information included in the above block vector candidate list; Further comprising a step of obtaining a third block vector index indicating third block vector information included in the above block vector candidate list, The final chroma prediction block is generated by weighting a first chroma prediction block generated based on the second block vector index and a second chroma prediction block generated based on the third block vector index, The above N is a natural number, How to decrypt video.

6. In paragraph 5, The block vector information of the predetermined location for constructing the above block vector candidate list is searched in a predetermined order. How to decrypt video.

7. In paragraph 1, The step of generating the above prediction parameters is: Further comprising the step of downsampling the luma reference block based on the size of the chroma reference block. How to decrypt video.

8. In paragraph 1, The step of generating the final chroma prediction block is as follows: A step of generating a third chroma prediction block based on the intra prediction mode; generating a fourth chroma prediction block based on the above prediction parameters; and Further comprising the step of generating a final chroma prediction block by weighting the third chroma prediction block and the fourth chroma prediction block. How to decrypt video.

9. In paragraph 8, The above intra prediction mode is one of PLANAR mode, DC mode or directional mode. How to decrypt video.

10. In paragraph 1, The above prediction parameters are one of the filter coefficients used in the convolutional cross-component intra prediction model (CCCM) or the linear model parameters used in the cross-component linear model (CCLM). How to decrypt video.

11. In paragraph 1, The block vector information of the corresponding luma block includes block vector information of a surrounding block of the corresponding luma block. How to decrypt video.

12. An image encoding method performed by an image encoding device, A step of encoding block vector information of a corresponding luma block corresponding to the current chroma block; A step of identifying a chroma reference block of the current chroma block and a luma reference block of the corresponding luma block based on the block vector information; A step of generating prediction parameters based on the chroma reference block and the luma reference block; and A step of generating a final chroma prediction block of the current chroma block based on the generated prediction parameters, Video encoding method.

13. A computer-readable recording medium storing a bitstream generated by the image encoding method of Article 12.

14. In a method for transmitting a bitstream generated by an image encoding method, the image encoding method comprises: A step of encoding block vector information of a corresponding luma block corresponding to the current chroma block; A step of identifying a chroma reference block of the current chroma block and a luma reference block of the corresponding luma block based on the block vector information; A step of generating prediction parameters based on the chroma reference block and the luma reference block; and A step of generating a final chroma prediction block of the current chroma block based on the generated prediction parameters, Bitstream transmission method.

Citation Information

Patent Citations

  • Growing tree-friendly bolt

    KR1020230031622A

  • A device, a method and a computer readable storage medium for industrial safety management

    KR1020240081730A

  • Adaptive cross component residual prediction

    KR102519241B1

  • Rotary switch

    KR102560000B1

Cited By

  • Coding method, decoding method, coders, decoders and storage medium

    WO2026143744A1