Signaling method and device for merging data syntax in video / image coding system
By utilizing prediction mode information in the bitstream in the video/image encoding system, deducing motion information and removing unnecessary signaling, the problem of high-resolution video data transmission is solved, and the image/video compression efficiency and frames are improved interprediction effect.
Patent Information
- Application Number
- CN202080045848.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-06-23
- Filing Date
- 2020-06-23
- Publication Date
- 2024-11-08
- Estimated Expiration
- 2040-06-23
AI Technical Summary
The prior art is difficult to effectively compress and transmit high-resolution, high-quality video/image data, especially in applications of virtual reality, artificial reality and immersive media, and the transmission and storage costs are high.
Using a method, by decoding methods and encoding methods in decoding devices and encoding devices, based on prediction mode information in bitstream, the prediction mode of the current block is determined, motion information is derived, prediction samples are generated, and the inter prediction period is shifted. Remove unnecessary signaling and notification merge mode information.
The image/video compression efficiency is improved, the effective execution of inter-frame prediction and signaling are realized, and the transmission and storage costs are reduced.
Smart Images

Figure CN114009047B_ABST
Abstract
Description
Technical Field
[0001] The present technology relates to methods and apparatus for signaling merge data syntax in a video / image coding system. Background Art
[0002] Recently, there is an increasing demand for high-resolution, high-quality images / videos such as 4K or 8K or more ultra-high definition (UHD) images / videos in various fields. As the image / video resolution or quality becomes higher, a relatively larger amount of information or bits is transmitted compared to conventional image / video data. Therefore, if the image / video data is transmitted via a medium such as an existing wired / wireless broadband line or is stored in a conventional storage medium, the cost of transmission and storage is easily increased.
[0003] In addition, there is growing interest and demand for virtual reality (VR) and artificial reality (AR) content and immersive media such as holograms; and there is also growing broadcasting of images / videos that exhibit image / video characteristics different from actual images / videos (e.g., game images / videos).
[0004] Therefore, highly efficient image / video compression technology is required to effectively compress and transmit, store, or play high-resolution, high-quality images / videos showing various characteristics as described above. Summary of the invention
[0005] Technical issues
[0006] An aspect of the present disclosure is to provide a method and apparatus for enhancing image coding efficiency.
[0007] Another aspect of the present disclosure is to provide a method and apparatus for efficiently performing inter-frame prediction.
[0008] Yet another aspect of the present disclosure is to provide a method and apparatus for removing unnecessary signaling during inter-frame prediction.
[0009] Yet another aspect of the present disclosure is to provide a method and apparatus for efficiently signaling information about a merge mode during inter prediction.
[0010] Technical Solution
[0011] According to an exemplary embodiment of the present disclosure, a decoding method performed by a decoding device includes: determining a prediction mode of a current block based on information about the prediction mode from a bitstream; deriving motion information of the current block based on the prediction mode; generating a prediction sample of the current block based on the motion information; and generating a reconstructed sample based on the prediction sample, wherein the determination includes obtaining a regular merge flag from the bitstream based on a CIIP enable flag indicating whether combined inter-picture merging and intra-picture prediction (CIIP) is enabled.
[0012] According to another exemplary embodiment of the present disclosure, a coding method performed by a coding device includes: determining a prediction mode of a current block; deriving motion information of the current block based on the prediction mode; deriving prediction samples of the current block based on the motion information; deriving residual samples based on the prediction samples; and encoding image information including information related to the prediction mode generated based on the prediction mode and residual information generated based on the residual samples, wherein the image information includes a regular merge flag based on a combined inter-picture merging and intra-picture prediction (CIIP) enable flag indicating whether CIIP is enabled.
[0013] According to another exemplary embodiment of the present disclosure, a computer-readable digital storage medium includes information that enables a decoding device to perform a decoding method, wherein the decoding method includes: determining a prediction mode of a current block based on prediction mode information from a bitstream; deriving motion information of the current block based on the prediction mode; generating prediction samples of the current block based on the motion information; and generating reconstructed samples based on the prediction samples, wherein determining the prediction mode includes obtaining a regular merge flag from the bitstream based on a CIIP enable flag indicating whether combined inter-picture merging and intra-picture prediction (CIIP) is enabled.
[0014] Beneficial Effects
[0015] According to the embodiments of the present disclosure, the overall image / video compression efficiency may be enhanced.
[0016] According to the embodiments of the present disclosure, inter-frame prediction can be efficiently performed.
[0017] According to an embodiment of the present disclosure, signaling of unnecessary syntax may be effectively removed during inter-frame prediction.
[0018] According to an embodiment of the present disclosure, information about a merge mode may be efficiently signaled during inter prediction. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 An example of a video / image coding system to which an embodiment of the present disclosure is applicable is schematically shown.
[0020] Figure 2 is a diagram schematically explaining a configuration of a video / image encoding device to which an embodiment of the present disclosure is applicable.
[0021] Figure 3 is a diagram schematically explaining a configuration of a video / image decoding device to which an embodiment of the present disclosure is applicable.
[0022] Figure 4 An example of a video / image encoding method based on inter-frame prediction is shown.
[0023] Figure 5 An example of a video / image decoding method based on inter-frame prediction is shown.
[0024] Figure 6 and Figure 7 is a diagram explaining spatial candidates that can be used for inter prediction.
[0025] Figure 8 and Fig. 9 is a diagram explaining temporal candidates that can be used for inter-frame prediction.
[0026] Fig.10 It is a diagram for explaining a sub-block-based temporal motion vector prediction process that can be used for inter-frame prediction.
[0027] Fig.11 is a diagram explaining partition modes applicable to inter-frame prediction.
[0028] Fig.12 and Fig.13 An example of a video / image encoding method including an inter-frame prediction method and related components according to an embodiment of the present disclosure is schematically illustrated.
[0029] Fig.14 and Fig.15 An example of a video / image decoding method including an inter-frame prediction method and related components according to an embodiment of the present disclosure is schematically shown.
[0030] Fig.16 An example of a content streaming system to which the embodiments disclosed in the present disclosure are applicable is shown. DETAILED DESCRIPTION
[0031] The present disclosure can be modified in various forms, and specific embodiments of the present disclosure will be described and shown in the accompanying drawings. However, it is not intended to limit the present disclosure to these specific embodiments. The terms used in the following description are used to describe specific embodiments only and are not intended to limit the present disclosure. Singular expressions include plural expressions as long as it is clearly read differently. Terms such as "including" and "having" are intended to indicate that the features, numbers, steps, operations, elements, components, or combinations thereof used in the following description exist, so it should be understood that the possibility of the presence or addition of one or more different features, numbers, steps, operations, elements, components, or combinations thereof is not excluded.
[0032] In addition, for the convenience of description related to different characteristic functions, each component in the drawings described in the present disclosure is shown independently, and it does not mean that the component is implemented as separate hardware or separate software. For example, at least two components in each configuration can be combined to form a configuration, or a configuration can be divided into multiple configurations. Embodiments in which each configuration is combined and / or separated are also included in the scope of the present disclosure without departing from the spirit of the present disclosure.
[0033] Hereinafter, examples of the present disclosure are described in detail with reference to the accompanying drawings. In addition, the same reference numerals are used throughout the drawings to represent the same elements, and the same description of the same elements will be omitted.
[0034] Figure 1 An example of a video / image coding system to which the present disclosure is applicable is shown.
[0035] Reference Figure 1 The video / image coding system may include a source device and a receiving device. The source device may send the encoded video / image information or data in the form of a file or stream to the receiving device via a digital storage medium or a network.
[0036] The source device may include a video source, an encoding device, and a transmitter. The receiving device may include a receiver, a decoding device, and a renderer. The encoding device may be referred to as a video / image encoding device, and the decoding device may be referred to as a video / image decoding device. The transmitter may be included in the encoding device. The receiver may be included in the decoding device. The renderer may include a display, and the display may be configured as a separate device or an external component.
[0037] The video source may acquire the video / image by capturing, synthesizing or generating a video / image process. The video source may include a video / image capture device and / or a video / image generation device. For example, the video / image capture device may include one or more cameras, a video / image archive including previously captured videos / images, etc. For example, the video / image generation device may include a computer, a tablet computer, and a smart phone, and may (electronically) generate the video / image. For example, a virtual video / image may be generated by a computer, etc. In this case, the video / image capture process may be replaced by a process that generates relevant data.
[0038] The encoding device can encode the input video / image. For compression and coding efficiency, the encoding device can perform a series of processes such as prediction, transformation and quantization. The encoded data (encoded video / image information) can be output in the form of a bitstream.
[0039] The transmitter may transmit the encoded image / image information or data output in the form of a bit stream to a receiver of a receiving device in the form of a file or stream through a digital storage medium or a network. The digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. The transmitter may include an element for generating a media file in a predetermined file format, and may include an element for transmission through a broadcast / communication network. The receiver may receive / extract a bit stream and transmit the received bit stream to a decoding device.
[0040] The decoding device may decode a video / image by performing a series of processes such as dequantization, inverse transformation, and prediction corresponding to the operations of the encoding device.
[0041] The renderer can render the decoded video / image. The rendered video / image can be displayed by a display.
[0042] The present invention relates to video / image coding. For example, the methods / embodiments disclosed herein may be applied to methods disclosed in the general video coding (VVC) standard. In addition, for example, the methods / embodiments disclosed herein may be applied to methods disclosed in the basic video coding (EVC) standard, the AOMedia Video 1 (AV1) standard, the second generation audio video coding standard (AVS2), or the next generation video / image coding standard (e.g., H.267 or H.268, etc.).
[0043] Various embodiments of video / image coding are suggested herein, and unless otherwise stated, the above embodiments may also be performed in conjunction with each other.
[0044] In this document, at least one of quantization / dequantization and / or transform / inverse transform may be omitted. In the case where quantization / dequantization is omitted, the quantized transform coefficient may be referred to as a transform coefficient. In the case where transform / inverse transform is omitted, the transform coefficient may be referred to as a coefficient or a residual coefficient, or may still be referred to as a transform coefficient for the sake of uniformity of expression.
[0045] In this document, the quantized transform coefficient and the transform coefficient may be referred to as a transform coefficient and a scaled transform coefficient, respectively. In this case, the residual information may include information about the transform coefficient, and the information about the transform coefficient may be signaled by the residual coding syntax. The transform coefficient may be derived based on the residual information (or information about the transform coefficient), and the scaled transform coefficient may be derived by an inverse transform (scaling) of the transform coefficient. The residual sample may be derived based on an inverse transform (transform) of the scaled transform coefficient. For the rest of this document, this may be applied / expressed in the same manner.
[0046] In this article, video may refer to a series of images over time. A picture generally refers to a unit representing an image at a specific time frame, and a slice / tile refers to a unit that constitutes a part of a picture in terms of coding. A slice / tile may include one or more coding tree units (CTUs). A picture may consist of one or more slices / tiles. A picture may consist of one or more tile groups. A tile group may include one or more tiles. A brick may represent a rectangular area of a CTU row within a tile in a picture (a brick may represent a rectangular area of a CTU row within a tile in a picture). A tile may be partitioned into a plurality of tiles, each of which may be constructed using one or more CTU rows within a tile (a tile may be partitioned into a plurality of tiles, each of which is composed of one or more CTU rows within a tile). A tile that is not partitioned into a plurality of tiles may also be referred to as a tile. A tile scan may represent a specific sequential ordering of CTUs of a partitioned picture, where the CTUs may be ordered in a CTU raster scan within the tile, and the tiles within the tile may be ordered continuously in a raster scan of the tiles of the tile, and the tiles in the picture may be ordered continuously in a raster scan of the tiles of the picture (a tile scan is a specific sequential ordering of CTUs of a partitioned picture, where the CTUs are ordered continuously in a CTU raster scan within the tile, the tiles within the tile are ordered continuously in a raster scan of the tiles of the tile, and the tiles in the picture are ordered continuously in a raster scan of the tiles of the picture). A tile is a rectangular area of a CTU within a specific tile column and a specific tile column (a tile is a rectangular area of a CTU within a specific tile column and a specific tile row in a picture). A tile column is a rectangular area of a CTU having a height equal to the height of the picture and a width that may be specified by a syntax element in a picture parameter set (a tile column is a rectangular area of a CTU having a height equal to the height of the picture and a width specified by a syntax element in a picture parameter set). A tile row is a rectangular area of a CTU having a width specified by a syntax element in a picture parameter set and a height that may be equal to the height of the picture (a tile row is a rectangular area of a CTU having a height specified by a syntax element in a picture parameter set and a width that is equal to the width of the picture). A tile scan may represent a specific sequential ordering of the CTUs of a partitioned picture, and the CTUs may be ordered continuously in a CTU raster scan in a tile, and the tiles in a picture may be ordered continuously in a raster scan of the tiles of the picture (a tile scan is a specific sequential ordering of the CTUs of a partitioned picture, where the CTUs are ordered continuously in a CTU raster scan in a tile, and the tiles in a picture are ordered continuously in a raster scan of the tiles of the picture). A slice may include an integer number of tiles of a picture, and the integer number of tiles may be included in a single NAL unit (a slice may include an integer number of tiles of a picture that may be exclusively included in a single NAL unit).A slice may be constructed using multiple complete tiles, or may be a continuous sequence of complete tiles of a tile (a slice may consist of multiple complete tiles, or only of a continuous sequence of complete tiles of a tile). In this document, tile group and slice may be used instead of each other. For example, in this document, a tile group / tile group header may be referred to as a slice / slice header.
[0047] A pixel or a picture element may refer to the smallest unit constituting a picture (or image). In addition, a "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 luminance component or only a pixel / pixel value of a chrominance component.
[0048] A unit may represent a basic unit of image processing. A unit may include at least one of a specific area of a picture and information related to the area. A unit may include a luminance block and two chrominance (e.g., Cb, Cr) blocks. In some cases, a unit may be used interchangeably with terms such as a block or an area. In general, an M×N block may include a set (or array) of samples (or sample arrays) or transform coefficients of M columns and N rows.
[0049] In this document, the symbol " / " or "," should be interpreted as "and / or". For example, the expression "A / B" is interpreted as "A and / or B", and the expression "A, B" is interpreted as "A and / or B". In addition, the expression "A / B / C" means "at least one of A, B, and / or C". In addition, the expression "A, B, C" also means "at least one of A, B, and / or C" (In this document, the terms " / " and "," should be interpreted as indicating "and / or". For example, the expression "A / B" can mean "A and / or B". In addition, "A, B" can mean "A and / or B". In addition, "A / B / C" can mean "at least one of A, B, and / or C". In addition, "A / B / C" can mean "at least one of A, B, and / or C".)
[0050] Furthermore, in this document, the term "or" should be interpreted as "and / or". For example, the expression "A or B" may mean 1) only "A", 2) only "B", and / or 3) "both A and B". In other words, the term "or" in this document may mean "additional or alternative". (Furthermore, in this document, the term "or" should be interpreted as indicating "and / or". For example, the expression "A or B" may include 1) only A, 2) only B, and / or 3) both A and B. In other words, the term "or" in this document should be interpreted as indicating "additional or alternative".)
[0051] Figure 2is a diagram schematically showing a configuration of a video / image encoding device to which the present disclosure is applicable. Hereinafter, a device referred to as a video encoding device may include an image encoding device.
[0052] Reference Figure 2 , the encoding device 200 may include and be configured with an image partitioner 210, a predictor 220, a residual processor 230, an entropy encoder 240, an adder 250, a filter 260, and a memory 270. The predictor 220 may include an inter-frame predictor 221 and an intra-frame predictor 222. The residual processor 230 may include a transformer 232, a quantizer 233, a dequantizer 234, and an inverse transformer 235. The residual processor 230 may also include a subtractor 231. The adder 250 may be referred to as a reconstructor or a reconstructed block generator. According to an embodiment, the image partitioner 210, the predictor 220, the residual processor 230, the entropy encoder 240, the adder 250, and the filter 260 described above may be configured by one or more hardware components (e.g., an encoder chipset or processor). In addition, the memory 270 may include a decoded picture buffer (DPB) and may also be configured by a digital storage medium. The hardware component may also include a memory 270 as an internal / external component.
[0053] The image partitioner 210 may divide the input image (or picture, frame) input to the encoding device 200 into one or more processing units. As an example, the processing unit may be referred to as a coding unit (CU). In this case, the coding unit may be recursively divided from a coding tree unit (CTU) or a maximum coding unit (LCU) according to a quadtree binary tree ternary tree (QTBTTT) structure. For example, a coding unit may be divided into a plurality of coding units with a deeper depth based on a quadtree structure, a binary tree structure, and / or a ternary tree structure. In this case, for example, the quadtree structure is first applied, and the binary tree structure and / or the ternary tree structure may be applied later. Alternatively, the binary tree structure may also be applied first. The coding process according to the present disclosure may be performed based on the final coding unit that is no longer divided. In this case, based on the coding efficiency according to image characteristics, etc., the maximum coding unit may be directly used as the final coding unit, or, as required, the coding unit may be recursively divided into coding units with a deeper depth so that the coding unit with the best size may be used as the final coding unit. Here, the coding process may include processes such as prediction, transformation, and reconstruction described later. As another example, the processing unit may further include a prediction unit (PU) or a transform unit (TU). In this case, each of the prediction unit and the transform unit may be divided or split from the above-mentioned final coding unit. The prediction unit may be a sample prediction unit, and the transform unit may be a unit for inducing a transform coefficient and / or a unit for inducing a residual signal from a transform coefficient.
[0054] In some cases, the unit may be used interchangeably with terms such as a block or region. In general, an M×N block may represent a sample or a set of transform coefficients consisting of M columns and N rows. A sample may generally represent a pixel or a pixel value, and may also represent only a pixel / pixel value of a luminance component, and may also represent only a pixel / pixel value of a chrominance component. The sample may be used as a term corresponding to a pixel or a picture element configuring a picture (or image).
[0055] The encoding device 200 can generate a residual signal (residual block, residual sample array) by subtracting the prediction signal (prediction block, prediction sample array) output from the inter predictor 221 or the intra predictor 222 from the input image signal (original block, original sample array), and send the generated residual signal to the transformer 232. In this case, as shown, the component for subtracting the prediction signal (prediction block, prediction sample array) from the input image signal (original block, original sample array) in the encoder 200 can be referred to as a subtractor 231. The predictor can perform prediction on the block to be processed (hereinafter referred to as the current block) and generate a prediction block including the prediction sample of the current block. The predictor can determine whether to apply intra prediction or inter prediction in units of the current block or CU. The predictor can generate various information about the prediction, such as prediction mode information, to transmit the generated information to the entropy encoder 240, as described later in the description of each prediction mode. The information about the prediction can be encoded by the entropy encoder 240 and output in the form of a bit stream.
[0056] The intra-frame predictor 222 can predict the current block with reference to samples within the current picture. The reference sample can be placed adjacent to the current block, or it can be placed away from the current block according to the prediction mode. The prediction mode in the intra-frame prediction may include multiple non-directional modes and multiple directional modes. The non-directional mode may include, for example, a DC mode or a plane mode. Depending on the degree of refinement of the prediction direction, the directional mode may include, for example, 33 directional prediction modes or 65 directional prediction modes. However, this is illustrative, and more or less directional prediction modes than the above number may be used depending on the setting. The intra-frame predictor 222 can also use the prediction mode applied to the neighboring block to determine the prediction mode applied to the current block.
[0057] The inter-frame predictor 221 may induce a prediction block of 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 sent in the inter-frame prediction mode, the motion information may be predicted in units of blocks, sub-blocks, or samples based on the correlation of the motion information between the adjacent blocks and the current block. The motion information may include a motion vector and a reference picture index. The motion information may also include inter-frame prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter-frame prediction, the adjacent blocks may include spatial adjacent blocks present in the current picture and temporal adjacent blocks present in the reference picture. The reference picture including the reference block and the reference picture including the temporal adjacent block may also be the same as each other, and may also be different from each other. The temporal adjacent block may be referred to as a name such as a collocated reference block, a collocated CU (colCU), etc., and the reference picture including the temporal adjacent block may also be referred to as a collocated picture (colPic). For example, the inter-frame predictor 221 may configure a motion information candidate list based on the adjacent blocks, and generate information indicating what 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, for example, in the case of skip mode and merge mode, the inter predictor 221 may use motion information of a neighboring block as motion information of a current block. In the case of skip mode, unlike merge mode, a residual signal may not be transmitted. The motion vector prediction (MVP) mode may indicate a motion vector of a current block by using a motion vector of a neighboring block as a motion vector predictor and signaling a motion vector difference.
[0058] The predictor 220 can generate a prediction signal based on various prediction methods described later. For example, the predictor can not only apply intra prediction or inter prediction to predict a block, but also apply intra prediction and inter prediction at the same time. This can be called combined inter and intra prediction (CIIP). In addition, the predictor can be based on an intra-block copy (IBC) prediction mode or a palette mode to perform prediction on the block. The IBC prediction mode or the palette mode can be used for content image / video coding of games, such as screen content coding (SCC). IBC basically performs prediction in the current picture, but it can be performed similarly to inter prediction because it derives a reference block in the current picture. That is, IBC can use at least one of the inter prediction techniques described herein. The palette mode can be regarded as an example of intra coding or intra prediction. When the palette mode is applied, the sample values in the picture can be signaled based on information about the palette index and the palette table.
[0059] The prediction signal generated by the predictor (including the inter-frame predictor 221 and / or the intra-frame predictor 222) may be used to generate a reconstructed signal or to generate a residual signal.
[0060] The transformer 232 may generate a transform coefficient by applying a transform technique to a residual signal. For example, the transform technique may include at least one of a discrete cosine transform (DCT), a discrete sine transform (DST), a Calvin-Love transform (KLT), a graph-based transform (GBT), or a conditional nonlinear transform (CNT). Here, when the relationship information between pixels is shown as a curve graph, the GBT represents a transform obtained from the curve graph. The CNT represents a transform obtained based on a prediction signal generated by using all previously reconstructed pixels. In addition, the transform process may also be applied to square pixel blocks of the same size, and may also be applied to blocks that are not squares of variable size. The quantizer 233 may quantize the transform coefficients to send the quantized transform coefficients to the entropy encoder 240, and the entropy encoder 240 may encode the quantized signal (information about the quantized transform coefficients) into an encoded quantized signal to a bitstream. Information about the quantized transform coefficients may be referred to as residual information.
[0061] The quantizer 233 may rearrange the quantized transform coefficients having the block form in a one-dimensional vector form based on a coefficient scanning order, and also generate information about the quantized transform coefficients based on the quantized transform coefficients in the one-dimensional vector form.
[0062] The entropy encoder 240 may perform various encoding methods, such as, for example, exponential Golomb coding, context adaptive variable length coding (CAVLC), and context adaptive binary arithmetic coding (CABAC). The entropy encoder 240 may also encode information necessary for reconstructing video / images (e.g., values of syntax elements, etc.) together or separately in addition to quantized transform coefficients. The encoding information (e.g., encoded video / image information) may be transmitted or stored in a network abstraction layer (NAL) unit in the form of a bitstream. The video / image information may also include information about various parameter sets such as an adaptive 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 also include general constraint information. The information and / or syntax elements signaled / transmitted described later herein may be encoded by the aforementioned encoding process and thus included in the bitstream. The bitstream may be transmitted over a network or stored in a digital storage medium. Here, the network may include a broadcast network and / or a communication network, etc., and the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, and SSD. A transmitter (not shown) for transmitting a signal output from the entropy encoder 240 and / or a memory (not shown) for storing the signal may be configured as an internal / external element of the encoding device 200, or the transmitter may also be included in the entropy encoder 240.
[0063] The quantized transform coefficients output from the quantizer 233 can be used to generate a prediction signal. For example, the dequantizer 234 and the inverse transformer 235 apply dequantization and inverse transformation to the quantized transform coefficients so that the residual signal (residual block or residual sample) can be reconstructed. The adder 250 adds the reconstructed residual signal to the prediction signal output from the inter-frame predictor 221 or the intra-frame predictor 222, so that a reconstructed signal (reconstructed image, reconstructed block, reconstructed sample array) can be generated. As in the case of applying the skip mode, if there is no residual for the block to be processed, the prediction block can be used as a reconstructed block. The adder 250 can be referred to as a reconstructor or a reconstructed block generator. The generated reconstructed signal can be used for intra-frame prediction of the next block to be processed in the current picture, and as described later, it is also used for inter-frame prediction of the next picture through filtering.
[0064] Meanwhile, luminance mapping and chrominance scaling (LMCS) can also be applied in picture encoding and / or reconstruction processing.
[0065] The filter 260 can apply filtering to the reconstructed signal to improve the subjective / objective image quality. For example, the filter 260 can apply various filtering methods to the reconstructed picture to generate a modified reconstructed picture, and store the modified reconstructed picture in the memory 270, specifically, in the DPB of the memory 270. Various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, etc. The filter 260 can generate various filtering related information to transmit the generated information to the entropy encoder 240, as described later in the description of each filtering method. The information related to filtering can be encoded by the entropy encoder 240 and output in the form of a bit stream.
[0066] The modified reconstructed image transmitted to the memory 270 may be used as a reference picture in the inter predictor 221. If inter prediction is applied by the inter predictor, the encoding apparatus may avoid prediction mismatch between the encoding apparatus 200 and the decoding apparatus, and may also improve coding efficiency.
[0067] The DPB of the memory 270 may store the modified reconstructed picture for use as a reference picture in the inter-frame predictor 221. The memory 270 may store the motion information of the block in which the motion information in the current picture is derived (or encoded) and / or the motion information of the block in the previously reconstructed picture. The stored motion information may be transmitted to the inter-frame predictor 221 to be used as the motion information of the spatial neighboring block or the motion information of the temporal neighboring block. The memory 270 may store the reconstructed samples of the reconstructed blocks in the current picture and transmit the reconstructed samples to the intra-frame predictor 222.
[0068] Figure 3is a diagram for schematically explaining a configuration of a video / image decoding device to which the present disclosure is applicable.
[0069] Reference Figure 3 , the decoding device 300 may include an entropy decoder 310, a residual processor 320, a predictor 330, an adder 340, a filter 350, and a memory 360, and is configured with them. The predictor 330 may include an inter-frame predictor 331 and an intra-frame predictor 332. The residual processor 320 may include a dequantizer 321 and an inverse transformer 322. According to an embodiment, the entropy decoder 310, the residual processor 320, the predictor 330, the adder 340, and the filter 350 described above may be configured by one or more hardware components (e.g., a decoder chipset or a processor). In addition, the memory 360 may include a decoded picture buffer (DPB) and may be configured by a digital storage medium. The hardware component may also include a memory 360 as an internal / external component.
[0070] When a bit stream including video / image information is input, the decoding device 300 may respond to the Figure 2 The image is reconstructed by processing video / image information in the encoding device shown, for example, the decoding device 300 can derive the unit / block based on the block partition related information obtained from the bit stream. The decoding device 300 can perform decoding using a processing unit applied to the encoding device. Therefore, the processing unit for decoding can be, for example, a coding unit, and the coding unit can be divided from a coding tree unit or a maximum coding unit according to a quadtree structure, a binary tree structure, and / or a ternary tree structure. One or more transform units can be derived from the coding unit. In addition, the reconstructed image signal decoded and output by the decoding device 300 can be reproduced by a reproduction device.
[0071] The decoding device 300 may receive the bit stream from Figure 2, and the received signal can be decoded by the entropy decoder 310. For example, the entropy decoder 310 can derive the information (e.g., video / image information) required for image reconstruction (or picture reconstruction) by parsing the bitstream. The video / image information may also include information about various parameter sets, such as adaptive parameter sets (APS), picture parameter sets (PPS), sequence parameter sets (SPS), or video parameter sets (VPS). In addition, the video / image information may also include general constraint information. The decoding device may also decode the picture based on information about parameter sets and / or general constraint information. The information and / or syntax elements that will be described later in this article and are signaled / received may be decoded and obtained from the bitstream through a decoding process. For example, the entropy decoder 310 may decode the information within 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 reconstruction and the quantized values of residual-related transform coefficients. More specifically, the CABAC entropy decoding method can receive a bin corresponding to each syntax element from a bitstream, use the syntax element information to be decoded, the decoded information of the adjacent block or the block to be decoded, or the information of the symbol / bin decoded in the previous stage to determine the context model, and generate a symbol corresponding to the value of each syntax element by predicting the probability of generating the bin according to the determined context model to perform arithmetic decoding on the bin. At this time, the CABAC entropy decoding method can determine the context model and then update the context model using the information of the decoded symbol / bin of the context model for the next symbol / bin. The information about the prediction among the information decoded by the entropy decoder 310 can be provided to the predictor (inter-frame predictor 332 and intra-frame predictor 331), and the residual value (i.e., quantized transform coefficients and related parameter information) entropy decoded by the entropy decoder 310 can be input to the residual processor 320.
[0072] The residual processor 320 may derive a residual signal (residual block, residual sample, and residual sample array). In addition, information about filtering among the information decoded by the entropy decoder 310 may be provided to the filter 350. Meanwhile, a receiver (not shown) for receiving a signal output from the encoding device may be further configured as an internal / external element of the decoding device 300, or the receiver may also be a component of the entropy decoder 310. Meanwhile, the decoding device according to the present invention may be referred to as a video / image / picture decoding device, and the decoding device may also be classified into an information decoder (video / image / picture information decoder) and a sample decoder (video / image / picture sample decoder). The information decoder may include an entropy decoder 310, and the sample decoder may include at least one of a dequantizer 321, an inverse transformer 322, an adder 340, a filter 350, a memory 360, an inter-frame predictor 332, and an intra-frame predictor 331.
[0073] The dequantizer 321 may dequantize the quantized transform coefficients to output the transform coefficients. The dequantizer 321 may rearrange the quantized transform coefficients in the form of two-dimensional blocks. In this case, the rearrangement may be performed based on the coefficient scanning order performed by the encoding device. The dequantizer 321 may dequantize the quantized transform coefficients using a quantization parameter (e.g., quantization step size information) and obtain the transform coefficients.
[0074] The inverse transformer 322 inversely transforms the transform coefficients to obtain a residual signal (residual block, residual sample array).
[0075] The predictor 330 may perform prediction of the current block and generate a prediction block including prediction samples of the current block. The predictor may determine whether to apply intra prediction or inter prediction to the current block based on the information on prediction output from the entropy decoder 310 and determine a specific intra / inter prediction mode.
[0076] The predictor can generate a prediction signal based on various prediction methods described later. For example, the predictor can not only apply intra prediction or inter prediction to the prediction of a block, but also apply intra prediction and inter prediction at the same time. This can be called combined inter and intra prediction (CIIP). In addition, the predictor can be based on an intra block copy (IBC) prediction mode or a palette mode to perform prediction on the block. The IBC prediction mode or the palette mode can be used for content image / video coding of games, such as screen content coding (SCC). IBC basically performs prediction in the current picture, but it can be performed similarly to inter prediction because it derives a reference block in the current picture. That is, IBC can use at least one of the inter prediction techniques described in this article. The palette mode can be regarded as an example of intra coding or intra prediction. When the palette mode is applied, information about the palette table and the palette index can be included in the video / image information and notified with a signal.
[0077] The intra predictor 331 may predict the current block with reference to samples within the current picture. The reference samples may be placed adjacent to the current block or may be placed away from the current block according to the prediction mode. The prediction modes in the intra prediction may include multiple non-directional modes and multiple directional modes. The intra predictor 331 may also use the prediction modes applied to the neighboring blocks to determine the prediction mode applied to the current block.
[0078] The inter-frame predictor 332 can induce a prediction block of 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 sent in the inter-frame 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 adjacent blocks and the current block. The motion information may include a motion vector and a reference picture index. The motion information may also include inter-frame prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter-frame prediction, the adjacent blocks may include spatial adjacent blocks present in the current picture and temporal adjacent blocks present in the reference picture. For example, the inter-frame predictor 332 may configure a motion information candidate list based on adjacent blocks, and derive a motion vector and / or reference picture index of the current block based on the received candidate selection information. Inter-frame prediction may be performed based on various prediction modes, and information about the prediction may include information indicating a mode of inter-frame prediction of the current block.
[0079] The adder 340 may add the obtained residual signal to the prediction signal (prediction block, prediction sample array) output from the predictor (including the inter-frame predictor 332 and / or the intra-frame predictor 331) to generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array). As in the case where the skip mode is applied, if there is no residual for the block to be processed, the prediction block may be used as the reconstructed block.
[0080] The adder 340 may be referred to as a reconstructor or a reconstructed block generator. The generated reconstructed signal may be used for intra prediction of the next block to be processed in the current picture, and as described later, may also be output through filtering, or may also be used for inter prediction of the next picture.
[0081] At the same time, luminance mapping and chrominance scaling (LMCS) can also be applied to the picture decoding process.
[0082] The filter 350 may apply filtering to the reconstructed signal to improve the subjective / objective image quality. For example, the filter 350 may apply various filtering methods to the reconstructed picture to generate a modified reconstructed picture, and send the modified reconstructed picture to the memory 360 (specifically, the DPB of the memory 360). Various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, bidirectional filter, etc.
[0083] The (modified) reconstructed image stored in the DPB of the memory 360 can be used as a reference picture in the inter-frame predictor 332. The memory 360 can store the motion information of the block in which the motion information in the current picture is derived (decoded) and / or the motion information of the block in the previously reconstructed picture. The stored motion information can be transmitted to the inter-frame predictor 260 to be used as the motion information of the spatial neighboring block or the motion information of the temporal neighboring block. The memory 360 can store the reconstructed samples of the reconstructed blocks in the current picture and transmit the stored reconstructed samples to the intra-frame predictor 331.
[0084] In the present specification, the exemplary embodiments described in the filter 260, the inter-frame predictor 221, and the intra-frame predictor 222 of the encoding device 200 may be equally applied to or correspond to the filter 350, the inter-frame predictor 332, and the intra-frame predictor 331 of the decoding device 300, respectively.
[0085] The video / image encoding method according to the present disclosure can be performed based on the following partition structure. Specifically, the prediction, residual processing ((inverse) transform and (de)quantization), syntax element coding and filtering processes described later can be performed based on CTU and CU (and / or TU and PU) derived based on the partition structure. The block partition process can be performed by the image partitioner 210 of the above-mentioned encoding device, and the partition related information can be processed by the entropy encoder 240 (encoding) and can be transmitted to the decoding device in the form of a bitstream. The entropy decoder 310 of the decoding device can derive the block partition structure of the current picture based on the partition related information obtained from the bitstream, and based on this, a series of processes for image decoding (e.g., prediction, residual processing, block / picture reconstruction, in-loop filtering, etc.) can be performed. The CU size and the TU size can be equal to each other, or multiple TUs can exist in the CU area. At the same time, the CU size can generally represent the luminance component (sample) coding block (CB) size. The TU size can generally represent the luminance component (sample) transform block (TB) size. The chroma component (sample) CB or TB size can be derived based on the luminance component (sample) CB or TB size according to the component ratio according to the color format (chroma format, for example, 4:4:4, 4:2:2, 4:2:0, etc.) of the picture / image. The TU size can be derived based on maxTbSize. For example, if the CU size is larger than maxTbSize, multiple TUs (TBs) of maxTbSize can be derived from the CU, and transform / inverse transform can be performed in units of TU (TB). In addition, for example, in the case of applying intra-frame prediction, the intra-frame prediction mode / type can be derived in units of CU (or CB), and the adjacent reference sample derivation and prediction sample generation process can be performed in units of TU (or TB). In this case, one or more TUs (or TBs) may exist in one CU (or CB) area, and in this case, multiple TUs (or TBs) may share the same intra-frame prediction mode / type.
[0086] In addition, in the video / image coding according to the present disclosure, the image processing unit may also have a hierarchical structure. A picture may be partitioned into one or more tiles, mosaics, slices and / or tile groups. A slice may include one or more mosaics. A mosaic may include one or more CTU rows within a tile. A slice may include an integer number of mosaics of a picture. A tile group may include one or more tiles. A tile may include one or more CTUs. A CTU may be partitioned into one or more CUs. A tile represents a rectangular area of a CTU within a specific tile column and a specific tile row in a picture. According to the raster scan of the tiles in the picture, a tile group may include an integer number of tiles. A slice header may carry information / parameters that may be applied to a corresponding slice (a block in a slice). In the case where the encoding / decoding device has a multi-core processor, encoding / decoding processing for tiles, slices, mosaics and / or tile groups may be processed in parallel. In this article, slices or tile groups may be used interchangeably. That is, a tile group header may be referred to as a slice header. Here, the slice may have one of slice types including intra (I) slices, prediction (P) slices, and bi-prediction (B) slices. When predicting a block in an I slice, inter prediction may not be used, and only intra prediction may be used. Of course, even in this case, signaling may be performed by coding the original sample values without prediction. With respect to blocks in a P slice, intra prediction or inter prediction may be used, and in the case of using inter prediction, only uni-prediction may be used. Meanwhile, with respect to blocks in a B slice, intra prediction or inter prediction may be used, and in the case of using inter prediction, up to bi-prediction may be used to the maximum extent.
[0087] The encoder may determine tile / tile groups, slices, and maximum and minimum coding unit sizes in consideration of coding efficiency or parallel processing according to characteristics of a video image (eg, resolution), and information for them or information capable of inducing them may be included in a bitstream.
[0088] The decoder can obtain information indicating whether the tile / tile group, patch and slice of the current picture and the CTU in the tile have been partitioned into multiple coding units. By making such information obtained (sent) only under certain conditions, efficiency can be enhanced.
[0089] The slice header (slice header syntax) may include information / parameters that can be commonly applied to slices. APS (APS syntax) or PPS (PPS syntax) may include information / parameters that can be commonly applied to one or more pictures. SPS (SPS syntax) may include information / parameters that can be commonly applied to one or more sequences. VPS (VPS syntax) may include information / parameters that can be commonly applied to multiple layers. DPS (DPS syntax) may include information / parameters that can be commonly applied to the entire video. DPS may include information / parameters related to the concatenation of a coded video sequence (CVS).
[0090] Herein, the higher-level syntax may include at least one of APS syntax, PPS syntax, SPS syntax, VPS syntax, DPS syntax, and slice header syntax.
[0091] In addition, for example, information on the partitioning and configuration of tiles / tile groups / tiles / slices may be configured by the encoding end through a higher level syntax and can be transmitted to the decoding device in the form of a bitstream.
[0092] At the same time, as described above, when performing video coding, prediction is performed to improve compression efficiency. Thus, a prediction block including prediction samples for a current block as a block to be coded (ie, a coding target block) can be generated. Here, the prediction block includes prediction samples in a spatial domain (or a pixel domain). The prediction block is derived in the same manner in the encoding device and the decoding device, and the encoding device can signal the information about the residual between the original block and the prediction block (residual information) instead of the original sample value of the original block to the decoding device, thereby improving the image coding efficiency. The decoding device can derive a residual block including residual samples based on the residual information, add the residual block and the prediction block to generate a reconstructed block including reconstructed samples, and generate a reconstructed picture including the reconstructed block.
[0093] The residual information may be generated by a transformation and quantization process. For example, the encoding device may derive a residual block between the original block and the prediction block, perform a transformation process on the residual samples (residual sample array) included in the residual block to derive a transformation coefficient, perform a quantization process on the transformation coefficient to derive a quantized transformation coefficient, and notify the decoding device of the relevant residual information (through a bitstream) with a signal. Here, the residual information may include value information, position information, transformation technology, transformation kernel, quantization parameter, etc. of the quantized transformation coefficient. The decoding device may perform a dequantization / inverse transformation process based on the residual information and derive residual samples (or residual blocks). The decoding device may generate a reconstructed image based on the prediction block and the residual block. In addition, for reference to the inter-frame prediction of subsequent pictures, the encoding device may also dequantize / inverse transform the quantized transformation coefficient to derive a residual block, and generate a reconstructed picture based on the residual block.
[0094] In the case where inter-frame prediction is applied to the current block, the predictor of the encoding device / decoding device can derive prediction samples by performing inter-frame prediction in units of blocks. Inter-frame prediction can be a prediction derived in a manner that depends on data elements (e.g., sample values or motion information) of pictures other than the current picture. In the case where inter-frame prediction is applied to the current block, a prediction block (prediction sample array) for the current block can be derived based on a reference block (reference sample array) specified by a motion vector on a reference picture indicated by a reference picture index. In this case, in order to reduce the amount of motion information sent in the inter-frame prediction mode, the motion information of the current block can be predicted in units of blocks, sub-blocks, or samples based on the correlation of motion information between adjacent blocks and the current block. The motion information may include a motion vector and a reference picture index. The motion information may also include inter-frame prediction type (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of applying inter-frame prediction, the adjacent blocks may include spatial adjacent blocks present in the current picture and temporal adjacent blocks present in the reference picture. The reference picture including the reference block and the reference picture including the temporal adjacent block may be equal to or different from each other. A temporally neighboring block may be referred to as a collocated reference block or collocated CU (colCU), and a reference picture including a temporally neighboring block may be referred to as a collocated picture (colPic). For example, a motion information candidate list may be configured based on the neighboring blocks of the current block, and a flag or index information indicating which candidate is selected (used) to derive the motion vector and / or reference picture index of the current block may be signaled. Inter-frame prediction may be performed based on various prediction modes, and for example, in the case of skip mode and (normal) merge mode, the motion information of the current block may be equal to the motion information of the selected neighboring block. In the case of skip mode, unlike merge mode, a residual signal may not be sent. 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 the 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.
[0095] The video / image encoding process based on inter-frame prediction may schematically include, for example, the following process.
[0096] Figure 4 An example of a video / image encoding method based on inter-frame prediction is shown.
[0097] The encoding device performs inter prediction on the current block (S400). The encoding device may derive an inter prediction mode and motion information for the current block, and may generate a prediction sample of the current block. Here, the processes of inter prediction mode determination, motion information derivation, and prediction sample generation may be performed simultaneously, or any one process may be performed before the other processes. For example, the inter predictor of the encoding device may include a prediction mode determination unit, a motion information derivation unit, and a prediction sample derivation unit. The prediction mode determination unit may determine a prediction mode for the current block, the motion information derivation unit may derive motion information of the current block, and the prediction sample derivation unit may derive a prediction sample of the current block. For example, the inter predictor of the encoding device may search for a block similar to the current block in a specific area (search area) of a reference picture through motion estimation, and may derive a reference block having a difference with the current block, the difference being the smallest or equal to or less than a predetermined reference. Based on this, the inter predictor of the encoding device may derive a reference picture index indicating where the reference block is placed, and may derive a motion vector based on the position difference between the reference block and the current block. The encoding device may determine a mode being applied to the current block among various prediction modes. The encoding device may compare rate-distortion (RD) costs for various prediction modes and may determine an optimal prediction mode for the current block.
[0098] For example, in the case where the skip mode or merge mode is applied to the current block, the encoding device may configure a merge candidate list described later, and may derive a reference block having a difference with the current block among the reference blocks indicated by the merge candidates included in the merge candidate list, the difference being the smallest or equal to or less than a predetermined reference. In this case, a merge candidate related to the derived reference block may be selected, and merge index information indicating the selected merge candidate may be generated and signaled to the decoding device. The motion information of the current block may be derived using the motion information of the selected merge candidate.
[0099] As another example, in the case where the (A) MVP mode is applied to the current block, the encoding device may configure the (A) MVP candidate list described later, and may use the motion vector of the MVP candidate selected from among the motion vector predictor (MVP) candidates included in the (A) MVP candidate list as the MVP of the current block. In this case, for example, the motion vector indicating the reference block derived by the above-mentioned motion estimation may be used as the motion vector of the current block, and the MVP candidate having the 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) may be derived, which is the difference obtained by subtracting the MVP from the motion vector of the current block. In this case, information about the MVD may be notified to the decoding device by a signal. In addition, in the case where the (A) MVP mode is applied, the reference picture index value may be configured as reference picture index information, and may be separately notified to the decoding device by a signal.
[0100] The encoding apparatus may induce residual samples based on the prediction samples (S410). The encoding apparatus may induce residual samples by comparing original samples of the current block with the prediction samples.
[0101] The encoding device encodes the image information including prediction information and residual information (S420). The encoding device can output the encoded image information in the form of a bitstream. The prediction information may be information related to the prediction process, and may include information about prediction mode information (e.g., a skip flag, a merge flag, or a mode index) and motion information. The information about the motion information may include candidate selection information (e.g., a merge index, an mvp flag, or an mvp index), which is information for deriving a motion vector. In addition, the information about the motion information may include information about the above-mentioned 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 dual prediction is applied. The residual information is information related to the residual sample. The residual information may include information about the quantized transform coefficients used for the residual sample.
[0102] The output bitstream may be stored in a (digital) storage medium to be transmitted to a decoding device or may be transmitted to a decoding device over a network.
[0103] At the same time, as described above, the encoding device can generate a reconstructed picture (including a reconstructed sample and a reconstructed block) based on the reference sample and the residual sample. This is to enable the encoding device to derive the same prediction result as the prediction result performed by the decoding device, and by doing so, the coding efficiency can be enhanced. Therefore, the encoding device can store the reconstructed picture (or reconstructed sample or reconstructed block) in a memory, and the stored reconstructed picture can be used as a reference picture for inter-frame prediction. As described above, the in-loop filtering process can be further applied to the reconstructed image.
[0104] The video / image decoding process based on inter-frame prediction may schematically include, for example, the following process.
[0105] Figure 5 An example of a video / image decoding method based on inter-frame prediction is shown.
[0106] Reference Figure 5 The decoding device may perform an operation corresponding to the operation performed by the encoding device. The decoding device may perform prediction on the current block based on the received prediction information and may derive a prediction sample.
[0107] Specifically, the decoding device may determine a prediction mode for the current block based on the received prediction information (S500). The decoding device may determine which inter prediction mode to apply to the current block based on prediction mode information in the prediction information.
[0108] For example, the decoding device may determine whether to apply the merge mode or the (A) MVP mode is determined for the current block based on the merge flag. In addition, the decoding device may select one of various inter-frame prediction mode candidates based on the mode index. The inter-frame prediction mode candidate may include a skip mode, a merge mode, and / or an (A) MVP mode, or may include various inter-frame prediction modes described later.
[0109] The decoding device derives motion information of the current block based on the determined inter prediction mode (S510). For example, in the case where the skip mode or merge mode is applied to the current block, the decoding device may configure a merge candidate list described later, and may select one of the merge candidates included in the merge candidate list. Such selection may be performed based on the above-mentioned selection information (merge index). The motion information of the current block may be derived using the motion information of the selected merge candidate. The motion information of the selected merge candidate may be used as the motion information of the current block.
[0110] As another example, in the case where the (A)MVP mode is applied to the current block, the decoding device may configure the (A)MVP candidate list described later, and may use the motion vector of the motion vector predictor (MVP) candidate selected from among the motion vector predictor (MVP) candidates included in the (A)MVP candidate list as the MVP of the current block. This selection may be performed based on the above-mentioned selection information (MVP flag or MVP index). 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 and MVD of the current block. In addition, the reference picture index of the current block may be derived based on the reference picture index information. The picture indicated by the reference picture index in the reference picture list for the current block may be derived as a reference picture, which is referenced for inter-frame prediction of the current block.
[0111] At the same time, as described later, the motion information of the current block can be derived without configuring the candidate list, and in this case, the motion information of the current block can be derived according to the process disclosed in the prediction mode described later. In this case, the above-mentioned candidate list configuration can be omitted.
[0112] The decoding device may generate a prediction sample for the current block based on the motion information of the current block (S520). In this case, a reference picture may be derived based on a reference picture index of the current block, and a sample of the reference block indicated by a motion vector of the current block on the reference picture may be used to derive the prediction sample of the current block. In this case, as described later, in some cases, a prediction sample filtering process may be further performed for all or part of the prediction samples of the current block.
[0113] For example, the inter-frame predictor of the decoding device may include a prediction mode determination unit, a motion information derivation unit, and a prediction sample derivation unit. The prediction mode determination unit may determine a prediction mode for a current block based on the received prediction mode information, the motion information derivation unit may derive motion information (motion vector and / or reference picture index) of the current block based on information about the received motion information, and the prediction sample derivation unit may derive a prediction sample of the current block.
[0114] The decoding device generates residual samples for the current block based on the received residual information (S530). The decoding device can generate reconstructed samples for the current block based on the predicted samples and the residual samples, and based on this, a reconstructed picture can be generated (S540). Thereafter, as described above, an in-loop filtering process can be further applied to the reconstructed picture.
[0115] As described above, the inter-frame prediction process may include inter-frame prediction mode determination, motion information derivation according to the determined prediction mode, and prediction execution (prediction sample generation) based on the derived motion information. As described above, the inter-frame prediction process may be performed by an encoding device and a decoding device. In this article, the coding device may include an encoding device and / or a decoding device.
[0116] For the prediction of the current block in the picture, various inter prediction modes can be used. For example, various modes such as merge mode, skip mode, motion vector prediction (MVP) mode, affine mode, sub-block merge mode, merge with MVD (MMVD) mode and historical motion vector prediction (HMVP) mode can be used. Decoder side motion vector refinement (DMVR) mode, adaptive motion vector resolution (AMVR) mode, dual prediction with CU level weights (BCW) and bidirectional optical flow (BDOF) can be further used or used as ancillary modes instead. Affine mode can be referred to as affine motion prediction mode. MVP mode can be referred to as advanced motion vector prediction (AMVP) mode. In this article, the motion information candidate and / or specific mode derived by the specific mode can be included as one of the motion information related candidates of another mode. For example, the HMVP candidate can be added as a merge candidate for the merge / skip mode, or can be added as an MVP candidate for the MVP mode.
[0117] Prediction mode information indicating the inter prediction mode of the current block may be signaled from the encoding device to the decoding device. The prediction mode information may be included in a bitstream and may be received in the decoding device. The prediction mode information may include index information indicating one of a plurality of candidate modes. In addition, the inter prediction mode may be indicated by hierarchical signaling of flag information. In this case, the prediction mode information may include one or more flags. For example, whether the skip mode is applied may be indicated by signaling a skip flag, and in the case where the skip mode is not applied, whether the merge mode is applied may be indicated by signaling a merge flag, and in the case where the merge mode is not applied, the application of the MVP mode may be indicated, or a flag for additional partitioning may be further signaled. The affine mode may be signaled as an independent mode, or may be signaled as a mode related to the merge mode or the MVP mode. For example, the affine mode may include an affine merge mode and an affine MVP mode.
[0118] At the same time, information indicating whether the above-mentioned list 0 (L0) prediction, list 1 (L1) prediction or dual prediction is used for the current block (current coding unit) may be signaled. This information may be referred to as motion prediction direction information, inter-frame prediction direction information or inter-frame prediction indication information, and may be configured / encoded / signaled in the form of, for example, an inter_pred_idc syntax element. That is, the inter_pred_idc syntax element may indicate whether the above-mentioned list 0 (L0) prediction, list 1 (L1) prediction or dual prediction is used for the current block (current coding unit). In this document, for ease of explanation, the inter-frame prediction type (L0 prediction, L1 prediction or BI prediction) indicated by the inter_pred_idc syntax element may be displayed as a motion prediction direction. L0 prediction, L1 prediction and dual prediction may be represented as pred_L0, pred_L1 and pred_BI, respectively. For example, the following prediction types may be represented according to the inter_pred_idc syntax element value.
[0119] As described above, a picture may include one or more slices. A slice may have one of slice types including an intra (I) slice, a predictive (P) slice, and a bi-predictive (B) slice. The slice type may be indicated based on slice type information. When predicting a block in an I slice, inter prediction may not be used, but only intra prediction may be used. Of course, even in this case, signaling may be performed by coding the original sample values without prediction. For blocks in a P slice, intra prediction or inter prediction may be used, and in the case of using inter prediction, only single prediction may be used. At the same time, for blocks in a B slice, intra prediction or inter prediction may be used, and in the case of using inter prediction, up to bi prediction may be used to the maximum extent.
[0120] L0 and L1 may include reference pictures encoded / decoded before the current picture. For example, L0 may include reference pictures before and / or after the current picture in POC order, and L1 may include reference pictures after and / or before the current picture in POC order. In this case, for L0, a relatively low reference picture index may be assigned to a reference picture before the current picture in POC order, and for L1, a relatively low reference picture index may be assigned to a reference picture after the current picture in POC order. In the case of a B slice, bi-prediction may be applied, and even in this case, unidirectional bi-prediction may be applied, or bi-directional bi-prediction may be applied. Bi-directional bi-prediction may be referred to as true bi-prediction.
[0121] Specifically, for example, information about the inter prediction mode for the current block may be encoded at the CU (CU syntax) level and signaled, or may be implicitly determined according to conditions. In this case, the information may be explicitly signaled with respect to some modes and may be implicitly derived with respect to the remaining modes.
[0122] For example, the CU syntax may carry information about the (inter) prediction mode as in Table 1 below.
[0123] [Table 1]
[0124]
[0125]
[0126]
[0127]
[0128]
[0129] Here, cu_skip_flag may indicate whether skip mode is applied to the current block (CU).
[0130] pred_mode_flag equal to 0 specifies that the current coding unit is coded in inter prediction mode. pred_mode_flag equal to 1 specifies that the current coding unit is coded in intra prediction mode.
[0131] pred_mode_ibc_flag equal to 1 specifies that the current coding unit is coded in IBC prediction mode. pred_mode_ibc_flag equal to 0 specifies that the current coding unit is not coded in IBC prediction mode.
[0132] pcm_flag[x0][y0] equal to 1 specifies that a pcm_sample() syntax structure is present in the coding unit including the luma coding block at position (x0, y0), and that a transform_tree() syntax structure is not present. pcm_flag[x0][y0] equal to 0 specifies that a pcm_sample() syntax structure is not present. That is, pcm_flag may indicate whether a pulse coded modulation (PCM) mode is applied to the current block. If a PCM mode is applied to the current block, prediction, transform, and quantization may not be applied, and the original sample values in the current block may be encoded and signaled.
[0133] intra_mip_flag[x0][y0] equal to 1 specifies that the intra prediction type for luma samples is matrix-based intra prediction (MIP). intra_mip_flag[x0][y0] equal to 0 specifies that the intra prediction type for luma samples is not matrix-based intra prediction. That is, intra_mip_flag can indicate whether the MIP prediction mode (type) is applied to the current block (the luma samples of the current block).
[0134] intra_chroma_pred_mode[x0][y0] specifies the intra prediction mode for chroma samples in the current block.
[0135] general_merge_flag[x0][y0] specifies whether to infer inter prediction parameters for the current coding unit from adjacent inter prediction partitions. That is, general_merge_flag may indicate that regular merging is enabled, and when the general_merge_flag value is 1, regular merge mode, mmvd mode, and merge sub-block mode (sub-block merge mode) are enabled. For example, when the general_merge_flag value is 1, merge data syntax may be parsed from coded video / image information (or bitstream), and the merge data syntax may be configured / compiled to include information as shown in Table 2 below.
[0136] [Table 2]
[0137]
[0138]
[0139] Here, regular_merge_flag[x0][y0] equal to 1 specifies that the regular merge mode is used to generate the inter prediction parameters of the current coding unit. That is, regular_merge_flag indicates whether the merge mode (regular merge mode) is applied to the current block.
[0140] mmvd_merge_flag[x0][y0] equal to 1 specifies that the merge mode with motion vector difference is used to generate the inter prediction parameters of the current coding unit. That is, mmvd_merge_flag indicates whether MMVD is applied to the current block.
[0141] mmvd_cand_flag[x0][y0] specifies whether the first (0) or second (1) candidate in the merge candidate list is used with the motion vector difference derived from mmvd_distance_idx[x0][y0] and mmvd_direction_idx[x0][y0].
[0142] mmvd_distance_idx[x0][y0] specifies the index used to derive MmvdDistance[x0][y0].
[0143] mmvd_direction_idx[x0][y0] specifies the index used to derive MmvdSign[x0][y0].
[0144] merge_sub_flag[x0][y0] specifies whether sub-block based inter prediction parameters are used for current coding. That is, merge_sub_flag may indicate whether sub-block merge mode (or affine merge mode) is applied to the current block.
[0145] merge_subblock_idx[x0][y0] specifies a merge candidate index of a sub-block based merge candidate list.
[0146] ciip_flag[x0][y0] specifies whether combined inter-image merging and intra-image prediction is applied to the current coding unit.
[0147] merge_triangle_idx0[x0][y0] specifies the first merge candidate index of the triangle shape based motion compensation candidate list.
[0148] merge_triangle_idx1[x0][y0] specifies the second merge candidate index of the triangle shape based motion compensation candidate list.
[0149] merge_idx[x0][y0] specifies the merge candidate index of the merge candidate list.
[0150] Meanwhile, referring again to the CU syntax of Table 1, mvp_l0_flag[x0][y0] specifies the motion vector prediction index of list 0, that is, when the MVP mode is applied, mvp_l0_flag may indicate that a candidate is selected for MVP derivation of the current block in the MVP candidate list.
[0151] ref_idx_L1[x0][y0] has the same semantics as ref_idx_L0, where l0, L0 and list0 are replaced by l1, L1 and list1 respectively.
[0152] inter_pred_idc[x0][y0] specifies whether list 0, list 1, or bi-prediction is used for the current coding unit.
[0153] sym_mvd_flag[x0][y0] equal to 1 specifies that the syntax elements ref_idx_l0[x0][y0] and ref_idx_l1[x0][y0] and the mvd_coding(x0, y0, refList, cpIdx) syntax structure for refList equal to 1 are not present. In other words, sym_mvd_flag indicates whether symmetric MVD is used for mvd coding.
[0154] ref_idx_l0[x0][y0] specifies the list 0 reference picture index for the current coding unit.
[0155] ref_idx_l1[x0][y0] has the same semantics as ref_idx_l0, where l0, L0, and list0 are replaced by l1, L1, and list1, respectively.
[0156] inter_affif_flag[x0][y0] equal to 1 specifies that, for the current coding unit, when decoding a P or B slice, affine model-based motion compensation is used to generate prediction samples for the current coding unit.
[0157] cu_affif_type_flag[x0][y0] equal to 1 specifies that, for the current coding unit, when decoding a P or B slice, motion compensation based on a 6-parameter affine model is used to generate prediction samples for the current coding unit. cu_affif_type_flag[x0][y0] equal to 0 specifies that motion compensation based on a 4-parameter affine model is used to generate prediction samples for the current coding unit.
[0158] amvr_flag[x0][y0] specifies the resolution of the motion vector difference. The array indices x0, y0 specify the position (x0, y0) of the top-left luma sample of the coding block under consideration relative to the top-left luma sample of the picture. amvr_flag[x0][y0] equal to 0 specifies that the resolution of the motion vector difference is 1 / 4 of the luma sample. amvr_flag[x0][y0] equal to 1 specifies that the resolution of the motion vector difference is further specified by amvr_precision_flag[x0][y0].
[0159] If inter_affice_flag[x0][y0] is equal to 0, then amvr_precision_flag[x0][y0] is equal to 0 to specify that the resolution of motion vector differences is one integer luma sample, otherwise it is 1 / 16 luma samples. If inter_affice_flag[x0][y0] is equal to 0, then amvr_precision_flag[x0][y0] is equal to 1 to specify that the resolution of motion vector differences is four luma samples, otherwise it is one integer luma sample. The array indices x0, y0 specify the position (x0, y0) of the top-left luma sample of the coding block under consideration relative to the top-left luma sample of the picture.
[0160] bcw_idx[x0][y0] specifies the weight index of bi-prediction with CU weight.
[0161] The encoding device can perform inter-frame prediction using the motion information of the current block. The encoding device can derive the best motion information for the current block through a motion estimation process. For example, the encoding device can use the original block in the original image for the current block to search for a similar reference block with high correlation in units of fractional pixels within a search range determined in a reference picture, and through this, the encoding device can derive motion information. Block similarity can be derived based on the difference between phase-based sample values. For example, block similarity 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 minimum SAD in the search area. The derived motion information can be signaled to the decoding device according to several methods based on the inter-frame prediction mode.
[0162] The decoding device may derive a prediction sample for the current block based on the motion information. The current block including the prediction sample may be referred to as a prediction block.
[0163] The prediction block may include prediction samples (prediction sample array) of the current block. In the case where the motion vector of the current block indicates a fractional sample unit, an interpolation process may be performed, and through this, the prediction samples of the current block may be derived based on the reference samples in the fractional sample unit in the reference picture. In the case where affine inter prediction is applied to the current block, the coding device is capable of generating prediction samples based on the motion vector (MV) in units of samples / subblocks. In the case where bi-prediction is applied, the prediction samples derived by the weighted sum or weighted average (according to the phase) of the prediction samples derived based on the L0 prediction (i.e., prediction using the reference pictures in the reference picture list L0 and MVL0) and the prediction samples derived based on the L1 prediction (i.e., prediction using the reference pictures in the reference picture list L1 and MVL1) may be used as the prediction samples of the current block. If the reference picture used for L0 prediction and the reference picture used for L1 prediction are located in different time directions based on the current picture when bi-prediction is applied (i.e., in the case corresponding to bi-prediction and bidirectional prediction), they may be referred to as true bi-prediction.
[0164] Reconstructed samples and reconstructed pictures may be generated based on the derived prediction samples, and thereafter, processes such as in-loop filtering may be performed.
[0165] Figure 6 and Figure 7 is a diagram explaining spatial candidates that can be used for inter prediction.
[0166] In the case where the merge mode is applied during inter-frame prediction, the motion information of the current block is not directly transmitted, and the motion information of the adjacent prediction block is used to derive the motion information of the current block. Therefore, the encoding device can indicate the motion information of the current block by transmitting flag information indicating the use of the merge mode and a merge index indicating which adjacent prediction block is used. This merge mode may be referred to as a normal merge mode.
[0167] The encoding device searches for a merge candidate block for inducing motion information of the current block in order to perform a merge mode. For example, up to 5 merge candidate blocks can be used, but in the present embodiment, the number of merge candidate blocks is not limited thereto. In addition, information about the maximum number of merge candidate blocks can be sent in a slice header or a tile group header, but the present embodiment is not limited thereto. After finding the merge candidate block, the coding device can generate a merge candidate list, and can select the merge candidate block with the smallest cost therein as the final merge candidate block.
[0168] Various embodiments of merge candidate blocks for constructing a merge candidate list are provided herein.
[0169] The merge candidate list may include, for example, 5 merge candidate blocks. For example, 4 spatial merge candidates and one temporal merge candidate may be used. As a specific example, in the case of spatial merge candidates, Figure 6 Blocks A0, A1, B0, B1, and B2 shown in FIG. 4 may be used as spatial merge candidates. Hereinafter, a spatial merge candidate or spatial MVP candidate to be described later may be referred to as SMVP, and a temporal merge candidate or temporal MVP candidate to be described later may be referred to as TMVP.
[0170] For example, the merge candidate list for the current block may be configured based on the following process.
[0171] First, the coding device (coding device / decoding device) may insert a spatial merge candidate derived by searching the spatial neighboring blocks of the current block into the merge candidate list. For example, the spatial neighboring blocks may include the lower left neighboring block A0, the left neighboring block A1, the upper left neighboring block B0, the upper neighboring block B1, and the upper left neighboring block B2 of the current block. However, this is exemplary, and in addition to the above-mentioned spatial neighboring blocks, additional neighboring blocks such as the right neighboring block, the lower neighboring block, and the lower right neighboring block may be further used as spatial neighboring blocks. The coding device may detect an enabled block by searching the spatial neighboring blocks based on priority, and may derive the motion information of the detected block as a spatial merge candidate. For example, the coding device and / or the decoding device may search in the order of A1, B1, B0, A0, and B2. Figure 6 The 5 blocks shown in , and the merge candidate list can be configured by sequentially indexing the enabled candidates.
[0172] In addition, the coding device may insert a temporal merge candidate derived by searching the temporal neighboring blocks of the current block into the merge candidate list. The temporal neighboring block may be located on a reference picture that is a picture different from the current picture in which the current block is located. The reference picture in which the temporal neighboring block is located may be referred to as a collocated picture or a col picture. The temporal neighboring blocks may be searched in the order of the lower right corner neighboring block and the lower right center block for the current block on the col picture.
[0173] At the same time, the coding device may identify whether the number of current merge candidates is less than the number of maximum merge candidates. The number of maximum merge candidates may be predefined or may be signaled from the encoding device to the decoding device. For example, the encoding device may generate information about the number of maximum merge candidates, encode the information, and transmit the encoded information to the decoding device in the form of a bitstream. If the number of maximum merge candidates is filled, subsequent candidate addition processing may not be performed.
[0174] If, as a result of the identification, the number of current merge candidates is less than the number of maximum merge candidates, the coding device may insert an additional merge candidate into the merge candidate list. For example, the additional merge candidate may include at least one of a history-based merge candidate, a pairwise average merge candidate, an ATMVP, a combined bi-predictive merge candidate (in the case where the slice / tile group type of the current slice / tile group is a B type), and / or a zero vector merge candidate.
[0175] If, as a result of the identification, the number of current merge candidates is not less than the number of maximum merge candidates, the encoding device may end the configuration of the merge candidate list. In this case, the encoding device may select the best merge candidate from the merge candidates constituting the merge candidate list based on the rate-distortion (RD) cost, and may signal selection information (e.g., a merge index) indicating the selected merge candidate to the decoding device. The decoding device may select the best merge candidate based on the merge candidate list and the selection information.
[0176] The motion information of the selected merge candidate may be used as the motion information of the current block, and as described above, the prediction sample of the current block may be derived based on the motion information of the current block. The encoding device may derive the residual sample of the current block based on the prediction sample, and may signal the residual information about the residual sample to the decoding device. As described above, the decoding device may generate a reconstructed sample based on the residual sample and the prediction sample derived from the residual information, and based on this, the decoding device may generate a reconstructed picture.
[0177] When skip mode is applied during inter prediction, motion information of the current block can be derived in the same manner as when merge mode is applied. However, when skip mode is applied, the residual signal for the corresponding block can be omitted, so the prediction sample can be immediately used as the reconstructed sample.
[0178] The derivation of spatial merge candidates is performed based on spatial neighboring blocks. For example, up to four merge candidates can be derived from the blocks placed Figure 6 The order of derivation can be A1, B1, B0, A0 and B2. Position B2 is considered only when any CU at position A1, B1, B0, A0 is unavailable (for example, because it belongs to another slice or tile) or is intra-coded. After adding the candidate at position A0, a redundancy check is performed on the addition of the remaining candidates, which ensures that candidates with the same motion information are excluded from the list, thereby improving coding efficiency. For example, in order to reduce computational complexity, not all possible candidate pairs are considered in the mentioned redundancy check. Instead, only the Figure 7 The pairs linked by arrows in , and a candidate can only be added to the list if the corresponding candidate for redundancy check does not have the same motion information.
[0179] Figure 8 and Fig. 9 is a diagram explaining temporal candidates that can be used for inter-frame prediction.
[0180] Here, the temporal candidate may represent the temporal merge candidate described above. In addition, the motion vector included in the temporal candidate may correspond to the temporal MVP candidate.
[0181] In this step, only one candidate is added to the candidate list. In particular, when deriving the temporal merge candidate, the scaled motion vector is derived based on the co-located CU belonging to the collocated reference picture (which may be referred to as the col picture). The reference picture list to be used for deriving the co-located CU is explicitly signaled in the slice header. Figure 8 As shown by the dashed line in , a scaled motion vector for a temporal merge candidate is obtained, which is scaled from the motion vector of the co-located CU using the POC distances tb and td, where tb is defined as the POC difference between the reference picture of the current picture and the current picture, and td is defined as the POC difference between the reference picture of the co-located picture and the co-located picture. The reference picture index of the temporal merge candidate is set equal to zero.
[0182] like Fig. 9 As shown, the position for the temporal candidate is selected between candidates C0 and C1. If the CU at position C0 is not available, intra-coded, or outside the current row of the CTU, position C1 is used. Otherwise, position C0 is used to derive the temporal merge candidate.
[0183] In addition to the merge mode, in which the implicitly derived motion information is directly used for prediction sample generation of the current CU, a merge mode with motion vector difference (MMVD) is introduced in VVC. Because similar motion information derivation methods are used for skip mode and merge mode, MMVD can be applied to skip mode. An MMVD flag (e.g., MMVD_flag) can be signaled immediately after sending the skip flag and the merge flag to specify whether the MMVD mode is used for the CU.
[0184] In MMVD, after a merge candidate is selected, the merge candidate is further refined by signaled MVD information. When MMVD is applied to the current block (ie, when MMVD_flag is equal to 1), further information for MMVD may be signaled.
[0185] Further information includes a merge candidate flag (e.g., mmvd_merge_flag), an index specifying the magnitude of motion (e.g., mmvd_distance_idx), and an index indicating the direction of motion (e.g., mmvd_direction_idx). The merge candidate flag indicates whether the first candidate (0) or the second candidate (1) in the merge candidate list is used with the motion vector difference. In MMVD mode, one of the first two candidates in the merge list is selected for use as the MV basis. The merge candidate flag is signaled to specify which one is used.
[0186] The distance index specifies motion magnitude information and indicates a predefined offset from a starting point.
[0187] The offset is added to the horizontal or vertical component of the starting MV. The relationship between the distance index and the predefined offset is specified in Table 3.
[0188] [Table 3]
[0189]
[0190] Here, slice_fpel_mmvd_enabled_flag equal to 1 specifies that merge mode with motion vector difference uses integer sample precision in the current slice. slice_fpel_mmvd_enabled_flag equal to 0 specifies that merge mode with motion vector difference may use fractional sample precision in the current slice. When not present, the value of slice_fpel_mmvd_enabled_flag is inferred to be 0. The slice_fpel_mmvd_enabled_flag syntax element may be signaled (may be included) via the slice header.
[0191] The direction index indicates the direction of the MVD relative to the starting point. The direction index can indicate four directions as shown in Table 4. Note that the meaning of the MVD symbol can vary depending on the information of the starting MV. When the starting MV is a non-predicted MV or a dual-predicted MV in which two lists point to the same side of the current picture (i.e., the POCs of both references are greater than the POC of the current picture, or are less than the POC of the current picture), the symbol in Table 4 specifies the sign of the MV offset added to the starting MV. When the starting MV is a dual-predicted MV in which two MVs point to different sides of the current picture (i.e., the POC of one reference is greater than the POC of the current picture, and the POC of the other reference is less than the POC of the current picture), the symbol in Table 4 specifies the sign of the MV offset added to the list 0 MV component of the starting MV and the symbol for the list 1 MV has an opposite value.
[0192] [Table 4]
[0193] mmvd_direction_idx[x0][y0] MmvdSign[x0][y0][0] MmvdSign[x0][y0][1] 0 +1 0 1 -1 0 2 0 +1 3 0 -1
[0194] The combined two components plus the MVD offset MmvdOffset[x0][y0] are derived as follows.
[0195] [Equation 1]
[0196] MmvdOffset[x0][y0][0]=(MmvdDistance[x0][y0]<<2)*MmvdSign[x0][y0][0]
[0197] MmvdOffset[x0][y0][1]=(MmvdDistance[x0][y0]<<2)*MmvdSign[x0][y0][1]
[0198] Fig.10 is a diagram explaining a sub-block based temporal motion vector prediction process that can be used during inter prediction.
[0199] The sub-block based temporal motion vector prediction (SbTMVP) method can be used for inter prediction. Similar to the temporal motion vector prediction (TMVP), SbTMVP uses the motion field in the collocated picture to improve the motion vector prediction and merge mode for the CU in the current picture. The same collocated picture used by TMVP is used for SbTVMP. SbTMVP differs from TMVP in the following two main aspects.
[0200] 1. TMVP predicts motion at CU level, but SbTMVP predicts motion at sub-CU level.
[0201] 2. Whereas TMVP extracts the temporal motion vector from a collocated block in a collocated picture (the collocated block is the bottom-right or center (bottom-right-center) block relative to the current CU), SbTMVP applies motion shifting before extracting temporal motion information from the collocated picture, where the motion shifting is obtained from the motion vector from one of the spatial neighboring blocks of the current CU.
[0202] Fig.10 1 shows the SbTVMP process. SbTMVP predicts the motion vector of a sub-CU within the current CU in two steps. In the first step, the spatial neighbor A1 is checked. If A1 is identified as having a motion vector that uses a collocated picture as its reference picture, that motion vector (which may be referred to as the temporal MV (tempVM)) is selected as the motion shift to be applied. If no such motion is identified, the motion shift is set to (0, 0).
[0203] In the second step, the motion shift identified in step 1 is applied (i.e., added to the coordinates of the current block) to obtain Fig.10 The collocated picture shown obtains sub-CU level motion information (motion vector and reference index). Fig.10 The example in assumes that the motion shift is set to the motion of block A1. Then, for each sub-CU, the motion information for the sub-CU is derived using the motion information of its corresponding block in the collocated picture (the smallest motion grid covering the center sample). When the sub-block has uniform length, width, and height, the center sample (the lower right center sample) can correspond to the lower right sample among the 4 center samples in the sub-CU.
[0204] After the motion information of the collocated sub-CU is identified, it is converted to the motion vector and reference index of the current sub-CU in a manner similar to the TMVP process, where temporal motion scaling can be applied to align the reference picture of the temporal motion vector with the reference picture of the current CU.
[0205] A sub-block based merge list containing a combination of both SbTVMP candidates and affine merge candidates may be used to signal an affine merge mode (which may be referred to as a (sub-block based) merge mode). The SbTVMP mode is enabled / disabled by a sequence parameter set (SPS) flag. If the SbTMVP mode is enabled, the SbTMVP predictor is added as the first entry of the sub-block merge candidate list, followed by the affine merge candidate. The maximum allowed size of the affine merge candidate list may be 5.
[0206] The sub-CU size used in SbTMVP may be fixed to 8×8, and as done for affine merge mode, the SbTMVP mode may be applied only to CUs whose width and height are both greater than or equal to 8.
[0207] The encoding logic of the additional SbTMVP merge candidate is the same as that of other merge candidates, that is, for each CU in a P or B slice, an additional RD check may be performed to decide whether to use the SbTMVP candidate.
[0208] Fig.11 is a diagram explaining partition modes applicable to inter-frame prediction.
[0209] Triangle partition mode can be used for inter prediction. Triangle partition mode can only be applied to CUs of 8x8 or larger. Together with other merge modes including normal merge mode, MMVD mode, CIIP mode, and sub-block merge mode, triangle partition mode is signaled as a merge mode using a CU level flag.
[0210] When this mode is used, the CU can be evenly split into two triangular partitions using diagonal or anti-diagonal partitioning, such as Fig.11 As shown in . Each triangular partition in a CU is inter-predicted using its own motion; only uni-prediction is allowed for each partition, i.e., each partition has one motion vector and one reference index. Uni-prediction motion constraints are applied to ensure that only two motion compensated predictions are required for each CU, the same as traditional bi-prediction.
[0211] If triangle partition mode is used for the current CU, a flag indicating the direction of the triangle partition (diagonal or anti-diagonal) and two merge indexes (one merge index for each partition) are further signaled. The number of maximum TPM candidate sizes is explicitly signaled at the slice level, and the syntax binarization for the TMP merge index is specified. After predicting each of the triangle partitions, a blending process with adaptive weights is used to adjust the sample values along the diagonal or anti-diagonal edges. This is the prediction signal for the entire CU, and the transform and quantization process will be applied to the entire CU as in other prediction modes. Finally, the motion field of the CU predicted using the triangle partition mode is stored in 4×4 units. The triangle partition mode is not used in combination with SBT, that is, when the signaled triangle mode is equal to 1, cu_SBT_flag is inferred to be 0 without signaling.
[0212] The single prediction candidate list is directly derived from the merged candidate list constructed as described above.
[0213] After predicting each triangle partition using its own motion, blending is applied to the two prediction signals to derive samples around diagonal or anti-diagonal edges.
[0214] Combined inter-frame and intra-frame prediction can be applied to the current block. An additional flag (e.g., ciip_flag) can be signaled to indicate whether the combined inter-frame / intra-frame prediction (CIIP) mode is applied to the current CU. For example, when a CU is compiled in merge mode, if the CU contains at least 64 luma samples (i.e., the CU width multiplied by the CU height is equal to or greater than 64), and if both the CU width and the CU height are less than 128 luma samples, an additional flag is signaled to indicate whether the combined inter-frame / intra-frame prediction (CIIP) mode is applied to the current CU. As its name indicates, CIIP prediction combines an inter-frame prediction signal with an intra-frame prediction signal. The inter-frame prediction signal in the CIIP mode P_inter is derived using the same inter-frame prediction process applied to the conventional merge mode; and the intra-frame prediction signal P_intra is derived using the plane mode after the conventional intra-frame prediction process. Then, the intra-frame and inter-frame prediction signals are combined using weighted averaging, where the weight values are calculated according to the coding modes of the upper neighboring blocks and the left neighboring blocks as follows.
[0215] If the upper neighbor is available and intra-coded, isIntratop is set to 1, otherwise isIntratop is set to 0.
[0216] If the left neighbor is available and intra-coded, isIntraLeft is set to 1, otherwise isIntraLeft is set to 0.
[0217] If (isIntraLeft+isIntraLeft) is equal to 2, wt is set to 3.
[0218] Otherwise, if (isIntraLeft+isIntraLeft) is equal to 1, wt is set to 2.
[0219] Otherwise, set wt to 1.
[0220] The CIIP forecast is formed as follows.
[0221] [Equation 2]
[0222] P CIIP =((4-wt)*P inter +wt*P intra +2)>>2
[0223] At the same time, in order to generate a prediction block, the coding device may induce motion information based on the above-mentioned conventional merge mode, skip mode, SbTMVP mode, MMVD mode, triangle partition mode (partition mode) and / or CIIP mode. Each mode may be enabled / disabled by an on / off flag for each mode included in a sequence parameter set (SPS). If the on / off flag for a particular mode is disabled, the coding device does not signal the syntax for the corresponding prediction mode to be explicitly sent in units of CU or PU.
[0224] Herein, in order to remove signaling of redundant syntax, a method for signaling syntax in consideration of on / off and an application method of merge / skip mode are disclosed.
[0225] For example, in the case of regular_merge_flag, under the condition that MMVD, subblock merging, CIIP merging, and triangle merging are not allowed, there are no possible candidates other than the regular merge mode, and thus there is no need to signal a flag (eg, regular merge flag).
[0226] Furthermore, under the condition that sub-block merging, CIIP merging, and triangle merging are not allowed, the mmvd related flag (eg, mmvd_merge_flag) does not need to be signaled.
[0227] Under the condition that CIIP merging and triangle merging are not allowed, the sub-block related flag (eg, merge_subblock_flag) does not need to be signaled.
[0228] Under the condition that triangle merging is not allowed, the CIIP related flag (eg, ciip_flag) does not need to be signaled.
[0229] According to the merge data syntax of Table 2, when a specific mode for the merge / skip mode is disabled in whole or in part, redundant signaling of the on / off flag occurs. Therefore, in this article, the following method can be used to prevent redundant signaling of the same information (flag) in the process of selecting the merge mode applied to the current block.
[0230] The following drawings are prepared to explain specific examples of this document. Since the names of specific devices and signals / information described in the drawings are exemplarily presented, the technical features of this specification are not limited to the specific names used in the following drawings.
[0231] Fig.12 and Fig.13 An example of a video / image encoding method including an inter-frame prediction method and related components according to an embodiment of the present disclosure is schematically illustrated.
[0232] Fig.12 The encoding method disclosed in can be Figure 2 Specifically, for example, Fig.12 S1200 to S1220 of the encoding device 200 may be performed by the predictor 220 of the encoding device 200 , S1230 may be performed by the residual processor 230 of the encoding device 200 , and S1240 may be performed by the entropy encoder 240 of the encoding device 200 . Fig.12 The encoding method disclosed in may include the above-mentioned embodiments of this article.
[0233] Specifically, refer to Fig.12 and Fig.13 , the predictor of the encoding device may determine a prediction mode of the current block (S1200). As an example, in the case where inter-frame prediction is applied to the current block, the predictor of the encoding device may determine any one of a normal merge mode, a skip mode, an MMVD mode, a sub-block merge mode, a partition mode, and a CIIP mode as the prediction mode of the current block.
[0234] Here, the conventional merge mode may be defined as a mode for inducing the motion information of the current block using the motion information of the adjacent blocks. The skip mode may be defined as a mode in which the prediction block is used as a reconstructed block. The MMVD mode may be applied to the merge mode or the skip mode, and may be defined as a merge (or skip) mode using a motion vector difference. The sub-block merge mode may be defined as a merge mode based on a sub-block. The partition mode may be defined as a mode in which prediction is performed by dividing the current block into two partitions (diagonal or anti-diagonal). The CIIP mode may be defined as a mode in which inter-picture merging and intra-picture prediction are combined with each other.
[0235] The predictor of the encoding device may derive motion information of the current block based on the prediction mode of the current block (S1210). The motion information may include a motion vector and a reference picture index. For example, in the case where the prediction mode for the current block is determined to be a (conventional) merge mode, the predictor of the encoding device may configure a merge candidate list (or a motion information candidate list) based on the spatial neighboring blocks and the temporal neighboring blocks of the current block, and based on this, the predictor of the encoding device may generate motion information. In this case, the predictor of the encoding device may derive a reference block having a difference with the current block by searching for a block similar to the current block in a specific area (search area) of the reference picture through motion estimation, and the difference is the smallest or equal to or less than a predetermined reference, and based on this, the predictor of the encoding device may derive a reference picture index indicating the reference block where the reference block is placed. In addition, the predictor of the encoding device may derive a motion vector based on the position difference between the reference block and the current block.
[0236] For example, in a case where the prediction mode for the current block is determined to be a (normal) merge mode, the predictor of the encoding device may configure a merge candidate list (or a motion information candidate list) based on the spatial neighboring blocks and the temporal neighboring blocks of the current block, and based on this, the predictor of the encoding device may generate motion information.
[0237] The predictor of the encoding device may derive a prediction sample (prediction block) of the current block based on the prediction mode of the current block and the motion information of the current block (S1220). In addition, the predictor of the encoding device may generate information about the prediction mode based on the prediction mode. Here, the information about the prediction mode may include inter / intra prediction classification information and inter prediction mode information, and may include various syntax elements related to the information.
[0238] The residual processor of the encoding device may generate residual samples based on the original samples for the current block (original block) and the predicted samples for the current block (prediction block) (S1230). In addition, the residual processor of the encoding device may derive information about the residual samples based on the residual samples.
[0239] The encoder of the encoding device may encode the image information including information about the residual sample and information about the prediction mode (S1240). The image information may include partition related information, prediction mode related information, residual information, and in-loop filtering related information, and may include various syntax elements related to the information. The information encoded by the encoder of the encoding device can be output in the form of a bit stream. The bit stream may be sent to a decoding device via a network or a storage medium.
[0240] For example, the image information may include information about various parameter sets, such as an adaptive parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). In addition, the image information may include information about a prediction mode for a current block, such as a coding unit syntax and a merge data syntax. Here, the sequence parameter set may include a combined inter-image merging and intra-image prediction (CIIP) enable flag (ciip enable flag) and an enable flag for a partition mode. The coding unit syntax may include a CU skip flag indicating whether a skip mode is applied to the current block.
[0241] According to an embodiment, as an example, in order to prevent repeated transmission of the same syntax, the encoding device may apply part or all of the regular_merge_flag signaling condition and related semantics, the MMVD_merge_flag signaling condition and related semantics, the merge_subblock_flag signaling condition and related semantics, and / or the CIIP flag signaling condition and related semantics based on the condition that MMVD (MMVD mode) is allowed (MMVDAllowed), the condition that merging subblocks (sub-block merge mode) is allowed (MergeSubBlockAllowed), the condition that merging CIIP (CIIP mode) is allowed (MergeCIIPAllowed), and / or the condition that merging triangles (partition mode) is allowed (MergeTriangleAllowed).
[0242] To this end, as an example, the merge data syntax may be configured as shown in Table 5 below.
[0243] [Table 5]
[0244]
[0245] In Table 5, general_merge_flag[x0][y0] specifies whether inter prediction parameters for the current coding unit are inferred from neighboring inter prediction partitions. Array index x0, y0 specifies the position (x0, y0) of the top left luma sample of the considered coding block relative to the top left luma sample of the picture.
[0246] When general_merge_flag[x0][y0] does not exist, it is inferred as follows.
[0247] - If cu_skip_flag[x0][y0] is equal to 1, general_merge_flag[x0][y0] is inferred to be equal to 1.
[0248] Otherwise, general_merge_flag[x0][y0] is inferred to be equal to 0.
[0249] In Table 5, the conditions under which MMVD (MMVD mode) is allowed (MMVDAllowed), the conditions under which merging sub-blocks (sub-block merging mode) is allowed (MergeSubBlockAllowed), the conditions under which merging CIIP (CIIP mode) is allowed (MergeCIIPAllowed) and / or the conditions under which merging triangles (partitioning mode) is allowed (MergeTriangleAllowed) can be induced according to the following conditions.
[0250] If all of the following conditions are true, then the variable MMVDAllowed is set equal to true.
[0251] -general_merge_flag[x0][y0] is equal to 1
[0252] -sps_mmvd_enabled_flag equal to 1
[0253] -cbWidth*CbHeight is greater than 32
[0254] If all of the following conditions are true, then the variable MergeSubbLockAllowed is set equal to true.
[0255] -general_merge_flag[x0][y0] is equal to 1
[0256] -MaxNumSubblockMergeCand>0
[0257] cbWidth is greater than or equal to 8, and cbHeight is greater than or equal to 8
[0258] If all of the following conditions are true, the variable MergeCIIPAllowed is set equal to true.
[0259] -general_merge_flag[x0][y0] is equal to 1
[0260] -sps_ciip_enabled_Flag equals 1
[0261] -cu_skip_flag[x0][y0] is equal to 0
[0262] -cbWidth*CbHeight is greater than or equal to 64
[0263] -cbWidth is less than 128 and cbHeight is less than 128
[0264] If all of the following conditions are true, then MergeTriangleAllowed is set equal to true.
[0265] -general_merge_flag[x0][y0] is equal to 1
[0266] -sps_triangle_enalbed_Flag is equal to 1 and slice_type is equal to B
[0267] -NaxNumTriangleMergeCand is greater than or equal to 2
[0268] -cbWidth*cbHeight is greater than or equal to 64
[0269] Among the above conditions, MMVDAllowed indicates that MMVD is an allowable condition, and in this case, when the current block is not a 4x8 block or an 8x4 block, this condition based on the block size is satisfied. However, in the case where single-prediction MMVD is allowed in a 4x8 block and / or an 8x4 block, compression efficiency can be improved, and therefore the MMVDAllowed condition can be changed as follows.
[0270] If all of the following conditions are true, then the variable MMVDAllowed is set equal to true.
[0271] -general_merge_flag[x0][y0] is equal to 1
[0272] -sps_mmvd_enabled_flag equal to 1
[0273] Meanwhile, regular_merge_flag[x0][y0] equal to 1 specifies that the regular merge mode is used to generate inter prediction parameters for the current coding unit. Array index x0, y0 specifies the position (x0, y0) of the top left luma sample of the considered coding block relative to the top left luma sample of the picture.
[0274] Referring to Table 5, a regular merge flag may be included in the image information and may be signaled in the form of a bitstream when at least one of a condition based on the MMVD mode (MMVDAllowed), a condition based on the sub-block merge mode (MergeSubBlockAllowed), a condition based on the CIIP mode (MergeCIIPAllowed), and a condition based on the partition mode (MergeTriangleAllowed) is 1.
[0275] As an example, in the case where CIIP is enabled, a regular merge flag may be included in the bitstream. The case where CIIP is enabled may be determined based on at least one of a general merge flag, a CIIP enable flag, a current block size, and a CU skip flag. For example, in the case where the general merge flag value is 1, the CIIP enable flag value is 1, the product of the height of the current block and the width of the current block is equal to or greater than 64, the height of the current block or the width of the current block is less than 128, or the skip flag value is 0, a regular merge flag may be included in the bitstream. In addition, in the case where all conditions based on the general merge flag, the CIIP enable flag, the current block size, and the CU skip flag are met, a regular merge flag may be included in the bitstream.
[0276] As another example, in the case where the partition mode is enabled, a regular merge flag may be included in the bitstream. The case where the partition mode is enabled may be determined based on at least one of a general merge flag, a partition mode enable flag indicating whether the partition mode is enabled, and information about the current block. For example, in the case where the general merge flag value is 1, the partition mode enable flag value is 1, the product of the height of the current block and the width of the current block is equal to or greater than 64, the slice type of the current block is a B slice, or the maximum number of partition mode candidates is equal to or greater than 2, the regular merge flag may be included in the bitstream. In addition, in the case where all of the above conditions are met, a regular merge flag may be included in the bitstream.
[0277] When regular_merge_flag[x0][y0] is not present in the merge data syntax, it is inferred as follows.
[0278] If all of the following conditions are true, regular_merge_flag[x0][y0] is inferred to be equal to 1.
[0279] -MMVDAllowed is equal to 0
[0280] -MergeSubBlockAllowed is equal to 0
[0281] -MergeCIIPAllowed equals 0
[0282] -MergeTriangleAllowed is equal to 0
[0283] Otherwise, regular_merge_flag[x0][y0] is inferred to be equal to 0.
[0284] Meanwhile, mmvd_merge_flag[x0][y0] equal to 1 specifies that merge mode with motion vector difference is used to generate inter prediction parameters for the current coding unit. Array index x0, y0 specifies the position (x0, y0) of the top left luma sample of the considered coding block relative to the top left luma sample of the picture.
[0285] Referring to Table 5, when at least one of the conditions based on the MMVD mode (MMVDAllowed), the conditions based on the sub-block merge mode (MergeSubBlockAllowed), the conditions based on the CIIP mode (MergeCIIPAllowed), and the conditions based on the partition mode (MergeTriangleAllowed) is 1, the MMVD merge flag may be included in the image information and may be signaled in the form of a bitstream.
[0286] When mmvd_merge_flag[x0][y0] is not present in the merge data syntax, it is inferred as follows.
[0287] mmvd_merge_flag[x0][y0] is inferred to be equal to 1 if all of the following conditions are true.
[0288] -regular_merge_flag[x0][y0] is equal to 0
[0289] -MMVDAllowed is equal to 0
[0290] -MergeSubBlockAllowed is equal to 0
[0291] -MergeCIIPAllowed equals 0
[0292] -MergeTriangleAllowed is equal to 0
[0293] Otherwise, mmvd_merge_flag[x0][y0] is inferred to be equal to 0.
[0294] mmvd_cand_flag[x0][y0] specifies whether the first (0) or second (1) candidate in the merge candidate list is used with the motion vector difference derived from mmvd_distance_idx[x0][y0] and mmvd_direction_idx[x0][y0]. The array index x0, y0 specifies the position (x0, y0) of the top-left luma sample of the considered coding block relative to the top-left luma sample of the picture. When mmvd_cand_flag[x0][y0] is not present, it is inferred to be equal to 0.
[0295] mmvd_distance_idx[x0][y0] specifies the index used to derive MmvdDistance[x0][y0], as specified in Table 3. The array index x0, y0 specifies the position (x0, y0) of the top-left luma sample of the considered coding block relative to the top-left luma sample of the picture.
[0296] mmvd_direction_idx[x0][y0] specifies the index used to derive MmvdSign[x0][y0], as specified in Table 4. The array index x0, y0 specifies the position (x0, y0) of the top-left luma sample of the considered coding block relative to the top-left luma sample of the picture.
[0297] The combined two components plus the MVD offset MmvdOffset[x0][y0] are derived as Equation 1.
[0298] merge_subblock_flag[x0][y0] specifies whether subblock-based inter prediction parameters for the current coding unit are inferred from neighboring blocks. Array index x0, y0 specifies the position (x0, y0) of the top-left luma sample of the considered coding block relative to the top-left luma sample of the picture.
[0299] Referring to Table 5, when at least one of the conditions based on the sub-block merge mode (MergeSubBlockAllowed), the CIIP mode (MergeCIIPAllowed), and the partition mode (MergeTriangleAllowed) is 1, the merge sub-block flag may be included in the image information and may be signaled in the form of a bitstream.
[0300] When merge_subblock_flag[x0][y0] is not present in the merge data syntax, the inference is as follows.
[0301] merge_subblock_flag[x0][y0] is inferred to be equal to 1 if all of the following conditions are true.
[0302] -regular_merge_flag[x0][y0] is equal to 0
[0303] -mmvd_merge_flag[x0][y0] is equal to 0
[0304] -MergeSubBlockAllowed is equal to 0
[0305] -MergeCIIPAllowed equals 0
[0306] -MergeTriangleAllowed is equal to 0
[0307] Otherwise, merge_subblock_flag[x0][y0] is inferred to be equal to 0.
[0308] merge_subblock_flag[x0][y0] specifies the merge candidate index of the sub-block based merge candidate list, where x0, y0 specifies the position (x0, y0) of the top-left luma sample of the considered coding block relative to the top-left luma sample of the picture.
[0309] When merge_subblock_idx[x0][y0] does not exist, it is inferred to be equal to 0.
[0310] Meanwhile, ciip_flag[x0][y0] specifies whether combined inter-picture merging and intra-picture prediction is applied to the current coding unit. Array index x0, y0 specifies the position (x0, y0) of the top left luma sample of the considered coding block relative to the top left luma sample of the picture.
[0311] Referring to Table 5, the CIIP flag may be included in the image information and may be signaled in the form of a bitstream if at least one value of a CIIP mode-based condition (MergeCIIPAllowed) and a partition mode-based condition (MergeTriangleAllowed) is 1.
[0312] For example, in the case where the partition mode is enabled, the CIIP flag may be included in the bitstream. The case where the partition mode is enabled may be determined based on at least one of a general merge flag, a partition mode enable flag indicating whether the partition mode is enabled, and information about the current block. For example, in the case where the general merge flag value is 1, the partition mode enable flag value is 1, the product of the height of the current block and the width of the current block is equal to or greater than 64, the slice type of the current block is a B slice, or the maximum number of partition mode candidates is equal to or greater than 2, the CIIP flag may be included in the bitstream. In addition, in the case where all of the above conditions are met, the CIIP flag may be included in the bitstream.
[0313] When ciip_flag[x0][y0] does not exist, the inference is as follows.
[0314] If all of the following conditions are true, ciip_flag[x0][y0] is set equal to 1.
[0315] -MergeCIIPAllowed equals 0
[0316] -MergeTriangleAllowed is equal to 0
[0317] - Otherwise, ciip_flag[x0][y0] is set equal to 0.
[0318] When ciip_flag[x0][y0] is equal to 1, the variable IntraPredModeY[x][y] is set equal to INTRA_PLANAR, where x=xCb..xCb+cbWidth-1 and y=yCb..yCb+cbHeight-1.
[0319] The variable MergeTriangleFlag[x0][y0] specifies whether triangle-based motion compensation is used to generate prediction samples for the current coding unit when decoding a B slice, which is derived as follows.
[0320] If all of the following conditions are true, MergeTriangleFlag[x0][y0] is set equal to 1.
[0321] -MergeTriangleAllowed is equal to 1
[0322] -regular_merge_flag[x0][y0] is equal to 0
[0323] -mmvd_merge_flag[x0][y0] is equal to 0
[0324] -merge_subblock_flag[x0][y0] is equal to 0
[0325] -ciip_flag[x0][y0] is equal to 0
[0326] Otherwise, MergeTriangleFlag[x0][y0] is equal to 0.
[0327] Fig.14 and Fig.15 An example of a video / image decoding method including an inter-frame prediction method and related components according to an embodiment of this document is schematically shown.
[0328] Fig.14 The decoding method disclosed in can be Figure 3 and Fig.15 Specifically, for example, Fig.14 S1400 to S1420 of may be performed by the predictor 330 of the decoding device 300, and S1430 may be performed by the adder 340 of the decoding device 300. Herein, Fig.14 The decoding method disclosed in may include the above-mentioned embodiments.
[0329] Reference Fig.14 and Fig.15 , the decoding device can obtain information about the prediction mode for the current block from the bitstream, and based on the information, the decoding device can determine the prediction mode for the current block (S1400). Specifically, the entropy decoder 310 of the decoding device can obtain the prediction mode for the current block in the form of a bitstream. Figure 2 The residual information and the information about the prediction mode are derived from the signal received by the encoding device. Here, the information about the prediction mode may be referred to as prediction related information. The information about the prediction mode may include inter / intra prediction classification information and inter prediction mode information, and may include various syntax elements related to the information.
[0330] In the bitstream, image information may be included, which includes information about various parameter sets such as an adaptive parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). The image information may also include information about the prediction mode for the current block, such as a coding unit syntax and a merge data syntax. The sequence parameter set may include a CIIP enable flag and an enable flag for a partition mode. The coding unit syntax may include a CU skip flag indicating whether a skip mode is applied to the current block.
[0331] The predictor 320 of the decoding device may derive motion information of the current block based on the prediction mode for the current block (S1410). For example, the predictor 320 of the decoding device may configure a motion information candidate list (or a merge candidate list) for the current block based on information about the prediction mode obtained from the bitstream. In addition, the predictor 320 of the decoding device may select a merge candidate from the motion information candidate list based on candidate selection information (merge index) obtained from the bitstream, and may derive motion information of the current block using the motion information of the selected merge candidate.
[0332] When the motion information of the current block is derived, the predictor of the decoding device may generate a prediction sample of the current block based on the motion information of the current block ( S1420 ).
[0333] Meanwhile, the residual processor 320 of the decoding device may generate residual samples based on residual information obtained from the bitstream.
[0334] The adder 340 of the decoding device may generate a reconstructed sample based on the prediction sample generated by the predictor 330 and the residual sample generated by the residual processor 320 (S1430). A reconstructed picture may be generated based on the reconstructed sample. Thereafter, as needed, in order to improve subjective / objective image quality, an in-loop filtering process such as deblocking filtering, SAO and / or ALF process may be applied to the reconstructed image.
[0335] As an embodiment, when determining the prediction mode for the current block, when at least one of the conditions based on the MMVD mode (MMVDAllowed), the conditions based on the sub-block merge mode (MergeSubBlockAllowed), the conditions based on the CIIP mode (MergeCIIPAllowed), and the conditions based on the partition mode (MergeTriangleAllowed) is 1, the predictor of the decoding device can obtain or parse a regular merge flag from the bitstream.
[0336] As an example, in the case where CIIP is enabled, the decoding device may parse a general merge flag from the bitstream. The case where CIIP is enabled may be determined based on at least one of a general merge flag, a CIIP enable flag, a current block size, and a CU skip flag. For example, in the case where the general merge flag value is 1, the CIIP enable flag value is 1, the product of the height of the current block and the width of the current block is equal to or greater than 64, the height of the current block or the width of the current block is less than 128, or the skip flag value is 0, the decoding device may determine that CIIP is enabled.
[0337] As another example, in the case where the partition mode is enabled, the decoding device may parse a regular merge flag from the bitstream. The case where the partition mode is enabled may be determined based on at least one of a general merge flag, a partition mode enable flag indicating whether the partition mode is enabled, and information about the current block. For example, in the case where the general merge flag value is 1, the partition mode enable flag value is 1, the product of the height of the current block and the width of the current block is equal to or greater than 64, the slice type of the current block is a B slice, or the maximum number of partition mode candidates is equal to or greater than 2, the decoding device may determine that the partition mode is enabled. Further, in the case where all of the above conditions are met, the decoding device may determine that the partition mode is enabled.
[0338] At the same time, when determining the prediction mode of the current block, when at least one of the conditions based on the MMVD mode (MMVDAllowed), the conditions based on the sub-block merge mode (MergeSubBlockAllowed), the conditions based on the CIIP mode (MergeCIIPAllowed), and the conditions based on the partition mode (MergeTriangleAllowed) is 1, the predictor of the decoding device can obtain or parse the MMVD merge flag from the bitstream.
[0339] In addition, when determining the prediction mode for the current block, when at least one of the values of the sub-block merge mode-based condition (MergeSubBlockAllowed), the CIIP mode-based condition (MergeCIIPAllowed), and the partition mode-based condition (MergeTriangleAllowed) is 1, the predictor of the decoding device can obtain or parse the merge sub-block flag from the bitstream.
[0340] In addition, when determining the prediction mode for the current block, the predictor of the decoding device can obtain or parse the CIIP flag from the bitstream when at least one of the conditions based on the CIIP mode (MergeCIIPAllowed) and the conditions based on the partition mode (MergeTriangleAllowed) is 1. As an example, when the partition mode is enabled, the decoding device can parse the CIIP flag from the bitstream. The situation of enabling the partition mode can be determined based on at least one of the general merge flag, the partition mode enable flag indicating whether the partition mode is enabled, and the information about the current block. For example, when the general merge flag value is 1, the partition mode enable flag value is 1, the product of the height of the current block and the width of the current block is equal to or greater than 64, the slice type of the current block is a B slice, or the maximum number of partition mode candidates is equal to or greater than 2, the decoding device can determine that the partition mode is enabled. In addition, when all of the above conditions are met, the decoding device can determine that the partition mode is enabled.
[0341] Although the above exemplary system has been described based on a flowchart that lists steps or blocks in order, the steps of the present disclosure are not limited to a specific order. Therefore, relative to the above steps, a certain step can be performed in a different step or in a different order or simultaneously. In addition, it will be understood by those of ordinary skill in the art that the steps of the flowchart are not exclusive. On the contrary, within the scope of the present disclosure, another step may be included, or one or more steps may be deleted.
[0342] The above-mentioned method according to the present disclosure may be in the form of software, and the encoding device and / or decoding device according to the present disclosure may be included in a device for performing image processing (e.g., a TV, a computer, a smart phone, a set-top box, a display device, etc.).
[0343] When the embodiments are implemented in software in the present disclosure, the above methods can be implemented using modules (processes, functions, etc.) that perform the above functions. The module can be stored in a memory and executed by a processor. The memory can be arranged internally or externally to the processor and connected to the processor using various known means. The processor may include an application specific integrated circuit (ASIC), other chipsets, logic circuits, and / or data processors. The memory may include a read-only memory (ROM), a random access memory (RAM), a flash memory, a memory card, a storage medium, and / or other storage devices. In other words, the embodiments described herein may be implemented and executed on a processor, a microprocessor, a controller, or a chip. For example, the functional units shown in each of the accompanying drawings may be implemented and executed on a computer, a processor, a microprocessor, a controller, or a chip. In this case, information (e.g., information about instructions) or algorithms for implementation may be stored in a digital storage medium.
[0344] In addition, the decoding device and encoding device to which the present disclosure is applied may include a multimedia broadcast transceiver, a mobile communication terminal, a home theater video device, a digital theater video device, a surveillance camera, a video chat device, and a real-time communication device such as a video communication, a mobile streaming device, a storage medium, a camera, a video on demand (VoD) service provider, an over-the-air (OTT) video device, an Internet streaming service provider, a 3D video device, a virtual reality (VR) device, an augmented reality (AR) device, an image phone video device, a vehicle terminal (e.g., a vehicle (including an autonomous vehicle) terminal, an aircraft terminal or a ship terminal) and a medical video device, etc., and can be used to process an image signal or a data signal. For example, an OTT video device may include a game console, a Blu-ray player, a TV connected to the Internet, a home theater system, a smart phone, a tablet PC, and a digital video recorder (DVR).
[0345] In addition, the processing method to which the present disclosure is applied can be generated in the form of a program executed by a computer and can be stored in a computer-readable recording medium. Multimedia data having a data structure according to the present disclosure can also be stored in a computer-readable recording medium. Computer-readable recording media include all kinds of storage devices and distributed storage devices in which computer-readable data is stored. Computer-readable recording media can be, for example, a Blu-ray disc (BD), a universal serial bus (USB), a ROM, a PROM, an EPROM, an EEPROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device. Computer-readable recording media also include media embodied in the form of a carrier wave (e.g., transmission via the Internet). In addition, the bit stream generated by the encoding method can be stored in a computer-readable recording medium or sent via a wired or wireless communication network.
[0346] In addition, the embodiments of the present disclosure may be implemented as a computer program product based on a program code, and the program code may be executed on a computer by the embodiments of the present disclosure. The program code may be stored on a computer-readable carrier.
[0347] Fig.16 An example of a content streaming system to which the embodiments disclosed herein are applicable is shown.
[0348] Reference Fig.16 , a content streaming system to which the embodiments of this document are applied may mainly include an encoding server, a streaming server, a web server, a media storage device, a user device, and a multimedia input device.
[0349] The encoding server compresses the content input from the multimedia input device (e.g., smart phone, camera, and camcorder) into digital data to generate a bitstream and sends the bitstream to the streaming server. As another example, when the multimedia input device (e.g., smart phone, camera, and camcorder, etc.) directly generates the bitstream, the encoding server can be omitted.
[0350] The bitstream may be generated by the encoding method or the bitstream generating method to which the embodiments of this document are applied, and the streaming server may temporally store the bitstream while transmitting or receiving the process of the bitstream.
[0351] The streaming server sends multimedia data to the user device based on the user request through the web server, and the web server is used as a medium to inform the user of the service. When the user requests the desired service from the web server, the web server delivers the user's request to the streaming server, and the streaming server sends the multimedia data to the user. In this case, the content streaming system may include a separate control server. In this case, the control server is used to control the command / response between the devices in the content streaming system.
[0352] The streaming server can receive content from a media storage device and / or an encoding server. For example, when receiving content from an encoding server, the streaming server can receive the content in real time. In this case, in order to provide a smooth streaming service, the streaming server can store the bitstream for a predetermined time.
[0353] Examples of user devices may include portable phones, smart phones, laptop computers, digital broadcast terminals, personal digital assistants (PDAs), portable multimedia players (PMPs), navigation devices, slate PCs, tablet PCs, ultrabooks, wearable devices (e.g., smart watches, smart glasses, head-mounted displays (HMDs)), digital TVs, desktop computers, digital signage, etc.
[0354] Each server in the content streaming system may operate as a distribution server, in which case data received from each server may be distributed.
Claims
1. A decoding method performed by a decoding device, the method comprising: Parse general merge flags from the bitstream; parsing prediction information from the bitstream based on the general merge flag; generating a prediction sample of a current block based on the prediction information; as well as generating a reconstructed sample based on the predicted sample, wherein the bitstream includes an enable flag for a partition mode for performing prediction by dividing the current block into two partitions, and an enable flag for combined inter-picture merging and intra-picture prediction CIIP, wherein a regular merge flag is included in the prediction information based on the general merge flag and an enable flag for the partition mode, wherein, based on the value of the normal merge flag being equal to 0, the value of the enable flag for the CIIP being equal to 1, and the value of the enable flag for the partition mode being equal to 1, a CIIP flag indicating whether the CIIP is applied to the current block is included in the prediction information, wherein, based on the value of the normal merge flag being equal to 0, the value of the enable flag for the CIIP being equal to 0, and the value of the enable flag for the partition mode being equal to 1, the CIIP flag is not included in the prediction information, and Wherein, based on the value of the normal merge flag being equal to 0, the value of the enable flag for the CIIP being equal to 1, and the value of the enable flag for the partition mode being equal to 0, the CIIP flag is not included in the prediction information.
2. A coding method performed by a coding device, the method comprising: Determine the prediction mode of the current block; generating prediction information based on the prediction model; as well as encoding image information including the prediction information, wherein the image information includes a general merge flag and an enable flag for a partition mode in which prediction is performed by dividing the current block into two partitions, and an enable flag for combined inter-picture merging and intra-picture prediction CIIP, wherein a regular merge flag is included in the prediction information based on the value of the general merge flag and an enable flag for the partition mode, wherein, based on the value of the normal merge flag being equal to 0, the value of the enable flag for the CIIP being equal to 1, and the value of the enable flag for the partition mode being equal to 1, a CIIP flag indicating whether the CIIP is applied to the current block is included in the prediction information, wherein, based on the value of the normal merge flag being equal to 0, the value of the enable flag for the CIIP being equal to 0, and the value of the enable flag for the partition mode being equal to 1, the CIIP flag is not included in the prediction information, and Wherein, based on the value of the normal merge flag being equal to 0, the value of the enable flag for the CIIP being equal to 1, and the value of the enable flag for the partition mode being equal to 0, the CIIP flag is not included in the prediction information.
3. A method for transmitting image data, wherein: The transmission method comprises: obtaining a bitstream for the image, wherein the bitstream is generated based on determining a prediction mode of a current block, generating prediction information based on the prediction mode, and generating the bitstream by encoding image information including the prediction information; and transmitting data comprising said bit stream, wherein the image information includes a general merge flag and an enable flag for a partition mode in which prediction is performed by dividing the current block into two partitions, and an enable flag for combined inter-picture merging and intra-picture prediction CIIP, wherein a regular merge flag is included in the prediction information based on the value of the general merge flag and an enable flag for the partition mode, wherein, based on the value of the normal merge flag being equal to 0, the value of the enable flag for the CIIP being equal to 1, and the value of the enable flag for the partition mode being equal to 1, a CIIP flag indicating whether the CIIP is applied to the current block is included in the prediction information, wherein, based on the value of the normal merge flag being equal to 0, the value of the enable flag for the CIIP being equal to 0, and the value of the enable flag for the partition mode being equal to 1, the CIIP flag is not included in the prediction information, and Wherein, based on the value of the normal merge flag being equal to 0, the value of the enable flag for the CIIP being equal to 1, and the value of the enable flag for the partition mode being equal to 0, the CIIP flag is not included in the prediction information.
