Image encoding / decoding method and device
Patent Information
- Application Number
- PCT/KR2026/097306
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-22
- Filing Date
- 2026-05-22
- Publication Date
- 2026-11-26
AI Technical Summary
Existing video compression technologies struggle to efficiently encode and decode high-resolution and stereoscopic video content, particularly in signaling intra-prediction modes for luminance and chrominance blocks, leading to suboptimal encoding efficiency.
A method and apparatus for signaling intra-prediction modes of luminance and chrominance blocks, utilizing a first candidate list with default modes and induced modes based on surrounding blocks, and determining component-to-component prediction based on block size and color format, enhancing encoding efficiency.
Improves encoding efficiency by efficiently signaling and inducing intra-prediction modes, particularly for high-resolution and stereoscopic video content, optimizing compression and decoding processes.
Smart Images

Figure KR2026097306_26112026_PF_FP_ABST
Abstract
Description
Video encoding / decoding method and device
[0001] The present invention relates to an image encoding / decoding method and apparatus.
[0002] Market demand for high-resolution video is increasing, and consequently, there is a need for technology that can efficiently compress high-resolution video. In response to these market demands, the Moving Picture Expert Group (MPEG) of ISO / IEC and the Video Coding Expert Group (VCEG) of ITU-T jointly formed the Joint Collaborative Team on Video Coding (JCT-VC), completed the development of the High Efficiency Video Coding (HEVC) video compression standard in January 2013, and have been actively conducting research and development on next-generation compression standards.
[0003] Video compression is broadly composed of intra-frame prediction (or intra prediction), inter-frame prediction (or inter prediction), transformation, quantization, entropy coding, and in-loop filters. Meanwhile, along with the increasing demand for high-resolution video, the demand for stereoscopic video content as a new video service is also increasing. Discussions are underway regarding video compression technologies to effectively provide high-resolution and ultra-high-resolution stereoscopic video content.
[0004] The present disclosure provides a method and apparatus for signaling a prediction method according to an intra mode.
[0005] The present disclosure provides an intra-prediction method and apparatus for luminance / chrominance blocks.
[0006] The present disclosure provides a method and apparatus for signaling / inducing an intra-prediction mode of a luminance / chrominance block.
[0007] An image decoding method and apparatus according to the present disclosure may derive an intra-prediction mode of a luminance block based on a first candidate list for a luminance block, and generate a prediction sample of the luminance block based on the intra-prediction mode of the luminance block. A default mode for the luminance block may be configured in the first candidate list. The default mode for the luminance block may include at least one of a basic direction mode, a first mode derived by subtracting 1 from the index of the basic direction mode, a second mode derived by subtracting 2 from the index of the basic direction mode, or a third mode derived by subtracting 3 from the index of the basic direction mode.
[0008] In the image decoding method and apparatus according to the present disclosure, the second mode derived by subtracting 2 from the index of the basic direction mode may be configured before the first mode derived by subtracting 1 from the index of the basic direction mode within the first candidate list.
[0009] In the image decoding method and apparatus according to the present disclosure, when the size of the luminance block is smaller than 8x8, the default mode may be configured in the first candidate list.
[0010] In the image decoding method and apparatus according to the present disclosure, an induced mode for the luminance block may be configured in the first candidate list. The induced mode may be a mode induced based on an surrounding mode. The surrounding mode may be an intra-prediction mode of a surrounding block adjacent to the luminance block.
[0011] In the image decoding method and apparatus according to the present disclosure, the induced mode may be configured in the first candidate list based on whether the product of the width and height of the luminance block is greater than 64.
[0012] In the image decoding method and apparatus according to the present disclosure, whether component-to-component prediction is applied to a chrominance block corresponding to the luminance block may be determined based on at least one of whether the chrominance block is a block coded in a lossless mode, the size of the chrominance block, or the color format of the input video.
[0013] In the image decoding method and apparatus according to the present disclosure, when the color difference block is a block coded in a lossless mode, the prediction between components can be applied to the color difference block based on the fact that the size of the color difference block is 4x4.
[0014] In the image decoding method and apparatus according to the present disclosure, based on the fact that the width of the color difference block is less than or equal to 64 and the height of the color difference block is less than or equal to 64, the prediction between the components may be applied to the color difference block.
[0015] In the image decoding method and apparatus according to the present disclosure, the intra prediction mode of the chrominance block corresponding to the luminance block can be derived based on a second candidate list for the chrominance block.
[0016] In the image decoding method and apparatus according to the present disclosure, when the intra prediction mode of the luminance block is a directional mode, a basic directional mode corresponding to the directional mode may be configured in the second candidate list.
[0017] In the image decoding method and apparatus according to the present disclosure, information for specifying one of a plurality of candidate modes belonging to the second candidate list may be signaled through a bitstream. If the candidate mode specified by the signaled information is the same as the basic direction mode corresponding to the direction mode of the luminance block, the delta angle value for the chrominance block may be set to the delta angle value corresponding to the direction mode of the luminance block.
[0018] In the image decoding method and apparatus according to the present disclosure, the default mode for the color difference block may be configured in the second candidate list. The default mode for the color difference block may include a directional mode. The directional mode may be configured in the order of V_PRED mode, H_PRED mode, D45_PRED mode, D135_PRED mode, D67_PRED mode, D113_PRED mode, D157_PRED mode, and D203_PRED mode.
[0019] The image encoding method and apparatus according to the present disclosure may derive an intra-prediction mode of a luminance block based on a first candidate list for a luminance block, and generate a prediction sample of the luminance block based on the intra-prediction mode of the luminance block. A default mode for the luminance block may be configured in the first candidate list. The default mode for the luminance block may include at least one of a basic direction mode, a first mode derived by subtracting 1 from the index of the basic direction mode, a second mode derived by subtracting 2 from the index of the basic direction mode, or a third mode derived by subtracting 3 from the index of the basic direction mode.
[0020] The present disclosure may provide a non-transient computer-readable storage medium for storing a bitstream generated by an image encoding method.
[0021] The present disclosure may provide a transmission method and an apparatus for transmitting a bitstream generated by an image encoding method.
[0022] According to the present disclosure, a prediction method according to intra mode can be efficiently signaled.
[0023] Encoding efficiency can be improved through the intra-prediction method according to the present disclosure.
[0024] According to the present disclosure, an intra-prediction mode for a luminance / chrominance block can be efficiently signaled or induced.
[0025] FIG. 1 is a block diagram showing an image encoding device according to the present disclosure.
[0026] FIG. 2 is a block diagram showing an image decoding device according to the present disclosure.
[0027] FIG. 3 illustrates a picture splitting method according to the present disclosure.
[0028] FIG. 4 schematically illustrates an image decoding method performed in a decoding device according to the present disclosure.
[0029] FIG. 5 illustrates a directional mode according to the present disclosure.
[0030] FIG. 6 illustrates an intra-prediction method performed in a decoding device according to the present disclosure.
[0031] FIG. 7 illustrates a component-to-component prediction method performed in a decoding device according to the present disclosure.
[0032] Embodiments of the present invention are described in detail with reference to the drawings attached to this specification so that those skilled in the art can easily implement the invention. However, the present invention may be embodied in various different forms and is not limited to the embodiments described herein. Furthermore, in order to clearly explain the invention in the drawings, parts unrelated to the explanation have been omitted, and similar parts throughout the specification are denoted by similar reference numerals.
[0033] Throughout this specification, when a part is described as being 'connected' to another part, this includes not only cases where they are directly connected, but also cases where they are electrically connected with other elements in between.
[0034] Furthermore, throughout this specification, when a part is described as 'comprising' a certain component, this means that, unless specifically stated otherwise, it does not exclude other components but may include additional components.
[0035] Additionally, terms such as "first," "second," etc., may be used to describe various components, but said components should not be limited by said terms. These terms are used solely for the purpose of distinguishing one component from another.
[0036] Additionally, in the embodiments relating to the device and method described herein, some components of the device or some steps of the method may be omitted. Also, the order of some components of the device or some steps of the method may be changed. Additionally, other components or other steps may be inserted into some components of the device or some steps of the method.
[0037] In addition, some components or steps of the first embodiment of the present invention may be added to or replace some components or steps of the second embodiment of the present invention.
[0038] Furthermore, the components shown in the embodiments of the present invention are depicted independently to represent different characteristic functions and do not imply that each component consists of separate hardware or a single software unit. That is, for convenience of explanation, each component is described by listing it as a separate component, and at least two of the components may be combined to form a single component, or a single component may be divided into multiple components to perform a function. Such integrated and separated embodiments of each component are also included within the scope of the present invention as long as they do not deviate from the essence of the invention.
[0039] First, the terms used in this application are briefly explained as follows.
[0040] The video decoding apparatus described below may be a device included in a civilian security camera, civilian security system, military security camera, military security system, personal computer (PC), notebook computer, portable multimedia player (PMP), wireless communication terminal, smartphone, and server terminal such as a TV application server and service server; it may also refer to various devices equipped with a user terminal such as various devices, a communication device such as a communication modem for performing communication with a wired or wireless communication network, a memory for storing various programs and data for decoding video or predicting between or within a screen for decoding, and a microprocessor for executing programs to perform calculations and control.
[0041] In addition, the video encoded into a bitstream by the encoder can be transmitted to a video decoding device in real-time or non-real-time via wired or wireless communication networks such as the Internet, local area wireless communication networks, wireless LAN networks, WiBro networks, and mobile communication networks, or through various communication interfaces such as cables and Universal Serial Bus (USB), to be decoded, restored as a video, and played back. Alternatively, the bitstream generated by the encoder may be stored in memory. The memory may include both volatile and non-volatile memory. In this specification, memory may be described as a recording medium that stores the bitstream.
[0042] Typically, a video can be composed of a series of pictures, and each picture can be divided into coding units, such as blocks. Furthermore, those skilled in the art to which this embodiment belongs will understand that the term "picture" described below may be replaced with other terms having equivalent meanings, such as "image" or "frame." Additionally, those skilled in the art to which this embodiment belongs will understand that the term "coding unit" may be replaced with other terms having equivalent meanings, such as "unit block" or "block."
[0043] Hereinafter, embodiments of the present invention will be described in more detail with reference to the attached drawings. In describing the present invention, redundant descriptions of identical components are omitted.
[0044] FIG. 1 is a block diagram showing an image encoding device according to the present invention.
[0045] Referring to FIG. 1, the image encoding device (100) may include a picture splitting unit (110), a prediction unit (120, 125), a conversion unit (130), a quantization unit (135), a reordering unit (160), an entropy encoding unit (165), an inverse quantization unit (140), an inverse conversion unit (145), a filter unit (150), and a memory (155).
[0046] The picture splitting unit (110) can split the input picture into at least one processing unit. At this time, the processing unit may be a Prediction Unit (PU), a Transform Unit (TU), or a Coding Unit (CU). In the following embodiments of the present invention, the term "coding unit" may be used to mean a unit that performs coding, or a unit that performs decoding.
[0047] A prediction unit may be divided into at least one square or rectangle of the same size within a single coding unit, or it may be divided such that one of the prediction units within a single coding unit has a different shape and / or size from another prediction unit. When generating a prediction unit that performs intra prediction based on a coding unit, if it is not the minimum coding unit, intra prediction can be performed without dividing into multiple prediction units NxN.
[0048] The prediction unit (120, 125) may include an inter prediction unit (120) that performs inter prediction or inter-frame prediction, and an intra prediction unit (125) that performs intra prediction or intra-frame prediction. It may determine whether to use inter prediction or perform intra prediction for a prediction unit, and determine specific information according to each prediction method (e.g., intra prediction mode, motion vector, reference picture, etc.). The residual value (residual block) between the generated prediction block and the original block may be input to the conversion unit (130). In addition, the prediction mode information, motion vector information, etc. used for prediction may be encoded together with the residual value in the entropy encoding unit (165) and transmitted to the decoder.
[0049] When applying the block merge technology of the present invention described above, a method of using a merge estimation region (MER) considering parallel processing when merging and using movement information of spatially or temporally adjacent blocks of the current block can be applied to the prediction unit (120, 125). That is, the present invention can utilize a parallel estimation region (PER) to configure spatially or temporally adjacent blocks of the current block by considering parallel processing in prediction technologies such as inter-frame prediction, intra-frame prediction, and inter-component prediction among video coding technologies.
[0050] The inter prediction unit (120) may predict a prediction unit based on information of at least one picture among the previous picture or the subsequent picture of the current picture, and in some cases, may predict a prediction unit based on information of a partially encoded area within the current picture. The inter prediction unit (120) may include a reference picture interpolation unit, a motion prediction unit, and a motion compensation unit.
[0051] In the reference picture interpolation unit, reference picture information is received from memory (155), and pixel information of integer pixels or less can be generated from the reference picture. In the case of luminance pixels, a DCT-based 8-tap interpolation filter with different filter coefficients can be used to generate pixel information of integer pixels or less in 1 / 4 pixel units. In the case of chrominance signals, a DCT-based 4-tap interpolation filter with different filter coefficients can be used to generate pixel information of integer pixels or less in 1 / 8 pixel units.
[0052] The motion prediction unit can perform motion prediction based on a reference picture interpolated by the reference picture interpolation unit. Various methods such as FBMA (Full search-based Block Matching Algorithm), TSS (Three Step Search), and NTS (New Three-Step Search Algorithm) can be used to calculate motion vectors. Based on the interpolated pixels, the motion vector can have motion vector values in units of 1 / 2 or 1 / 4 pixels. The motion prediction unit can predict the current prediction unit by using different motion prediction methods. Various motion prediction methods such as the Skip method, Merge method, AMVP (Advanced Motion Vector Prediction) method, and Intra Block Copy method can be used.
[0053] The intra prediction unit (125) can generate a prediction unit based on reference pixel information around the current block, which is pixel information within the current picture. If the surrounding block of the current prediction unit is a block that has performed inter prediction, and the reference pixel is a pixel that has performed inter prediction, the reference pixel included in the block that has performed inter prediction can be replaced with the reference pixel information of the surrounding intra prediction block. That is, if the reference pixel is not available, the unavailable reference pixel information can be replaced with at least one of the available reference pixels.
[0054] Additionally, a residual block can be generated that includes residual value information, which is the difference between the prediction unit that performed the prediction based on the prediction unit generated in the prediction unit (120, 125) and the original block of the prediction unit. The generated residual block can be input to the conversion unit (130).
[0055] In the transformation unit (130), the residual block containing residual value information of the prediction unit generated through the original block and the prediction unit (120, 125) can be transformed using a transformation method such as DCT (Discrete Cosine Transform), DST (Discrete Sine Transform), or KLT. Whether to apply DCT, DST, or KLT to transform the residual block can be determined based on the intra-prediction mode information of the prediction unit used to generate the residual block.
[0056] The quantization unit (135) can quantize the values converted into the frequency domain in the conversion unit (130). The quantization coefficient may vary depending on the block or the importance of the image. The values produced by the quantization unit (135) may be provided to the inverse quantization unit (140) and the reordering unit (160).
[0057] The reordering unit (160) can perform reordering of coefficient values for quantized residual values.
[0058] The reordering unit (160) can convert two-dimensional block-shaped coefficients into one-dimensional vector forms through a coefficient scanning method. For example, the reordering unit (160) can convert the coefficients from DC to high-frequency range coefficients into one-dimensional vector forms by scanning using a Zig-Zag Scan method. Depending on the size of the conversion unit and the intra-prediction mode, a vertical scan that scans two-dimensional block-shaped coefficients in the column direction or a horizontal scan that scans two-dimensional block-shaped coefficients in the row direction may be used instead of the Zig-Zag Scan. That is, depending on the size of the conversion unit and the intra-prediction mode, it can be determined whether to use a Zig-Zag Scan, a vertical scan, or a horizontal scan.
[0059] The entropy encoding unit (165) can perform entropy encoding based on the values calculated by the reordering unit (160). Entropy encoding can use various encoding methods, such as, for example, Exponential Golomb, CAVLC (Context-Adaptive Variable Length Coding), and CABAC (Context-Adaptive Binary Arithmetic Coding). In this regard, the entropy encoding unit (165) can encode residual value coefficient information of the encoding unit from the reordering unit (160) and the prediction unit (120, 125). Additionally, according to the present invention, it is possible to signal and transmit information indicating that motion information is derived and used in the decoder side, and information regarding the technique used for deriving motion information.
[0060] In the inverse quantization unit (140) and inverse transformation unit (145), the values quantized in the quantization unit (135) are inverse quantized, and the values transformed in the transformation unit (130) are inverse transformed. The residual value generated in the inverse quantization unit (140) and inverse transformation unit (145) can be combined with the prediction unit predicted through the motion estimation unit, motion compensation unit, and intra prediction unit included in the prediction unit (120, 125) to generate a reconstructed block.
[0061] The filter unit (150) may include at least one of a deblocking filter, an offset correction unit, and an Adaptive Loop Filter (ALF). The deblocking filter can remove block distortion caused by boundaries between blocks in the restored picture. The offset correction unit can correct the offset from the original image on a pixel-by-pixel basis for the image that has undergone deblocking. To perform offset correction for a specific picture, a method may be used in which pixels included in the image are divided into a certain number of regions, the region to be offset is determined, and the offset is applied to that region, or a method may be used in which the offset is applied by considering the edge information of each pixel. Adaptive Loop Filtering (ALF) may be performed based on a value obtained by comparing the filtered restored image with the original image. After dividing the pixels included in the image into a predetermined group, a filter to be applied to that group is determined, and filtering may be performed differentially for each group.
[0062] The memory (155) can store a restored block or picture produced through the filter unit (150), and the stored restored block or picture can be provided to the prediction unit (120, 125) when performing inter-prediction.
[0063] FIG. 2 is a block diagram showing an image decoding device according to the present invention.
[0064] Referring to FIG. 2, the image decoder (200) may include an entropy decoder (210), a reordering unit (215), an inverse quantization unit (220), an inverse transformation unit (225), a prediction unit (230, 235), a filter unit (240), and a memory (245).
[0065] When a video bitstream is input to a video encoder, the input bitstream can be decoded using the reverse procedure of the video encoder.
[0066] The entropy decoding unit (210) can perform entropy decoding in the opposite procedure to that which the entropy encoding unit of the image encoder performed. For example, various methods such as Exponential Golomb, CAVLC (Context-Adaptive Variable Length Coding), and CABAC (Context-Adaptive Binary Arithmetic Coding) can be applied in correspondence with the method performed in the image encoder.
[0067] The entropy decoding unit (210) can decode information related to intra-prediction and inter-prediction performed in the encoder.
[0068] The reordering unit (215) can perform reordering based on the method of reordering the entropy-decoded bitstream in the encoding unit in the entropy decoding unit (210). The coefficients expressed in the form of a one-dimensional vector can be reordered by restoring them to the form of two-dimensional block coefficients.
[0069] The inverse quantization unit (220) can perform inverse quantization based on the coefficient values of the rearranged block and the quantization parameters provided by the encoder.
[0070] The inverse transform unit (225) can perform inverse transforms, i.e., inverse DCT, inverse DST, and inverse KLT, on the transforms, i.e., DCT, DST, and KLT, performed by the transform unit on the quantization result performed by the image encoder. The inverse transform can be performed based on the transmission unit determined by the image encoder. In the inverse transform unit (225) of the image decoder, a transformation technique (e.g., DCT, DST, KLT) can be selectively performed according to multiple pieces of information such as a prediction method, the size of the current block, and the prediction direction.
[0071] The prediction unit (230, 235) can generate a prediction block based on the prediction block generation information provided by the entropy decoding unit (210) and the previously decoded block or picture information provided by the memory (245).
[0072] As described above, when performing intra prediction or intra-frame prediction identical to the operation in the video encoder, if the size of the prediction unit and the size of the transform unit are the same, intra prediction for the prediction unit is performed based on the pixels to the left of the prediction unit, the pixels to the top left, and the pixels to the top; however, if the size of the prediction unit and the size of the transform unit are different when performing intra prediction, intra prediction can be performed using reference pixels based on the transform unit. Additionally, intra prediction using NxN partitioning only for the minimum encoding unit may also be used.
[0073] The prediction unit (230, 235) may include a prediction unit determination unit, an inter prediction unit, and an intra prediction unit. The prediction unit determination unit receives various information, such as prediction unit information input from the entropy decoding unit (210), prediction mode information of the intra prediction method, and motion prediction related information of the inter prediction method, distinguishes the prediction unit in the current encoding unit, and determines whether the prediction unit performs inter prediction or intra prediction.
[0074] In addition, when applying the block merge technology of the present invention described above, a method of using a merge estimation region (MER) considering parallel processing when merging and using movement information of spatially or temporally adjacent blocks of the current block can be applied to the prediction unit (230, 235). That is, the present invention can utilize a parallel estimation region (PER) to configure spatially or temporally adjacent blocks of the current block by considering parallel processing in prediction technologies such as inter-frame prediction, intra-frame prediction, and inter-component prediction among video coding technologies.
[0075] The inter prediction unit (230) can perform inter prediction for the current prediction unit based on information included in at least one picture, either a previous picture or a subsequent picture, of the current picture containing the current prediction unit, using information required for inter prediction of the current prediction unit provided by the video encoder. To perform inter prediction, it can determine whether the motion prediction method of the prediction unit included in the corresponding encoding unit is a Skip Mode, Merge Mode, AMVP Mode, or Intra Block Copy Mode based on the encoding unit.
[0076] The intra prediction unit (235) can generate a prediction block based on pixel information within the current picture. If the prediction unit is a prediction unit that has performed intra prediction, it can perform intra prediction based on the intra prediction mode information of the prediction unit provided by the image encoder. The intra prediction unit (235) may include an Adaptive Intra Smoothing (AIS) filter, a reference pixel interpolation unit, and a DC filter. The AIS filter is a part that performs filtering on the reference pixel of the current block, and can determine whether to apply the filter based on the prediction mode of the current prediction unit. AIS filtering can be performed on the reference pixel of the current block using the prediction mode of the prediction unit and the AIS filter information provided by the image encoder. If the prediction mode of the current block is a mode that does not perform AIS filtering, the AIS filter may not be applied.
[0077] The reference pixel interpolation unit can generate a reference pixel of an integer value or less by interpolating the reference pixel when the prediction mode of the prediction unit is a prediction unit that performs intra-prediction based on the pixel value interpolated from the reference pixel. If the prediction mode of the current prediction unit is a prediction mode that generates a prediction block without interpolating the reference pixel, the reference pixel may not be interpolated. The DC filter can generate a prediction block through filtering when the prediction mode of the current block is DC mode.
[0078] The restored block or picture may be provided to a filter unit (240). The filter unit (240) may include a deblocking filter, an offset correction unit, and an ALF.
[0079] Information regarding whether a deblocking filter has been applied to the corresponding block or picture can be received from the video encoder, and if a deblocking filter has been applied, information regarding whether a strong filter or a weak filter has been applied. The deblocking filter of the video decoder receives information related to the deblocking filter provided by the video encoder and can perform deblocking filtering on the corresponding block.
[0080] The offset correction unit can perform offset correction on the restored image based on the type of offset correction and offset value information applied to the image during encoding. ALF can be applied to the encoding unit based on information on whether ALF is applied and ALF coefficient information provided by the encoder. This ALF information can be provided included in a specific parameter set.
[0081] The memory (245) can store the restored picture or block so that it can be used as a reference picture or reference block, and can also provide the restored picture to the output unit.
[0082] FIG. 3 illustrates a picture splitting method according to the present disclosure.
[0083] The current picture can be divided into slices and / or tiles. Each slice and / or tile can be divided into multiple super blocks (SB) or coding tree units (CTU).
[0084] The superblock can be divided into various forms, as illustrated in FIG. 3. The superblock can be divided based on a 1:2:1 division type, as shown in FIG. 3 (d) and (e). The superblock can be divided based on a 1:2:4:1 division type, as shown in FIG. 3 (f) to (i). The superblock can be recursively divided based on a quad tree division type, as shown in FIG. 3 (a). The minimum lengths of the luminance block and the chrominance block derived through block division can be 4 pixels and 2 pixels, respectively. The size of the superblock and the divided blocks can be 256x256 or larger. The aspect ratio of the available blocks can be 8:1 or 1:8 or larger.
[0085] The color difference block can be divided as follows.
[0086] A) Single Tree: The chrominance block may use the same partitioning structure as the corresponding luminance block. This may be implicitly determined based on the picture type and / or slice type.
[0087] B) Shared Dual Tree: Up to a specific division depth, the chrominance block and the corresponding luminance block use the same division structure, and from the subsequent division depth, the chrominance block and the corresponding luminance block may use separate division structures. Here, in the separate division structures, at least one of the division methods of FIG. 3 may be used. The specific division depth may be pre-defined in the decoding / encoding device. A specific division depth of different values may be used based on the picture type and / or slice type.
[0088] C) Independent dual tree: Regardless of the division structure of the corresponding luminance block, a separate division structure may be used for the color difference block. At this time, at least one of the division methods of FIG. 3 may be used for the color difference block.
[0089] FIG. 4 schematically illustrates an image decoding method performed in a decoding device according to the present disclosure.
[0090] Referring to Fig. 4, a prediction block can be generated (S400).
[0091] A unit in which the prediction is performed (hereinafter referred to as the prediction unit) can be determined. Here, the prediction unit may be the current block, a sub-block obtained by dividing the current block, a set of samples, or a single sample.
[0092] The prediction unit may be determined based on at least one of size information or shape information for performing predictions on the chrominance component and the luminance component. The prediction unit may be determined dependently or independently with respect to the chrominance component and the luminance component. Here, "dependent" means that the prediction unit is not determined independently for each component, but rather the prediction unit of another component is determined based on the prediction unit determined for one component. In this case, "one component" may correspond to one or more of the luminance component or the chrominance component. For example, the prediction unit of the luminance component may be determined based on information regarding the chrominance component. The prediction unit of the chrominance component may have a size corresponding to the prediction unit of the luminance component according to the color format (or converted color format) of the input video. If the prediction unit is determined dependently, information regarding the prediction unit of the corresponding component may not be signaled. "Independent" means that the prediction unit is determined for each component. In this case, information regarding the prediction unit may be signaled for each component.
[0093] The prediction method of the prediction unit can be determined. As prediction methods, intra mode, inter mode, IBC (intra block copy) mode, palette mode, CIIP (combined inter and intra prediction) mode, etc., may be used. CIIP mode can be classified as inter prediction.
[0094] If the prediction method for the current block is determined to be intra mode, a prediction sample for the current block can be generated based on reference samples within the surrounding region of the current block. A filtering process may be performed to remove discontinuities in the reference samples and / or to utilize samples at fractional positions. Filtering may be applied adaptively based on the prediction mode or block size. If a reference sample has not yet been restored, the reference sample at that position may be padded based on surrounding samples. Information regarding the prediction mode applied to the current block may be signaled via a bitstream. Below, we will examine the prediction method based on intra mode in detail.
[0095] When directional prediction is applied to the current block, intra prediction may be performed based on the directional mode illustrated in FIG. 5. In addition to the directional mode illustrated in FIG. 5, a directional mode in which an angle of α or β is added or subtracted may be considered. Information regarding the directional mode may be signaled as independent directional information for each direction. Alternatively, each directional mode may be represented through the signaling of at least one of the base directional mode or the delta angle value. The base directional mode may include D203_PRED, H_PRED, D157_PRED, D135_PRED, D113_PRED, V_PRED, D67_PRED, and D45_PRED, as illustrated in FIG. 5.
[0096] Based on an IBC flag indicating whether IBC mode is applied, IBC mode may be applied to the current block. The IBC flag may be adaptively signaled depending on the size of the current block. For example, if the size of the current block is MxN, or if the width of the current block is greater than K or greater than T, the signaling of the IBC flag may be omitted. Here, M and N may be 64, and K and T may each be 64.
[0097] When IBC mode is applied to the current block, the current block can be predicted based on block vector information (e.g., block vector candidate index, block vector difference value information, etc.). The block vector difference value information may be the block vector magnitude and sign in the x-direction and y-direction. All or part of the block vector difference value information may be derived from the decoder.
[0098] The current block can generate a predicted block of the current block based on a candidate list. In this case, the intra prediction mode of the current block can be determined as a directional mode or a non-directional mode (e.g., DC mode), and intra prediction can be performed based on the mode. This will be examined in detail with reference to FIGS. 6 and FIGS. 7.
[0099] If the IBC flag is TRUE, IBC mode may be applied. If the IBC flag is FALSE, IBC mode may not be applied, and intra prediction may be performed based on the candidate list.
[0100] Based on a palette flag indicating whether a palette mode is applied, a palette mode may be applied to the current block. The palette flag may be adaptively signaled based on the size of the current block. For example, the palette flag may be signaled when the width (W) of the current block is less than or equal to M, the height (H) of the current block is less than or equal to N, and the current block is greater than KxT. Here, M and N may each be 64, and K and T may each be 8. When a palette mode is applied to the current block, information regarding the palette mode may be signaled. The current block may be predicted based on the signaled information regarding the palette mode. For the luminance component and the chrominance component, information regarding the palette mode may be signaled separately.
[0101] The palette flag may be signaled when the intra prediction mode of the current block is determined to be DC mode. If the palette flag is TRUE, the palette mode may be applied. If the palette flag is FALSE, the palette mode may not be applied, and the filtering prediction flag may be signaled.
[0102] A filtering prediction mode may be applied to the current block based on a filtering prediction flag indicating whether the filtering prediction mode is applied. The filtering prediction flag may be signaled only for the luminance block. Alternatively, if the color format of the input video is 4:4:4 format, the filtering prediction mode may also be performed on the chrominance component. When the filtering prediction mode is applied to the current block, prediction may be performed using a reference line at a fixed position among various reference lines within the surrounding area of the current block. Here, the reference line at the fixed position may be a reference line adjacent to the current block. The filtering prediction flag may be adaptively signaled according to the size of the current block. For example, if the width (W) of the current block is less than or equal to M and the height (H) of the current block is less than or equal to N, the filtering prediction flag may be signaled. In this case, M and N may each be 32.
[0103] A filter type for the filtering prediction mode can be determined. For example, index information specifying one of a plurality of pre-defined filters in the decoding / encoding device can be signaled. Based on the signaled index information, the current block can be predicted.
[0104] If the filtering prediction flag is TRUE, the filtering prediction mode may be applied. If the filtering prediction flag is FALSE, the filtering prediction mode may not be applied, and the MP flag may be signaled.
[0105] Matrix-based prediction may be applied to the current block based on an MP flag indicating whether matrix-based prediction is applied. The MP flag may be signaled only for the luminance block. Alternatively, if the color format of the input video is 4:4:4, matrix-based prediction may also be performed on the chrominance component. The MP flag may be adaptively signaled based on the size of the current block. For example, the MP flag may be signaled if the product of the width and height of the current block is greater than or equal to P, the width of the current block is greater than Q, and the height of the current block is greater than R. In this case, P can be 8x16, and Q and R can each be 4.
[0106] Matrix information for matrix-based prediction can be determined. For example, index information and / or transpose-related information specifying one of a plurality of pre-defined matrices in the decoding / coding device may be signaled. Depending on the size and aspect ratio of the current block, the length of each index information and the matrix information indicated by the index information may differ. The current block can be predicted based on the above matrix information.
[0107] If the MP flag is TRUE, matrix-based prediction may be applied. If the MP flag is FALSE, matrix-based prediction may not be applied, and the current block may be predicted based on an undirected mode (e.g., DC mode).
[0108] Referring to FIG. 4, a resident block can be created (S410).
[0109] Transformation coefficients can be derived based on residual information signaled through the bitstream. If a second transformation is applied in the encoding device, quantized second transformation coefficients can be derived. If a second transformation is not applied in the encoding device, quantized first transformation coefficients can be derived.
[0110] Inverse quantized transformation coefficients can be derived by performing inverse quantization on the above-derived transformation coefficients.
[0111] The unit on which the conversion is performed (hereinafter referred to as the conversion unit) may be a single conversion unit (TU) or a sub-block obtained by dividing a single TU.
[0112] A first-order transformation kernel and / or an inseparable second-order transformation kernel in the vertical and horizontal directions can be determined. Alternatively, an inseparable first-order transformation kernel can be determined. Based on the determined transformation kernel, an inverse transformation can be performed on the inversely quantized transformation coefficients.
[0113] Whether to perform an inseparable first-order inverse transform and whether to perform an inseparable second-order inverse transform may be explicitly signaled or implicitly determined based on the size of the current TU.
[0114] In the current TU prediction process, if a weighted sum is performed based on multiple directional modes, the directional mode corresponding to the largest weight can be set as the representative mode of the current TU, and a transformation kernel can be determined based on this.
[0115] In the current prediction process of the TU, if a fusion prediction of inter-prediction and intra-prediction is performed, a conversion kernel can be implicitly determined based on the intra-prediction mode for the intra-prediction. Among the conversion kernels pre-defined in the encoding / decoding device, a conversion kernel corresponding to the directionality of the intra-prediction mode can be selected.
[0116] In the current TU prediction process, if wedge-based prediction is performed, a transformation kernel may be implicitly determined based on wedge information. In this case, a transformation kernel corresponding to the directionality of the angle information among the wedge information may be implicitly selected.
[0117] Referring to FIG. 4, a restoration block can be generated based on a prediction block and a residual block (S420).
[0118] FIG. 6 illustrates an intra-prediction method performed in a decoding device according to the present disclosure.
[0119] The present disclosure may relate to cases where the current block is a luminance block. However, it is not limited thereto, and the present disclosure may also apply to cases where the current block is a chrominance block.
[0120] Referring to FIG. 6, an intra prediction mode of the current block can be derived based on a candidate list of the current block (S600).
[0121] The candidate list of the present disclosure consists of candidate modes available to the current block, which may be referred to as a candidate set, a mode list, or a mode set. The candidate list may be configured in the same way in an incoding / decoding device. Below, we will examine in detail the method for configuring the candidate list.
[0122] A non-directional mode may be configured in the candidate list. The non-directional mode may include at least one of DC mode, SMOOTH mode, SMOOTH_V (vertical) mode, SMOOTH_H (horizontal) mode, or PAETH mode.
[0123] Alternatively, the candidate list may be configured excluding the aforementioned non-directional mode.
[0124] For example, an intra prediction mode of a neighboring block adjacent to the current block may be configured in the candidate list. Here, the neighboring block may include at least one of an upper neighboring block or a left neighboring block.
[0125] Assume that the top-left sample position of the current block is (0, 0) and the width and height of the current block are W and H, respectively. In this case, the top surrounding block may include at least one of a T block containing a sample position of (0, -1) or a TR block containing a sample position of (W, -1). The left surrounding block may include at least one of an L block containing a sample position of (-1, 0) or a BL block containing a sample position of (-1, H).
[0126] It is possible to determine whether each of the top and left surrounding blocks possesses a directional mode, and based on this, a candidate list can be constructed. For example, if both the top and left surrounding blocks possess a directional mode, that directional mode can be included in the candidate list. If only the left surrounding block possesses a directional mode, that directional mode can be included in the candidate list. If only the top surrounding block possesses a directional mode, that directional mode can be included in the candidate list.
[0127] If a neighbor block has not performed directional prediction (e.g., if the top / left neighbor block is predicted in IBC mode, inter prediction, or palette mode), the intra prediction mode of that neighbor block may be mapped to DC mode. Alternatively, if a neighbor block has not performed directional prediction (e.g., if the top / left neighbor block is predicted based on matrix-based prediction), the intra prediction mode of that neighbor block may be mapped to SMOOTH mode or PAETH mode.
[0128] When an intra prediction mode of a surrounding block (hereinafter referred to as the surrounding mode) is configured in a candidate list through the method described above, a mode derived based on the surrounding mode (hereinafter referred to as the derived mode) may be additionally configured in the candidate list.
[0129] Here, it may be a mode having a directionality similar to that of a surrounding mode. The induced mode may include at least one of a mode induced by applying -1 and +1 to the index of a surrounding mode, a mode induced by applying -2 and +2 to the index of a surrounding mode, a mode induced by applying -3 and +3 to the index of a surrounding mode, or a mode induced by applying -4 and +4 to the index of a surrounding mode.
[0130] The induced modes may be configured in a candidate list in a predetermined order. For example, the candidate list may be configured in the order of (1) a mode induced by applying -1 and +1 to the index of a surrounding mode, respectively; (2) a mode induced by applying -2 and +2 to the index of a surrounding mode, respectively; (3) a mode induced by applying -3 and +3 to the index of a surrounding mode, respectively; and (4) a mode induced by applying -4 and +4 to the index of a surrounding mode, respectively. The configuration order of (1) to (4) described above may be pre-defined in the decoding / encoding device. Alternatively, the configuration order of the induced modes may be changed based on the aspect ratio of the current block.
[0131] A default mode may be configured in the candidate list. The default mode may be defined as a directional mode excluding a non-directional mode. For example, the default mode may include at least one of a default directional mode, a mode derived by applying -2 and +2 respectively to the index of the default directional mode, a mode derived by applying -1 and +1 respectively to the index of the default directional mode, or a mode derived by applying -3 and +3 respectively to the index of the default directional mode.
[0132] The default mode may be defined in a pre-defined order in the decoding / encoding device. For example, the default mode may be defined in the order of the basic direction mode, the mode derived by applying -2 and +2 respectively to the index of the basic direction mode, the mode derived by applying -1 and +1 respectively to the index of the basic direction mode, and the mode derived by applying -3 and +3 respectively to the index of the basic direction mode. The default mode may be configured in the candidate list in the aforementioned order. Here, the basic direction mode may include at least one of D203_PRED, H_PRED, D157_PRED, D135_PRED, D113_PRED, V_PRED, D67_PRED, or D45_PRED, as shown in FIG. 5.
[0133] If the current block size is smaller than MxN, the surrounding mode may not be configured in the candidate list. In this case, the default mode may be configured in the candidate list. M and N can be 8.
[0134] The derived mode can be configured in a candidate list based on whether the size of the current block is greater than a specific threshold value. Here, the size of the current block can be defined as the product of the width and height of the current block. The specific threshold value may be determined variably based on the coding information of the current block, or it may be a fixed value (e.g., 64) pre-defined in the decoding / encoding device.
[0135] For example, if the product of the current block's width and height is less than or equal to 64, the derived mode may be configured in the candidate list. Otherwise, the derived mode may not be configured in the candidate list, and the default mode may be configured in the candidate list.
[0136] Alternatively, if the product of the width and height of the current block is greater than 64, the derived mode may be configured in the candidate list. Otherwise, the derived mode may not be configured in the candidate list, and the default mode may be configured in the candidate list.
[0137] The configuration of the default mode may be performed after the configuration of the surrounding mode and / or the derived mode. In this case, during the process of sequentially configuring the default mode according to the aforementioned order, a default mode identical to a mode already configured in the candidate list may be restricted from being configured in the candidate list.
[0138] The intra prediction mode of the current block can be derived based on any one of multiple candidate modes belonging to a candidate list. To this end, information for specifying any one of the multiple candidate modes can be signaled via a bitstream. Among the multiple candidate modes, the candidate mode specified by the signaled information can be set as the intra prediction mode of the current block.
[0139] Specifically, index information representing any one of multiple candidate modes can be signaled.
[0140] Alternatively, the intra prediction modes available to the current block (including non-directional and directional modes) may be divided into multiple sets. Among the multiple sets, set index information indicating the location of the set to which the current block's intra prediction mode belongs may be signaled. Additionally, within the set to which the current block's intra prediction mode belongs, mode index information for specifying the current block's intra prediction mode may be signaled. Based on the aforementioned set index information and mode index information, the current block's intra prediction mode may be derived.
[0141] The context model of the signaled information can be adaptively determined based on whether the neighboring blocks adjacent to the current block have a directional mode. For example, the context model can be determined by distinguishing between cases where both the top and left neighboring blocks have a directional mode, where either one has a directional mode, and where neither has a directional mode.
[0142] Referring to FIG. 6, a prediction sample of the current block can be generated based on the intra prediction mode of the current block (S610).
[0143] If the intra prediction mode of the current block corresponds to a directional mode, reference line information specifying a reference sample line for intra prediction of the current block may be additionally signaled. Based on the reference line information, the distance between the current block and the reference sample line for intra prediction may be defined.
[0144] For example, if the value of the reference line information is 0, a prediction sample can be generated based on a reference sample line adjacent to the current block (i.e., a reference sample line with a distance of 0 from the current block). If the value of the reference line information is not 0, a prediction sample can be generated based on a reference sample line specified by the reference line information. Alternatively, if the value of the reference line information is not 0, 1) a first prediction sample can be generated based on a reference sample line specified by the reference line information, and 2) a second prediction sample can be generated based on a reference sample line adjacent to the current block. A final prediction sample can be generated through a weighted sum of the first and second prediction samples.
[0145] A 1-bit flag indicating whether the above weighted sum is applied may be signaled. The weights for the weighted sum may be determined adaptively, or fixed weights may be used. For example, 1:1 fixed weights may be used.
[0146] The aforementioned intra-prediction method can be performed identically in an encoding device, and redundant explanations will be omitted.
[0147] FIG. 7 illustrates a component-to-component prediction method performed in a decoding device according to the present disclosure.
[0148] Referring to Fig. 7, it is possible to determine whether component-to-component prediction is applied to the current color difference block (S700).
[0149] The current chrominance block of the present disclosure may be a chrominance block corresponding to the aforementioned current block (particularly, a luminance block). Inter-component prediction may be a prediction of the current chrominance block based on the luminance block corresponding to the current chrominance block. Whether inter-component prediction is applied to the current chrominance block may be determined based on at least one of whether the current chrominance block is a block coded in a lossless mode, the size of the current chrominance block, or the color format of the input video.
[0150] The size of the block to which inter-component prediction is applied may be defined based on the size of the current block (or, corresponding luminance block) and / or the subsampling rate of the chrominance component according to the color format. The size of the block to which inter-component prediction is applied may be the same as the size of the current chrominance block.
[0151] If the current color difference block is a block coded in lossless mode, component-to-component prediction can be applied to the current color difference block only if the size of the current color difference block is 4x4.
[0152] If the size of the current color difference block is smaller than or equal to the maximum size of the transformation block, component-to-component prediction can be applied to the current color difference block. In this case, the maximum size of the transformation block can be defined based on the subsampling ratio of the color difference components according to the color format.
[0153] If the width of the current color difference block is less than or equal to P and the height of the current color difference block is less than or equal to Q, inter-component prediction can be applied to the current color difference block. Here, P and Q can each be 64.
[0154] Referring to FIG. 7, intra prediction can be performed on the current color difference block based on the above decision (S710).
[0155] When prediction between components is applied
[0156] If it is determined that inter-component prediction is applied to the current color difference block, any one of the multiple inter-component prediction modes may be determined as the inter-component prediction mode of the current color difference block.
[0157] A plurality of inter-component prediction modes may include at least one of a first mode that performs inter-component prediction based on explicitly signaled parameters, a second mode that performs inter-component prediction by implicitly deriving parameters based on surrounding reference samples of the current chrominance block and surrounding reference samples of the corresponding luminance block, or a third mode that performs inter-component prediction based on an N-tap filter. The filter coefficients of the N-tap filter may be derived based on surrounding reference samples of the current chrominance block and surrounding reference samples of the corresponding luminance block. The parameters of the first and second modes may be linear parameters, and the filter coefficients of the third mode may be non-linear parameters.
[0158] Index information for specifying one of multiple inter-component prediction modes may be signaled, and the inter-component prediction mode of the current chrominance block may be determined based on the signaled index information. If the inter-component prediction mode of the current chrominance block corresponds to a third mode, information regarding the filter type of the N-tap filter may be additionally signaled.
[0159] Cases where prediction between components is not applied
[0160] If it is determined that inter-component prediction is not applied to the current chrominance block, the intra-prediction mode of the current chrominance block can be derived based on a candidate list for the chrominance block. Here, the candidate list for the chrominance block can be distinguished from the candidate list for the aforementioned current block (in particular, the luminance block).
[0161] If the corresponding luminance block has a directional mode, the directional mode of the corresponding luminance block may be configured in the candidate list. Alternatively, if the corresponding luminance block has a directional mode, a basic directional mode corresponding to the directional mode, rather than the directional mode of the corresponding luminance block, may be configured in the candidate list. Specifically, a specific directional mode may be defined by a basic directional mode (B) and a delta angle value (A). A may be an integer within the range of 0 to 3. In this case, the basic directional mode (B) based on the specific directional mode may be the basic directional mode corresponding to the specific directional mode. Alternatively, if the corresponding luminance block has a directional mode, both the directional mode of the corresponding luminance block and the basic directional mode corresponding to the directional mode may be configured in the candidate list.
[0162] A default mode for the chrominance block may be configured in a candidate list. The default mode for the chrominance block may include at least one of a non-directional mode or a directional mode. The default mode for the chrominance block may be the same or different from the default mode for the luminance block described above. The default mode for the chrominance block may be pre-defined identically in the encoding / decoding device. The default mode may be adaptively defined according to the color format of the input video.
[0163] For example, the non-directional mode defined in the default mode may include at least one of DC mode, SMOOTH mode, SMOOTH_V (vertical) mode, SMOOTH_H (horizontal) mode, or PAETH mode. The non-directional mode may be defined / configured in the order of DC mode, SMOOTH mode, SMOOTH_V (vertical) mode, SMOOTH_H (horizontal) mode, and PAETH mode. The non-directional mode may be configured in the candidate list when the corresponding luminance block does not have a directional mode.
[0164] For example, the directional mode defined in the default mode may include at least one of V_PRED, H_PRED, D45_PRED, D135_PRED, D67_PRED, D113_PRED, D157_PRED, or D203_PRED shown in FIG. 5. In this case, the directional mode may be defined / configured in the order of V_PRED, H_PRED, D45_PRED, D135_PRED, D67_PRED, D113_PRED, D157_PRED, and D203_PRED. Alternatively, the directional mode may be defined / configured in the order of V_PRED, H_PRED, D45_PRED, D135_PRED, D113_PRED, D157_PRED, D203_PRED, and D67_PRED.
[0165] The candidate list can have a fixed size. Alternatively, the candidate list can have a variable size based on the size of the current color difference block.
[0166] The intra-prediction mode of the current color difference block can be determined based on one of the multiple candidate modes in the candidate list. To this end, information for specifying one of the multiple candidate modes may be signaled. At this time, one index information may be signaled, or multiple information (e.g., set index information, mode index information) may be signaled. This is as described with reference to FIG. 6, and redundant explanations will be omitted here.
[0167] If any one of the multiple candidate modes specified by the above signaled information is identical to the directional mode of the corresponding luminance block (or the basic directional mode corresponding to the directional mode of the corresponding luminance block), the candidate mode may be corrected based on the delta angle value corresponding to the directional mode of the corresponding luminance block.
[0168] For example, if the corresponding luminance block has a directional mode, a default directional mode corresponding to that directional mode may be configured in the candidate list. If the candidate mode specified by the signaled information is identical to the default directional mode corresponding to the directional mode of the corresponding luminance block, the delta angle value for the current chrominance block may be set to the delta angle value corresponding to the directional mode of the corresponding luminance block. The candidate mode specified by the signaled information may be corrected based on the delta angle value for the current chrominance block. That is, for the current chrominance block, a mode identical to the directional mode of the corresponding luminance block may be used.
[0169] When directional prediction is performed on the current block, the intra prediction mode of the current block can be corrected based on the aspect ratio of the current block. This correction can be applied to the luminance block and the chrominance block.
[0170] For example, if the aspect ratio of the current block is not 1:1, a directional mode with an angle greater than a certain angle based on the aspect ratio may be changed to a directional mode with a different angle (or direction). For example, the intra-predicted mode of the current block may be changed to a mode rotated 180 degrees. The rotated mode may be any one of the directional modes illustrated in FIG. 5. The aforementioned change process may be performed when the angle of the directional mode falls within a specific angle range. At this time, the specific angle range may vary depending on the aspect ratio of the current block. The specific angle range may differ depending on whether the height of the current block is greater than the width or whether the width of the current block is greater than the height. When the directional mode of the current block is changed, it can be said that a wide-angle mode has been applied to the current block.
[0171] If a wide angle mode is applied to the current block, the modified directional mode of the current block can be mapped to a specific angle directional mode. Here, the specific angle directional mode is not used for intra prediction of the current block, but can be referenced by temporal / spatial blocks that are encoded / decoded after the current block.
[0172] For example, if the width of the current block is greater than the height and the wide angle mode is applied to the current block, the changed orientation mode of the current block can be mapped to D45_PRED mode. If the height of the current block is greater than the width and the wide angle mode is applied to the current block, the changed orientation mode of the current block can be mapped to D203_PRED mode.
[0173] The corresponding luminance block according to the present disclosure can be determined as follows.
[0174] For example, the corresponding luminance block can be defined as the luminance block at a position corresponding to the top-left sample position of the current color difference block, based on the subsampling ratio of the color difference component according to the color format.
[0175] For example, corresponding luminance blocks can be defined based on a block partitioning structure.
[0176] 1) When the block partitioning structure is a single tree
[0177] The corresponding luminance block can be defined as the luminance block at a position corresponding to the top-left sample position of the current color difference block, based on the subsampling ratio of the color difference component according to the color format.
[0178] 2) When the block partitioning structure is a shared dual tree
[0179] A corresponding luminance block can be defined based on the current chromaticity block's division depth.
[0180] For example, if the division depth of the current color difference block is less than or equal to the division depth based on the division information shared for the luminance component and the color difference component, this may mean that the division structure of the current color difference block and the corresponding luminance block are identical. In this case, the corresponding luminance block may be defined as the luminance block at a position corresponding to the top-left sample position of the current color difference block, based on the subsampling ratio of the color difference component according to the color format.
[0181] If the division depth of the current color difference block is greater than the division depth based on the division information shared for the luminance component and the color difference component, this may mean that the division structure of the current color difference block and the corresponding luminance block are different. In this case, based on the subsampling ratio of the color difference component according to the color format, the luminance block at the position corresponding to the top-left sample position of the current color difference block may be divided into multiple blocks.
[0182] As shown in the example of FIG. 8, for multiple blocks within a corresponding luminance block, search positions and search order may be predefined. Numbers 1 through 9 in FIG. 8 may represent search positions and / or search order. At each search position, whether the corresponding luminance block has a directional mode may be searched. The search positions and / or search order in FIG. 8 may be adaptively determined based on the size, aspect ratio, etc., of the corresponding luminance block.
[0183] Searches can be performed sequentially for each search location according to the search order. When a directional mode is identified for the first time, the search process may be terminated. At this time, the directional mode of the search location where the directional mode was identified for the first time may be configured in the candidate list.
[0184] Alternatively, a search may be performed sequentially for each search location according to the search order, and the search may continue until M different directional modes are found. In this case, the value of M may be adaptively determined based on the size of the corresponding luminance block. The found M directional modes may be configured in a candidate list.
[0185] Regardless of the current division depth of the color difference block, only pre-defined fixed positions within the corresponding luminance block may be considered. For example, a candidate list may be constructed by considering only the directional mode of search position 1 in FIG. 8.
[0186] 3) When the block partitioning structure is an independent dual tree structure
[0187] Based on the subsampling ratio of the color difference component according to the color format, the luminance block at the position corresponding to the top-left sample position of the current color difference block may be divided into multiple blocks.
[0188] As shown in the example of FIG. 8, for multiple blocks within a corresponding luminance block, search positions and search order may be predefined. Numbers 1 through 9 in FIG. 8 may represent search positions and / or search order. At each search position, whether the corresponding luminance block has a directional mode may be searched. The search positions and / or search order in FIG. 8 may be adaptively determined based on the size, aspect ratio, etc., of the corresponding luminance block.
[0189] Searches can be performed sequentially for each search location according to the search order. When a directional mode is identified for the first time, the search process may be terminated. At this time, the directional mode of the search location where the directional mode was identified for the first time may be configured in the candidate list.
[0190] Alternatively, a search may be performed sequentially for each search location according to the search order, and the search may continue until M different directional modes are found. In this case, the value of M may be adaptively determined based on the size of the corresponding luminance block. The found M directional modes may be configured in a candidate list.
[0191] The aforementioned prediction method between components can be performed identically in an encoding device, and redundant explanations will be omitted.
[0192] The various embodiments of the present disclosure are not intended to list all possible combinations but to describe 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.
[0193] In addition, various embodiments of the present disclosure may be implemented by hardware, firmware, software, or a combination thereof. In the case of implementation by hardware, it may be implemented by one or more ASICs (Application Specific Integrated Circuits), DSPs (Digital Signal Processors), DSPDs (Digital Signal Processing Devices), PLDs (Programmable Logic Devices), FPGAs (Field Programmable Gate Arrays), general processors, controllers, microcontrollers, microprocessors, etc.
[0194] The scope of the present disclosure includes software or machine-executable instructions (e.g., operating system, application, firmware, program, etc.) that enable an operation according to a method of various embodiments to be executed on a device or computer, and a non-transitory computer-readable medium on which such software or instructions, etc. are stored and executable on a device or computer.
Claims
1. A step of deriving an intra-prediction mode of the luminance block based on a first candidate list for the luminance block; and The method includes the step of generating a prediction sample of the luminance block based on the intra prediction mode of the luminance block, wherein A default mode for the above luminance block is configured in the above first candidate list, and A video decoding method wherein the default mode for the luminance block comprises at least one of a basic direction mode, a first mode derived by subtracting 1 from the index of the basic direction mode, a second mode derived by subtracting 2 from the index of the basic direction mode, or a third mode derived by subtracting 3 from the index of the basic direction mode.
2. In Paragraph 1, A video decoding method in which a second mode derived by subtracting 2 from the index of the basic direction mode is configured earlier than a first mode derived by subtracting 1 from the index of the basic direction mode within the first candidate list.
3. In Paragraph 1, A video decoding method in which, when the size of the luminance block is smaller than 8x8, the default mode is configured in the first candidate list.
4. In Paragraph 1, An induced mode for the above luminance block is configured in the first candidate list, and The above-mentioned induced mode is a mode induced based on a surrounding mode, and The above-mentioned surrounding mode is an intra-prediction mode of a surrounding block adjacent to the above-mentioned luminance block, an image decoding method.
5. In Paragraph 4, An image decoding method in which the above-deduced mode is configured in the first candidate list based on whether the product of the width and height of the luminance block is greater than 64.
6. In Paragraph 1, A video decoding method in which whether a component-to-component prediction is applied to a chrominance block corresponding to the luminance block is determined based on at least one of whether the chrominance block is a block coded in a lossless mode, the size of the chrominance block, or the color format of the input video.
7. In Paragraph 6, An image decoding method in which, when the color difference block is a block coded in lossless mode, the prediction between the components is applied to the color difference block based on the fact that the size of the color difference block is 4x4.
8. In Paragraph 6, An image decoding method in which the prediction between the components is applied to the color difference block based on the fact that the width of the color difference block is less than or equal to 64 and the height of the color difference block is less than or equal to 64.
9. In Paragraph 1, An image decoding method in which an intra-prediction mode of a chrominance block corresponding to the above-mentioned luminance block is derived based on a second candidate list for the above-mentioned chrominance block.
10. In Paragraph 9, A video decoding method in which, when the intra prediction mode of the above luminance block is a directional mode, a basic directional mode corresponding to the above directional mode is configured in the above second candidate list.
11. In Paragraph 10, Information for specifying one of the multiple candidate modes belonging to the second candidate list is signaled through a bitstream, and A video decoding method in which, when a candidate mode specified by the signaled information is the same as a basic direction mode corresponding to the direction mode of the luminance block, the delta angle value for the chrominance block is set to the delta angle value corresponding to the direction mode of the luminance block.
12. In Paragraph 9, The default mode for the above color difference block is configured in the above second candidate list, and The default mode for the above color difference block includes a directional mode, and A video decoding method in which the above-mentioned directional modes are configured in the order of V_PRED mode, H_PRED mode, D45_PRED mode, D135_PRED mode, D67_PRED mode, D113_PRED mode, D157_PRED mode, and D203_PRED mode.
13. A step of deriving an intra-prediction mode of the luminance block based on a first candidate list for the luminance block; and The method includes the step of generating a prediction sample of the luminance block based on the intra prediction mode of the luminance block, wherein A default mode for the above luminance block is configured in the above first candidate list, and A video encoding method wherein the default mode for the above luminance block comprises at least one of a basic direction mode, a first mode derived by subtracting 1 from the index of the basic direction mode, a second mode derived by subtracting 2 from the index of the basic direction mode, or a third mode derived by subtracting 3 from the index of the basic direction mode.
14. A non-transient computer-readable storage medium for storing a bitstream generated by the image encoding method of claim 13.
15. A transmission method for transmitting a bitstream generated by the image encoding method of claim 13.
