Image encoding / decoding method and device based on picture header containing information about co-located pictures, and method for transmitting bitstreams
The image encoding/decoding method improves efficiency by using a picture header with co-located picture information for enhanced encoding/decoding and signaling, addressing the high-cost challenge of high-resolution image transmission/storage.
Patent Information
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2025-05-30
- Publication Date
- 2026-03-06
AI Technical Summary
The increasing demand for high-resolution, high-quality images leads to higher transmission and storage costs due to increased information bits, necessitating highly efficient image compression techniques.
An image encoding/decoding method and apparatus that utilize a picture header including information about co-located pictures for improved encoding/decoding efficiency and signaling mechanism efficiency, particularly through temporal motion vector prediction.
Enhances encoding/decoding efficiency and signaling mechanism efficiency, enabling effective transmission and storage of high-resolution, high-quality images.
Smart Images

Figure 0007825356000002 
Figure 0007825356000003 
Figure 0007825356000004
Abstract
Description
[Technical Field]
[0001] The present disclosure relates to an image encoding / decoding method, apparatus, and bitstream transmission method based on a picture header including information about co-located pictures, and more particularly to an image encoding / decoding method, apparatus, and bitstream transmission method that perform inter prediction based on a picture header including identification information about co-located pictures, and a bitstream transmission method generated by the image encoding method / apparatus of the present disclosure. [Background technology]
[0002] Recently, demand for high-resolution, high-quality images, such as HD (High Definition) images and UHD (Ultra High Definition) images, has been increasing in various fields. As image data becomes higher in resolution and quality, the amount of information or bits to be transmitted increases relatively compared to conventional image data. The increase in the amount of information or bits to be transmitted results in an increase in transmission costs and storage costs.
[0003] This requires highly efficient image compression techniques for effectively transmitting, storing, and reproducing high-resolution, high-quality image information. Summary of the Invention [Problem to be solved by the invention]
[0004] An object of the present disclosure is to provide an image encoding / decoding method and apparatus with improved encoding / decoding efficiency.
[0005] Another object of the present disclosure is to provide an image encoding / decoding method and apparatus based on a picture header that includes information about co-located pictures.
[0006] Another object of the present disclosure is to provide an image encoding / decoding method and apparatus with improved signaling mechanism efficiency for TMVP.
[0007] Another object of the present disclosure is to provide a method for transmitting a bitstream generated by the image encoding method or apparatus according to the present disclosure.
[0008] Another object of the present disclosure is to provide a recording medium storing a bitstream generated by the image encoding method or apparatus according to the present disclosure.
[0009] Another object of the present disclosure is to provide a recording medium storing a bitstream that is received by an image decoding device according to the present disclosure, decoded, and used to restore an image.
[0010] The technical problems to be solved by the present disclosure are not limited to the above-mentioned technical problems, and other technical problems not described above will be clearly understood by a person having ordinary skill in the technical field to which the present disclosure pertains from the following description. [Means for solving the problem]
[0011] An image decoding method according to one aspect of the present disclosure includes the steps of deriving a temporal motion vector predictor for a current block based on a co-located picture for the current block, deriving a motion vector for the current block based on the temporal motion vector predictor, and generating a predicted block for the current block based on the motion vector, wherein the co-located picture is determined based on identification information of the co-located picture included in a slice header of a current slice including the current block, but if the slice header does not include identification information of the co-located picture, the co-located picture can be determined based on identification information of the co-located picture included in a picture header of a current picture including the current block.
[0012] An image decoding device according to another aspect of the present disclosure includes a memory and at least one processor, wherein the at least one processor derives a temporal motion vector predictor for a current block based on a co-located picture for the current block, derives a motion vector for the current block based on the temporal motion vector predictor, and generates a predicted block for the current block based on the motion vector, wherein the co-located picture is determined based on identification information of the co-located picture included in a slice header of a current slice including the current block, but if the slice header does not include identification information of the co-located picture, the co-located picture may be determined based on identification information of the co-located picture included in a picture header of a current picture including the current block.
[0013] An image encoding method according to another aspect of the present disclosure includes the steps of generating a predicted block of a current block based on a motion vector of the current block, deriving a temporal motion vector predictor for the current block based on a co-located picture for the current block, and encoding a motion vector of the current block based on the temporal motion vector predictor, wherein identification information of the co-located picture is encoded in a slice header of a current slice including the current block, but if the identification information of the co-located picture is not encoded in the slice header, the identification information of the co-located picture can be encoded in a picture header of a current picture including the current block.
[0014] A computer-readable recording medium according to another aspect of the present disclosure can store a bitstream generated by the image encoding method or image encoding device of the present disclosure.
[0015] The features described above in this brief summary of the present disclosure are merely exemplary aspects of the detailed description of the present disclosure that follows and are not intended to limit the scope of the present disclosure. [Effects of the Invention]
[0016] According to the present disclosure, an image encoding / decoding method and apparatus with improved encoding / decoding efficiency can be provided.
[0017] Furthermore, according to the present disclosure, an image encoding / decoding method and apparatus based on a picture header including information about co-located pictures can be provided.
[0018] Furthermore, according to the present disclosure, an image encoding / decoding method and apparatus can be provided that improves the efficiency of the signaling mechanism for TMVP.
[0019] The present disclosure also provides a method for transmitting a bitstream generated by the image encoding method or apparatus according to the present disclosure.
[0020] Furthermore, according to the present disclosure, a recording medium storing a bitstream generated by the image encoding method or apparatus according to the present disclosure can be provided.
[0021] Furthermore, according to the present disclosure, it is possible to provide a recording medium that stores a bitstream that is received by the image decoding device according to the present disclosure, decoded, and used to restore an image.
[0022] The effects obtained by the present disclosure are not limited to the effects described above, and other effects not described above will be clearly understood by those having ordinary skill in the art to which the present disclosure pertains from the following description. [Brief explanation of the drawings]
[0023] [Figure 1] 1 is a diagram illustrating a video coding system to which embodiments of the present disclosure can be applied; [Figure 2] 1 is a diagram schematically illustrating an image encoding device to which an embodiment of the present disclosure can be applied. [Figure 3] FIG. 1 is a diagram schematically illustrating an image decoding device to which an embodiment of the present disclosure can be applied. [Figure 4] 1 is a flowchart illustrating an inter-prediction based video / image coding method. [Figure 5] 10 is a diagram illustrating an example configuration of an inter prediction unit 180 according to the present disclosure. [Figure 6] 1 is a flowchart illustrating an inter-prediction based video / image decoding method. [Figure 7] 10 is a diagram illustrating an example of the configuration of an inter prediction unit 260 according to the present disclosure. [Figure 8] FIG. 10 is a diagram illustrating peripheral blocks used as spatial merging candidates. [Figure 9] FIG. 1 is a diagram illustrating a merge candidate list construction method according to an example of the present disclosure. [Figure 10] FIG. 10 illustrates candidate pairs for redundancy checks performed on spatial candidates. [Figure 11] FIG. 10 is a diagram illustrating a method for scaling motion vectors of temporal candidates. [Figure 12] FIG. 10 is a diagram for explaining a position to which a time candidate is guided. [Figure 13] FIG. 2 is a diagram illustrating a motion vector predictor candidate list construction method according to an example of the present disclosure. [Figure 14a] FIG. 10 is a diagram showing an example of a picture header including information about TMVP. [Figure 14b] A figure showing an example of a slice header including information about TMVP. [Figure 15] FIG. 10 illustrates an example of a picture header according to an embodiment of the present disclosure. [Figure 16] FIG. 10 illustrates an example of a picture header according to an embodiment of the present disclosure. [Figure 17] FIG. 10 illustrates an example of a picture header according to an embodiment of the present disclosure. [Figure 18]FIG. 10 illustrates an example of a picture header according to an embodiment of the present disclosure. [Figure 19] 1 is a flowchart illustrating an image encoding method according to an embodiment of the present disclosure. [Figure 20] 1 is a flowchart illustrating an image decoding method according to an embodiment of the present disclosure. [Figure 21] 1 is a flowchart illustrating a method for determining co-located pictures according to one embodiment of the present disclosure. [Figure 22] 1 is a diagram illustrating an exemplary content streaming system to which an embodiment of the present disclosure can be applied; DETAILED DESCRIPTION OF THE INVENTION
[0024] The present disclosure will be described in detail below with reference to the accompanying drawings, so that those skilled in the art can easily implement the present disclosure. However, the present disclosure may be embodied in various different forms and is not limited to the embodiments described herein.
[0025] In describing the embodiments of the present disclosure, if it is determined that a detailed description of a known configuration or function may obscure the gist of the present disclosure, the detailed description thereof will be omitted. In addition, in the drawings, parts that are not related to the description of the present disclosure will be omitted, and similar parts will be designated by similar reference numerals.
[0026] In this disclosure, when a component is referred to as being "coupled," "coupled," or "connected" to another component, this includes not only a direct connection, but also an indirect connection where another component exists between them. Furthermore, when a component is referred to as "including" or "having" another component, this does not exclude the other component, but means that the component may further include the other component, unless otherwise specified.
[0027] In this disclosure, terms such as "first" and "second" are used only to distinguish one component from another component, and do not limit the order or importance of the components unless otherwise specified. Therefore, within the scope of this disclosure, a first component in one embodiment may be called a second component in another embodiment, and similarly, a second component in one embodiment may be called a first component in another embodiment.
[0028] In this disclosure, components that are distinguished from one another are used to clearly describe the characteristics of each component and do not necessarily mean that the components are separate. In other words, multiple components may be integrated into a single hardware or software unit, or a single component may be distributed into multiple hardware or software units. Therefore, even if not otherwise specified, such integrated or distributed embodiments are also included within the scope of this disclosure.
[0029] In this disclosure, the components described in various embodiments are not necessarily essential components, and some may be optional components. Therefore, an embodiment consisting of a subset of the components described in one embodiment is also within the scope of this disclosure. Furthermore, an embodiment including other components in addition to the components described in various embodiments is also within the scope of this disclosure.
[0030] The present disclosure relates to image encoding and decoding, and terms used in this disclosure may have their ordinary meaning in the technical field to which the present disclosure belongs unless they are newly defined in this disclosure.
[0031] In this disclosure, a "picture" generally refers to a unit representing any one image in a specific time period, and a slice / tile is a coding unit constituting a part of a picture, and one picture may be composed of one or more slices / tiles. Furthermore, a slice / tile may include one or more coding tree units (CTUs).
[0032] In this disclosure, "pixel" or "pel" may refer to the smallest unit constituting one picture (or image). Also, "sample" may be used as a term corresponding to pixel. A sample may generally indicate a pixel or a pixel value, may indicate only a pixel / pixel value of a luma component, or may indicate only a pixel / pixel value of a chroma component.
[0033] In this disclosure, the term "unit" may refer to a basic unit of image processing. A unit may include at least one of a specific region of a picture and information related to that region. The term "unit" may be used interchangeably with terms such as "sample array," "block," or "area," depending on the situation. In general, an M×N block may include a set (or array) of samples or transform coefficients consisting of M columns and N rows.
[0034] In the present disclosure, a "current block" may refer to any one of a "current coding block," a "current coding unit," a "block to be coded," a "block to be decoded," or a "block to be processed." When prediction is performed, a "current block" may refer to a "current predicted block" or a "block to be predicted." When transformation (inverse transformation) / quantization (inverse quantization) is performed, a "current block" may refer to a "current transformed block" or a "block to be transformed." When filtering is performed, a "current block" may refer to a "block to be filtered."
[0035] In this disclosure, unless explicitly stated as a chroma block, the term "current block" may refer to a block including both a luma component block and a chroma component block, or the "luma block of the current block." The luma component block of the current block may be expressed explicitly as a "luma block" or a "current luma block," including the explicit description of the luma component block. Furthermore, the chroma component block of the current block may be expressed explicitly as a "chroma block" or a "current chroma block," including the explicit description of the chroma component block.
[0036] In the present disclosure, " / " and "," can be interpreted as "and / or." For example, "A / B" and "A, B" can be interpreted as "A and / or B." Also, "A / B / C" and "A, B, C" can mean "at least one of A, B, and / or C."
[0037] In this disclosure, "or" can be interpreted as "and / or." For example, "A or B" can mean 1) only "A," 2) only "B," or 3) "A and B." Alternatively, in this disclosure, "or" can mean "additionally or alternatively."
[0038] Video Coding System Overview
[0039] FIG. 1 is a diagram illustrating a video coding system according to this disclosure.
[0040] A video coding system according to one embodiment may include an encoding device 10 and a decoding device 20. The encoding device 10 may transmit encoded video and / or image information or data to the decoding device 20 in a file or streaming format via a digital storage medium or a network.
[0041] An encoding device 10 according to an embodiment may include a video source generation unit 11, an encoding unit 12, and a transmission unit 13. A decoding device 20 according to an embodiment may include a reception unit 21, a decoding unit 22, and a rendering unit 23. The encoding unit 12 may be referred to as a video / image encoding unit, and the decoding unit 22 may be referred to as a video / image decoding unit. The transmission unit 13 may be included in the encoding unit 12. The reception unit 21 may be included in the decoding unit 22. The rendering unit 23 may include a display unit, which may be configured as a separate device or an external component.
[0042] The video source generation unit 11 can acquire video / images through a video / image capture, synthesis, or generation process. The video source generation unit 11 can include a video / image capture device and / or a video / image generation device. The video / image capture device can include, for example, one or more cameras, a video / image archive containing previously captured video / images, etc. The video / image generation device can include, for example, a computer, a tablet, a smartphone, etc., and can (electronically) generate video / images. For example, a virtual video / image can be generated via a computer, etc. In this case, the video / image capture process can be replaced with a process in which related data is generated.
[0043] The encoder 12 may encode the input video / image. The encoder 12 may perform a series of steps such as prediction, transformation, and quantization for compression and coding efficiency. The encoder 12 may output the encoded data (encoded video / image information) in a bitstream format.
[0044] The transmitter 13 may transmit the encoded video / image information or data output in a bitstream format to the receiver 21 of the decoding device 20 in a file or streaming format via 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, and SSD. The transmitter 13 may include elements for generating a media file in a predetermined file format and elements for transmitting via a broadcasting / communication network. The receiver 21 may extract / receive the bitstream from the storage medium or network and transmit it to the decoder 22.
[0045] The decoding unit 22 can decode the video / image by performing a series of steps such as inverse quantization, inverse transformation, and prediction corresponding to the operations of the encoding unit 12.
[0046] The rendering unit 23 can render the decoded video / images, and the rendered video / images can be displayed via the display unit.
[0047] Overview of the image encoding device
[0048] FIG. 2 is a diagram schematically illustrating an image encoding device to which an embodiment of the present disclosure can be applied.
[0049] 2, the image encoding device 100 may include an image division unit 110, a subtraction unit 115, a transform unit 120, a quantization unit 130, an inverse quantization unit 140, an inverse transform unit 150, an addition unit 155, a filtering unit 160, a memory 170, an inter prediction unit 180, an intra prediction unit 185, and an entropy encoding unit 190. The inter prediction unit 180 and the intra prediction unit 185 may be collectively referred to as a "prediction unit." The transform unit 120, the quantization unit 130, the inverse quantization unit 140, and the inverse transform unit 150 may be included in a residual processing unit. The residual processing unit may further include a subtraction unit 115.
[0050] Depending on the embodiment, all or at least some of the components constituting the image encoding device 100 may be realized by a single hardware component (e.g., an encoder or a processor). Also, the memory 170 may include a decoded picture buffer (DPB) and may be realized by a digital storage medium.
[0051] The image division unit 110 may divide an input image (or picture, frame) input to the image encoding device 100 into one or more processing units. As an example, the processing units may be called coding units (CUs). The coding units may be obtained by recursively dividing a coding tree unit (CTU) or a largest coding unit (LCU) using a QT / BT / TT (quad-tree / binary-tree / ternary-tree) structure. For example, one coding unit may be divided into multiple coding units at deeper depths based on a quad-tree structure, a binary-tree structure, and / or a ternary-tree structure. To divide the coding units, the quad-tree structure may be applied first, and then the binary-tree structure and / or the ternary-tree structure may be applied later. The coding procedure according to the present disclosure may be performed based on the final coding unit that is not further divided. The maximum coding unit may be used as the final coding unit, or a lower-depth coding unit obtained by dividing the maximum coding unit may be used as the final coding unit. Here, the coding procedure may include procedures such as prediction, transformation, and / or reconstruction, which will be described later. As another example, a processing unit of the coding procedure may be a prediction unit (PU) or a transform unit (TU). The prediction unit and the transform unit may be divided or partitioned from the final coding unit, respectively. The prediction unit may be a unit of sample prediction, and the transform unit may be a unit for deriving transform coefficients and / or a unit for deriving a residual signal from the transform coefficients.
[0052] The prediction unit (inter prediction unit 180 or intra prediction unit 185) may perform prediction on a current block (current block) to generate a predicted block including prediction samples for the current block. The prediction unit may determine whether intra prediction or inter prediction is applied to the current block or CU. The prediction unit may generate various information related to prediction of the current block and transmit it to the entropy coding unit 190. The prediction information may be coded by the entropy coding unit 190 and output in a bitstream format.
[0053] The intra prediction unit 185 may predict the current block by referring to samples in the current picture. The referenced samples may be located in the neighborhood of the current block or may be located far away from the current block according to the intra prediction mode and / or intra prediction technique. The intra prediction modes may include a plurality of non-directional modes and a plurality of directional modes. The non-directional modes may include, for example, DC mode and Planar mode. The directional modes may include, for example, 33 directional prediction modes or 65 directional prediction modes depending on the granularity of the prediction direction. However, this is merely an example, and more or less directional prediction modes may be used depending on the settings. The intra prediction unit 185 may also determine the prediction mode to be applied to the current block using the prediction modes applied to neighboring blocks.
[0054] The inter prediction unit 180 may derive a predicted block for a current block based on a reference block (reference sample array) identified by a motion vector on a reference picture. To reduce the amount of motion information transmitted in inter prediction mode, the motion information may be predicted in units of blocks, sub-blocks, or samples based on the correlation between the motion information of neighboring blocks and the current block. The motion information may include a motion vector and a reference picture index. The motion information may further include information on the inter prediction direction (e.g., L0 prediction, L1 prediction, Bi prediction, etc.). In the case of inter prediction, the neighboring blocks may include spatial neighboring blocks present in the current picture and temporal neighboring blocks present in the reference picture. The reference picture including the reference block and the reference picture including the temporal neighboring block may be the same or different. The temporal neighboring block may be called a collocated reference block, a collocated CU (colCU), etc. The reference picture including the temporal neighboring block may be called a collocated picture (colPic). For example, the inter predictor 180 may construct a motion information candidate list based on neighboring blocks and generate information indicating which candidate is used to derive a motion vector and / or a reference picture index for 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 180 may use motion information of neighboring blocks as motion information for the current block. In the case of skip mode, unlike in merge mode, a residual signal may not be transmitted.In the case of a motion vector prediction (MVP) mode, the motion vector of a neighboring block is used as a motion vector predictor, and the motion vector of the current block can be signaled by encoding a motion vector difference and an indicator for the motion vector predictor. The motion vector difference may mean the difference between the motion vector of the current block and the motion vector predictor.
[0055] The predictor may generate a prediction signal based on various prediction methods and / or prediction techniques, which will be described later. For example, the predictor may apply intra prediction or inter prediction to predict the current block, or may simultaneously apply intra prediction and inter prediction. A prediction method that simultaneously applies intra prediction and inter prediction to predict the current block may be referred to as combined inter and intra prediction (CIIP). The predictor may also perform intra block copy (IBC) to predict the current block. Intra block copy can be used for content image / video coding, such as screen content coding (SCC), for games. IBC is a method of predicting a current block using an already reconstructed reference block in a current picture that is located a predetermined distance away from the current block. When IBC is applied, the position of the reference block in the current picture may be coded as a vector (block vector) corresponding to the predetermined distance. IBC is essentially performed within the current picture, but may be similar to inter prediction in that a reference block is derived within the current picture. That is, the IBC may use at least one of the inter prediction techniques described in this disclosure.
[0056] The prediction signal generated by the prediction unit may be used to generate a restored signal or a residual signal. The subtraction unit 115 may subtract the prediction signal (predicted block, predicted sample array) output from the prediction unit from the input image signal (original block, original sample array) to generate a residual signal (residual signal, residual block, residual sample array). The generated residual signal may be transmitted to the conversion unit 120.
[0057] The transform unit 120 may generate transform coefficients by applying a transform technique to the residual signal. For example, the transform technique may include at least one of a discrete cosine transform (DCT), a discrete sine transform (DST), a Karhunen-Loeve transform (KLT), a graph-based transform (GBT), or a conditionally non-linear transform (CNT). Here, the GBT refers to a transform obtained from a graph representing inter-pixel relationship information. The CNT refers to a transform obtained based on a predicted signal generated using all previously reconstructed pixels. The transform process may be applied to pixel blocks having the same square size, or may be applied to non-square, variable-sized blocks.
[0058] The quantization unit 130 may quantize the transform coefficients and transmit the quantized transform coefficients to the entropy coding unit 190. The entropy coding unit 190 may encode the quantized signal (information about the quantized transform coefficients) and output the encoded signal in a bitstream format. The information about the quantized transform coefficients may be referred to as residual information. The quantization unit 130 may rearrange the quantized transform coefficients in a block format into a one-dimensional vector format based on a coefficient scan order, and may generate information about the quantized transform coefficients based on the quantized transform coefficients in the one-dimensional vector format.
[0059] The entropy coding unit 190 can perform various coding methods, such as exponential Golomb, context-adaptive variable length coding (CAVLC), and context-adaptive binary arithmetic coding (CABAC). The entropy coding unit 190 may also code information required for video / image restoration (e.g., syntax elements (values of syntax elements, etc.) together or separately) in addition to the quantized transform coefficients. The coded information (e.g., coded video / image information) may be transmitted or stored in NAL (network abstraction layer) unit units in a bitstream format. The video / image information may further include information on various parameter sets, such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). The video / image information may also include general constraint information. The signaling information, information to be transmitted, and / or syntax elements mentioned in the present disclosure may be coded through the above-mentioned coding procedure and included in the bitstream.
[0060] The bitstream may be transmitted via a network or stored in a digital storage medium. Here, the network may include a broadcasting network and / or a communication network, and the digital storage medium may include various storage media such as a USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. A transmitting unit (not shown) that transmits and / or a storing unit (not shown) that stores the signal output from the entropy encoding unit 190 may be provided as an internal / external element of the image encoding device 100, or the transmitting unit may be provided as a component of the entropy encoding unit 190.
[0061] The quantized transform coefficients output from the quantization unit 130 can be used to generate a residual signal. For example, the residual signal (residual block or residual sample) can be reconstructed by applying inverse quantization and inverse transform to the quantized transform coefficients via the inverse quantization unit 140 and the inverse transform unit 150.
[0062] The adder 155 may generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the reconstructed residual signal to the prediction signal output from the inter prediction unit 180 or the intra prediction unit 185. When there is no residual for the current block to be processed, such as when a skip mode is applied, the predicted block may be used as the reconstructed block. The adder 155 may be referred to as a reconstruction unit or a reconstructed block generation unit. The generated reconstructed signal may be used for intra prediction of the next current block to be processed in the current picture, and may also be used for inter prediction of the next picture after filtering, as will be described later.
[0063] The filtering unit 160 may apply filtering to the reconstructed signal to improve subjective / objective image quality. For example, the filtering unit 160 may apply various filtering methods to the reconstructed picture to generate a modified reconstructed picture and store the modified reconstructed picture in the memory 170, specifically, in the DPB of the memory 170. The various filtering methods may include, for example, deblocking filtering, sample adaptive offset, an adaptive loop filter, a bilateral filter, etc. The filtering unit 160 may generate various information related to filtering and transmit it to the entropy coding unit 190, as will be described later in connection with each filtering method. The filtering information may be coded by the entropy coding unit 190 and output in a bitstream format.
[0064] The modified reconstructed picture transmitted to the memory 170 can be used as a reference picture in the inter prediction unit 180. When inter prediction is applied through this, the image encoding device 100 can avoid a prediction mismatch between the image encoding device 100 and the image decoding device, and can also improve encoding efficiency.
[0065] The DPB in the memory 170 may store modified reconstructed pictures for use as reference pictures in the inter predictor 180. The memory 170 may store motion information of blocks from which motion information in the current picture is derived (or coded) and / or motion information of already reconstructed intra-picture blocks. The stored motion information may be transmitted to the inter predictor 180 to be used as motion information of spatially surrounding blocks or temporally surrounding blocks. The memory 170 may store reconstructed samples of reconstructed blocks in the current picture and transmit them to the intra predictor 185.
[0066] Overview of the image decoding device
[0067] FIG. 3 is a diagram schematically illustrating an image decoding device to which an embodiment of the present disclosure can be applied.
[0068] 3, the image decoding apparatus 200 may include an entropy decoding unit 210, an inverse quantization unit 220, an inverse transform unit 230, an adder 235, a filtering unit 240, a memory 250, an inter prediction unit 260, and an intra prediction unit 265. The inter prediction unit 260 and the intra prediction unit 265 may be collectively referred to as a "prediction unit." The inverse quantization unit 220 and the inverse transform unit 230 may be included in a residual processing unit.
[0069] Depending on the embodiment, all or at least some of the components constituting the image decoding device 200 may be realized by a single hardware component (e.g., a decoder or a processor). Also, the memory 170 may include a DPB and may be realized by a digital storage medium.
[0070] The image decoding device 200, which receives a bitstream including video / image information, can reconstruct an image by performing a process corresponding to the process performed by the image encoding device 100 of FIG. 2. For example, the image decoding device 200 can perform decoding using a processing unit applied in the image encoding device. Therefore, the decoding processing unit can be, for example, a coding unit. The coding unit can be obtained by dividing a coding tree unit or a maximum coding unit. The reconstructed image signal decoded and output by the image decoding device 200 can be reproduced by a reproduction device (not shown).
[0071] The image decoding apparatus 200 may receive a signal output from the image encoding apparatus of FIG. 2 in a bitstream format. The received signal may be decoded via an entropy decoding unit 210. For example, the entropy decoding unit 210 may parse the bitstream to derive information (e.g., video / image information) necessary for image reconstruction (or picture reconstruction). The video / image information may further include information on various parameter sets, such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). The video / image information may also include general constraint information. The image decoding apparatus may further use the information on the parameter sets and / or the general constraint information to decode an image. The signaling information, received information, and / or syntax elements referred to in the present disclosure may be obtained from the bitstream by being decoded via the decoding procedure. For example, the entropy decoding unit 210 may decode information in a bitstream based on a coding method such as Exponential-Golomb coding, CAVLC, or CABAC, and output values of syntax elements required for image restoration and quantized values of transform coefficients related to residuals. More specifically, the CABAC entropy decoding method receives bins corresponding to each syntax element from the bitstream, determines a context model using information on the syntax element to be decoded and decoded information on neighboring blocks and the block to be decoded, or information on symbols / bins decoded in a previous step, predicts the occurrence probability of the bins based on the determined context model, and performs arithmetic decoding of the bins to generate symbols corresponding to the values of each syntax element. After determining the context model, the CABAC entropy decoding method may update the context model using information on the decoded symbol / bin for the context model of the next symbol / bin.Among the information decoded by the entropy decoding unit 210, information related to prediction is provided to the prediction units (inter prediction unit 260 and intra prediction unit 265), and residual values entropy decoded by the entropy decoding unit 210, i.e., quantized transform coefficients and related parameter information, may be input to the inverse quantization unit 220. Also, among the information decoded by the entropy decoding unit 210, information related to filtering may be provided to the filtering unit 240. Meanwhile, a receiving unit (not shown) for receiving a signal output from the image encoding device may be further provided as an internal / external element of the image decoding device 200, or the receiving unit may be provided as a component of the entropy decoding unit 210.
[0072] Meanwhile, the image decoding apparatus according to the present disclosure may be referred to as a video / image / picture decoding apparatus. The image decoding apparatus may include an information decoder (video / image / picture information decoder) and / or a sample decoder (video / image / picture sample decoder). The information decoder may include an entropy decoding unit 210, and the sample decoder may include at least one of an inverse quantization unit 220, an inverse transform unit 230, an adder 235, a filtering unit 240, a memory 250, an inter prediction unit 260, and an intra prediction unit 265.
[0073] The inverse quantization unit 220 may inverse quantize the quantized transform coefficients and output the transform coefficients. The inverse quantization unit 220 may rearrange the quantized transform coefficients in a two-dimensional block format. In this case, the rearrangement may be performed based on the coefficient scanning order performed in the image encoding device. The inverse quantization unit 220 may perform inverse quantization on the quantized transform coefficients using a quantization parameter (e.g., quantization step size information) to obtain transform coefficients.
[0074] The inverse transform unit 230 can inversely transform the transform coefficients to obtain a residual signal (residual block, residual sample array).
[0075] The prediction unit may perform prediction on a current block and generate a predicted block including prediction samples for the current block. The prediction unit may determine whether intra prediction or inter prediction is applied to the current block based on information about the prediction output from the entropy decoding unit 210, and may determine a specific intra / inter prediction mode (prediction technique).
[0076] The prediction unit can generate a prediction signal based on various prediction methods (techniques) described below, as described in the description of the prediction unit of the image encoding device 100.
[0077] The intra predictor 265 may predict the current block by referring to samples in the current picture. The description of the intra predictor 185 may also be applied to the intra predictor 265.
[0078] The inter prediction unit 260 may derive a predicted block for a current block based on a reference block (reference sample array) identified by a motion vector on a reference picture. To reduce the amount of motion information transmitted in inter prediction mode, the motion information may be predicted in units of blocks, sub-blocks, or samples based on correlations between motion information of neighboring blocks and the current block. The motion information may include a motion vector and a reference picture index. The motion information may further include information on an inter prediction direction (e.g., L0 prediction, L1 prediction, Bi prediction, etc.). In the case of inter prediction, the neighboring blocks may include spatial neighboring blocks present in the current picture and temporal neighboring blocks present in the reference picture. For example, the inter prediction unit 260 may construct a motion information candidate list based on the neighboring blocks and derive a motion vector and / or a reference picture index for the current block based on received candidate selection information. Inter prediction may be performed based on various prediction modes (techniques), and the prediction information may include information indicating the inter prediction mode (technique) for the current block.
[0079] The adder 235 may generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the obtained residual signal to a prediction signal (predicted block, predicted sample array) output from a prediction unit (including the inter prediction unit 260 and / or the intra prediction unit 265). When there is no residual for the current block to be processed, such as when a skip mode is applied, the predicted block may be used as the reconstructed block. The description of the adder 155 may also be applied to the adder 235. The adder 235 may be referred to as a reconstruction unit or a reconstructed block generation unit. The generated reconstructed signal may be used for intra prediction of the next current block to be processed in the current picture, and may also be used for inter prediction of the next picture after undergoing filtering, as will be described later.
[0080] The filtering unit 240 may apply filtering to the reconstructed signal to improve subjective / objective image quality. For example, the filtering unit 240 may apply various filtering methods to the reconstructed picture to generate a modified reconstructed picture, and may store the modified reconstructed picture in the memory 250, specifically, in a DPB of the memory 250. The various filtering methods may include, for example, deblocking filtering, sample adaptive offset, an adaptive loop filter, a bilateral filter, etc.
[0081] The (modified) reconstructed picture stored in the DPB of the memory 250 can be used as a reference picture in the inter predictor 260. The memory 250 can store motion information of a block from which motion information in the current picture is derived (or decoded) and / or motion information of a block in an already reconstructed picture. The stored motion information can be transmitted to the inter predictor 260 to be used as motion information of a spatially surrounding block or a temporally surrounding block. The memory 250 can store reconstructed samples of reconstructed blocks in the current picture and transmit them to the intra predictor 265.
[0082] In this specification, the embodiments described for the filtering unit 160, inter prediction unit 180 and intra prediction unit 185 of the image encoding device 100 can also be applied in a similar or corresponding manner to the filtering unit 240, inter prediction unit 260 and intra prediction unit 265 of the image decoding device 200, respectively.
[0083] Inter Prediction Overview
[0084] The image encoding / decoding apparatus may perform inter prediction on a block-by-block basis to derive a prediction sample. Inter prediction may refer to a prediction technique derived in a manner dependent on data elements of pictures other than the current picture. When inter prediction is applied to a current block, a prediction block for the current block may be derived based on a reference block identified by a motion vector on a reference picture.
[0085] In this case, to reduce the amount of motion information transmitted in the inter prediction mode, motion information of the current block may be derived based on correlations between motion information of neighboring blocks and the current block, and the motion information may be derived in units of blocks, sub-blocks, or samples. In this case, the motion information may include a motion vector and a reference picture index. The motion information may further include inter prediction type information. Here, the inter prediction type information may represent direction information of inter prediction. The inter prediction type information may indicate whether the current block is predicted using any one of L0 prediction, L1 prediction, and Bi prediction.
[0086] When inter prediction is applied to a current block, the neighboring blocks of the current block may include spatial neighboring blocks present in the current picture and temporal neighboring blocks present in a reference picture. In this case, the reference picture including the reference blocks for the current block and the reference picture including the temporal neighboring blocks may be the same or different. The temporal neighboring blocks may be called collocated reference blocks or collocated coding units (colCUs), and the reference pictures including the temporal neighboring blocks may be called collocated pictures (colPics).
[0087] Meanwhile, a motion information candidate list can be constructed based on the neighboring blocks of the current block, and at this time, flag or index information indicating which candidate is used to derive the motion vector and / or reference picture index of the current block can be signaled.
[0088] The motion information may include L0 motion information and / or L1 motion information based on the inter prediction type. A motion vector in the L0 direction may be defined as an L0 motion vector or MVL0, and a motion vector in the L1 direction may be defined as an L1 motion vector or MVL1. Prediction based on the L0 motion vector may be defined as L0 prediction, prediction based on the L1 motion vector may be defined as L1 prediction, and prediction based on both the L0 motion vector and the L1 motion vector may be defined as bi-prediction. Here, the L0 motion vector may refer to a motion vector associated with the reference picture list L0, and the L1 motion vector may refer to a motion vector associated with the reference picture list L1.
[0089] The reference picture list L0 may include, as reference pictures, pictures that are earlier in output order than the current picture, and the reference picture list L1 may include pictures that are later in output order than the current picture. In this case, the earlier pictures may be defined as forward (reference) pictures, and the later pictures may be defined as backward (reference) pictures. Meanwhile, the reference picture list L0 may further include pictures that are later in output order than the current picture. In this case, the earlier pictures may be indexed first in the reference picture list L0, and the later pictures may be indexed next. The reference picture list L1 may further include pictures that are earlier in output order than the current picture. In this case, the later pictures may be indexed first in the reference picture list L1, and the earlier pictures may be indexed next. Here, the output order may correspond to a picture order count (POC) order.
[0090] FIG. 4 is a flowchart illustrating an inter-prediction based video / image coding method.
[0091] FIG. 5 is a diagram illustrating an example configuration of the inter prediction unit 180 according to the present disclosure.
[0092] The encoding method of FIG. 4 may be performed by the image encoding apparatus of FIG. 2. Specifically, step S410 may be performed by the inter prediction unit 180, and step S420 may be performed by the residual processing unit. Specifically, step S420 may be performed by the subtraction unit 115. Step S430 may be performed by the entropy encoding unit 190. The prediction information of step S430 may be derived by the inter prediction unit 180, and the residual information of step S430 may be derived by the residual processing unit. The residual information is information about the residual sample. The residual information may include information about quantized transform coefficients for the residual sample. As described above, the residual sample may be derived as transform coefficients via the transform unit 120 of the image encoding apparatus, and the transform coefficients may be derived as quantized transform coefficients via the quantization unit 130. Information about the quantized transform coefficients may be coded by the entropy encoding unit 190 through a residual coding procedure.
[0093] The image encoding apparatus may perform inter prediction on a current block (S410). The image encoding apparatus may derive an inter prediction mode and motion information of the current block and generate a predicted sample for the current block. Here, the inter prediction mode determination, motion information derivation, and predicted sample generation procedures may be performed simultaneously, or one procedure may be performed before the other procedures. For example, as shown in FIG. 5, the inter prediction unit 180 of the image encoding apparatus may include a prediction mode determination unit 181, a motion information derivation unit 182, and a predicted sample derivation unit 183. The prediction mode determination unit 181 may determine a prediction mode for the current block, the motion information derivation unit 182 may derive motion information of the current block, and the predicted sample derivation unit 183 may derive a predicted sample for the current block. For example, the inter prediction unit 180 of the image encoding apparatus may search for a block similar to the current block within a certain region (search area) of a reference picture through motion estimation and derive a reference block whose difference from the current block is minimum or equal to or less than a certain criterion. Based on this, a reference picture index indicating a reference picture in which the reference block is located can be derived, and a motion vector can be derived based on a difference in position between the reference block and the current block. The image encoding apparatus can determine a mode to be applied to the current block from various inter prediction modes. The image encoding apparatus can compare rate-distortion (RD) costs for the various prediction modes and determine an optimal inter prediction mode for the current block. However, the method by which the image encoding apparatus determines the inter prediction mode for the current block is not limited to the above example, and various methods can be used.
[0094] For example, the inter prediction mode for the current block can be determined as at least one of merge mode, merge skip mode, MVP mode (Motion Vector Prediction mode), SMVD mode (Symmetric Motion Vector Difference), affine mode, subblock-based merge mode, AMVR mode (Adaptive Motion Vector Resolution mode), HMVP mode (History-based Motion Vector Predictor mode), bi-predictive merge mode (Pair-wise average merge mode), MMVD mode (Merge mode with Motion Vector Differences mode), DMVR mode (Decoder side Motion Vector Refinement mode), CIIP mode (Combined Inter and Intra Prediction mode), and GPM (Geometric Partitioning mode).
[0095] For example, when a skip mode or a merge mode is applied to a current block, the image encoding apparatus may derive merge candidates from neighboring blocks of the current block and construct a merge candidate list using the derived merge candidates. Furthermore, the image encoding apparatus may derive a reference block whose difference from the current block is minimum or equal to or less than a certain criterion among reference blocks indicated by merge candidates included in the merge candidate list. In this case, a merge candidate associated with the derived reference block may be selected, and merge index information indicating the selected merge candidate may be generated and signaled to the image decoding apparatus. Motion information of the current block may be derived using motion information of the selected merge candidate.
[0096] As another example, when the MVP mode is applied to the current block, the image encoding apparatus may derive motion vector predictor (MVP) candidates from neighboring blocks of the current block and construct an MVP candidate list using the induced MVP candidates. The image encoding apparatus may also use a motion vector of an MVP candidate selected from the MVP candidates included in the MVP candidate list as the MVP of the current block. In this case, for example, a motion vector pointing to a reference block derived by the above-described motion estimation may be used as the motion vector of the current block, and an MVP candidate having a motion vector with the smallest difference from the motion vector of the current block may be the selected MVP candidate. A motion vector difference (MVD), which is a difference obtained by subtracting the MVP from the motion vector of the current block, may be derived. In this case, index information pointing to the selected MVP candidate and information regarding the MVD may be signaled to the image decoding apparatus. When the MVP mode is applied, the value of the reference picture index may be included in reference picture index information and separately signaled to the image decoding apparatus.
[0097] The image encoding apparatus may derive residual samples based on the predicted samples (S420). The image encoding apparatus may derive the residual samples by comparing the original samples of the current block with the predicted samples. For example, the residual samples may be derived by subtracting corresponding predicted samples from the original samples.
[0098] The image encoding apparatus may encode image information including prediction information and residual information (S430). The image encoding apparatus may output the encoded image information in a bitstream format. The prediction information may be information related to the prediction procedure and may include prediction mode information (e.g., a skip flag, a merge flag, or a mode index) and information regarding motion information. Of the prediction mode information, the skip flag is information indicating whether a skip mode is applied to a current block, and the merge flag is information indicating whether a merge mode is applied to the current block. Alternatively, the prediction mode information may be information indicating one of a plurality of prediction modes, such as a mode index. If the skip flag and the merge flag are both 0, it may be determined that the MVP mode is applied to the current block. The information regarding the motion information may include candidate selection information (e.g., a merge index, an MVP flag, or an MVP index) that is information for deriving a motion vector. Of the candidate selection information, the merge index may be signaled when a merge mode is applied to the current block, and may be information for selecting one of merge candidates included in a merge candidate list. Among the candidate selection information, the MVP flag or MVP index may be signaled when the MVP mode is applied to the current block, and may be information for selecting one of the MVP candidates included in the MVP candidate list. Specifically, the MVP flag may be signaled using a syntax element mvp_l0_flag or mvp_l1_flag. In addition, the information related to the motion information may include the above-mentioned information related to MVD and / or reference picture index information. In addition, the information related to the motion information may include information indicating whether L0 prediction, L1 prediction, or bi-prediction is applied. The residual information is information related to the residual sample.The residual information may include information about quantized transform coefficients for the residual samples.
[0099] The output bitstream can be stored in a (digital) storage medium and transmitted to the image decoding device, or can be transmitted to the image decoding device via a network.
[0100] Meanwhile, as described above, the image coding apparatus can generate a reconstructed picture (a picture including reconstructed samples and reconstructed blocks) based on the reference samples and the residual samples. This is because the image coding apparatus derives the same prediction result as that performed in the image decoding apparatus, thereby improving coding efficiency. Therefore, the image coding apparatus can store the reconstructed picture (or reconstructed samples, reconstructed blocks) in a memory and use it as a picture for inter prediction. As described above, an in-loop filtering procedure can be further applied to the reconstructed picture.
[0101] FIG. 6 is a flowchart illustrating an inter-prediction based video / image decoding method.
[0102] FIG. 7 is a diagram illustrating an example configuration of the inter prediction unit 260 according to the present disclosure.
[0103] The image decoding apparatus may perform operations corresponding to those performed by the image encoding apparatus, such as performing prediction on a current block based on received prediction information and deriving predicted samples.
[0104] The decoding method of FIG. 6 may be performed by the image decoding apparatus of FIG. 3. Steps S610 to S630 may be performed by the inter prediction unit 260, and the prediction information of step S610 and the residual information of step S640 may be obtained from a bitstream by the entropy decoding unit 210. The residual processing unit of the image decoding apparatus may derive residual samples for the current block based on the residual information (S640). Specifically, the inverse quantization unit 220 of the residual processing unit may derive transform coefficients by performing inverse quantization on the quantized transform coefficients derived based on the residual information, and the inverse transform unit 230 of the residual processing unit may derive residual samples for the current block by performing inverse transform on the transform coefficients. Step S650 may be performed by the adder 235 or a reconstruction unit.
[0105] Specifically, the image decoding apparatus may determine a prediction mode for the current block based on received prediction information (S610). The image decoding apparatus may determine which inter prediction mode is applied to the current block based on prediction mode information in the prediction information.
[0106] For example, it may determine whether the skip mode is applied to the current block based on the skip flag. Also, it may determine whether the merge mode or the MVP mode is applied to the current block based on the merge flag. Or, it may select one of various inter prediction mode candidates based on the mode index. The inter prediction mode candidates may include skip mode, merge mode, and / or MVP mode, or various inter prediction modes described below.
[0107] The image decoding apparatus may derive motion information of the current block based on the determined inter prediction mode (S620). For example, when a skip mode or a merge mode is applied to the current block, the image decoding apparatus may construct a merge candidate list (described below) and select one of the merge candidates included in the merge candidate list. The selection may be made based on the candidate selection information (merge index) described above. The image decoding apparatus may derive motion information of the current block using motion information of the selected merge candidate. For example, the motion information of the selected merge candidate may be used as motion information of the current block.
[0108] As another example, when the MVP mode is applied to the current block, the image decoding apparatus may construct an MVP candidate list and use a motion vector of an MVP candidate selected from the MVP candidates included in the MVP candidate list as the MVP of the current block. The selection may be made based on the candidate selection information (MVP flag or MVP index). In this case, the MVD of the current block may be derived based on information about the MVD, and the motion vector of the current block may be derived based on the MVP of the current block and the MVD. Furthermore, the image decoding apparatus may derive a reference picture index of the current block based on the reference picture index information. A picture pointed to by the reference picture index in the associated reference picture list for the current block may be derived as a reference picture referenced for inter prediction of the current block.
[0109] The image decoding apparatus may generate prediction samples for the current block based on the motion information of the current block (S630). In this case, the reference picture may be derived based on a reference picture index of the current block, and the prediction samples of the current block may be derived using samples of a reference block pointed to in the reference picture by the motion vector of the current block. Depending on the circumstances, a prediction sample filtering procedure may further be performed on all or some of the prediction samples of the current block.
[0110] 7, the inter prediction unit 260 of the image decoding apparatus may include a prediction mode determination unit 261, a motion information derivation unit 262, and a prediction sample derivation unit 263. The inter prediction unit 260 of the image decoding apparatus may determine a prediction mode for the current block based on prediction mode information received from the prediction mode determination unit 261, derive motion information (such as a motion vector and / or a reference picture index) of the current block based on information related to the motion information received from the motion information derivation unit 262, and derive a prediction sample of the current block via the prediction sample derivation unit 263.
[0111] The image decoding apparatus may generate residual samples for the current block based on the received residual information (S640). The image decoding apparatus may generate reconstructed samples for the current block based on the predicted samples and the residual samples, and generate a reconstructed picture based on the reconstructed samples (S650). Thereafter, an in-loop filtering procedure may be further applied to the reconstructed picture, as described above.
[0112] As described above, the inter prediction procedure may include an inter prediction mode determination step, a motion information deriving step according to the determined prediction mode, and a prediction execution step (generation of prediction samples) based on the derived motion information. The inter prediction procedure may be performed in an image encoding device and an image decoding device, as described above.
[0113] The motion information derivation step according to the prediction mode will be described in more detail below.
[0114] As described above, inter prediction can be performed using motion information of a current block. The image coding apparatus can derive optimal motion information for the current block through a motion estimation procedure. For example, the image coding apparatus can search for a similar reference block with high correlation using an original block in an original picture for the current block in a fractional pixel unit within a predetermined search range in the reference picture, thereby deriving motion information. The similarity of blocks can be calculated based on the sum of absolute differences (SAD) between the current block and the reference block. In this case, motion information can be derived based on the reference block with the smallest SAD within the search range. The derived motion information can be signaled to the image decoding apparatus in various ways based on the inter prediction mode.
[0115] When a merge mode is applied to a current block, the motion information of the current block is not directly transmitted, but is derived using the motion information of neighboring blocks. Therefore, the motion information of the current predicted block can be indicated by transmitting flag information indicating that the merge mode is used and candidate selection information (e.g., a merge index) indicating which neighboring blocks are used as merge candidates. In this disclosure, since the current block is a unit of prediction execution, the current block may be used in the same sense as a current predicted block, and the neighboring blocks may be used in the same sense as neighboring predicted blocks.
[0116] The image encoding apparatus may search for merge candidate blocks to be used to derive motion information of the current block to perform the merge mode. For example, but not limited to, up to five merge candidate blocks may be used. The maximum number of merge candidate blocks may be transmitted from a slice header or a tile group header, but is not limited to this. After finding the merge candidate blocks, the image encoding apparatus may generate a merge candidate list and select the merge candidate block with the smallest RD cost as the final merge candidate block.
[0117] The present disclosure provides various embodiments for the merge candidate blocks that make up the merge candidate list. The merge candidate list can use, for example, five merge candidate blocks. For example, four spatial merge candidates and one temporal merge candidate can be used.
[0118] FIG. 8 is a diagram illustrating neighboring blocks that can be used as spatial merging candidates.
[0119] FIG. 9 is a diagram illustrating a method for constructing a merge candidate list according to an example of the present disclosure.
[0120] The image encoding / decoding apparatus may search for spatial neighboring blocks of the current block and insert the derived spatial merge candidates into a merge candidate list (S910). For example, the spatial neighboring blocks may include a lower left-hand neighboring block A0, a left-hand neighboring block A1, a right-hand neighboring block B0, an upper right-hand neighboring block B1, and an upper left-hand neighboring block B2 of the current block, as shown in FIG. 8. However, this is merely an example, and additional neighboring blocks, such as a right-hand neighboring block, a lower neighboring block, and a lower right-hand neighboring block, may also be used as the spatial neighboring blocks. The image encoding / decoding apparatus may search the spatial neighboring blocks based on priority to detect available blocks and derive motion information of the detected blocks as the spatial merge candidates. For example, the image encoding / decoding apparatus may search the five blocks shown in FIG. 8 in the order of A1, B1, B0, A0, and B2, and sequentially index the available candidates to construct a merge candidate list.
[0121] The image encoding / decoding apparatus may search for temporally peripheral blocks of the current block and insert derived temporal merge candidates into the merge candidate list (S920). The temporal peripheral blocks may be located on a reference picture that is a different picture from the current picture in which the current block is located. The reference picture in which the temporal peripheral blocks are located may be called a collocated picture or col picture. The temporal peripheral blocks may be searched for in the order of the lower right corner peripheral block and the lower right center block of the colocated block with respect to the current block on the col picture. Meanwhile, when motion data compression is applied to reduce memory load, specific motion information may be stored as representative motion information for each certain storage unit for the col picture. In this case, it is not necessary to store motion information for all blocks within the certain storage unit, thereby achieving a motion data compression effect. In this case, the certain storage unit may be predetermined, for example, in 16x16 sample units or 8x8 sample units, or size information for the certain storage unit may be signaled from the image encoding device to the image decoding device. When the motion data compression is applied, the motion information of the temporal peripheral block may be replaced with representative motion information of the certain storage unit in which the temporal peripheral block is located. That is, in this case, from the viewpoint of implementation, the temporal merge candidate may be derived based on the motion information of the prediction block that covers the position arithmetically shifted left after arithmetically shifting a certain value based on the coordinates (upper left sample position) of the temporal peripheral block, rather than based on the prediction block located at the coordinates of the temporal peripheral block. For example, if the certain storage unit is 2 n ×2 nWhen it is in sample units, if the coordinates of the time surrounding block are (xTnb, yTnb), the motion information of the prediction block located at the corrected position ((xTnb >> n) << n), (yTnb >> n) << n)) can be used for the time merge candidate. Specifically, for example, when the fixed storage unit is 16×16 sample units, if the coordinates of the time surrounding block are (xTnb, yTnb), the motion information of the prediction block located at the corrected position ((xTnb >> 4) << 4), (yTnb >> 4) << 4)) can be used for the time merge candidate. Or, for example, when the fixed storage unit is 8×8 sample units, if the coordinates of the time surrounding block are (xTnb, yTnb), the motion information of the prediction block located at the corrected position ((xTnb >> 3) << 3), (yTnb >> 3) << 3)) can be used for the time merge candidate.
[0122] Referring to FIG. 9 again, the image encoding device / image decoding device can check whether the number of current merge candidates is smaller than the number of maximum merge candidates (S930). The number of the maximum merge candidates can be predefined or signaled from the image encoding device to the image decoding device. For example, the image encoding device can generate information regarding the number of the maximum merge candidates, encode it, and transmit it to the image decoding device in the form of a bit stream. When all of the number of the maximum merge candidates are satisfied, the subsequent candidate addition process (S940) can not be performed.
[0123] If it is determined in step S930 that the number of current merge candidates is less than the maximum number of merge candidates, the image encoding / decoding apparatus may derive additional merge candidates based on a predetermined scheme and insert them into the merge candidate list (S940). The additional merge candidates may include, for example, at least one of history-based merge candidate(s), pair-wise average merge candidate(s), ATMVP, combined bi-predictive merge candidate (if the slice / tile group type of the current slice / tile group is type B), and / or zero vector merge candidate.
[0124] If, as a result of the check in step S930, the number of current merge candidates is not less than the maximum number of merge candidates, the image encoding device / image decoding device may terminate construction of the merge candidate list. In this case, the image encoding device may select an optimal merge candidate from among the merge candidates constituting the merge candidate list based on the RD cost, and may signal candidate selection information (e.g., a merge candidate index) indicating the selected merge candidate to the image decoding device. The image decoding device may select the optimal merge candidate based on the merge candidate list and the candidate selection information.
[0125] As described above, the motion information of the selected merging candidate may be used as the motion information of the current block, and the predicted sample of the current block may be derived based on the motion information of the current block. The image encoding apparatus may derive residual samples of the current block based on the predicted sample and signal residual information regarding the residual sample to the image decoding apparatus. As described above, the image decoding apparatus may generate reconstructed samples based on the residual samples derived based on the residual information and the predicted sample, and generate a reconstructed picture based on the reconstructed samples.
[0126] When the skip mode is applied to the current block, the motion information of the current block can be derived in the same manner as when the merge mode is applied to the previous block. However, when the skip mode is applied, the residual signal for the current block is omitted. Therefore, the predicted samples can be used directly as reconstructed samples. The skip mode can be applied, for example, when the value of cu_skip_flag is 1.
[0127] A method for deriving spatial candidates in the merge mode and / or skip mode will be described below. The spatial candidates may indicate the spatial merge candidates described above.
[0128] Derivation of spatial candidates may be performed based on spatially neighboring blocks. For example, up to four spatial candidates may be derived from the candidate blocks located at the positions shown in FIG. 8. The order in which spatial candidates are derived may be A1->B1->B0->A0->B2. However, the order in which spatial candidates are derived is not limited to the above order and may be, for example, B1->A1->B0->A0->B2. The last position in the order (position B2 in the above example) may be considered when at least one of the preceding four positions (A1, B1, B0, and A0 in the above example) is unavailable. In this case, the unavailability of a block at a certain position may include the case where the block belongs to a different slice or tile from the current block, or the case where the block is an intra-predicted block. If a spatial candidate is derived from the first position in the order (A1 or B1 in the above example), a redundancy check may be performed on the spatial candidates at subsequent positions. For example, if the motion information of a subsequent spatial candidate is identical to the motion information of a spatial candidate already included in the merge candidate list, the subsequent spatial candidate is not included in the merge candidate list, thereby improving coding efficiency. Redundancy checks for subsequent spatial candidates are performed for only some candidate pairs, rather than for all candidate pairs, as much as possible, thereby reducing computational complexity.
[0129] FIG. 10 is a diagram illustrating candidate pairs for redundancy checks performed on spatial candidates.
[0130] In the example shown in Figure 10, a redundancy check for spatial candidates at the B0 position can only be performed on spatial candidates at the A0 position. Also, a redundancy check for spatial candidates at the B1 position can only be performed on spatial candidates at the B0 position. Also, a redundancy check for spatial candidates at the A1 position can only be performed on spatial candidates at the A0 position. Finally, a redundancy check for spatial candidates at the B2 position can only be performed on spatial candidates at the A0 and B0 positions.
[0131] 10 is an example in which the order of deriving spatial candidates is A0->B0->B1->A1->B2. However, the order is not limited thereto, and even if the order of deriving spatial candidates is changed, redundancy check can be performed only on some candidate pairs, as in the example shown in FIG.
[0132] In the following, a method for deriving temporal candidates in merge mode and / or skip mode will be described. The temporal candidates may indicate the temporal merge candidates described above. In addition, the motion vectors of the temporal candidates may correspond to the temporal candidates in MVP mode.
[0133] Only one temporal candidate can be included in the merge candidate list. In the process of deriving a temporal candidate, the motion vector of the temporal candidate can be scaled. For example, the scaling can be performed based on a co-located block (Cu) (hereinafter referred to as a "col block") belonging to a co-located reference picture (colPic) (hereinafter referred to as a "col picture"). The reference picture list used to derive the col block can be explicitly signaled in the slice header.
[0134] FIG. 11 is a diagram for explaining a method for scaling motion vectors of temporal candidates.
[0135] In FIG. 11, curr_CU and curr_pic indicate the current block and current picture, and col_CU and col_pic indicate the col block and col picture. Furthermore, curr_ref indicates the reference picture of the current block, and col_ref indicates the reference picture of the col block. Furthermore, tb indicates the distance between the reference picture of the current block and the current picture, and td indicates the distance between the reference picture of the col block and the col picture. The tb and td may be expressed as values corresponding to the difference in Picture Order Count (POC) between pictures. Scaling of the motion vector of a temporal candidate may be performed based on tb and td. Furthermore, the reference picture index of a temporal candidate may be set to 0.
[0136] FIG. 12 is a diagram for explaining positions to which time candidates are guided.
[0137] In Figure 12, a block with a thick solid line indicates a current block. Temporal candidates may be derived from a block in a col picture corresponding to position C0 (the position on the lower right) or position C1 (the center position) in Figure 12. First, it is determined whether position C0 is available. If position C0 is available, temporal candidates may be derived based on position C0. If position C0 is not available, temporal candidates may be derived based on position C1. For example, if the block in the col picture at position C0 is an intra-predicted block or exists outside the current CTU row, it may be determined that position C0 is not available.
[0138] As described above, when motion data compression is applied, the motion vector of the Col block can be stored for each predetermined unit block. In this case, the C0 or C1 position can be modified to derive the motion vector of the block covering the C0 or C1 position. For example, if the predetermined unit block is an 8x8 block and the C0 or C1 position is (xColCi, yColCi), the position for deriving the temporal candidate can be modified to ((xColCi>>3)<<3, (yColCi)>>3)<<3).
[0139] Hereinafter, a method for deriving history-based candidates in the merge mode and / or skip mode will be described. History-based candidates can be expressed as history-based merge candidates.
[0140] History-based candidates can be added to the merge candidate list after spatial and temporal candidates are added to the merge candidate list. For example, motion information of a previously encoded / decoded block is stored in a table and can be used as a history-based candidate for the current block. The table can store multiple history-based candidates during the encoding / decoding process. The table can be initialized when a new CTU row begins. Initializing the table may mean that all history-based candidates stored in the table are deleted and the table becomes empty. For each inter-predicted block, associated motion information can be added to the table as the last entry. In this case, the inter-predicted block does not have to be a block predicted based on a sub-block. The motion information added to the table can be used as a new history-based candidate.
[0141] The history-based candidate table may have a predetermined size. For example, the size may be 5. In this case, the table can store up to five history-based candidates. When a new candidate is added to the table, a limited first-in-first-out (FIFO) rule may be applied, in which a redundancy check is first performed to determine whether an identical candidate already exists in the table. If an identical candidate already exists in the table, the identical candidate is deleted from the table, and the positions of all subsequent history-based candidates may be moved forward.
[0142] History-based candidates can be used in the process of constructing a merge candidate list. In this case, history-based candidates most recently included in the table are checked sequentially and can be included in the merge candidate list after a temporal candidate. When a history-based candidate is included in the merge candidate list, a redundancy check with spatial or temporal candidates already included in the merge candidate list can be performed. If a history-based candidate overlaps with a spatial or temporal candidate already included in the merge candidate list, the history-based candidate may not be included in the merge candidate list. The redundancy check can be simplified as follows to reduce the amount of calculation.
[0143] The number of history-based candidates used to generate the merge candidate list can be set to (N<=4)?M:(8-N), where N represents the number of candidates already included in the merge candidate list and M represents the number of available history-based candidates stored in the table. That is, if the merge candidate list includes four or fewer candidates, the number of history-based candidates used to generate the merge candidate list is M. If the merge candidate list includes N candidates (more than four), the number of history-based candidates used to generate the merge candidate list can be set to (8-N).
[0144] When the total number of available merge candidates reaches (maximum allowed number of merge candidates - 1), construction of the merge candidate list using history-based candidates can be terminated.
[0145] Hereinafter, a method for deriving pair-wise average candidates in the merge mode and / or skip mode will be described. The pair-wise average candidates can be expressed as pair-wise average merge candidates or pair-wise candidates.
[0146] Pair-wise average candidates can be generated by obtaining predefined candidate pairs from candidates included in the merge candidate list and averaging them. The predefined candidate pairs are {(0,1), (0,2), (1,2), (0,3), (1,3), (2,3)}, and the numbers constituting each candidate pair may be indices in the merge candidate list. That is, the predefined candidate pair (0,1) refers to the pair of candidate index 0 and candidate index 1 in the merge candidate list, and the pair-wise average candidate can be generated by averaging candidate index 0 and candidate index 1. Pair-wise average candidates can be derived in the order of the predefined candidate pairs. That is, after deriving a pair-wise average candidate for candidate pair (0,1), the pair-wise average candidate derivation process can be performed in the order of candidate pair (0,2) and candidate pair (1,2). The pair-wise average candidate derivation process can be performed until the merge candidate list is completely constructed. For example, the pair-wise average candidate derivation process may be performed until the number of merge candidates included in the merge candidate list reaches the maximum number of merge candidates.
[0147] Pair-wise average candidates can be calculated separately for each reference picture list. If two motion vectors are available for one reference picture list (L0 list or L1 list), the average of these two motion vectors can be calculated. In this case, the average of the two motion vectors can be calculated even if the two motion vectors point to different reference pictures. If only one motion vector is available for one reference picture list, the available motion vector can be used as the motion vector for the pair-wise average candidate. If not all two motion vectors are available for one reference picture list, the reference picture list can be determined to be invalid.
[0148] If the construction of the merge candidate list is not complete even after the pair-wise average candidate is included in the merge candidate list, zero vectors can be added to the merge candidate list until the maximum number of merge candidates is reached.
[0149] When the MVP mode is applied to the current block, a motion vector predictor (MVP) candidate list can be generated using the motion vectors of reconstructed spatial surrounding blocks (e.g., surrounding blocks shown in FIG. 8) and / or motion vectors corresponding to temporal surrounding blocks (or Col blocks). That is, the motion vectors of the reconstructed spatial surrounding blocks and / or motion vectors corresponding to the temporal surrounding blocks can be used as motion vector predictor candidates for the current block. When bi-prediction is applied, an MVP candidate list for deriving L0 motion information and an MVP candidate list for deriving L1 motion information can be generated and used separately. Prediction information (or prediction information) for the current block may include candidate selection information (e.g., an MVP flag or an MVP index) indicating an optimal motion vector predictor candidate selected from the motion vector predictor candidates included in the MVP candidate list. In this case, the prediction unit can select a motion vector predictor for the current block from the motion vector predictor candidates included in the MVP candidate list using the candidate selection information. A prediction unit of an image encoding device can obtain a motion vector differential (MVD) between a motion vector of a current block and a motion vector predictor, encode the obtained MVD, and output the MVD in a bitstream format. That is, the MVD can be obtained by subtracting the motion vector predictor from the motion vector of the current block. A prediction unit of an image decoding device can obtain a motion vector differential included in information related to the prediction, and derive the motion vector of the current block by adding the motion vector differential and the motion vector predictor. The prediction unit of an image decoding device can obtain or derive a reference picture index, etc., indicating a reference picture, from information related to the prediction.
[0150] FIG. 13 is a diagram illustrating a motion vector predictor candidate list construction method according to an example of the present disclosure.
[0151] First, spatial candidate blocks for the current block are searched for and available candidate blocks are inserted into the MVP candidate list (S1310). Then, it is determined whether the MVP candidate list contains less than two MVP candidates (S1320). If there are two, the construction of the MVP candidate list can be completed.
[0152] In step S1320, if there are less than two spatial candidate blocks available, temporal candidate blocks for the current block can be searched for and an available candidate block can be inserted into the MVP candidate list (S1330). If no temporal candidate block is available, a zero motion vector can be inserted into the MVP candidate list (S1340) to complete the construction of the MVP candidate list.
[0153] On the other hand, when the MVP mode is applied, the reference picture index may be explicitly signaled. In this case, a picture index (refidxL0) for L0 prediction and a reference picture index (refidxL1) for L1 prediction may be separately signaled. For example, when the MVP mode is applied and bi-prediction (BI prediction) is applied, information about refidxL0 and information about refidxL1 may both be signaled.
[0154] As described above, when the MVP mode is applied, information about the MVD derived from the image coding apparatus can be signaled to the image decoding apparatus. The information about the MVD can include, for example, information indicating x and y components of the MVD absolute value and sign. In this case, information indicating whether the MVD absolute value is greater than 0, whether it is greater than 1, and the rest of the MVD can be signaled in stages. For example, information indicating whether the MVD absolute value is greater than 1 can be signaled only when the value of flag information indicating whether the MVD absolute value is greater than 0 is 1.
[0155] Overview of TMVP (temporal motion vector predictor) signaling
[0156] As described above, for inter prediction of the current block, a temporal motion vector predictor (TMVP) used as a temporal merge candidate or a temporal MVP candidate can be derived. The TMVP can be derived based on temporal neighboring blocks in a collocated (reference) picture (colPic). Here, the temporal neighboring blocks can include the collocated reference block (colCb) of the current block.
[0157] The information / syntax element indicating the co-located reference block (colCb) can be signaled via a high level syntax (HLS) such as a picture header. A TMVP coding tool can be used to encode / decode the bitstream. The signaling mechanism for TMVP is as follows:
[0158] TMVP can be used for picture coding in a coded layer video sequence (CLVS). Whether TMVP is available for a picture in a CLVS can be determined based on predetermined flag information (e.g., sps_temporal_mvp_enabled_flag) in a sequence parameter set (SPS). For example, sps_temporal_mvp_enabled_flag having a first value (e.g., 0) can indicate that TMVP is not available for a picture in the CLVS, and sps_temporal_mvp_enabled_flag having a second value (e.g., 1) can indicate that TMVP is available for a picture in the CLVS.
[0159] When TMVP is available for pictures in a CLVS, whether TMVP is available for each picture can be determined based on predetermined flag information (e.g., pic_temporal_mvp_enabled_flag) in the picture header. For example, pic_temporal_mvp_enabled_flag having a first value (e.g., 0) may indicate that TMVP is not available for inter prediction for slices in a picture associated with the picture header. In this case, syntax elements for slices in the picture associated with the picture header may restrict TMVP from being used for slice decoding. In contrast, pic_temporal_mvp_enabled_flag having a second value (e.g., 1) may indicate that TMVP is available for inter prediction for slices in a picture associated with the picture header. On the other hand, if pic_temporal_mvp_enabled_flag is not signaled, the value of pic_temporal_mvp_enabled_flag may be inferred to be the first value (e.g., 0). On the other hand, if there is no reference picture in the decoded picture buffer (DPB) that has the same spatial resolution as the current picture, the value of pic_temporal_mvp_enabled_flag can be limited to a first value (eg, 0).
[0160] If TMVP is available for a given picture, information about TMVP, such as the identity of co-located pictures (colPics), can be signaled for each slice within that picture.
[0161] FIG. 14a shows an example of a picture header including information about TMVP.
[0162] 14a, whether TMVP is available at the sequence level can be determined based on predetermined flag information (e.g., sps_temporal_mvp_enabled_flag) at the sequence level. For example, sps_temporal_mvp_enabled_flag having a first value (e.g., 0) can indicate that TMVP is not available at the sequence level. In contrast, sps_temporal_mvp_enabled_flag having a second value (e.g., 1) can indicate that TMVP is available at the sequence level.
[0163] If TMVP is available at the sequence level, pic_temporal_mvp_enabled_flag can be signaled via the picture header. For example, pic_temporal_mvp_enabled_flag with a first value (e.g., 0) can indicate that TMVP is not available at the picture level. Conversely, pic_temporal_mvp_enabled_flag with a second value (e.g., 1) can indicate that TMVP is available at the picture level.
[0164] FIG. 14b shows an example of a slice header including information about TMVP.
[0165] 14b, num_ref_idx_active_override_flag may indicate whether num_ref_idx_active_minus1[i] is present. For example, num_ref_idx_active_override_flag having a first value (e.g., 0) may indicate that num_ref_idx_active_minus1[0] and num_ref_idx_active_minus1[1] are not present. In contrast, num_ref_idx_active_override_flag having a second value (e.g., 1) may indicate that num_ref_idx_active_minus1[0] is present for P slices and B slices, and that num_ref_idx_active_minus1[1] is present for B slices. On the other hand, if num_ref_idx_active_override_flag is not signaled, the value of num_ref_idx_active_override_flag may be inferred to be the second value (e.g., 1).
[0166] num_ref_idx_active_minus1[i] may be used to derive a variable NumRefIdxActive[i], where the value of the variable NumRefIdxActive[i] minus 1 may indicate the maximum reference index of the i-th reference picture list (RPL) used in decoding the current slice (where i is 0 or 1). In one example, the value of num_ref_idx_active_minus1[i] may be between 0 and 14.
[0167] If the current slice is a B slice, num_ref_idx_active_override_flag has a second value (e.g., 1), and num_ref_idx_active_minus1[i] does not exist, the value of num_ref_idx_active_minus1[i] can be inferred to be the first value (e.g., 0). Alternatively, if the current slice is a P slice, num_ref_idx_active_override_flag has a second value (e.g., 1), and num_ref_idx_active_minus1[0] does not exist, the value of num_ref_idx_active_minus1[0] can be inferred to be the first value (e.g., 0).
[0168] Based on the value of num_ref_idx_active_minus1[i], the variable NumRefIdxActive[i] can be derived as shown in Table 1 below.
[0169] [Table 1]
[0170] In Table 1, NumRefIdxActive[i] having the first value (e.g., 0) may indicate that the current slice cannot be decoded based on the reference index in the i-th (where i is 0 or 1) reference picture list.
[0171] In one example, if the current slice is a P slice, the value of NumRefIdxActive[0] may be greater than 0. Also, if the current slice is a B slice, the values of NumRefIdxActive[0] and NumRefIdxActive[1] may be greater than 0.
[0172] Continuing to refer to Figure 14b, collocated_from_l0_flag may indicate from which reference picture list, L0 or L1, a co-located picture (colPic) for TMVP is derived (i.e., direction information of the co-located picture (colPic)). For example, collocated_from_l0_flag having a first value (e.g., 0) may indicate that the co-located picture (colPic) is derived from reference picture list L1. Conversely, collocated_from_l0_flag having a second value (e.g., 1) may indicate that the co-located picture (colPic) is derived from reference picture list L0. On the other hand, if collocated_from_l0_flag is not signaled and the slice type is not a B slice, the value of collocated_from_l0_flag can be inferred to be the second value (e.g., 1). Alternatively, if collocated_from_l0_flag is not signaled and the slice type is a B slice, the value of collocated_from_l0_flag can be inferred to be pps_collocated_from_l0_idc minus 1. Here, pps_collocated_from_l0_idc may indicate whether collocated_from_l0_flag is present in the slice header. For example, if collocated_from_l0_flag is present in the slice header, pps_collocated_from_l0_idc may have a first value (e.g., 0). Alternatively, if collocated_from_l0_flag is not present in the slice header, pps_collocated_from_l0_idc may have a second value (e.g., 1) or a third value (e.g., 2).
[0173] collocated_ref_idx may indicate a reference picture index of a co-located picture (colPic) for TMVP. For example, if the slice type is a P slice or a B slice (i.e., the value of NumRefIdxActive[0] is greater than 0) and collocated_from_l0_flag has a second value (e.g., 1), collocated_ref_idx may point to a reference picture in the reference picture list L0. Here, the value of collocated_ref_idx may be greater than or equal to 0 and less than or equal to the value of NumRefIdxActive[0] minus 1. Or, if the slice type is a B slice (i.e., the value of NumRefIdxActive[1] is greater than 0) and collocated_from_l0_flag has a first value (e.g., 0), collocated_ref_idx may point to a reference picture in the reference picture list L1. Here, the value of collocated_ref_idx may be greater than or equal to 0 and less than or equal to the value of NumRefIdxActive[1] minus 1. On the other hand, if collocated_ref_idx is not signaled, the value of collocated_ref_idx may be inferred to be a first value (e.g., 0).
[0174] In one example, it may be a constraint for bitstream compatibility that the reference pictures identified by collocated_ref_idx are the same for all slices associated with the coded picture. In another example, it may be a constraint for bitstream compatibility that the resolutions of the reference picture identified by collocated_ref_idx and the current picture are the same and the value of RefPicIsScaled[collocated_from_l0_flag?0:1][collocated_ref_idx] is the first value (e.g., 0).
[0175] In the signaling mechanism for TMVP described above with reference to Figures 14a and 14b, information about co-located pictures (colPic), for example, identification information of the co-located pictures (colPic) (e.g., collocated_from_l0_flag and collocated_ref_idx), can be signaled only via the slice header. However, when the same co-located pictures (colPic) are applied to all slices in a picture, the signaling mechanism for TMVP described above requires that information about the co-located pictures (colPic) be signaled for each slice, which may result in an increase in signaling overhead.
[0176] To solve this problem, according to an embodiment of the present disclosure, information about co-located pictures (colPics) for TMVP can be signaled via slice headers or via higher level syntax, such as picture headers.
[0177] Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings.
[0178] 15 to 18 are diagrams illustrating an example of a picture header according to an embodiment of the present disclosure.
[0179] First, referring to FIG. 15, the picture header contains information about a collocated picture (colPic) for TMVP, and may include pic_collocated_from_l0_flag and pic_collocated_ref_idx.
[0180] pic_collocated_from_l0_flag and pic_collocated_ref_idx can only be signaled if TMVP is available at the picture level (eg, pic_temporal_mvp_enabled_flag==1).
[0181] The pic_collocated_from_l0_flag may indicate from which reference picture list, Reference Picture List 0 (RPL0) or Reference Picture List 1 (RPL1), a co-located picture (colPic) for TMVP is derived (i.e., direction information of the co-located picture (colPic)). For example, a pic_collocated_from_l0_flag having a first value (e.g., 0) may indicate that the co-located picture (colPic) is derived from Reference Picture List 1 (RPL1). In contrast, a pic_collocated_from_l0_flag having a second value (e.g., 1) may indicate that the co-located picture (colPic) is derived from Reference Picture List 0 (RPL0). On the other hand, if pic_collocated_from_l0_flag is not signaled and the number of entries in Reference Picture List 1 (RPL1) (e.g., num_ref_entries[1][RplsIdx[1]]) is 0, the value of pic_collocated_from_l0_flag can be inferred to be a second value (e.g., 1). That is, the co-located picture (colPic) can be derived from Reference Picture List 0 (RPL0).
[0182] If pic_collocated_from_l0_flag has a second value (e.g., 1) and the number of entries in reference picture list 0 (RPL0) is greater than 1 (e.g., num_ref_entries[0][RplsIdx[0]]>1), pic_collocated_ref_idx may be signaled. Alternatively, if pic_collocated_from_l0_flag has a first value (e.g., 0) and the number of entries in reference picture list 1 (RPL1) is greater than 1 (e.g., num_ref_entries[1][RplsIdx[1]]>1), pic_collocated_ref_idx may be signaled.
[0183] pic_collocated_ref_idx may indicate a reference picture index of a co-located picture (colPic) for TMVP. For example, if pic_collocated_from_l0_flag has a second value (e.g., 1) and pic_collocated_ref_idx indicates one of the entries in Reference Picture List 0 (RPL0), the value of pic_collocated_ref_idx may be greater than or equal to 0 and less than the number of entries in Reference Picture List 0 (RPL0) minus 1. Alternatively, if pic_collocated_from_l0_flag has a first value (e.g., 0) and pic_collocated_ref_idx indicates one of the entries in Reference Picture List 1 (RPL1), the value of pic_collocated_ref_idx may be greater than or equal to 0 and less than the number of entries in Reference Picture List 1 (RPL1) minus 1. On the other hand, if pic_collocated_ref_idx is not signaled, the value of pic_collocated_ref_idx can be inferred to be a first value (eg, 0).
[0184] In one example, information about the co-located picture (colPic) may be signaled in both the picture header and the slice header. For example, information about the co-located picture (colPic) may be signaled via the picture header, but may also be signaled via the slice header for at least some of the slices associated with the picture header. In this case, the co-located picture (colPic) for the current block may be determined based on information about the co-located picture (colPic) signaled via the slice header (e.g., collocated_from_l0_flag and collocated_ref_idx).
[0185] In another example, information about the co-located picture (colPic) may be selectively signaled via a picture header or a slice header. In this case, whether information about the co-located picture (colPic) is signaled via a picture header (or a slice header) may be determined based on predetermined signaling information (e.g., pps_rpl_info_in_ph_flag) in the picture header (and / or slice header). For example, if the signaling information has a second value (e.g., 1), information about the co-located picture (colPic) may be signaled via a picture header. Alternatively, if the signaling information has a first value (e.g., 0), information about the co-located picture (colPic) may be signaled via a slice header. The signaling information may configure a signaling condition for pic_collocated_from_l0_flag together with pic_temporal_mvp_enabled_flag. In addition, the signaling information may configure the signaling condition of collocated_from_10_flag together with pic_temporal_mvp_enabled_flag in the slice header described above with reference to FIG. 14b.
[0186] When information about a co-located picture (colPic) is signaled via a slice header, the co-located picture (colPic) for the current block may be determined based on information about the co-located picture (colPic) obtained via the slice header. Alternatively, when information about a co-located picture (colPic) is signaled only via a picture header, the co-located picture (colPic) for the current block may be determined based on information about the co-located picture (colPic) obtained via the picture header. For example, when collocated_ref_idx is not signaled via the slice header described above with reference to FIG. 14b (e.g., pps_rpl_info_in_ph_flag==1), the value of collocated_ref_idx may be inferred to be the same as pic_collocated_ref_idx obtained via a picture header. When pic_collocated_ref_idx is not signaled via both the slice header and the picture header, the value of collocated_ref_idx may be inferred to be a first value (e.g., 0).
[0187] On the other hand, the fact that the co-located picture (colPic) for TMVP is an already reconstructed picture different from the current picture may be a restriction for bitstream compatibility.
[0188] Another example of a picture header according to one embodiment of the present disclosure is as shown in FIG.
[0189] Referring to FIG. 16, the picture header may include col_ref_delta_poc_val, which is information about the co-located picture (colPic) for TMVP.
[0190] col_ref_delta_poc_val can only be signaled if TMVP is available for the current picture (eg, pic_temporal_mvp_enabled_flag==1).
[0191] col_ref_delta_poc_val may indicate the POC (picture order count) difference between the current picture and the co-located picture (colPic) for TMVP. For example, col_ref_delta_poc_val may have a value obtained by subtracting the POC of the co-located picture (colPic) from the POC of the current picture. Alternatively, col_ref_delta_poc_val may have a value obtained by subtracting the POC of the co-located picture (colPic) from the POC of the current picture. col_ref_delta_poc_val has a positive sign (+) or a negative sign (-) and can be represented as a signed integer type.
[0192] In one example, information about the co-located picture (colPic) may be signaled in both the picture header and the slice header. For example, information about the co-located picture (colPic) may be signaled via the picture header, but may also be signaled via the slice header for at least some of the slices associated with the picture header. In this case, the co-located picture (colPic) for the current block may be determined based on information about the co-located picture (colPic) signaled via the slice header (e.g., collocated_from_l0_flag and collocated_ref_idx).
[0193] In another example, information about the co-located picture (colPic) may be selectively signaled via a picture header or a slice header. In this case, whether information about the co-located picture (colPic) is signaled via a picture header (or a slice header) may be determined based on predetermined signaling information (e.g., pps_rpl_info_in_ph_flag) in the picture header (and / or slice header). For example, if the signaling information has a second value (e.g., 1), information about the co-located picture (colPic) may be signaled via a picture header. Alternatively, if the signaling information has a first value (e.g., 0), information about the co-located picture (colPic) may be signaled via a slice header.
[0194] When information about the co-located picture (colPic) is signaled via a slice header, in an image decoding step, the co-located picture (colPic) for the current block can be determined based on information about the co-located picture (colPic) obtained via the slice header (e.g., collocated_from_l0_flag and collocated_ref_idx). In contrast, when information about the co-located picture (colPic) is signaled only via a picture header, the co-located picture (colPic) for the current block can be determined based on information about the co-located picture (colPic) obtained via the picture header (e.g., col_ref_delta_poc_val).
[0195] On the other hand, the fact that the co-located picture (colPic) for TMVP is an already reconstructed picture different from the current picture may be a restriction for bitstream compatibility.
[0196] Another example of a picture header according to one embodiment of the present disclosure is as shown in FIG.
[0197] Referring to FIG. 17, the picture header contains information about the co-located picture (colPic) for TMVP, which may include col_ref_abs_delta_poc_val and col_ref_abs_delta_poc_sign_flag.
[0198] col_ref_abs_delta_poc_val and col_ref_abs_delta_poc_sign_flag can only be signaled if TMVP is available at the picture level (eg, pic_temporal_mvp_enabled_flag==1).
[0199] col_ref_abs_delta_poc_val may indicate the absolute value of the POC (picture order count) difference between the current picture and the co-located picture (colPic) for TMVP. For example, col_ref_abs_delta_poc_val may have the absolute value of the value obtained by subtracting the POC of the co-located picture (colPic) from the POC of the current picture. Alternatively, col_ref_abs_delta_poc_val may have the absolute value of the value obtained by subtracting the POC of the co-located picture (colPic) from the POC of the co-located picture (colPic). col_ref_abs_delta_poc_val indicates the absolute value of the POC difference between the current picture and the co-located picture (colPic), and unlike col_ref_delta_poc_val in FIG. 16, it can be expressed as an unsigned integer type.
[0200] col_ref_abs_delta_poc_sign_flag may indicate the sign of the POC difference between the current picture and the co-located picture (colPic) for TMVP. For example, if the POC of the current picture is greater than the POC of the co-located picture (colPic) (or vice versa), col_ref_abs_delta_poc_sign_flag may have a second value (e.g., 1) indicating a positive sign (+). Conversely, if the POC of the current picture is the same as or less than the POC of the co-located picture (colPic) (or vice versa), col_ref_abs_delta_poc_sign_flag may have a first value (e.g., 0) indicating a negative sign (-).
[0201] In one example, information about the co-located picture (colPic) may be signaled in both the picture header and the slice header. For example, information about the co-located picture (colPic) may be signaled via the picture header, but may also be signaled via the slice header for at least some of the slices associated with the picture header. In this case, the co-located picture (colPic) for the current block may be determined based on information about the co-located picture (colPic) signaled via the slice header (e.g., collocated_from_l0_flag and collocated_ref_idx).
[0202] In another example, information about the co-located picture (colPic) may be selectively signaled via a picture header or a slice header. In this case, whether information about the co-located picture (colPic) is signaled via a picture header (or a slice header) may be determined based on predetermined signaling information in the picture header (and / or slice header). For example, if the signaling information has a second value (e.g., 1), information about the co-located picture (colPic) may be signaled via a picture header. Alternatively, if the signaling information has a first value (e.g., 0), information about the co-located picture (colPic) may be signaled via a slice header.
[0203] When information about the co-located picture (colPic) is signaled via a slice header, the co-located picture (colPic) for the current block may be determined based on information about the co-located picture (colPic) obtained via the slice header (e.g., collocated_from_l0_flag and collocated_ref_idx). In contrast, when information about the co-located picture (colPic) is signaled only via a picture header, the co-located picture (colPic) for the current block may be determined based on information about the co-located picture (colPic) obtained via the picture header (e.g., col_ref_abs_delta_poc_val and col_ref_abs_delta_poc_sign_flag).
[0204] On the other hand, the fact that the co-located picture (colPic) for TMVP is an already reconstructed picture different from the current picture may be a restriction for bitstream compatibility.
[0205] Another example of a picture header according to one embodiment of the present disclosure is as shown in FIG.
[0206] Referring to FIG. 18, the picture header contains information about the co-located picture (colPic) for TMVP, which may include col_ref_abs_delta_poc_val_minus1 and col_ref_abs_delta_poc_sign_flag.
[0207] col_ref_abs_delta_poc_val_minus1 and col_ref_abs_delta_poc_sign_flag can only be signaled if TMVP mode is available at the picture level (eg, pic_temporal_mvp_enabled_flag==1).
[0208] col_ref_abs_delta_poc_val_minus1 can indicate the absolute value of the POC (picture order count) difference between the current picture and the co-located picture (colPic) for TMVP minus 1.
[0209] col_ref_delta_poc_sign_flag may indicate whether the value of col_ref_abs_delta_poc_val_minus1 plus 1 is greater than 0. For example, col_ref_abs_delta_poc_sign_flag having a first value (e.g., 0) may indicate that the value of col_ref_abs_delta_poc_val_minus1 plus 1 is less than 0. In contrast, col_ref_abs_delta_poc_sign_flag having a second value (e.g., 1) may indicate that the value of col_ref_abs_delta_poc_val_minus1 plus 1 is greater than 0.
[0210] In one example, information about the co-located picture (colPic) may be signaled in both the picture header and the slice header. For example, information about the co-located picture (colPic) may be signaled via the picture header, but may also be signaled via the slice header for at least some of the slices associated with the picture header. In this case, the co-located picture (colPic) for the current block may be determined based on information about the co-located picture (colPic) signaled via the slice header (e.g., collocated_from_l0_flag and collocated_ref_idx).
[0211] In another example, information about the co-located picture (colPic) may be selectively signaled via a picture header or a slice header. In this case, whether information about the co-located picture (colPic) is signaled via a picture header (or a slice header) may be determined based on predetermined signaling information (e.g., pps_rpl_info_in_ph_flag) in the picture header (and / or slice header). For example, if the signaling information has a second value (e.g., 1), information about the co-located picture (colPic) may be signaled via a picture header. Alternatively, if the signaling information has a first value (e.g., 0), information about the co-located picture (colPic) may be signaled via a slice header.
[0212] When information about the co-located picture (colPic) is signaled via a slice header, the co-located picture (colPic) for the current block may be determined based on information about the co-located picture (colPic) obtained via the slice header (e.g., collocated_from_l0_flag and collocated_ref_idx). In contrast, when information about the co-located picture is signaled only via a picture header, the co-located picture (colPic) for the current block may be determined based on information about the co-located picture (colPic) obtained via the picture header (e.g., col_ref_abs_delta_poc_val_minus1 and col_ref_abs_delta_poc_sign_flag).
[0213] On the other hand, the fact that the co-located picture (colPic) for TMVP is a different, already reconstructed picture from the current picture can be a restriction for bitstream compatibility. This can be achieved by signaling col_ref_abs_delta_poc_val_minus1, which makes the POC difference between the current picture and the co-located picture (colPic) always greater than 0.
[0214] 15 to 18 according to the embodiments of the present disclosure may include information about a co-located picture (colPic) for TMVP, for example, identification information of the co-located picture (colPic). As a result, for multiple slices that refer to the same co-located picture (colPic), information about the co-located picture (colPic) can be signaled only once via the picture header, thereby reducing signaling overhead for TMVP and improving the efficiency of the signaling mechanism.
[0215] Hereinafter, an image encoding / decoding method according to an embodiment of the present disclosure will be described in detail with reference to FIGS.
[0216] FIG. 19 is a flowchart illustrating an image encoding method according to an embodiment of the present disclosure.
[0217] The image encoding method of Fig. 19 may be performed by the image encoding apparatus of Fig. 2. For example, steps S1910 and S1920 may be performed by the inter prediction unit 180. Also, step S1930 may be performed by the entropy encoding unit 190.
[0218] Referring to FIG. 19, when the inter prediction mode is applied to the current block, the image encoding apparatus may generate a prediction block of the current block based on the motion vector of the current block (S1910).
[0219] The inter prediction mode for the current block may be determined to be one of various inter prediction modes (e.g., merge mode, skip mode, Motion Vector Prediction mode (MVP mode), Symmetric Motion Vector Difference (SMVD mode), affine mode, etc.). For example, the image encoding apparatus may compare rate-distortion (RD) costs for various inter prediction modes to select an optimal inter prediction mode, and determine the selected optimal inter prediction mode as the inter prediction mode for the current block.
[0220] The image encoding apparatus may search for blocks similar to the current block within a certain region (search region) of a reference picture for the current block through motion estimation, and derive a reference block whose difference from the current block is minimum or equal to or less than a certain criterion. The image encoding apparatus may derive a motion vector for the current block based on the positional difference between the derived reference block and the current block.
[0221] For example, when a merge mode or a skip mode is applied to a current block, the image encoding apparatus may derive merge candidates from neighboring blocks of the current block and construct a merge candidate list using the derived merge candidates. Here, the neighboring blocks of the current block may include spatial and / or temporal neighboring blocks. The image encoding apparatus may derive a reference block whose difference from the current block is minimum or equal to or less than a certain criterion from among reference blocks estimated based on motion information of merge candidates included in the merge candidate list. In this case, the motion vector of the current block may be derived using the motion vector of a merge candidate associated with the derived reference block.
[0222] In another example, when the MVP mode is applied to the current block, the image encoding apparatus may derive motion vector predictor (MVP) candidates from neighboring blocks of the current block and construct an MVP candidate list using the derive MVP candidates. Here, the neighboring blocks of the current block may include spatial and / or temporal neighboring blocks. In this case, for example, a motion vector pointing to a reference block derived by the above-described motion estimation may be used as the motion vector of the current block, and among the MVP candidates, an MVP candidate having a motion vector with a minimum difference from the motion vector of the current block may be selected as the MVP for the current block.
[0223] The image coding apparatus may derive a temporal motion vector predictor (TMVP) for the current block based on the co-located picture (colPic) (S1920).
[0224] The co-located picture (colPic) may be determined at the slice level or the picture level. For example, when the co-located picture (colPic) is determined at the slice level, different co-located pictures (colPic) may be selected for at least some of the slices in the current picture. In this case, information about the co-located picture (colPic), for example, identification information of the co-located picture (colPic), may be signaled to the image decoding apparatus via a slice header. In contrast, when the co-located picture (colPic) is determined at the picture level, identical co-located pictures (colPic) may be selected for all slices in the current picture. In this case, information about the co-located picture (colPic), for example, identification information of the co-located picture (colPic), may be signaled to the image decoding apparatus via a picture header.
[0225] In one example, information about the co-located picture (colPic) may be selectively signaled via a picture header or a slice header based on predetermined signaling information (e.g., pps_rpl_info_in_ph_flag). For example, if the signaling information has a first value (e.g., 1), information about the co-located picture (colPic) may be signaled via a picture header. Conversely, if the signaling information has a second value (e.g., 0), information about the co-located picture (colPic) may be signaled via a slice header.
[0226] The TMVP for the current block can be derived based on the temporal neighboring blocks within the same-position picture (colPic). The temporal neighboring blocks can include the collocated block (colCb) for the current block. Here, the collocated block (colCb) can be meant to be a block having the same position and / or the same size as the current block within the same-position picture (colPic).
[0227] In one example, the collocated block (colCb) can be determined as a luma coding block that covers a modified position from the first position (xColBr, yColBr) corresponding to the right-bottom corner of the current block within the same-position picture (colPic). Here, the first position (xColBr, yColBr) can be meant to be a position (xCb + cbWidth, yCb + cbHeight) moved by the width (cbWidth) and height (cbHeight) of the current block from the position (xCb, yCb) corresponding to the upper-left corner of the current block within the same-position picture. The first position (xColBr, yColBr) can be modified using an arithmetic shift operation for motion data compression. For example, the first position (xColBr, yColBr) can be modified to ((xColBr >> n) << n, (yColBr >> n) << n). Here, n can be an integer greater than or equal to 0.
[0228] In another example, the same position block (colCb) can be determined as a luma coding block covering a modified position from the second position (xColCtr, yColCtr) corresponding to the right-bottom sample (centeral right-bottom sample) among the four samples at the center of the current block within the same position picture. Here, the second position (xColCtr, yColCtr) can mean a position (xCb+(cbWidth>>1), yCb+(cbHeight>>1)) obtained by moving by half of the width (cbWidth) and height (cbHeight) of the current block respectively from the position (xCb, yCb) corresponding to the upper-left corner of the current block within the same position picture. The second position (xColCtr, yColCtr) can be modified using an arithmetic shift operation for motion data compression. For example, the second position (xColCtr, yColCtr) can be modified to ((xColCtr>>n)<<n, (yColCtr>>n)<<n). Here, n can be an integer greater than or equal to 0.
[0229] In the above example, n used in the arithmetic shift operation can mean a storage unit for storing the motion information of the temporal neighboring blocks. For example, when n is 3, the storage unit for storing the motion information of the temporal neighboring blocks can be an 8×8 sample unit. Alternatively, when n is 4, the storage unit for storing the motion information of the temporal neighboring blocks can be a 16×16 sample unit.
[0230] Alternatively, n used in the arithmetic shift operation can mean a reading unit for reading the motion information of the temporal neighboring blocks. For example, when n is 3, the reading unit for reading the motion information of the temporal neighboring blocks can be an 8×8 sample unit. In this case, the image coding device can identify an 8×8 sample unit including the first position ((xColBr>>n)<<n, (yColBr>>n)<<n) or the second position ((xColCtr>>n)<<n, (yColCtr>>n)<<n) modified based on the arithmetic shift operation, and read the motion information of the identified 8×8 sample unit.
[0231] 19, step S1920 is illustrated as being performed after step S1910, but the embodiments of the present disclosure are not limited to this. For example, step S1920 may be performed before step S1910, or step S1920 may be performed simultaneously with step S1910.
[0232] The image coding apparatus can code the motion vector of the current block based on the TMVP for the current block (S1930).
[0233] For example, when a merge mode or a skip mode is applied to a current block, a TMVP for the current block may be included in a merge candidate list as a temporal merge candidate. The temporal merge candidates may include multiple candidates including the TMVP. When the temporal merge candidate is selected for the current block, the image coding apparatus may code a motion vector of the current block by coding merge index information that points to the temporal merge candidate.
[0234] In another example, when the MVP mode is applied to the current block, the TMVP for the current block may be included in the MVP candidate list as a temporal MVP candidate. The temporal MVP candidates may also include multiple candidates including the TMVP. When the temporal MVP candidate is selected for the current block, the image coding apparatus may encode the motion vector of the current block based on the TMVP of the temporal MVP candidate. For example, the image coding apparatus may derive a motion vector difference (MVD), which is the difference obtained by subtracting the TMVP from the motion vector of the current block, and encode information about the MVD and MVP index information indicating the temporal MVP candidate, thereby encoding the motion vector of the current block.
[0235] As described above, according to one embodiment of the present disclosure, information about the co-located picture (colPic) may be selectively signaled via a picture header or a slice header. For example, information about the co-located picture (colPic) may be signaled only once via a picture header, or may be adaptively signaled via a slice header. Alternatively, information about the co-located picture (colPic) may be signaled via both a picture header and a slice header. For example, information about the co-located picture (colPic) may be signaled via a picture header, but may also be signaled via a slice header for at least some of the slices associated with the picture header. In this case, the co-located picture (colPic) for the current block may be determined based on information about the co-located picture (colPic) signaled via a slice header. This reduces the signaling overhead for TMVP and improves the efficiency of the signaling mechanism.
[0236] FIG. 20 is a flowchart illustrating an image decoding method according to one embodiment of the present disclosure.
[0237] The image decoding method of Figure 20 may be performed by the image decoding apparatus of Figure 3. For example, step S2010 may be performed by the entropy decoding unit 210. Also, steps S2020 and S2030 may be performed by the inter prediction unit 260.
[0238] Referring to FIG. 20, when an inter prediction mode is applied to the current block, the image decoding apparatus may derive a temporal motion vector predictor (TMVP) for the current block based on the co-located picture (colPic) (S2010).
[0239] The co-located picture (colPic) can be determined based on information about the co-located picture (colPic) obtained from the picture header or slice header. A specific method for determining the co-located picture (colPic) is shown in FIG. 21.
[0240] FIG. 21 is a flowchart illustrating a method for determining co-located pictures according to one embodiment of the present disclosure.
[0241] Referring to FIG. 21, the image decoding apparatus may determine whether information about a co-located picture (colPic) is obtained from the slice header (S2110).
[0242] If information about the co-located picture (colPic), for example, identification information of the co-located picture (colPic), is acquired from the slice header ('Yes' in S2110), the image decoding apparatus may determine the co-located picture (colPic) for the current block based on the slice header (S2120). For example, the co-located picture (colPic) for the current block may be determined based on the identification information (e.g., collocated_from_l0_flag and collocated_ref_idx) of the co-located picture (colPic) acquired from the slice header described above with reference to FIG. 14b.
[0243] Alternatively, if information about the co-located picture (colPic) is not obtained from the slice header ("NO" in S2110), the image decoding apparatus may determine the co-located picture (colPic) for the current block based on the picture header (S2130). For example, the co-located picture (colPic) for the current block may be determined based on identification information (e.g., pic_collocated_from_l0_flag and pic_collocated_ref_idx) of the co-located picture (colPic) obtained from the picture header described above with reference to FIG. 15. Alternatively, the co-located picture (colPic) for the current block may be determined based on identification information (e.g., col_ref_delta_poc_val, col_ref_abs_delta_poc_val, col_ref_abs_delta_poc_sign_flag, etc.) of the co-located picture (colPic) obtained from the picture header described above with reference to FIG. 16 to FIG. 18.
[0244] In one example, whether information about the co-located picture (colPic) is obtained through a picture header (or a slice header) may be determined based on predetermined signaling information (e.g., pps_rpl_info_in_ph_flag) in the picture header (and / or slice header). For example, if the signaling information has a first value (e.g., 0), information about the co-located picture (colPic) may be obtained through a slice header. In this case, different co-located pictures (colPic) may be applied to at least some of the slices in the current picture. In contrast, if the signaling information has a second value (e.g., 1), information about the co-located picture (colPic) may be obtained through a picture header. In this case, the same co-located picture (colPic) may be applied to all slices in the current picture.
[0245] Referring again to FIG. 20, the image decoding apparatus can derive a temporal motion vector predictor (TMVP) for the current block based on the co-located picture (colPic).
[0246] TMVP can be derived based on temporal neighboring blocks in a co-located picture (colPic). The temporal neighboring blocks can include co-located blocks (colCb) that have the same position and / or size as the current block in the co-located picture (colPic).
[0247] In one example, the co-location block (colCb) may be determined as a luma coding block covering a modified position from a first position (xColBr, yColBr) corresponding to the right-bottom corner of the current block in the co-location picture (colPic). Here, the first position (xColBr, yColBr) may refer to a position (xCb+cbWidth, yCb+cbHeight) shifted by the width (cbWidth) and height (cbHeight) of the current block from a position (xCb, yCb) corresponding to the upper-left corner of the current block in the co-location picture (colPic). Meanwhile, the first position (xColBr, yColBr) may be changed using an arithmetic shift operation for motion data compression. For example, the first position (xColBr, yColBr) can be modified to ((xColBr>>3)<<3, (yColBr>>3)<<3).
[0248] In another example, the co-position block (colCb) may be determined as a luma coding block covering a position modified from a second position (xColCtr, yColCtr) corresponding to the central right-bottom sample of the four central samples of the current block in the co-position picture (colPic). Here, the second position (xColCtr, yColCtr) may refer to a position (xCb+(cbWidth>>1), yCb+(cbHeight>>1)) shifted by half the width (cbWidth) and height (cbHeight) of the current block from a position (xCb, yCb) corresponding to the upper left corner of the current block in the co-position picture (colPic). Meanwhile, the second position (xColCtr, yColCtr) may be changed using an arithmetic shift operation for motion data compression. For example, the second position (xColCtr, yColCtr) can be modified to ((xColCtr>>3)<<3,(yColCtr>>3)<<3).
[0249] The image decoding apparatus can derive a motion vector for the current block based on the TMVP for the current block (S2020).
[0250] For example, when merge mode or skip mode is applied to the current block, the image decoding device can construct a merge candidate list and derive the motion vector of a temporal merge candidate in the merge candidate list that includes TMVP for the current block as the motion vector of the current block.
[0251] In another example, when the MVP mode is applied to the current block, the image decoding apparatus may construct an MVP candidate list and derive a motion vector of a temporal MVP candidate in the MVP candidate list that includes a TMVP for the current block as the MVP of the current block. In this case, the image decoding apparatus may derive the MVD (motion vector difference) of the current block based on information about the MVD obtained from the bitstream, and add the MVP to the MVD to derive the motion vector of the current block.
[0252] The image decoding apparatus may generate a predictive block for the current block based on the motion vector of the current block (S2030). For example, the image decoding apparatus may derive a reference picture for the current block based on reference picture index information obtained from a bitstream, and generate a predictive block for the current block using samples of a reference block pointed to by the motion vector of the current block on the reference picture. In one example, a predictive sample filtering procedure may further be performed on all or some of the samples in the predictive block for the current block.
[0253] Meanwhile, the image decoding apparatus may generate a residual block of the current block based on residual information obtained from a bitstream, and reconstruct the current block by adding the residual block to the predicted block. In one example, an in-loop filtering procedure may be further performed on the reconstructed image.
[0254] As described above, according to one embodiment of the present disclosure, information about the co-located picture (colPic) may be selectively signaled via a picture header or a slice header. For example, information about the co-located picture (colPic) may be signaled only once via a picture header, or may be adaptively signaled via a slice header. Alternatively, information about the co-located picture (colPic) may be signaled via both a picture header and a slice header. For example, information about the co-located picture (colPic) may be signaled via a picture header, but may also be signaled via a slice header for at least some of the slices associated with the picture header. In this case, the co-located picture (colPic) for the current block may be determined based on information about the co-located picture (colPic) signaled via a slice header. This reduces the signaling overhead for TMVP and improves the efficiency of the signaling mechanism.
[0255] Although the exemplary method of the present disclosure is expressed as a series of operations for clarity of explanation, this is not intended to limit the order in which the steps are performed, and the steps may be performed simultaneously or in a different order if necessary. To achieve the method according to the present disclosure, the steps illustrated may include other steps, or some steps may be omitted and the remaining steps may be included, or some steps may be omitted and additional other steps may be included.
[0256] In the present disclosure, an image encoding device or an image decoding device that performs a predetermined operation (step) can perform the operation (step) to check the execution conditions and circumstances of the operation (step). For example, if it is described that a predetermined operation is performed when a predetermined condition is satisfied, the image encoding device or the image decoding device can perform the predetermined operation after performing an operation to check whether the predetermined condition is satisfied.
[0257] The various embodiments of the present disclosure are not intended to enumerate all possible combinations, but are intended to describe representative aspects of the present disclosure, and the matters described in the various embodiments may be applied independently or in combination of two or more.
[0258] Additionally, various embodiments of the present disclosure may be implemented using hardware, firmware, software, or a combination thereof, etc. In the case of a hardware implementation, the implementation may be using one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general processors, controllers, microcontrollers, microprocessors, etc.
[0259] In addition, an image decoding apparatus and an image encoding apparatus to which an embodiment of the present disclosure is applied may be included in a multimedia broadcast transmitting / receiving apparatus, a mobile communication terminal, a home cinema video apparatus, a digital cinema video apparatus, a surveillance camera, a video conversation apparatus, a real-time communication apparatus such as video communication, a mobile streaming apparatus, a storage medium, a camcorder, a video on demand (VoD) service providing apparatus, an over-the-top (OTT) video apparatus, an internet streaming service providing apparatus, a three-dimensional (3D) video apparatus, an image telephone video apparatus, a medical video apparatus, etc., and may be used to process a video signal or a data signal. For example, an over-the-top (OTT) video apparatus may include a game console, a Blu-ray player, an internet-connected TV, a home theater system, a smartphone, a tablet PC, a digital video recorder (DVR), etc.
[0260] FIG. 22 is a diagram illustrating an example of a content streaming system to which an embodiment of the present disclosure can be applied.
[0261] As shown in FIG. 22, a content streaming system to which an embodiment of the present disclosure is applied can broadly include an encoding server, a streaming server, a web server, a media storage, a user device, and a multimedia input device.
[0262] The encoding server compresses content input from a multimedia input device such as a smartphone, camera, or camcorder into digital data to generate a bitstream and transmits the bitstream to the streaming server. As another example, if a multimedia input device such as a smartphone, camera, or video camera directly generates a bitstream, the encoding server can be omitted.
[0263] The bitstream can be generated by an image encoding method and / or image encoding device to which an embodiment of the present disclosure is applied, and the streaming server can temporarily store the bitstream during the process of transmitting or receiving the bitstream.
[0264] The streaming server transmits multimedia data to a user device based on a user request via a web server, and the web server serves as an intermediary for informing the user of available services. When a user requests a desired service from the web server, the web server transmits the request to the streaming server, which then transmits the multimedia data to the user. In this case, the content streaming system may include a separate control server, which may control commands and responses between devices in the content streaming system.
[0265] The streaming server may receive content from a media storage and / or an encoding server. For example, when receiving content from the encoding server, the content may be received in real time. In this case, the streaming server may store the bitstream for a certain period of time to provide a smooth streaming service.
[0266] Examples of the user device include a mobile phone, a smartphone, a laptop computer, a digital broadcasting terminal, a personal digital assistant (PDA), a portable multimedia player (PMP), a navigation system, a slate PC, a tablet PC, an ultrabook, a wearable device such as a smartwatch, smart glass, a head mounted display (HMD), a digital TV, a desktop computer, and digital signage.
[0267] Each server in the content streaming system can be operated as a distributed server, in which case data received from each server can be processed in a distributed manner.
[0268] The scope of the present disclosure includes software or machine-executable commands (e.g., operating systems, applications, firmware, programs, etc.) that cause operations according to the methods of various embodiments to be performed on a device or computer, and non-transitory computer-readable medium on which such software or commands can be stored and executed on a device or computer. [Industrial Applicability]
[0269] Embodiments according to the present disclosure can be used to encode / decode images.
Claims
1. An image decoding method performed by an image decoding device, comprising: deriving a temporal motion vector predictor for the current block based on a co-located picture for the current block; deriving a motion vector differential for the current block based on information about the motion vector differential; deriving a motion vector for the current block based on the temporal motion vector predictor and the motion vector differential; generating a prediction block of the current block based on the motion vector; the co-located picture is determined based on identification information of the co-located picture, the identification information of the co-located picture including reference index information pointing to the co-located picture in a reference picture list for the current block; the identification information of the co-located picture further includes orientation information of the reference picture list that includes the co-located picture; determining whether the identification information of the co-located picture is obtained from a picture header based on predetermined signaling information indicating whether the temporal motion vector predictor is valid for a current picture including the current block; 10. A method for decoding an image, wherein the identification information of the co-located picture is obtained from a picture header for the current picture based on the temporal motion vector predictor being valid for a current picture that includes the current block.
2. An image coding method performed by an image coding device, comprising: generating a predicted block for the current block based on the motion vector of the current block; deriving a temporal motion vector predictor for the current block based on a co-located picture for the current block; deriving a motion vector differential for the current block based on the motion vector and the temporal motion vector predictor; encoding the motion vector differential of the current block; the identification information of the co-located picture is encoded, the identification information of the co-located picture including reference index information pointing to the co-located picture in a reference picture list for the current block; the identification information of the co-located picture further includes orientation information of the reference picture list that includes the co-located picture; determining whether the identification information of the co-located picture is coded in a picture header based on whether the temporal motion vector predictor is valid for a current picture that includes the current block; signaling information indicating whether the temporal motion vector predictor is valid for a current picture that includes the current block; 10. A method for encoding an image, wherein the identification information of the co-located picture is encoded in a picture header for the current picture based on the temporal motion vector predictor being valid for the current picture that contains the current block.
3. A method for transmitting a bitstream generated by an image coding method, comprising: The image encoding method includes: generating a predicted block for the current block based on the motion vector of the current block; deriving a temporal motion vector predictor for the current block based on a co-located picture for the current block; deriving a motion vector differential for the current block based on the motion vector and the temporal motion vector predictor; encoding the motion vector differential of the current block; the identification information of the co-located picture is encoded, the identification information of the co-located picture including reference index information pointing to the co-located picture in a reference picture list for the current block; the identification information of the co-located picture further includes orientation information of the reference picture list that includes the co-located picture; determining whether the identification information of the co-located picture is coded in a picture header based on whether the temporal motion vector predictor is valid for a current picture that includes the current block; signaling information indicating whether the temporal motion vector predictor is valid for a current picture that includes the current block; 10. The method of claim 9, wherein the identification of the co-located picture is encoded in a picture header for the current picture based on the temporal motion vector predictor being valid for the current picture that contains the current block.