Image encoding / decoding method, method for transmitting bitstream, and recording medium having bitstream stored therein
The video encoding/decoding method uses geometric segmentation mode compensation to improve prediction accuracy and efficiency, addressing the challenge of high-resolution video data size and cost by deriving compensation information from block peripheral areas, thus optimizing video transmission and storage.
Patent Information
- Application Number
- PCT/KR2024/003245
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-13
- Filing Date
- 2024-03-13
- Publication Date
- 2024-09-19
AI Technical Summary
The increasing demand for high-resolution, high-quality video data, such as HD and UHD, leads to a significant increase in video data size, resulting in higher transmission and storage costs, necessitating highly efficient video compression technologies.
A video encoding/decoding method that applies geometric segmentation mode compensation by deriving compensation information from the peripheral areas of reference and current blocks, improving prediction accuracy and encoding/decoding efficiency.
This method enhances prediction accuracy and encoding/decoding efficiency, reducing the amount of data required for high-resolution video transmission and storage while maintaining image quality.
Smart Images

Figure KR2024003245_19092024_PF_FP_ABST
Abstract
Description
Video encoding / decoding method, method for transmitting bitstream, and recording medium storing bitstream
[0001] The present disclosure relates to a video encoding / decoding method, a method for transmitting a bitstream, and a recording medium storing the bitstream, and relates to a method for compensating a reference block used in a geometric segmentation mode.
[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] Additionally, the present disclosure aims to provide a method for performing a geometric segmentation mode by applying compensation.
[0006] Additionally, the present disclosure aims to provide a method for deriving compensation information used for compensation.
[0007] Additionally, the present disclosure aims to provide a method for deriving compensation information based on a segmentation direction and / or a segmentation offset of a geometric segmentation mode.
[0008] Additionally, the present disclosure aims to provide a method for signaling information regarding whether compensation is applicable.
[0009] 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 according to the present disclosure.
[0010] 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.
[0011] In addition, the present disclosure aims to provide a method for transmitting a bitstream generated by an image encoding method according to the present disclosure.
[0012] 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.
[0013] An image decoding method according to one aspect of the present disclosure may be an image decoding method performed by an image decoding device, the image decoding method including: obtaining at least one piece of motion information for a current block to which a Geometry Partitioning Mode (GPM) is applied; deriving compensation information related to compensation of the reference block based on a surrounding area of at least one reference block indicated by the motion information and a surrounding area of the current block; and generating prediction samples of the current block based on the compensation information.
[0014] According to another aspect of the present disclosure, a video encoding method may be performed by an video encoding device, the video encoding method comprising: determining at least one reference block for prediction of a current block to which a Geometry Partitioning Mode (GPM) is applied; deriving compensation information related to compensation of the reference block based on a surrounding area of the reference block and a surrounding area of the current block; and generating prediction samples of the current block based on the compensation information.
[0015] A computer-readable recording medium according to another aspect of the present disclosure can store a bitstream generated by an image encoding method or device of the present disclosure.
[0016] A transmission method according to another aspect of the present disclosure can transmit a bitstream generated by an image encoding method or device of the present disclosure.
[0017] The features briefly summarized above regarding the present disclosure are merely exemplary aspects of the detailed description of the present disclosure that follows and do not limit the scope of the present disclosure.
[0018] According to the present disclosure, a video encoding / decoding method and device with improved encoding / decoding efficiency can be provided.
[0019] Additionally, according to the present disclosure, the accuracy of prediction can be improved through compensation for reference blocks.
[0020] Additionally, according to the present disclosure, the efficiency of residual signal signaling can be improved through improved prediction accuracy by compensation.
[0021] In addition, according to the present disclosure, a non-transitory computer-readable recording medium for storing a bitstream generated by an image encoding method according to the present disclosure can be provided.
[0022] 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.
[0023] Additionally, according to the present disclosure, a method for transmitting a bitstream generated by an image encoding method can be provided.
[0024] 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.
[0025] FIG. 1 is a diagram schematically illustrating a video coding system to which an embodiment according to the present disclosure can be applied.
[0026] FIG. 2 is a schematic diagram of an image encoding device to which an embodiment according to the present disclosure can be applied.
[0027] FIG. 3 is a schematic diagram illustrating an image decoding device to which an embodiment according to the present disclosure can be applied.
[0028] Fig. 4 is a schematic diagram showing an inter prediction unit of a video encoding device.
[0029] Figure 5 is a flowchart illustrating a method for encoding an image based on inter prediction.
[0030] Figure 6 is a schematic diagram showing an inter prediction unit of an image decoding device.
[0031] Figure 7 is a flowchart illustrating a method for decoding an image based on inter prediction.
[0032] Figure 8 is a flowchart showing an inter prediction method.
[0033] Figure 9 is a drawing showing examples of segmentation in geometric segmentation mode.
[0034] Figure 10 is a diagram illustrating a candidate list of geometric segmentation mode.
[0035] Figure 11 is a diagram illustrating an example of a method for generating blending weights of a geometric segmentation mode.
[0036] Figure 12 is a drawing for explaining an example of the surrounding area of the current block and the surrounding area of the reference block.
[0037] Figure 13 is a drawing for explaining examples of the division direction of the geometric division mode.
[0038] Figure 14 is a drawing for explaining examples of sub-blocks according to the division direction of the geometric division mode.
[0039] FIGS. 15 to 18 are drawings for explaining examples of reference areas according to the splitting direction and / or splitting offset.
[0040] FIG. 19 is a flowchart illustrating an image encoding method according to one embodiment of the present disclosure.
[0041] FIG. 20 is a flowchart illustrating an image decoding method according to one embodiment of the present disclosure.
[0042] FIG. 21 is a flowchart illustrating a video encoding / decoding method according to another embodiment of the present disclosure.
[0043] FIG. 22 is a flowchart illustrating a video encoding / decoding method according to another embodiment of the present disclosure.
[0044] FIG. 23 is a flowchart illustrating a video encoding / decoding method according to another embodiment of the present disclosure.
[0045] FIG. 24 is a flowchart illustrating a video encoding / decoding method according to another embodiment of the present disclosure.
[0046] FIG. 25 is a flowchart illustrating an image encoding method according to another embodiment of the present disclosure.
[0047] FIG. 26 is a flowchart illustrating an image decoding method according to another embodiment of the present disclosure.
[0048] FIG. 27 is a diagram exemplifying a content streaming system to which an embodiment according to the present disclosure can be applied.
[0049] 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.
[0050] 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.
[0051] 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.
[0052] 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.
[0053] 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.
[0054] 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.
[0055] 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.
[0056] 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).
[0057] 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.
[0058] 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.
[0059] 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."
[0060] 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."
[0061] 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."
[0062] 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."
[0063] Video Coding System Overview
[0064] FIG. 1 is a diagram schematically illustrating a video coding system to which an embodiment according to the present disclosure can be applied.
[0065] 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.
[0066] 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.
[0067] 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.
[0068] 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.
[0069] 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 device (12), 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).
[0070] 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).
[0071] The rendering unit (23) can render the decrypted video / image. The rendered video / image can be displayed through the display unit.
[0072] Overview of the video encoding device
[0073] FIG. 2 is a schematic diagram illustrating an image encoding device to which an embodiment according to the present disclosure can be applied.
[0074] 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).
[0075] 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.
[0076] 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 coding 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 for deriving a transform coefficient and / or a unit for deriving a residual signal from a transform coefficient.
[0077] 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.
[0078] 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.
[0079] 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 from each other. 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.
[0080] 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.
[0081] 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).
[0082] 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.
[0083] 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.
[0084] 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.
[0085] 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).
[0086] 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.
[0087] 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.
[0088] 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.
[0089] 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.
[0090] 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).
[0091] Video Decryption Device Overview
[0092] FIG. 3 is a schematic diagram illustrating an image decoding device to which an embodiment according to the present disclosure can be applied.
[0093] 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.
[0094] 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.
[0095] 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).
[0096] 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).
[0097] 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).
[0098] 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.
[0099] In the inverse transform unit (230), the transform coefficients can be inversely transformed to obtain a residual signal (residual block, residual sample array).
[0100] 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).
[0101] The fact that the prediction unit can generate a prediction signal based on various prediction methods (techniques) described later is the same as that mentioned in the description of the prediction unit of the image encoding device (100).
[0102] 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).
[0103] 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.
[0104] 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.
[0105] 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.
[0106] 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).
[0107] 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.
[0108] Inter Prediction General
[0109] The prediction unit of the video encoding device (100) and the video decoding device (200) can perform inter prediction on a block-by-block basis to derive prediction samples. Inter prediction may be a prediction derived in a manner dependent on data elements (e.g., sample values, or motion information, etc.) of pictures other than the current picture. When inter prediction is applied to the current block, a predicted block (prediction sample array) for the current block may be derived based on a reference block (reference sample array) specified by a motion vector on a reference picture pointed to by a reference picture index. At this time, in order to reduce the amount of motion information transmitted in the inter prediction mode, the motion information of the current block may be predicted on a block, sub-block, or sample basis based on the correlation of the motion information between the surrounding blocks and the current block. The motion information may include a motion vector and a reference picture index. The motion information may further include information on an inter prediction type (L0 prediction, L1 prediction, Bi prediction, etc.). When inter prediction is applied, the neighboring blocks may include spatial neighboring blocks existing in the current picture and temporal neighboring blocks 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 blocks may be called collocated reference blocks, collocated CUs (colCUs), etc., and the reference picture including the temporal neighboring blocks may be called collocated pictures (colPic).For example, a motion information candidate list may be constructed based on neighboring blocks of a current block, and flag or index information may be signaled to indicate which candidate is selected (used) to derive a motion vector and / or reference picture index of the current block. Inter prediction may be performed based on various prediction modes, for example, in the case of skip mode and merge mode, the motion information of the current block may be the same as the motion information of the selected neighboring block. In the case of skip mode, unlike the merge mode, a residual signal may not be transmitted. In the case of motion vector prediction (MVP) mode, the motion vector of the selected neighboring block may be used as a motion vector predictor, and a motion vector difference may be signaled. In this case, the motion vector of the current block may be derived using the sum of the motion vector predictor and the motion vector difference.
[0110] The above motion information may include L0 motion information and / or L1 motion information depending on the inter prediction type (L0 prediction, L1 prediction, Bi prediction, etc.). A motion vector in the L0 direction may be called an L0 motion vector or MVL0, and a motion vector in the L1 direction may be called an L1 motion vector or MVL1. Prediction based on an L0 motion vector may be called an L0 prediction, prediction based on an L1 motion vector may be called an L1 prediction, and prediction based on both the L0 motion vector and the L1 motion vector may be called a bi-prediction (Bi). Here, an L0 motion vector may represent a motion vector associated with a reference picture list L0 (L0), and an L1 motion vector may represent a motion vector associated with a reference picture list L1 (L1). The reference picture list L0 may include pictures preceding the current picture in output order as reference pictures, and the reference picture list L1 may include pictures succeeding the current picture in output order. The preceding pictures may be called forward (reference) pictures, and the succeeding pictures may be called backward (reference) pictures. The reference picture list L0 may further include pictures succeeding the current picture in output order as reference pictures. In this case, the preceding pictures may be indexed first and the succeeding pictures may be indexed next within the reference picture list L0. The reference picture list L1 may further include pictures preceding the current picture in output order as reference pictures. In this case, the succeeding pictures may be indexed first and the succeeding pictures may be indexed next within the reference picture list 1. Here, the output order may correspond to a POC (picture order count) order.
[0111] FIG. 4 is a schematic diagram showing an inter prediction unit (180) of an image encoding device (100), and FIG. 5 is a flowchart showing a method of encoding an image based on inter prediction.
[0112] The video encoding device (100) can perform inter prediction on the current block (S510). The video encoding device (100) can derive the inter prediction mode and motion information of the current block, and generate prediction samples of the current block. Here, the procedures of determining the inter prediction mode, deriving motion information, and generating prediction samples may be performed simultaneously, or one procedure may be performed before the other. For example, the inter prediction unit (180) of the video encoding device (100) may include a prediction mode determination unit (181), a motion information derivation unit (182), and a prediction sample derivation unit (183). The prediction mode determination unit (181) may determine the prediction mode for the current block, the motion information derivation unit (182) may derive motion information of the current block, and the prediction sample derivation unit (183) may derive prediction samples of the current block. For example, the inter prediction unit (180) of the video encoding device (100) can search for a block similar to the current block within a certain area (search area) of reference pictures through motion estimation, and derive a reference block whose difference from the current block is minimal or below a certain standard. Based on this, a reference picture index indicating a reference picture in which the reference block is located can be derived, and a motion vector can be derived based on the positional difference between the reference block and the current block. The video encoding device (100) can determine a mode to be applied to the current block among various prediction modes. The video encoding device (100) can compare RD costs for the various prediction modes and determine an optimal prediction mode for the current block.
[0113] For example, when the skip mode or merge mode is applied to the current block, the video encoding device (100) may configure a merge candidate list, which will be described later, and derive a reference block among the reference blocks indicated by the merge candidates included in the merge candidate list, the difference from the current block being at least or below a certain standard. In this case, a merge candidate associated with the derived reference block is selected, and merge index information indicating the selected merge candidate may be generated and signaled to a decoding device. Motion information of the current block may be derived using motion information of the selected merge candidate.
[0114] As another example, when the (A)MVP mode is applied to the current block, the video encoding device (100) may configure an (A)MVP candidate list, which will be described later, and use the motion vector of an mvp candidate selected from among mvp (motion vector predictor) candidates included in the (A)MVP candidate list as the mvp of the current block. In this case, for example, a motion vector pointing to a reference block derived by the above-described motion estimation may be used as the motion vector of the current block, and an mvp candidate having a motion vector with the smallest difference from the motion vector of the current block among the mvp candidates may become the selected mvp candidate. A motion vector difference (MVD), which is a difference obtained by subtracting the mvp from the motion vector of the current block, may be derived. In this case, information about the MVD may be signaled to the video decoding device (200). In addition, when the (A)MVP mode is applied, the value of the reference picture index can be configured as reference picture index information and signaled separately to the image decoding device (200).
[0115] The video encoding device (100) can derive residual samples based on the predicted samples (S520). The video encoding device (100) can derive the residual samples by comparing the original samples of the current block with the predicted samples.
[0116] The video encoding device (100) can encode video information including prediction information and residual information (S530). The video encoding device (100) can output the encoded video information in the form of a bitstream. The prediction information may include information related to the prediction procedure, such as prediction mode information (e.g., skip flag, merge flag, or mode index) and information about motion information. The information about the motion information may include candidate selection information (e.g., merge index, mvp flag, or mvp index), which is information for deriving a motion vector. In addition, the information about the motion information may include information about the above-described MVD and / or reference picture index information. In addition, the information about the motion information may include information indicating whether L0 prediction, L1 prediction, or bi-prediction is applied. The residual information is information about the residual samples. The residual information may include information about quantized transform coefficients for the residual samples.
[0117] The output bitstream can be stored in a (digital) storage medium and transmitted to a decoding device, or can be transmitted to an image decoding device (200) via a network.
[0118] Meanwhile, as described above, the video encoding device (100) can generate a restored picture (including restored samples and restored blocks) based on the reference samples and the residual samples. This is to derive the same prediction result as that performed by the video decoding device (200) from the video encoding device (100), thereby increasing coding efficiency. Accordingly, the video encoding device (100) can store the restored picture (or restored samples, restored blocks) in memory and utilize it as a reference picture for inter prediction. As described above, an in-loop filtering procedure, etc. can be further applied to the restored picture.
[0119] FIG. 6 is a schematic diagram showing an inter prediction unit (260) of an image decoding device (200), and FIG. 7 is a flowchart showing a method of decoding an image based on inter prediction.
[0120] The image decoding device (200) can perform an operation corresponding to the operation performed in the image encoding device (100). The image decoding device (200) can perform a prediction on the current block based on the received prediction information and derive prediction samples.
[0121] Specifically, the image decoding device (200) can determine a prediction mode for the current block based on the received prediction information (S710). The image decoding device (200) can determine which inter prediction mode is applied to the current block based on the prediction mode information in the prediction information.
[0122] For example, based on the merge flag, it can be determined whether the merge mode or the (A)MVP mode is applied to the current block. Alternatively, one of various inter prediction mode candidates can be selected based on the mode index. The inter prediction mode candidates can include skip mode, merge mode, and / or (A)MVP mode, or can include various inter prediction modes described below.
[0123] The video decoding device (200) can derive motion information of the current block based on the determined inter prediction mode (S720). For example, when skip mode or merge mode is applied to the current block, the video decoding device (200) can configure a merge candidate list described below and select one of the merge candidates included in the merge candidate list. The selection can be performed based on the above-described selection information (merge index). Motion information of the current block can be derived using motion information of the selected merge candidate. Motion information of the selected merge candidate can be used as motion information of the current block.
[0124] As another example, when the (A)MVP mode is applied to the current block, the video decoding device (200) may configure an (A)MVP candidate list described below, and use the motion vector of an MVP candidate selected from among the MVP (motion vector predictor) candidates included in the (A)MVP candidate list as the MVP of the current block. The selection may be performed based on the selection information (mvp flag or mvp index) described above. In this case, the MVD of the current block may be derived based on the information about the MVD, and the motion vector of the current block may be derived based on the MVP of the current block and the MVD. In addition, the reference picture index of the current block may be derived based on the reference picture index information. A picture indicated by the reference picture index within the reference picture list for the current block may be derived as a reference picture referenced for inter prediction of the current block.
[0125] Meanwhile, as described below, motion information of the current block can be derived without constructing a candidate list. In this case, motion information of the current block can be derived according to the procedure initiated in the prediction mode described below. In this case, constructing a candidate list as described above can be omitted.
[0126] The video decoding device (200) may generate prediction samples for the current block based on motion information of the current block (S730). In this case, the reference picture is derived based on the reference picture index of the current block, and prediction samples of the current block may be derived using samples of a reference block pointed to by the motion vector of the current block on the reference picture. In this case, as described below, a prediction sample filtering procedure may be further performed on all or part of the prediction samples of the current block, depending on the case.
[0127] For example, the inter prediction unit (260) of the video decoding device (200) may include a prediction mode determination unit (261), a motion information derivation unit (262), and a prediction sample derivation unit (263), and may determine a prediction mode for the current block based on prediction mode information received from the prediction mode determination unit (181), derive motion information (motion vector and / or reference picture index, etc.) of the current block based on information about motion information received from the motion information derivation unit (182), and derive prediction samples of the current block from the prediction sample derivation unit (183).
[0128] The video decoding device (200) can generate residual samples for the current block based on the received residual information (S740). The video decoding device (200) can generate restoration samples for the current block based on the prediction samples and the residual samples, and can generate a restoration picture based on the restoration samples (S750). As described above, an in-loop filtering procedure, etc., can be further applied to the restoration picture.
[0129] Referring to FIG. 8, the inter prediction procedure as described above may include an inter prediction mode determination step (S810), a motion information derivation step (S820) according to the determined prediction mode, and a prediction performance (prediction sample generation) step (S830) based on the derived motion information. The inter prediction procedure may be performed in the image encoding device (100) and the image decoding device (200) as described above.
[0130] Determine inter prediction mode
[0131] Various inter prediction modes can be used to predict the current block in a picture. For example, various modes can be used, such as merge mode, skip mode, motion vector prediction (MVP) mode, affine mode, sub-block merge mode, and merge with MVD (MMVD) mode. Decoder-side motion vector refinement (DMVR) mode, adaptive motion vector resolution (AMVR) mode, bi-prediction with CU-level weight (BCW), and bi-directional optical flow (BDOF) can be used in addition to or instead of these modes. Affine mode may also be called affine motion prediction mode. MVP mode may also be called advanced motion vector prediction (AMVP) mode. In this document, motion information candidates derived by some modes and / or some modes may be included as one of the motion information-related candidates of other modes. For example, an HMVP candidate may be added as a merge candidate in the above merge / skip mode, or may be added as an mvp candidate in the above MVP mode.
[0132] Prediction mode information indicating the inter prediction mode of the current block may be signaled from the video encoding device (100) to the video decoding device (200). The prediction mode information may be included in a bitstream and received by the video decoding device (200). The prediction mode information may include index information indicating one of a plurality of candidate modes. Alternatively, the inter prediction mode may be indicated through hierarchical signaling of flag information. In this case, the prediction mode information may include one or more flags. For example, whether to apply the skip mode may be indicated by signaling a skip flag, and whether to apply the merge mode may be indicated by signaling a merge flag when the skip mode is not applied, and when the merge mode is not applied, it may be indicated that the MVP mode is applied, or a flag for additional distinction may be further signaled. The affine mode may be signaled as an independent mode, or may be signaled as a mode dependent on the merge mode or the MVP mode. For example, the affine mode may include an affine merge mode and an affine MVP mode.
[0133] Deriving movement information
[0134] Inter prediction can be performed using motion information of the current block. The video encoding device (100) can derive optimal motion information for the current block through a motion estimation procedure. For example, the video encoding device (100) can search for similar reference blocks with high correlation in fractional pixel units within a predetermined search range within the reference picture using the original block within the original picture for the current block, and can derive motion information through this. The similarity of blocks can be derived based on the difference in phase-based sample values. For example, the similarity of blocks can be calculated based on the SAD between the current block (or the template of the current block) and the reference block (or the template of the reference block). In this case, motion information can be derived based on the reference block with the smallest SAD within the search range. The derived motion information can be signaled to the video decoding device (200) in various ways based on the inter prediction mode.
[0135] Generate prediction samples
[0136] A predicted block for a current block can be derived based on motion information derived according to a prediction mode. The predicted block can include prediction samples (prediction sample array) of the current block. If the motion vector of the current block indicates a fractional sample unit, an interpolation procedure can be performed, through which prediction samples of the current block can be derived based on reference samples of the fractional sample unit within a reference picture. If affine inter prediction is applied to the current block, prediction samples can be generated based on a sample / subblock unit MV. If bi-prediction is applied, prediction samples derived based on L0 prediction (i.e., prediction using a reference picture in a reference picture list L0 and MVL0) and L1 prediction (i.e., prediction using a reference picture in a reference picture list L1 and MVL1) can be used as prediction samples of the current block through a weighted sum or weighted average (according to phase). When bi-prediction is applied, if the reference picture used for L0 prediction and the reference picture used for L1 prediction are located in different temporal directions with respect to the current picture (i.e., if it is bi-prediction and bidirectional prediction), it can be called true bi-prediction.
[0137] As described above, restoration samples and restoration pictures can be generated based on the derived prediction samples, and then procedures such as in-loop filtering can be performed.
[0138] Geometry Partitioning Mode (GPM)
[0139] GPM can be supported for inter prediction. GPM can be signaled as a type of merge mode using CU-level flags along with other merge modes such as regular merge mode, merge mode with MVD (MMVD), CIIP mode, and sub-block merge mode. GPM supports each possible CU size wХh=2 except 8x64 and 64x8. m X2 n A total of 64 partitions can be supported for m,n ∈{36}.
[0140] When GPM is used, a CU can be divided into two parts by a geometrically positioned straight line (a split line), as shown in Fig. 9. The position of the split line can be mathematically derived from the angle and offset parameters of a specific split. Each part of a geometric split within a CU can be inter-predicted using its own motion, and only unidirectional prediction is allowed for each split. That is, each part can have only one motion vector and reference index. The unidirectional prediction constraint is applied, so that only two motion-compensated predictions are required for each CU, similar to conventional bidirectional prediction.
[0141] When GPM is used for the current CU, a geometric partition index (GPM index) indicating the partitioning mode (angle and offset) of the geometric partition and two merge indices for the partitions can be signaled. The maximum number of GPM candidate sizes is explicitly signaled in the SPS, which can indicate syntax binarization for the GPM merge indices. After each part of the geometric partition is predicted, sample values along the geometric partition edges can be adjusted using blending processing with adaptive weights. This is a prediction signal for the entire CU, and the transformation and quantization process can be applied to the entire CU as with other prediction modes. Finally, the motion field of the CU predicted using GPM can be stored.
[0142] When GPM is applied, the syntaxes in Table 1 are signaled, and based on the signaled GPM index (merge_gpm_partition_idx), angle and distance are derived using Table 2, and based on the angle and distance, one block can be divided into two arbitrary regions. A prediction block of each region is generated using different motion prediction information, and prediction can be performed by blending the generated prediction blocks and using them as the prediction block of the corresponding block.
[0143]
[0144]
[0145]
[0146] Uni-prediction candidate list construction
[0147] In GPM, a list of unidirectional candidates can be derived directly from a list of merge candidates constructed according to an extended merge prediction process. n can be denoted as an index of a unidirectional motion in the geometric unidirectional candidate list. The LX motion vector of the n-th extended merge candidate has X equal to the parity of n and can be used as the n-th unidirectional motion vector for GPM. These motion vectors are denoted as "x" in Fig. 10. If the corresponding LX motion vector of the n-th extended merge candidate does not exist, the L(1-X) motion vector of the same candidate can be used as the unidirectional motion vector for GPM instead.
[0148] Blending along geometric split edges
[0149] After each part of the geometric segmentation is predicted using its own motion, blending can be applied to the two prediction signals to derive samples around the geometric segmentation edge. The blending weights for each CU position can be derived based on the distance between the individual position and the segmentation edge.
[0150] The distance from the location (x, y) to the segmentation edge can be derived based on mathematical expression 1.
[0151]
[0152] In Equation 1, i and j are indices for the angle and offset of the geometric partition, which can be determined according to the signaled geometric partition index (merge_gpm_partition_idx). ρ x,j and ρ y,j can be determined based on the angle index i.
[0153] The weights of each geometric partition can be derived based on mathematical expression 2.
[0154]
[0155] PartIdx can be determined based on the angle index i. Weight w o An example is shown in Figure 11.
[0156] Save movement fields for GPM
[0157] Mv1 for the first part of the geometric partition, Mv2 for the second part of the geometric partition, and Mv, which is a combination of Mv1 and Mv2, can be stored in the motion field of the CU coded with GPM.
[0158] A 'stored motion vector type' for each individual position within the motion field can be derived based on mathematical expression 3.
[0159]
[0160] In Equation 3, motionIdx is equal to d(4x+2, 4y+2) and can be recalculated by the first equation in Equation 1. partIdx can be determined according to the angle index i.
[0161] If the value of sType is equal to 0 or 1, Mv0 or Mv1 can be stored in the corresponding motion field. Otherwise, if the value of sType is equal to 2, a combined Mv from Mv1 and Mv2 can be stored. The combined Mv can be generated using the following processes.
[0162] - If Mv1 and Mv2 are derived from different reference picture lists (one from L0 and the other from L1), Mv1 and Mv2 are simply combined to form a bidirectional motion vector.
[0163] - Otherwise, if Mv1 and Mv2 are derived from the same reference picture list, only the unidirectional motion Mv2 is stored.
[0164] Example
[0165] The present disclosure proposes a method for improving prediction accuracy by deriving compensation information (lighting compensation parameters) for a reference block by GPM and applying the same to the reference block.
[0166] The methods of the present disclosure are summarized as follows.
[0167] 1) When the current block is segmented and predicted by GPM, compensation information is derived using the restored surrounding area around the current block (the surrounding area of the current block) and the restored surrounding area around the reference block (the surrounding area of the reference block), and the derived compensation information is used to compensate (correct) the reference block, thereby generating prediction samples of the current block.
[0168] 2) When the current block is segmented and predicted by GPM, the surrounding area of the current block and the surrounding area of the reference block can be determined according to the segmentation direction (segmentation angle) and / or segmentation offset (distance) of the GPM.
[0169] 3) When the current block is split and predicted by GPM, information on whether reward information is derived or applied can be signaled through various methods.
[0170] Example 1
[0171] Example 1 describes a method for deriving compensation information using the surrounding area of the current block and the surrounding area of the reference block when the current block is segmented and predicted by GPM.
[0172] Fig. 12 illustrates an example of a surrounding area of a current block and a surrounding area of a reference block. Referring to Fig. 12, a current block (C) in a current image is a block encoded with GPM and can be divided into two parts (P0', P1'). In addition, prediction samples for the current block can be generated using the two parts. In the present disclosure, the parts may be referred to as a "first block" and a "second block", respectively. For example, P0' may be referred to as a "first block" and P1' as a "second block". In another example, P0' may be referred to as a "second block" and P1' as a "first block". In Fig. 12, the areas represented by patterns may be a surrounding area of the current block or a surrounding area of the reference block.
[0173] Information on the segmentation direction of the GPM can be determined through the bitstream or derived from the image decoding device (200). If the motion vectors for P0' and P1' are mv0 and mv1, respectively, two reference blocks P0 and P1 can be obtained from the reference image using their respective motion vectors. Fig. 12 shows an example of obtaining two reference blocks from one reference image, and each reference block can be obtained from a different list (L0 or L1) or / and a different reference image. The two reference blocks can be blended through a weighted average based on the geometric segmentation boundary.
[0174] Whether or not to use reference block correction using compensation information according to the present disclosure can be determined through the bitstream or derived from the image decoding device (200). When compensation is applied, the compensation information can be derived using the surrounding area of the current block and the surrounding area of the reference block. The compensation information is information for compensating for the luminance difference between the current block and the reference block, and can be defined as in mathematical equation 4.
[0175]
[0176] In mathematical expression 4, Cur N (x, y) represents the surrounding area of the current block, and Ref N (x, y) represents the surrounding area of the reference block. α and β can represent compensation information. For example, α represents scale information applied to the luminance value of the surrounding area of the current block or the luminance value of the surrounding area of the reference block, and β can represent offset information applied to the luminance value to which scale information is applied among the luminance values of the surrounding area of the current block or the luminance values of the surrounding area of the reference block. The compensation information is Cur N (x, y) and Ref N It can be derived from α and β that minimize the difference between (x, y). Cur N (x, y) and Ref N The difference between (x, y) can be the sum of absolute differences (SAD) or the sum of square differences (SSD). Compensation information can be derived based on various domains such as pictures, tiles, slices, coding tree units (CTUs), and coding units.
[0177] Compensation information can be derived for P0' and P1', respectively. That is, compensation information α0 and β0 for P0' can be derived based on the surrounding area of the current block and the surrounding area of P0. Furthermore, compensation information α1 and β1 for P1' can be derived based on the surrounding area of the current block and the surrounding area of P1.
[0178] The prediction samples of the current block (prediction block or final prediction block) can be derived based on mathematical expression 5.
[0179]
[0180] In Equation 5, Pcur represents the prediction samples of the current block. Reference blocks P0 and P 1 The compensation information (α0 and β0) and (α1 and β1) derived for are applied to the reference blocks, respectively, and the reference blocks to which the compensation information is applied are fused based on the fusion mask M0 and M1 values for GPM, so that the prediction samples of the current block can be generated. In mathematical expression 5, The operation represents a pixel-wise multiplication operation on the mask values, and the shift represents a normalization value for the fusion mask.
[0181] According to the embodiment 1 described above, by obtaining compensation information for sub-blocks of the current block and applying it to reference blocks, prediction performance can be improved, thereby improving encoding efficiency.
[0182] Example 2
[0183] Embodiment 2 relates to a method for determining the surrounding area of a current block and the surrounding area of a reference block based on the segmentation direction and / or segmentation offset of a GPM. Hereinafter, Embodiment 2 will be described focusing on the method for determining the surrounding area of the current block. The surrounding area of the reference block can be determined using the same method as that for determining the surrounding area of the current block. Alternatively, the surrounding area of the reference block can be determined to a location corresponding to the surrounding area of the current block.
[0184] Figure 13 illustrates examples of block segmentation using GPM. The segmentation directions of GPM shown in Figure 13 are exemplary, and the current block may be segmented at other angles (in other directions) not shown in Figure 13. Furthermore, the straight lines (segmentation lines) indicating each segmentation direction may move horizontally or vertically, thereby segmenting the current block into parts with unequal ratios.
[0185] Figure 14 illustrates various examples of P0' and P1' according to the splitting direction when the current block is split. Referring to Figure 14, the surrounding area of the current block may vary depending on the splitting direction, the position of P0', and the position of P1'.
[0186] Figure 15 (a) shows the surrounding areas of P0' and P1' when the splitting direction is 0. Referring to Figure 15 (a), since P0' is adjacent to the surrounding areas of the current block in the left and upward directions, the compensation information for P0' can be derived using both the surrounding areas in the left direction and the surrounding areas in the upward direction. In contrast, since P1' is adjacent to the surrounding areas of the current block only in the upward direction, the compensation information for P1' can be derived using only the surrounding areas in the upward direction.
[0187] Figure 15(b) shows the surrounding areas of P0' and P1' when the splitting direction is 4. Referring to Figure 15(b), since P0' is adjacent to the surrounding area of the current block only in the left direction, the compensation information for P0' can be derived using only the surrounding area in the left direction. In contrast, since P1' is adjacent to the surrounding area of the current block only in the upward direction, the compensation information for P1' can be derived using only the surrounding area in the upward direction.
[0188] In this way, the compensation information for P0' and P1' can be derived using only the surrounding regions adjacent to P0' and P1', respectively. Therefore, the compensation information for P0' and P1' can be derived more accurately, thereby improving prediction performance and reducing differential signals, thereby enhancing encoding efficiency.
[0189] Table 3 shows the locations of the surrounding area of P0' and the surrounding area of P1' according to the splitting direction.
[0190]
[0191]
[0192] Referring to Table 3, split directions 16 to 30 can be defined in the same direction as split directions 0 to 14, and only the split offset can be defined differently. That is, the surrounding area used for deriving compensation information when the split direction is 16 to 30 can be defined identically to the surrounding area used for deriving compensation information when the split direction is 0 to 14.
[0193] When the split directions are 12 and 28, P1' may not be adjacent to the surrounding area of the current block. Therefore, in these cases, compensation information for P1' may not be derived. That is, when the split directions are 12 and 28, only compensation information for P0' can be derived and applied.
[0194] According to embodiments, compensation information may be derived using only pixels adjacent to each of P0' and P1'. The pixels adjacent to P0' and P1' may vary depending on the segmentation direction and the segmentation offset (a displacement value by which the segmentation line moves in the horizontal or vertical direction).
[0195] Fig. 16(a) shows the pixel-wise surrounding areas for P0' and P1' when the splitting direction is 0. Referring to Fig. 16(a), since P0' is adjacent only to all pixels in the left direction and some pixels in the upward direction, compensation information for P0' can be derived using all pixels in the left direction and some pixels in the upward direction. In contrast, since P1' is adjacent only to some pixels in the upward direction, compensation information for P1' can be derived using only some pixels in the upward direction.
[0196] Fig. 16(b) shows the pixel-wise surrounding areas for P0' and P1' when the splitting direction is 5. Referring to Fig. 16(b), since P0' is adjacent only to some pixels in the left direction, compensation information for P0' can be derived using only some pixels in the left direction. In contrast, since P1' is adjacent only to some pixels in the left direction and all pixels in the upward direction, compensation information for P1' can be derived using some pixels in the left direction and all pixels in the upward direction.
[0197] In this way, the compensation information for P0' and P1' can be derived using only the surrounding regions adjacent to P0' and P1', respectively. Therefore, the compensation information for P0' and P1' can be derived more accurately, thereby improving prediction performance and reducing differential signals, thereby enhancing encoding efficiency.
[0198] In the above, methods for defining surrounding areas when the value of the partition offset is 0 have been described. When the value of the partition offset is not 0, P0' and P1' may be partitioned at unequal ratios, in which case the surrounding areas of each of P0' and P1' may vary depending on the value of the partition offset.
[0199] Fig. 17(a) shows the surrounding areas of P0' and P1' when the split direction is 4 and the value of the split offset is 2. Referring to Fig. 17(a), unlike the case where the split direction is 4 and the value of the split offset is 0, P0' is adjacent to the surrounding area in both the leftward and upward directions, and thus the compensation information for P0' can be derived using both the surrounding area in the leftward direction and the surrounding area in the upward direction. In contrast, P1' is adjacent to the surrounding area only in the upward direction, and thus the compensation information for P1' can be derived using only the surrounding area in the upward direction. In other words, the compensation information for P1' can be derived in the same way as when the value of the split offset is 0.
[0200] Fig. 17(b) shows the pixel-wise surrounding areas for P0' and P1' when the segmentation direction is 4 and the segmentation offset value is 2. Referring to Fig. 17(b), since P0' is adjacent to all pixels in the left direction and some pixels in the upward direction, compensation information for P0' can be derived using all pixels in the left direction and some pixels in the upward direction. In contrast, since P1' is adjacent to only some pixels in the upward direction, compensation information for P1' can be derived using only some pixels in the upward direction.
[0201] In this way, since the compensation information of each of P0' and P1' can be derived by adaptively selecting a surrounding area or pixel according to encoding information such as a segmentation offset value or a block size, the accuracy of prediction can be improved.
[0202] Meanwhile, when only adjacent surrounding areas or adjacent pixels are used to derive compensation information for P0' and P1', the number of pixels for deriving compensation information may be insufficient. To address this issue, the present invention proposes a method for deriving compensation information by expanding a portion of the surrounding area of P0' and P1' or increasing the number of pixels, when the surrounding area is not a portion of the surrounding area or is a portion of the pixels.
[0203] For example, in case the GPM mode is not applied, in comparison with the reference area for deriving compensation information, if the size of the area adjacent to P0' and P1' is located only on either the left or the upper side, the number of pixels is reduced by half, so the peripheral area expansion proposed in the present invention can be performed.
[0204] Fig. 18(a) shows an example of peripheral area expansion when the splitting direction is 4. Referring to Fig. 18(a), P0' is adjacent to the peripheral area only in the left direction (a0), and P1' is adjacent to the peripheral area only in the upper direction (a1). In this case, the peripheral area of P0' can be expanded twice in the left direction from the existing left area (a0) adjacent to P0' to the non-adjacent area (na0) that is not adjacent to P0', and the peripheral area of P1' can be expanded twice in the upward direction from the existing upper area (a1) adjacent to P1' to the non-adjacent area (na1) that is not adjacent to P1'. In other words, the non-adjacent area can be located in the same direction as the adjacent area.
[0205] Another example of peripheral region expansion is to expand the peripheral region in a given direction when either P0' or P1' is adjacent to only some pixels in the left or upper direction.
[0206] Fig. 18(b) shows an example of peripheral area expansion when the segmentation direction is 4 and the segmentation offset value is 2. Referring to Fig. 18(b), P0' is adjacent only to some pixels (a0) in the upward direction, and P1' is also adjacent only to some pixels (a1) in the upward direction. In this case, the peripheral area of P0' can be expanded to include non-adjacent pixels (na0). That is, the peripheral area of P0' can be expanded to the right to include some pixels (na1) that are adjacent to P1' in the upward direction. In addition, the peripheral area of P1' can also be expanded to include non-adjacent pixels (na1). That is, the peripheral area of P1' can be expanded to the left to include some pixels (na0) that are adjacent to P0' in the upward direction.
[0207] Fig. 18(c) shows an example of peripheral area expansion when the segmentation direction is 5. Referring to Fig. 18(c), P0' is adjacent only to some pixels (a0) in the left direction, and P1' is also adjacent only to some pixels (a1) in the left direction. In this case, the peripheral area of P0' can be expanded to non-adjacent pixels (na0). That is, the peripheral area of P0' can be expanded upward to include some pixels (na1) that are left-adjacent to P1'. In addition, the peripheral area of P1' can also be expanded to non-adjacent pixels (na1). That is, the peripheral area of P1' can be expanded downward to include some pixels (na0) that are left-adjacent to P0'.
[0208] The above description of peripheral region expansion focuses on the case where the expanded peripheral region and the original peripheral region are adjacent. However, the expanded peripheral region and the original peripheral region may not be adjacent. Similarly, when peripheral region expansion is applied, a greater number of pixels within the expanded peripheral region can be utilized to derive compensation information compared to pixels within the original peripheral region.
[0209] Example 3
[0210] Embodiment 3 relates to a method for signaling and obtaining application information, which is information on whether compensation is applied. Compensation according to the present disclosure may take various forms depending on the input image, and for this purpose, compensation according to the present disclosure can be performed adaptively for the input image. That is, whether compensation is applied to a specific unit can be determined from header information, such as high-level syntax. Furthermore, whether compensation is applied can also be signaled at lower levels, such as coding units or CTU units.
[0211] Table 4 shows an example of how to transmit whether to use (allow) compensation in SPS.
[0212]
[0213]
[0214] The semantics of the sps_illumination_compensation_enabled_flag syntax element can be defined as follows:
[0215] A value of 1 for sps_illumination_compensation_enabled_flag indicates that ic_flag may be present in the inter coding unit syntax of CLVS, and a value of 0 for sps_illumination_compensation_enabled_flag indicates that ic_flag does not exist in the inter coding unit syntax of CLVS. If sps_illumination_compensation_enabled_flag does not exist, the value of sps_illumination_compensation_enabled_flag is inferred to be equal to 0.
[0216] If it is determined that compensation is used in the upper-level syntax, the syntax for whether compensation is applied per encoding unit may be signaled in the merge_data according to the combination of Tables 5 and 6. The GPM of the present disclosure may be applied when the values of regular_merge_flag and ciip_flag are both 0, in which case the compensation application flag (application information) of the present disclosure may be signaled.
[0217]
[0218]
[0219]
[0220]
[0221] A value of 1 for regular_merge_flag indicates that regular merge mode is used to generate inter prediction parameters for the current coding unit. In other words, regular_merge_flag indicates whether merge mode (regular merge mode) is applied to the current block.
[0222] A value of 1 in mmvd_merge_flag indicates that MMVD is used to generate inter prediction parameters for the current coding unit. In other words, mmvd_merge_flag indicates whether MMVD is applied to the current block.
[0223] mmvd_cand_flag indicates that the first (0) or second (1) candidate in the merge candidate list is used with mvd derived from mmvd_distance_idx and mmvd_direction_idx.
[0224] mmvd_distance_idx represents the index used to derive MmvdDistance, and mmvd_direction_idx represents the index used to derive MmvdSign.
[0225] merge_subblock_flag indicates whether the subblock merge mode is used to generate subblock-based inter prediction parameters for the current coding unit. That is, merge_subblock_flag indicates whether the subblock merge mode (or affine merge mode) is applied to the current block.
[0226] merge_subblock_idx represents the merge candidate index of the subblock-based merge candidate list.
[0227] ciip_flag indicates whether combined inter-picture merge and intra-picture prediction is applied for the current coding block.
[0228] merge_triangle_idx0 represents the first merge candidate index in the triangle shape-based motion compensation candidate list, and merge_triangle_idx1 represents the second merge candidate index in the triangle shape-based motion compensation candidate list.
[0229] merge_idx represents the merge candidate index in the merge candidate list.
[0230] merge_gpm_partition_idx indicates the partition shape of GPM. If merge_gpm_partition_idx does not exist, the value of merge_gpm_partition_idx can be inferred to be equal to 0.
[0231] merge_gpm_idx0 represents the first merge candidate index of the geometric segmentation-based motion compensation candidate list, and merge_gpm_idx1 represents the first merge candidate index of the geometric segmentation-based motion compensation candidate list. If merge_gpm_idx0 does not exist, the value of merge_gpm_idx0 can be inferred to be equal to 0, and if merge_gpm_idx1 does not exist, the value of merge_gpm_idx1 can be inferred to be equal to 0.
[0232] The semantics of the ic_flag syntax element, which is the application information, can be defined as follows.
[0233] ic_flag can indicate whether illumination compensation is used within the current coding unit. A value of ic_flag of 1 indicates that illumination compensation is applied to the current coding unit, and a value of ic_flag of 0 indicates that illumination compensation is not applied to the current coding unit. If ic_flag does not exist, its value can be inferred to be equal to 0.
[0234] As shown in the combinations of Tables 5 and 6, when one ic_flag is signaled, the compensation proposed by the present invention can be applied to both P0' and P1' divided into GPMs.
[0235] In another embodiment, whether compensation is applied can be signaled separately for each of P0' and P1', which are split into GPMs. In such a case, application information, such as the combination of Tables 7 and 8, can be signaled in merge_data.
[0236]
[0237]
[0238]
[0239]
[0240] The semantics of the part0_ic_flag and part1_ic_flag syntax elements can be defined as follows.
[0241] part0_ic_flag may indicate whether lighting compensation is used for partition 0 within the current coding unit. A value of 1 for part0_ic_flag may indicate that lighting compensation is applied to partition 0 of the current coding unit, and a value of 0 for part0_ic_flag may indicate that lighting compensation is not applied to partition 0 of the current coding unit. If part0_ic_flag does not exist, the value of part0_ic_flag may be inferred to be equal to 0. Partition 0 may be the aforementioned P0'. part0_ic_flag may be referred to as "first application information".
[0242] part1_ic_flag may indicate whether lighting compensation is used for partition 1 within the current coding unit. A value of 1 for part1_ic_flag may indicate that lighting compensation is applied to partition 1 of the current coding unit, and a value of 0 for part1_ic_flag may indicate that lighting compensation is not applied to partition 1 of the current coding unit. If part1_ic_flag does not exist, the value of part1_ic_flag may be inferred to be equal to 0. Partition 1 may be the aforementioned P1'. part1_ic_flag may be referred to as "second application information."
[0243] In another embodiment, compensation may be applied to only one of the blocks P0' and P1', which are split into GPMs. In such a case, application information, such as the combination of Tables 9 and 10, may be signaled in merge_data.
[0244]
[0245]
[0246]
[0247]
[0248] The semantics of the ic_flag and part0_ic_flag syntax elements can be defined as follows.
[0249] ic_flag can indicate whether lighting compensation is used in the current coding unit. A value of ic_flag of 1 indicates that lighting compensation is applied to the current coding unit, and a value of ic_flag of 0 indicates that lighting compensation is not applied to the current coding unit. If ic_flag does not exist, the value of ic_flag can be inferred to be equal to 0. ic_flag can be referred to as "third application information."
[0250] part0_ic_flag may indicate whether lighting compensation is applied to partition 0 or partition 1 within the current geometric block. A value of 1 for part0_ic_flag may indicate that lighting compensation is applied to partition 0 within the current geometric block, and a value of 0 for part0_ic_flag may indicate that lighting compensation is applied to partition 1 within the current geometric block. If part0_ic_flag does not exist, the value of part0_ic_flag may be inferred to be equal to 0. part0_ic_flag may be referred to as "fourth application information".
[0251] In another embodiment, if the split offset value is not 0, one of the blocks P0' and P1' is split to be larger than the other block. In this case, the lighting compensation can be restricted to be applied only to the block with the larger size among P0' and P1'. Therefore, in the combination of Tables 9 and 10, the fourth application information (part0_ic_flag) is not signaled, thereby reducing the number of bits required for signaling the fourth application information, thereby improving the encoding efficiency.
[0252] Image encoding method and image decoding method
[0253] Hereinafter, the image encoding method and image decoding method for GPM proposed through the present disclosure will be described. The image encoding method described below can be performed by an image encoding device (100), and the image decoding method can be performed by an image decoding device (200).
[0254] An image encoding method according to one embodiment of the present disclosure is shown in FIG. 19, and an image decoding method according to one embodiment of the present disclosure is shown in FIG. 20.
[0255] Referring to FIG. 19, at least one reference block for predicting the current block to which GPM is applied may be determined (S1910). The reference block may be P0 and / or P1 as described in the present disclosure.
[0256] Based on the surrounding area of the reference block and the surrounding area of the current block, compensation information related to compensation of the reference block can be derived (S1920). As mentioned above, the compensation information is information for compensating for the difference in luminance between the current block and the reference block, and may include scale information applied to the luminance value of the surrounding area of the current block or the luminance value of the surrounding area of the reference block, and / or offset information applied to the luminance value to which the scale information is applied among the luminance value of the surrounding area of the current block or the luminance value of the surrounding area of the reference block.
[0257] Prediction samples of the current block (prediction block or final prediction block) can be generated based on compensation information (S1930). Information related to whether GPM is applied, motion information indicating a reference block, information related to whether compensation is applied (application information), etc. can be encoded into a bitstream and signaled from the image encoding device (100) to the image decoding device (200).
[0258] Referring to FIG. 20, at least one piece of motion information for a current block to which GPM is applied can be acquired (S2010). At least one reference block for predicting the current block can be determined based on the motion information.
[0259] Based on the surrounding area of the reference block and the surrounding area of the current block, compensation information related to compensation of the reference block can be derived (S2020). As mentioned above, the compensation information is information for compensating for the luminance difference between the current block and the reference block, and may include scale information applied to the luminance value of the surrounding area of the current block or the luminance value of the surrounding area of the reference block, and / or offset information applied to the luminance value to which the scale information is applied among the luminance value of the surrounding area of the current block or the luminance value of the surrounding area of the reference block.
[0260] Prediction samples of the current block (prediction block or final prediction block) can be generated based on reward information (S2030).
[0261] The surrounding area of the current block and the surrounding area of the reference block can be determined based on the segmentation direction of the GPM. Additionally, the surrounding area of the current block and the surrounding area of the reference block can also be determined further based on the segmentation offset of the GPM.
[0262] Meanwhile, the surrounding area of the current block may include an adjacent area, which is an area adjacent to the upper or left side of the current block. In this case, a non-adjacent area, which is an area not adjacent to the first block, may be included in the surrounding area to derive compensation information, depending on certain conditions. Furthermore, a non-adjacent area, which is an area not adjacent to the second block, may be included in the surrounding area to derive compensation information. In other words, if certain conditions are met, a surrounding area expansion process may be performed, extending the surrounding area to include the non-adjacent area.
[0263] Figures 21 to 23 illustrate various examples of an image encoding method and an image decoding method for determining a peripheral area.
[0264] Referring to FIG. 21, it can be determined whether the adjacent area is located solely on either the upper or left side of the current block (S2110). If it is determined that the adjacent area is located solely on either the upper or left side of the current block, the surrounding area can be determined including non-adjacent areas located in the same direction as the adjacent area (S2120). Conversely, if it is determined that the adjacent area is not located solely on either the upper or left side of the current block, the surrounding area can be determined without including non-adjacent areas (S2130).
[0265] Referring to FIG. 22, it can be determined whether an area adjacent to the upper side of the current block includes an area adjacent only to the upper side of the first block (e.g., P0') and an area adjacent only to the upper side of the second block (e.g., P1') (S2210). If it is determined that the area adjacent to the upper side of the current block includes an area adjacent only to the upper side of the first block and an area adjacent only to the upper side of the second block, a surrounding area (of the first block) can be determined including an area adjacent to the upper side of the second block (S2220). Conversely, if it is determined that the area adjacent to the upper side of the current block includes only an area adjacent only to the upper side of the first block (i.e., it is determined that it does not include an area adjacent only to the upper side of the second block), an upper surrounding area (of the first block) can be determined without including an area adjacent to the upper side of the second block (i.e., only an area adjacent only to the upper side of the first block) (S2230).
[0266] Referring to FIG. 23, it can be determined whether the region adjacent to the left side of the current block includes a region adjacent only to the left side of the first block (e.g., P0') and a region adjacent only to the left side of the second block (e.g., P1') (S2310). If it is determined that the region adjacent to the left side of the current block includes a region adjacent only to the left side of the first block and a region adjacent only to the left side of the second block, a peripheral region (of the first block) can be determined including a region adjacent only to the left side of the second block (S2320). Conversely, if it is determined that the region adjacent to the left side of the current block includes only a region adjacent only to the left side of the first block (i.e., it is determined that it does not include a region adjacent only to the left side of the second block), a left peripheral region (of the first block) can be determined without including a region adjacent only to the left side of the second block (i.e., only a region adjacent only to the left side of the first block) (S2330).
[0267] Figure 24 shows an image encoding method and an image decoding method that determine whether to perform compensation or derive compensation information depending on the division direction of GPM.
[0268] Referring to FIG. 24, it can be determined whether the first block (e.g., P0') and the second block (e.g., P1') are triangular shapes divided in an upward-right diagonal direction (splitting direction 12 or 28, splitting offset value 0) (S2410). If the first block and the second block are triangular shapes divided in an upward-right diagonal direction, the second block may not have a surrounding area above and to the left of the current block. Therefore, if it is determined that the first block and the second block are triangular shapes divided in an upward-right diagonal direction, compensation information for the second block is not derived and lighting compensation for the second block may not be performed (S2420). In contrast, if the first block and the second block are not triangular shapes divided in an upward-right diagonal direction, both the first block and the second block may have a surrounding area above or to the left of the current block. Accordingly, compensation information for not only the first block but also the second block can be derived, and lighting compensation for the second block can be performed (S2430).
[0269] Fig. 25 is a drawing showing an image encoding method for encoding application information, and Fig. 26 is a drawing showing an image decoding method for obtaining application information.
[0270] Referring to FIG. 25, whether compensation is allowed is determined (S2510), and if compensation is allowed, whether compensation is applied can be determined (S2520). If compensation is applied, the value of sps_illumination_compensation_enabled_flag, which indicates whether compensation is allowed, may be encoded as 1, and the value of ic_flag, which is application information indicating whether compensation is applied, may be encoded as 1 (S2530). Conversely, if compensation is not allowed, the value of sps_illumination_compensation_enabled_flag may be encoded as 0, and the application information may not be encoded (S2540). In addition, if compensation is allowed but compensation is not applied to the current block, the value of sps_illumination_compensation_enabled_flag may be encoded as 1, and the value of ic_flag may be encoded as 0 (S2550).
[0271] Referring to FIG. 26, sps_illumination_compensation_enabled_flag is acquired from the bitstream (S2610), and whether compensation is allowed can be determined based on the value of the acquired sps_illumination_compensation_enabled_flag (S2620). If compensation is allowed, application information (ic_flag) is acquired from the bitstream (S2630), and whether compensation is applied (i.e., whether compensation information is derived) can be determined based on the acquired ic_flag (S2640). If compensation is determined to be applied, compensation information can be derived (S2650). Conversely, if compensation is determined not to be applied or not allowed, compensation information may not be derived (S2660).
[0272] According to embodiments, the application information may include first application information (part0_ic_flag) indicating whether compensation is applied to the first block and second application information (part1_ic_flag) indicating whether compensation is applied to the second block. That is, whether compensation is applied may be determined for the first block and the second block, respectively, and the application information may also be signaled for the first block and the second block, respectively.
[0273] According to embodiments, the application information may include third application information (ic_flag in Table 9) indicating whether compensation is applied to the current block, and fourth application information (part0_ic_flag in Table 9) indicating which block among the first and second blocks the compensation is applied to. In this case, the fourth application information may be signaled when the third application information indicates that compensation is applied to the current block.
[0274] In some embodiments, the fourth application information may not be signaled if the size of the first block is larger than the size of the second block. That is, the compensation may be limited to be applied only to the block with the larger size between the first and second blocks. In this case, if the size of the first block is larger than the size of the second block, the compensation is applied only to the first block. Accordingly, in such cases, the fourth application information may not be included in the application information.
[0275] FIG. 27 is a diagram illustrating an example of a content streaming system to which an embodiment according to the present disclosure can be applied.
[0276] As illustrated in FIG. 27, 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.
[0277] 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.
[0278] 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.
[0279] 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.
[0280] 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.
[0281] 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.
[0282] 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.
[0283] 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.
[0284] 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 at least one piece of motion information for a current block to which a Geometry Partitioning Mode (GPM) is applied; A step of deriving compensation information related to compensation of the reference block based on a surrounding area of at least one reference block indicated by the motion information and a surrounding area of the current block; and An image decoding method, comprising a step of generating prediction samples of the current block based on the above compensation information.
2. In paragraph 1, A method for decoding an image, wherein the compensation information includes scale information applied to a luminance value of a surrounding area of the current block or a luminance value of a surrounding area of the reference block.
3. In paragraph 2, A method for decoding an image, wherein the compensation information further includes offset information applied to a luminance value to which the scale information is applied among luminance values of a surrounding area of the current block or luminance values of a surrounding area of the reference block.
4. In paragraph 1, An image decoding method, wherein the surrounding area of the current block is determined based on the division direction of the GPM.
5. In paragraph 4, A method for decoding an image, wherein the surrounding area of the current block is determined further based on the segmentation offset of the GPM.
6. In paragraph 1, A method for decoding an image, wherein the surrounding area of the current block includes an adjacent area adjacent to the upper or left side of the current block.
7. In paragraph 6, Based on the above-mentioned adjacent area being located only on either the upper or left side of the current block, the surrounding area of the current block further includes a non-adjacent area that is not adjacent to the current block, An image decoding method, wherein the non-adjacent area is located in the same direction as the adjacent area, either on the upper or left side of the current block.
8. In paragraph 6, The current block includes a first block and a second block divided by the GPM, Based on the fact that the area adjacent to the upper side of the current block includes an area adjacent only to the upper side of the first block and an area adjacent only to the upper side of the second block, the surrounding area of the first block further includes an area adjacent only to the upper side of the second block, A method for decoding an image, wherein the surrounding area of the first block further includes an area adjacent only to the left of the second block, based on the area adjacent to the left of the current block including an area adjacent only to the left of the first block and an area adjacent only to the left of the second block.
9. In paragraph 1, The current block includes a first block and a second block divided by the GPM, An image decoding method in which compensation information for the second block is not derived based on the fact that the first block and the second block are triangular in shape divided in an upward-facing diagonal direction.
10. In paragraph 1, A method for decoding an image, wherein the step of deriving the above compensation information is performed based on the application information obtained from the bitstream indicating that compensation is applied.
11. In paragraph 10, The current block includes a first block and a second block divided by the GPM, A method for decoding an image, wherein the application information includes first application information indicating whether compensation is applied to the first block and second application information indicating whether compensation is applied to the second block.
12. In paragraph 10, The current block includes a first block and a second block divided by the GPM, The above application information includes third application information indicating whether compensation is applied to the current block and fourth application information indicating which block among the first block or the second block to which compensation is applied. A method for decoding an image, wherein the fourth application information is obtained based on the third application information indicating that compensation is applied to the current block.
13. In paragraph 12, A method for decoding an image, wherein the application information does not include the fourth application information, based on the size of the first block being greater than the size of the second block.
14. An image encoding method performed by an image encoding device, A step of determining at least one reference block for prediction of a current block to which a Geometry Partitioning Mode (GPM) is applied; A step of deriving compensation information related to compensation of the reference block based on the surrounding area of the reference block and the surrounding area of the current block; and An image encoding method, comprising a step of generating prediction samples of the current block based on the compensation information.
15. A method for transmitting a bitstream generated by a video encoding method, wherein the video encoding method comprises: A step of determining at least one reference block for prediction of a current block to which a Geometry Partitioning Mode (GPM) is applied; A step of deriving compensation information related to compensation of the reference block based on the surrounding area of the reference block and the surrounding area of the current block; and A method comprising the step of generating prediction samples of the current block based on the above compensation information.
Citation Information
Patent Citations
Methods and apparatus for video encoding and decoding geometrically partitioned bi-predictive mode partitions
KR101555617B1
Display device
KR1020230151584A
Membrane pellicle internal air pressure control device
KR1020240061934A
Video coding using local illumination compensation
US20210076029A1
KR20230034191A
