Image decoding device, image decoding method and program
By adding half-pixel index judgment when constructing a merge list or a history merge table, the problem of unconfirmed index identity in the prior art is solved and the encoding performance is improved.
Patent Information
- Application Number
- CN202080057643.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-09-20
- Filing Date
- 2020-08-21
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2040-08-21
AI Technical Summary
The existing technology does not confirm the identity of the half-pixel index when constructing the merge list and the historical merge table, resulting in insufficient smoothing filter selection opportunities and affecting encoding performance.
Add the judgment of half-pixel index in the pruning process when constructing the merge list or history merge table to increase the selection opportunities of smoothing filters.
Encoding performance is improved by increasing the selection opportunities for smoothing filters.
Smart Images

Figure CN114303379B_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an image decoding device, an image decoding method and a program. [Background Technology]
[0002] In non-patent document 1, for the technology of motion compensated prediction (hereinafter referred to as MC prediction), there are technologies such as merge coding (hereinafter referred to as merge) and adaptive vector coding (hereinafter referred to as AMVP) for deriving motion vectors (hereinafter referred to as mv), and two interpolation filters are prepared for generating MC prediction image signals using the derived mv.
[0003] The first one is the same interpolation filter as that in Non-Patent Document 2 (hereinafter referred to as HEVC filter), and the second one is the interpolation filter newly introduced in Non-Patent Document 1 (hereinafter referred to as smoothing filter).
[0004] Although both are applicable to the case where the reference target of mv is at a fractional pixel precision position, the above smoothing filter is limited to the case where the reference target of mv is at a 1 / 2 pixel precision position, and is only applicable to the case where the display half-pixel index (hereinafter referred to as hpelIfIdx) is valid, the half-pixel index indicates whether the above smoothing filter is valid. In other cases, the HEVC filter is applied.
[0005] When a block of a coding object (hereinafter referred to as an object block) is merged, the hpelIfIdx is used from the adjacent block that has been processed. When the object block is AMVP, the value of hpelIfIdx is determined based on the derived mv.
[0006] [Prior art literature]
[0007] Non-patent literature
[0008] Non-patent document 1: Versatile Video Coding (Draft 6), JVET-N1001 Non-patent document 2: ITU-T H.265 High Efficiency Video Coding [Summary of the invention]
[0009] Problems to be solved by the invention
[0010] However, in the above-mentioned prior art, when the object blocks are merged, a specific merge list construction method and a historical merge table construction method are used to generate a merge list and a historical merge table, and a motion vector is derived, but there is the following problem: in the pruning process during the construction of the merge list and the historical merge table, the identity of the half-pixel index is not confirmed.
[0011] Therefore, the present invention is completed in view of the above-mentioned problems, and its purpose is to provide an image decoding device, an image decoding method and a program, which increase the chances of selecting a smoothing filter by adding the judgment of the half-pixel index to the judgment conditions of the pruning process when constructing a merge list or a historical merge table, and as a result, it is expected that the encoding performance will be improved.
[0012] Means for solving problems
[0013] The gist of the first feature of the present invention is an image decoding device, comprising: a merging unit configured to decode a motion vector and a half-pixel index according to a merge index, the half-pixel index indicating whether the motion vector refers to a 1 / 2 pixel precision position; a motion vector refinement unit configured to refine the motion vector by MMVD (Merge Motion Vector Difference) or DMVR (Decoder-side Motion Vector Refinement); a filter determination unit configured to determine whether to use an interpolation filter and the type of the interpolation filter based on the refined motion vector and the half-pixel index; and a filter application unit configured to generate a motion compensated predicted pixel signal using the interpolation filter; and the merging unit is configured to generate a merge list by a specific merge list construction method, and decode the motion vector and the half-pixel index according to the merge list and the merge index, and an object block is merged, and the merging unit is configured to register the half-pixel indexes corresponding to different merge indexes as different merge indexes in the merge list when constructing the merge list, even if the motion vectors and reference image indexes corresponding to different merge indexes are the same.
[0014] The second feature of the present invention is a picture decoding device, comprising: a merging unit, configured to decode a motion vector and a half-pixel index according to a merge index, wherein the half-pixel index indicates whether the motion vector refers to a 1 / 2 pixel precision position; a motion vector refinement unit, configured to refine the motion vector by MMVD (Merge Motion Vector Difference) or DMVR (Decoder-side Motion Vector Difference). Refinement) to refine the motion vector; a filter judgment unit is configured to judge whether to use an interpolation filter and the type of interpolation filter based on the refined motion vector and the half-pixel index; and a filter application unit is configured to use the interpolation filter to generate a motion compensated predicted pixel signal; and the merging unit is configured to generate a merge list through a specific merge list construction method, and decode the motion vector and the half-pixel index according to the merge list and the merge index, and the object block is merged, and the merging unit is configured to, when constructing a historical merge table, even if the motion vector and reference image index corresponding to different historical merge candidates are the same, when the half-pixel index corresponding to the historical merge candidate is different, it is also registered in the historical merge table as a different historical merge candidate.
[0015] The third feature of the present invention is mainly about an image decoding device, comprising: a merging unit, configured to decode a motion vector and a half-pixel index according to a merge index, wherein the half-pixel index indicates whether the motion vector refers to a 1 / 2 pixel precision position; a motion vector refinement unit, configured to refine the motion vector by MMVD (Merge Motion Vector Difference) or DMVR (Decoder-side Motion Vector Refinement); a filter determination unit, configured to determine whether to use an interpolation filter and an interpolation filter type based on the refined motion vector and the half-pixel index; and a filter application unit, configured to generate a motion compensated predicted pixel signal using the interpolation filter; and the merging unit is configured to generate a merge list by a specific merge list construction method, and decode the motion vector and the half-pixel index according to the merge list and the merge index, and the object block is merged, and the merging unit is configured to use the half-pixel index of the reference block when registering the merge index of the temporal merge in the merge list, and register it in the merge list.
[0016] The fourth feature of the present invention is mainly about an image decoding method, comprising: step A, decoding a motion vector and a half-pixel index according to a merge index, wherein the half-pixel index indicates whether the motion vector refers to a 1 / 2 pixel precision position; step B, refining the motion vector by MMVD (Merge Motion Vector Difference) or DMVR (Decoder-side Motion Vector Refinement); step C, judging whether to use an interpolation filter and an interpolation filter type based on the refined motion vector and the half-pixel index; and step D, generating a motion compensation prediction pixel signal using the interpolation filter; and, in step A, generating a merge list by a specific merge list construction method, and decoding the motion vector and the half-pixel index according to the merge list and the merge index, and the object block is merged, and when the merging unit constructs the merge list, even if the motion vector and the reference image index corresponding to different merge indexes are the same, when the half-pixel index corresponding to the merge index is different, it is registered in the merge list as a different merge index.
[0017] The fifth feature of the present invention is a program that enables a computer to function as an image decoding device, wherein the image decoding device includes: a merging unit configured to decode a motion vector and a half-pixel index according to a merge index, wherein the half-pixel index indicates whether the motion vector refers to a 1 / 2 pixel precision position; a motion vector refinement unit configured to obtain a 1 / 2 pixel precision position through MMVD (Merge Motion Vector Difference) or DMVR (Decoder-side Motion VectorRefinement) is used to refine the motion vector; a filter judgment unit is configured to judge whether to use an interpolation filter and the type of interpolation filter based on the refined motion vector and the half-pixel index; and a filter application unit is configured to use the interpolation filter to generate a motion compensation prediction pixel signal; and the merging unit is configured to generate a merge list through a specific merge list construction method, and decode the motion vector and the half-pixel index according to the merge list and the merge index, and the object block is merged, and the merging unit is configured to register the merge list as different merge indexes when constructing the merge list, even if the motion vector and reference image index corresponding to different merge indexes are the same, when the half-pixel indexes corresponding to the merge index are different.
[0018] Effects of the Invention
[0019] According to the present invention, an image decoding device, an image decoding method and a program can be provided, which increase the chances of selecting a smoothing filter by adding the judgment of a half-pixel index to the judgment conditions of the pruning process when constructing a merge list or a historical merge table, and as a result, it can be expected that the encoding performance will be improved.
[0020] [Brief Description of the Drawings]
[0021] Figure 1 It is a diagram showing an example of the configuration of an image processing system 10 according to one embodiment.
[0022] Figure 2 This is a diagram showing an example of a functional block of the image encoding device 100 according to one embodiment.
[0023] Figure 3 FIG. 1 is a diagram showing an example of a functional block of the inter-frame prediction unit 111 of the image encoding device 100 according to one embodiment.
[0024] Figure 4 This is a diagram showing an example of a functional block of an image decoding device 200 according to an embodiment.
[0025] Figure 5 This is a diagram showing an example of a functional block of the inter prediction unit 241 of the image decoding device 200 according to one embodiment.
[0026] Figure 6 This is a flowchart showing an example of a process for determining whether to apply an interpolation filter and a filter type in the filter determination unit 111D1 / 241C1 according to one embodiment.
[0027] Figure 7 This is a flowchart showing an example of a half-pixel index (hpelIfIdx) determination process according to one embodiment.
[0028] Figure 8 This is a diagram for explaining the determination process of Non-Patent Document 1.
[0029] Fig. 9 This is a diagram showing an example of a functional block of the mv refinement unit 241B of the image decoding device 200 according to an embodiment.
[0030] Fig.10 This is a flowchart showing an example of a merge list construction process according to one embodiment.
[0031] Fig.11 This is a diagram showing an example of a merged list generated by a merged list building process according to an embodiment.
[0032] Fig.12This is a diagram showing an example of space merging according to one embodiment.
[0033] Fig.13 This is a diagram showing an example of time integration according to one embodiment.
[0034] Fig.14 This is a diagram for explaining an example of a motion vector scaling process in temporal merging according to one embodiment.
[0035] Fig.15 This is a diagram showing an example of history merging according to one embodiment.
[0036] Fig.16 This is a diagram showing an example of a combination of a new motion vector and a half-pixel index calculated by pairwise average merging according to one embodiment.
[0037] Fig.17 This is a flowchart showing an example of a process for setting a new half-pixel index generated by pairwise average merging according to one embodiment.
[0038] Fig.18 This is a diagram showing an example of constructing a merged list according to one embodiment. [Specific implementation method]
[0039] The following is an explanation of the embodiments of the present invention with reference to the accompanying drawings. In addition, the constituent elements in the following embodiments may be appropriately replaced with existing constituent elements, etc., and various modifications including combinations with other existing constituent elements may be performed. Therefore, the content of the invention recorded in the claims should not be limited by the description of the following embodiments.
[0040] <First embodiment>
[0041] Below, reference Figures 1 to 18 An image processing system 10 according to a first embodiment of the present invention will be described. Figure 1 1 is a diagram showing an image processing system 10 according to the present embodiment.
[0042] like Figure 1 As shown, the image processing system 10 of this embodiment includes an image encoding device 100 and an image decoding device 200 .
[0043] The image encoding device 100 is configured to generate encoded data by encoding an input image signal, and the image decoding device 200 is configured to generate an output image signal by decoding the encoded data.
[0044] The encoded data may be transmitted from the image encoding device 100 to the image decoding device 200 via a transmission path. The encoded data may also be provided from the image encoding device 100 to the image decoding device 200 after being stored in a storage medium.
[0045] (Image Coding Device 100)
[0046] Below, reference Figure 2 The image encoding device 100 according to this embodiment will be described. Figure 2 This is a diagram showing an example of functional blocks of the image encoding device 100 according to the present embodiment.
[0047] like Figure 2 As shown, the image encoding device 100 includes an inter-frame prediction unit 111, an intra-frame prediction unit 112, a subtractor 121, an adder 122, a transform and quantization unit 131, an inverse transform and inverse quantization unit 132, an encoding unit 140, a loop filter processing unit 150 and a frame buffer 160.
[0048] The inter-frame prediction unit 111 is configured to generate a prediction signal by inter-frame prediction.
[0049] Specifically, the inter-frame prediction unit 111 is configured to specify a reference block included in the reference frame by comparing a frame to be encoded (hereinafter referred to as a target frame) with a reference frame stored in the frame buffer 160, and determine a motion vector (mv) of the specified reference block.
[0050] The inter-frame prediction unit 111 is configured to generate a prediction signal included in a block to be coded (hereinafter referred to as a target block) for each target block based on the reference block and the motion vector. The inter-frame prediction unit 111 is configured to output the prediction signal to the subtractor 121 and the adder 122. Here, the reference frame is a frame different from the target frame.
[0051] The intra prediction unit 112 is configured to generate a prediction signal by intraframe prediction.
[0052] Specifically, the intra prediction unit 112 is configured to specify a reference block included in the target frame, and to generate a prediction signal for each target block based on the specified reference block. Furthermore, the intra prediction unit 112 is configured to output the prediction signal to the subtractor 121 and the adder 122 .
[0053] Here, the reference block is a block that the object block refers to. For example, the reference block is a block adjacent to the object block.
[0054] The subtractor 121 is configured to subtract the prediction signal from the input image signal and output a prediction residual signal to the transform and quantization unit 131. Here, the subtractor 121 is configured to generate a prediction residual signal which is a difference between a prediction signal generated by intra prediction or inter prediction and the input image signal.
[0055] The adder 122 is configured to add the prediction signal and the prediction residual signal output from the inverse transform and inverse quantization unit 132 to generate a pre-filtered decoded signal, and output the pre-filtered decoded signal to the intra prediction unit 112 and the loop filter processing unit 150 .
[0056] Here, the decoded signal before filtering constitutes a reference block used in the intra prediction unit 112 .
[0057] The transform and quantization unit 131 is configured to perform a transform process on the prediction residual signal and obtain a coefficient level value. Alternatively, the transform and quantization unit 131 may be configured to perform quantization on the coefficient level value.
[0058] Here, the transformation process is a process of transforming the prediction residual signal into a frequency component signal. In this transformation process, a base model (transformation matrix) corresponding to a discrete cosine transform (DCT) or a base model (transformation matrix) corresponding to a discrete sine transform (DST) can be used.
[0059] The inverse transform and inverse quantization unit 132 is configured to perform an inverse transform process on the coefficient level value output from the transform and quantization unit 131. Here, the inverse transform and inverse quantization unit 132 may be configured to perform an inverse quantization on the coefficient level value before the inverse transform process.
[0060] Here, the inverse transform process and the inverse quantization are performed in the reverse order of the transform process and the quantization performed by the transform and quantization unit 131 .
[0061] The encoding unit 140 is configured to encode the coefficient level value output from the transform and quantization unit 131 and output the encoded data.
[0062] Here, for example, the encoding is entropy encoding that assigns codes of different lengths based on the probability of occurrence of coefficient level values.
[0063] Furthermore, the encoding unit 140 is configured to encode not only the coefficient level value but also the control data used in the decoding process.
[0064] Here, the control data may include size data such as the coding block (CU, Coding Unit) size, the prediction block (PU, Prediction Unit) size, and the transform block (TU, Transform Unit) size.
[0065] Furthermore, as described below, the control data may also include header information such as a sequence parameter set (SPS), a picture parameter set (PPS), and a slice header.
[0066] The loop filter processing unit 150 is configured to perform filtering on the pre-filtering decoded signal output from the adder 122 , and output the post-filtering decoded signal to the frame buffer 160 .
[0067] Here, the filtering process is, for example, a deblocking filtering process for reducing distortion generated at a boundary portion of a block (coding block, prediction block, or transform block).
[0068] The frame buffer 160 is configured to store reference frames used by the inter-frame prediction unit 111 .
[0069] Here, the decoded signal after the filtering process constitutes a reference frame used in the inter-frame prediction unit 111.
[0070] like Figure 2 As shown, the image encoding device 100 includes an inter-frame prediction unit 111, an intra-frame prediction unit 112, a subtractor 121, an adder 122, a transform and quantization unit 131, an inverse transform and inverse quantization unit 132, an encoding unit 140, a loop filter processing unit 150 and a frame buffer 160.
[0071] The inter-frame prediction unit 111 is configured to generate a prediction signal by inter-frame prediction.
[0072] Specifically, the inter-frame prediction unit 111 is configured to specify a reference block included in the reference frame by comparing a frame to be encoded (hereinafter referred to as a target frame) with a reference frame stored in the frame buffer 160, and determine a motion vector (mv) of the specified reference block.
[0073] The inter-frame prediction unit 111 is configured to generate a prediction signal included in a block to be coded (hereinafter referred to as a target block) for each target block based on the reference block and the motion vector. The inter-frame prediction unit 111 is configured to output the prediction signal to the subtractor 121 and the adder 122. Here, the reference frame is a frame different from the target frame.
[0074] The intra prediction unit 112 is configured to generate a prediction signal by intraframe prediction.
[0075] Specifically, the intra prediction unit 112 is configured to specify a reference block included in the target frame, and to generate a prediction signal for each target block based on the specified reference block. Furthermore, the intra prediction unit 112 is configured to output the prediction signal to the subtractor 121 and the adder 122 .
[0076] Here, the reference block is a block that the object block refers to. For example, the reference block is a block adjacent to the object block.
[0077] The subtractor 121 is configured to subtract the prediction signal from the input image signal and output a prediction residual signal to the transform and quantization unit 131. Here, the subtractor 121 is configured to generate a prediction residual signal which is a difference between a prediction signal generated by intra prediction or inter prediction and the input image signal.
[0078] The adder 122 is configured to add the prediction signal and the prediction residual signal output from the inverse transform and inverse quantization unit 132 to generate a pre-filtered decoded signal, and output the pre-filtered decoded signal to the intra prediction unit 112 and the loop filter processing unit 150 .
[0079] Here, the decoded signal before filtering constitutes a reference block used in the intra prediction unit 112 .
[0080] The transform and quantization unit 131 is configured to perform a transform process on the prediction residual signal and obtain a coefficient level value. Alternatively, the transform and quantization unit 131 may be configured to perform quantization on the coefficient level value.
[0081] Here, the transformation process is a process of transforming the prediction residual signal into a frequency component signal. In this transformation process, a base model (transformation matrix) corresponding to a discrete cosine transform (DCT) or a base model (transformation matrix) corresponding to a discrete sine transform (DST) can be used.
[0082] The inverse transform and inverse quantization unit 132 is configured to perform an inverse transform process on the coefficient level value output from the transform and quantization unit 131. Here, the inverse transform and inverse quantization unit 132 may be configured to perform an inverse quantization on the coefficient level value before the inverse transform process.
[0083] Here, the inverse transform process and the inverse quantization are performed in the reverse order of the transform process and the quantization performed by the transform and quantization unit 131 .
[0084] The encoding unit 140 is configured to encode the coefficient level value output from the transform and quantization unit 131 and output the encoded data.
[0085] Here, for example, the encoding is entropy encoding that assigns codes of different lengths based on the probability of occurrence of coefficient level values.
[0086] Furthermore, the encoding unit 140 is configured to encode not only the coefficient level value but also the control data used in the decoding process.
[0087] Here, the control data may include size data such as the coding block (CU, Coding Unit) size, the prediction block (PU, Prediction Unit) size, and the transform block (TU, Transform Unit) size.
[0088] Furthermore, as described below, the control data may also include header information such as a sequence parameter set (SPS), a picture parameter set (PPS), and a slice header.
[0089] The loop filter processing unit 150 is configured to perform filtering on the pre-filtering decoded signal output from the adder 122 , and output the post-filtering decoded signal to the frame buffer 160 .
[0090] Here, the filtering process is, for example, a deblocking filtering process for reducing distortion generated at a boundary portion of a block (coding block, prediction block, or transform block).
[0091] The frame buffer 160 is configured to store reference frames used by the inter-frame prediction unit 111 .
[0092] Here, the decoded signal after the filtering process constitutes a reference frame used in the inter-frame prediction unit 111.
[0093] (Inter-frame prediction unit 111)
[0094] Below, reference Figure 3 The inter-frame prediction unit 111 of the image encoding device 100 according to this embodiment will be described. Figure 3 This is a diagram showing an example of a functional block of the inter-frame prediction unit 111 of the image encoding device 100 according to the present embodiment.
[0095] like Figure 3 As shown, the inter prediction unit 111 includes an mv derivation unit 111A, an AMVR (Adaptive Motion Vector Resolution) unit 111B, an mv refinement unit 111C, and a prediction signal generation unit 111D.
[0096] The inter prediction unit 111 is an example of a prediction unit configured to generate a prediction signal included in a target block based on a motion vector.
[0097] like Figure 3 As shown, the mv derivation unit 111A is configured to include an AMVP (Adaptive Motion Vector Prediction) unit 111A1 and a merging unit 111A2 , and acquires a motion vector by taking a target frame and a reference frame from the frame buffer 160 as inputs.
[0098] The AMVP unit 111A1 is configured to specify a reference block included in the reference frame by comparing the target frame with the reference frame, and search for a motion vector of the specified reference block.
[0099] Then, the above-mentioned search process is performed on a plurality of candidate reference frames to determine a reference frame and a motion vector used for prediction in the target block, and output them to the prediction signal generator 111D at the next stage.
[0100] A maximum of two reference frames and motion vectors can be used for a block. The case where only one set of reference frames and motion vectors is used for a block is called "unidirectional prediction", and the case where two sets of reference frames and motion vectors are used is called "bidirectional prediction". In the following, the first set is called "L0" and the second set is called "L1".
[0101] In addition, when the above-mentioned determined motion vector is finally transmitted to the decoding device, in order to reduce the amount of coding, the AMVP unit 111A selects an MVP with a smaller difference with the motion vector of the object block, i.e., a motion vector difference (mvd), from the candidates of the motion vector predictor (mvp) derived based on the adjacent encoded motion vectors.
[0102] The index indicating the mvp and mvd selected in this way and the index indicating the reference frame (hereinafter referred to as Refidx) are encoded by the encoding unit 140 and transmitted to the image decoding device 200. This process is generally called adaptive motion vector prediction encoding (AMVP, Adaptive Motion Vector Prediction).
[0103] In addition, regarding the above-mentioned motion vector search method, reference frame and motion vector determination method, MVP selection method, and MVD calculation method, known methods can be used, and therefore, their detailed descriptions are omitted.
[0104] The AMVR unit 111B has an AMVR (Adaptive Motion Vector Resolution) function of changing the transmission accuracy of the mvd calculated by the AMVP unit 111A.
[0105] Since mvd is derived from the sum of the motion vector of the object block and mvp as described above, changing the transmission accuracy of mvd means changing the accuracy of the motion vector of the object block itself.
[0106] In non-patent document 1, there are three variations of the transmission accuracy of MVD based on AMVR. The transmission accuracy of MVD is usually 1 / 16 pixel accuracy, and the motion vector will eventually refer to the position of 1 / 16 pixel accuracy, but when AMVR is effective, the transmission accuracy of MVD is selected from 1 / 4 pixel accuracy, 1 / 2 pixel accuracy, and 1 pixel accuracy (i.e., integer pixel accuracy).
[0107] However, when the target block is affine, the transmission accuracy of mvd is selected from 1 / 4 pixel accuracy, 1 / 16 pixel accuracy, and 1 pixel accuracy. Here, affine refers to Affine in Non-Patent Document 1.
[0108] In addition, in non-patent document 1, only when 1 / 2 pixel accuracy is selected as the transmission accuracy of the mvd, the prediction signal generator 111D at the subsequent stage selects an interpolation filter different from the interpolation filter applied when pixel accuracy other than 1 / 2 pixel accuracy is selected. The details will be described below.
[0109] Furthermore, when it is determined in the AMVR unit 111B that the AMVR process is valid, a flag indicating that the AMVR is valid and an index indicating to which precision the mvd is corrected by the AMVR are transmitted to the image decoding device 200 .
[0110] In the merge unit 111A2, unlike the AMVP unit 111A1, the motion information of the target block is not searched and derived, nor is the differential mvd with the adjacent block transmitted. Instead, the target frame and the reference frame are taken as input, and the adjacent block in the same frame as the target block or the block at the same position in a frame different from the target frame is taken as the reference block, and the motion information of the reference block is directly used. This process is generally called merge coding (hereinafter referred to as merge).
[0111] When the object block is merged, a merge list for the object block is first created. The merge list is a list of combinations of multiple reference frames and motion vectors. An index (hereinafter referred to as a merge index) is assigned to each combination, and only the merge index is encoded and transmitted to the image decoding device 200 instead of encoding the Refidx and motion vector information separately.
[0112] Here, by sharing the method of creating the merge list in advance between the image encoding device 100 and the image decoding device 200, the image decoding device 200 can decode the information of Refidx and motion vector based on only the merge index information. The details of the method of creating the merge list will be described below.
[0113] The mv refinement unit 111C is configured to perform refinement processing for correcting the motion vector output from the merging unit 111A2. The details will be described later.
[0114] The prediction signal generation unit 111D is configured to receive a motion vector as an input and output an MC prediction image signal, and includes a filter determination unit 111D1 and a filter application unit 111D2.
[0115] The filter determination unit 111D1 determines whether to apply an interpolation filter and the filter type based on the motion vector. The details will be described later.
[0116] The filter application unit 111D2 is configured to generate a prediction signal based on the selected interpolation filter, motion vector, and reference frame when the filter determination unit 111D1 determines that the interpolation filter is effective.
[0117] When the filter determination unit 111D1 determines that the interpolation filter is invalid, the interpolation filter is not used and a prediction signal is generated based on the motion vector and the reference frame.
[0118] (Image Decoding Device 200)
[0119] Below, reference Figure 4 The image decoding device 200 according to this embodiment is described. Figure 4 This is a diagram showing an example of functional blocks of the image decoding device 200 according to the present embodiment.
[0120] like Figure 4 As shown, the image decoding apparatus 200 includes a decoding unit 210 , an inverse transform and inverse quantization unit 220 , an adder 230 , an inter prediction unit 241 , an intra prediction unit 242 , a loop filter processing unit 250 , and a frame buffer 260 .
[0121] The decoding unit 210 is configured to decode the encoded data generated by the image encoding device 100 and decode the coefficient level values.
[0122] Here, for example, decoding is entropy decoding in the reverse order to the entropy encoding performed by the encoding unit 140 .
[0123] Furthermore, the decoding unit 210 may be configured to acquire control data by decoding the encoded data.
[0124] In addition, as described above, the control data may include size data such as coding block size, prediction block size, and transform block size.
[0125] The inverse transform and inverse quantization unit 220 is configured to perform an inverse transform process on the coefficient level values output from the decoding unit 210. Here, the inverse transform and inverse quantization unit 220 may be configured to perform an inverse quantization on the coefficient level values before the inverse transform process.
[0126] Here, the inverse transform process and the inverse quantization are performed in the reverse order of the transform process and the quantization performed by the transform and quantization unit 131 .
[0127] The adder 230 is configured to add the prediction signal and the prediction residual signal output from the inverse transform and inverse quantization unit 220 to generate a pre-filtered decoded signal, and output the pre-filtered decoded signal to the intra prediction unit 242 and the loop filter processing unit 250 .
[0128] Here, the decoded signal before filtering constitutes a reference block used in the intra prediction unit 242 .
[0129] Similar to the inter-frame prediction unit 111 , the inter-frame prediction unit 241 is configured to generate a prediction signal by inter-frame prediction.
[0130] Specifically, the inter-frame prediction unit 241 is configured to generate a prediction signal for each prediction block based on a motion vector decoded from the coded data and a reference signal included in a reference frame. The inter-frame prediction unit 241 is configured to output the prediction signal to the adder 230 .
[0131] Similar to the intra prediction unit 112 , the intra prediction unit 242 is configured to generate a prediction signal by intra prediction (intraframe prediction).
[0132] Specifically, the intra prediction unit 242 is configured to designate a reference block included in the target frame, and to generate a prediction signal for each prediction block based on the designated reference block. The intra prediction unit 242 is configured to output the prediction signal to the adder 230 .
[0133] Similar to the loop filter processing unit 150 , the loop filter processing unit 250 is configured to perform filtering on the pre-filtering decoded signal output from the adder 230 and output the post-filtering decoded signal to the frame buffer 260 .
[0134] Here, the filtering process is, for example, a deblocking filtering process for reducing distortion generated at a boundary portion of a block (a coding block, a prediction block, a transform block, or a sub-block obtained by dividing these blocks).
[0135] Similar to the frame buffer 160 , the frame buffer 260 is configured to store reference frames used by the inter-frame prediction unit 241 .
[0136] Here, the filtered decoded signal constitutes a reference frame used in the inter-frame prediction unit 241 .
[0137] (Inter-frame prediction unit 241)
[0138] Below, reference Figure 5 The inter-frame prediction unit 241 according to this embodiment will be described. Figure 5 This is a diagram showing an example of functional blocks of the inter-frame prediction unit 241 according to the present embodiment.
[0139] like Figure 5 As shown, the inter prediction unit 241 includes an mv decoding unit 241A, an mv refinement unit 241B, and a prediction signal generation unit 241C.
[0140] The inter prediction unit 241 is an example of a prediction unit configured to generate a prediction signal included in a prediction block based on a motion vector.
[0141] The mv decoding unit 241A is configured to include an AMVP unit 241A1 and a merging unit 241A2 , and acquires a motion vector by decoding a target frame and a reference frame input from the frame buffer 260 , and control data received from the image encoding device 100 .
[0142] The AMVP unit 241A1 is configured to receive the target frame and the reference frame, as well as the index Refidx indicating mvp and mvd from the image encoding device 100, and the index indicating the transmission accuracy of mvd from the AMVR unit 111B, to decode the motion vector. A known method can be used for decoding the motion vector, so its detailed description is omitted.
[0143] The merging unit 241A2 is configured to receive a merge index from the image encoding device 100 to decode the motion vector.
[0144] Specifically, the merging unit 241A2 is configured to construct a merge list by the same method as the image encoding device 100, and obtain a motion vector corresponding to the received merge index from the constructed merge list. The details of the method for constructing the merge list will be described below.
[0145] Similar to the thinning unit 111C, the mv thinning unit 241B is configured to execute a thinning process for correcting a motion vector.
[0146] The prediction signal generating unit 241C is configured to include a filter determining unit 241C and a filter applying unit 241C2 , and generates a prediction signal based on a motion vector similarly to the prediction signal generating unit 111D.
[0147] Note that the filter determination unit 241C1 of the image decoding device 200 has exactly the same configuration as the filter determination unit 111D1 of the image encoding device 100 , and therefore, in this embodiment, the operation of the filter determination unit 111D1 will be described as a representative.
[0148] (Interpolation filter determination process)
[0149] Below, reference Figure 6 , the determination process of whether to apply an interpolation filter and the filter type in the filter determination unit 111D1 / 241C1 of this embodiment is described.
[0150] Figure 6 1 is a flowchart showing an example of a process procedure for determining whether to apply an interpolation filter and a filter type in the filter determination unit 111D1 of the present embodiment.
[0151] like Figure 6 As shown, in step S6-1, the filter determination unit 111D1 determines whether the reference position of mv is a decimal pixel position. When the reference position of mv is a decimal pixel position, the process proceeds to step S6-2, and when the reference position of mv is not a decimal pixel position, that is, when the reference position of mv is an integer pixel value position, the process proceeds to step S6-3.
[0152] In step S6-2, the filter determination unit 111D1 determines that an interpolation filter is to be applied, and the process proceeds to step S6-4.
[0153] In step S6-3, the filter determination unit 111D1 determines that the interpolation filter is not to be applied, and ends the present process.
[0154] In step S6-4, the filter determination unit 111D1 determines whether the following half-pixel index (hpelIfIdx) is invalid, that is, whether it is "0". When hpelIfIdx is "0", the process proceeds to step S6-5, and when hpelIfIdx is valid, that is, not "0", the process proceeds to step S6-6.
[0155] In step S6 - 5 , the filter determination unit 111D1 determines to use the HEVC filter as the interpolation filter, and ends the present process.
[0156] Here, the HEVC filter refers to an 8-tap linear interpolation filter similar to that in Non-Patent Document 2.
[0157] In step S6 - 6 , the filter determination unit 111D1 determines to use a smoothing filter as the interpolation filter.
[0158] Here, for example, the smoothing filter may be a 6-tap Gaussian filter adopted in Non-Patent Document 1. Furthermore, a plurality of filters may be set and used as interpolation filters according to the value indicated by hpelIfIdx.
[0159] In this way, when the reference position of mv is a decimal pixel position, it is possible to adaptively switch between two or more interpolation filters based on hpelIfIdx. Therefore, the interpolation filter to be used can be selected according to the image characteristics, and as a result, the effect of improved encoding performance can be expected.
[0160] (Half-pixel index (hpelIfIdx) setting process)
[0161] Below, reference Figure 7 The determination process of the half-pixel index (hpelIfIdx) according to this embodiment is described.
[0162] Figure 7 This is a flowchart showing an example of a determination processing procedure of hpelIfIdx in the filter determination unit 111D1 according to the present embodiment.
[0163] As described above, hpelIfIdx is related to the determination of the interpolation filter type, and when hpelIfIdx is "0", that is, invalid, the same interpolation filter as that in Non-Patent Document 2 is used. On the other hand, when hpelIfIdx is not "0", that is, valid, a smoothing filter is used.
[0164] When the object block is merged, hpelIfIdx obtains the motion vector and RefIdx from the reference block at the same time, and corresponds to the merge index.
[0165] On the other hand, when the object block is not in merge mode and the motion vector is decoded by AMVP, the value of hpelIfIdx is determined based on whether AMVR is applied and the specific conditions described above.
[0166] like Figure 7 As shown, in step S7-1, the filter determination unit 111D1 determines whether AMVR is effective. For example, in the same manner as in Non-Patent Document 1, the determination may be made by decoding a flag (amvr_flag) indicating whether AMVR is applied.
[0167] When it is determined in step S7-1 that AMVR is valid, the process proceeds to step S7-2, and when it is determined that AMVR is invalid, the process proceeds to step S7-3.
[0168] In step S7 - 2 , the filter determination unit 111D1 determines whether the value of hpelIfIdx is “0” based on the specific condition 1 .
[0169] When it is determined in step S7-2 that specific condition 1 is satisfied, the process proceeds to step S7-4, and when it is determined that specific condition 1 is not satisfied, the process proceeds to step S7-5.
[0170] Here, in the specific condition 1 of step S7-2, the index (amvr_precision_idx) representing the transmission accuracy of AMVR can be decoded to judge that when the transmission accuracy of AMVR is 1 / 2 pixel accuracy, it is judged that the specific condition 1 is met, otherwise, it is judged that the specific condition 1 is not met.
[0171] Moreover, in the specific condition 1 of step S7-2, it can also be judged by whether the object block is affine. When the object block is affine, it is judged that the specific condition 1 is not satisfied. When the object block is not affine, and when amvr_precision_idx indicates that the transmission accuracy of mvd is 1 / 2 pixel accuracy, it is judged that the specific condition 1 is satisfied.
[0172] Here, affine refers to Affine used in Non-Patent Document 1. In the present invention, a known method can be used, so its description is omitted.
[0173] Moreover, in the specific condition 1 of step S7-2, it can also be judged by whether the object block is IBC. When the object block is IBC, it is judged that the specific condition 1 is not satisfied. When the object block is not IBC, and when amvr_precision_idx indicates that the transmission accuracy of mvd is 1 / 2 pixel accuracy, it is judged that the specific condition 1 is satisfied.
[0174] Here, IBC refers to IBC (Intra_Block_Copy) adopted in Non-Patent Document 1. In the present invention, a known method can be adopted, so its description is omitted.
[0175] In step S7-3, the filter determination unit 111D1 determines that hpelIfIdx is "0" and ends the present process.
[0176] In step S7 - 4 , the filter determination unit 111D1 determines that hpelIfIdx is “1” and ends the present process.
[0177] In step S7-5, the filter determination unit 111D1 determines that hpelIfIdx is "0" and ends the present process.
[0178] In addition, the determination process of hpelIfIdx has been described so far using a flowchart, but it can also be like Figure 8 As shown in the determination process of non-patent document 1, the filter determination unit 111D1 determines the Avmrshift value based on the decoding results of amvr_flag, amvr_precision_idx, and inter_Affine_flag and whether the target block is IBC, and determines the value of hpelIfIdx based on the AMVR_shift value.
[0179] (mv refinement department)
[0180] Below, reference Fig. 9 The mv refinement unit 241B of the present embodiment will be described. The mv refinement unit 111C of the encoding device has the same configuration as the mv refinement unit 241B of the decoding device, and therefore, in the present embodiment, the mv refinement unit 241B will be described as a representative.
[0181] Fig. 9 2 is a diagram showing an example of functional blocks of the mv refinement unit 241B according to the present embodiment.
[0182] like Fig. 9 As shown, the mv refinement section 241B includes an MMVD section 241B1 and a DMVR section 241B2.
[0183] Specifically, the MMVD unit 241B1 and the DMVR unit 241B2 refine the motion vector using MMVD (Merge mode with MVD) and DMVR (Decoder side Motion Vector Refinement) adopted in Non-Patent Document 1.
[0184] Specifically, the MMVD unit 241B1 is configured to use the reference position of the motion vector output from the merging unit 111A2 as a reference. Fig. 9 As shown, the correction range of the reference position is set by distance and direction (vertical and horizontal).
[0185] The MMVD unit 241B1 is configured to perform the following refinement processing: specify a correction position with the smallest specific cost from the correction range as a correction distance, and correct the motion vector based on the correction reference position.
[0186] Furthermore, the DMVR unit 241B2 is configured to perform the following refinement processing: a search range is set based on a reference position specified by a motion vector output from the merging unit 111A2, a correction reference position with the smallest specific cost is specified from the search range, and the motion vector is corrected based on the correction reference position.
[0187] Here, the mv refinement unit 241B also determines whether to apply MMVD or DMVR to the target block. In the present invention, this determination process can use the known method described in Non-Patent Document 1, so the description thereof is omitted.
[0188] In addition, when both MMVD and DMVR are invalid, the motion vector output from the merging unit 111A2 is directly output to the prediction signal generating unit 241C at the next stage without being modified.
[0189] (Merge list construction method)
[0190] Below, reference Fig.10 The merge list construction process of this embodiment is described. Fig.10 This is a flowchart showing an example of the merge list construction process according to the present embodiment.
[0191] like Fig.10 As shown, similarly to Non-Patent Document 1, the merged list construction process of the present invention is composed of a total of five merged list construction processes.
[0192] Specifically, it is composed of five merge list construction processes, namely, spatial merging in step S10-1, temporal merging in step S10-2, historical merging in step S10-3, pairwise average merging in step S10-4, and zero merging in step S10-5. Each merge list construction process will be described below.
[0193] Fig.11 This is a diagram showing an example of a merged list generated by the merged list building process according to the present embodiment.
[0194] As described above, the merge list refers to a list in which motion vectors, Refidx, and hepelIfIdx corresponding to the merge index are registered.
[0195] Here, the maximum number of merge indexes is set to "5" in Non-Patent Document 1, but can be freely set according to the designer's intention.
[0196] and, Fig.11 mvL0, mvL1, RefIdxL0, and RefIdxL1 represent the motion vectors and reference image indexes of reference image lists L0 and L1, respectively.
[0197] Here, the reference image lists L0 and L1 represent lists in which reference frames are registered, and the reference frames are specified based on RefIdx.
[0198] In addition, Fig.11The merge list shown shows motion vectors and reference image indexes for both L0 and L1, but depending on the reference block, it may be a unidirectional prediction. In this case, the unidirectional motion vector and reference image index are registered in the merge list. In addition, when there is no motion vector in the reference block, the merge list construction process for the reference block is skipped.
[0199] (Space Merge)
[0200] Fig.12 1 is a diagram showing spatial merging. Spatial merging is a technique in which mv, RefIdx, and hpelIfIdx are inherited from adjacent blocks existing in the same frame as the target block.
[0201] Specifically, from the Fig.12 In the adjacent blocks with the positional relationship shown in FIG. 1 , the above mv, Refidx, and hpelfIdx are used, and the processing order can also be the same as that of non-patent document 1, as follows: Fig.12 in the order shown.
[0202] In the merge list process, the parameters are registered in the merge list according to the above process order, but there is a check mechanism that the same motion vector and reference image index will not be registered in the merge list. This is called pruning process.
[0203] The reason for the existence of pruning processing is to increase the changes in the motion vectors and reference image indices registered in the merge list. From the perspective of the image encoding device 100, a motion vector with the smallest specific cost can be selected according to the image characteristics. In the image decoding device 200, a prediction signal with higher prediction accuracy can be generated based on the selected motion vector and reference image index. As a result, the effect of improved encoding performance can be expected.
[0204] In the spatial merge, for example, the structure is as follows: if the adjacent block A1 is registered, then for the adjacent block B1 in the next processing order, the identity of the motion vector and reference image index registered for the adjacent block A1 is confirmed. If the identity is confirmed, the motion vector and reference image index of the adjacent block B1 will not be registered in the merge list.
[0205] Furthermore, in Non-Patent Literature 1, for neighboring blocks B0, A0, and B2, in addition to checking the identity of the motion vector and reference image index registered in the merge list, it is also confirmed whether the target block is triangular merged.
[0206] In the present embodiment, the determination of triangle merging may be added to the pruning process, and a known method may be adopted as triangle merging, so the description thereof is omitted.
[0207] Furthermore, in Non-Patent Document 1, the maximum number of merge indices that can be registered for spatial merging is set to "4", and when four merge indices have been registered for the adjacent block B2 through the spatial merging process so far, the process of B2 is skipped.
[0208] In this embodiment, as in Non-Patent Literature 1, the processing of the adjacent block B2 may be determined based on the existing number of merge index registrations.
[0209] (Time Merge)
[0210] Fig.13 is a diagram showing time merging. Time merging is a technique in which the neighboring block ( Fig.13 C1) or a block located at the same location ( Fig.13 C0) is designated as the reference block, and the motion vector and reference image index are used.
[0211] The maximum number of registrants of the merge index of the time merge list in the merge list is "1" in Non-Patent Document 1, and the maximum number of registrants can also be set in the same manner in the present embodiment.
[0212] Furthermore, the motion vector used in the temporal merging has the characteristic of being scaled. Fig.14 is a diagram showing the scaling process.
[0213] Specifically, if Fig.14 As shown, based on the distance tb between the reference frame of the target block and the frame where the target frame is located, and the distance td between the reference frame of the reference block and the reference frame of the reference block, the mv of the reference block is scaled as follows.
[0214] mv'=(td / tb)×mv
[0215] In the temporal merging, the scaled mv' is registered in the merging list as a motion vector corresponding to the merging index.
[0216] (Historical Merge)
[0217] Fig.15 : is a diagram showing historical merging. Historical merging is a technique in which the motion vector, reference image index, and half-pixel index of the inter-frame prediction block that has been encoded before the target block are separately stored in a storage area called a historical merging table. When the merge list is not filled in the spatial merging process and the temporal merging process of the previous stage, the merge index registered in the historical merging table is registered in the merge list.
[0218] Fig.151 is a diagram showing an example of a history merge table construction process, which is configured as follows: based on a history merge index, a motion vector, a reference image index, and a half-pixel index corresponding to a previously encoded block are registered in the history merge table.
[0219] The maximum number of registered history merge indexes in the history merge table is set to "6" in Non-Patent Document 1, but can be freely set according to the designer's intention.
[0220] Furthermore, the registration process of the history merge index in the history merge table is FIFO processing, and is configured as follows: every time the history merge table is filled and a new history merge table is added, the last registered history merge index is deleted.
[0221] Furthermore, similar to Non-Patent Literature 1, if the target block spans across coding tree blocks (CTUs), the history merging index registered in the history merging table may be initialized.
[0222] (pairwise average merge)
[0223] Fig.16 It is a diagram showing the combination of new motion vectors and half-pixel indices calculated by pairwise average merging.
[0224] The pairwise average merge is a technique for generating a new motion vector, reference image index, and half-pixel index using the motion vectors, reference image indexes, and half-pixel indexes corresponding to two sets of merge indexes registered in the merge list.
[0225] As for the two groups of merge indexes used for pairwise average merge, the 0th and 1st merge indexes registered in the merge list may be fixedly used as in Non-Patent Document 1, or they may be freely set to another combination of two groups according to the designer's intention.
[0226] like Fig.16 As shown, the method for generating a new motion vector in the pairwise average merging is to generate the new motion vector by taking the average value of the motion vectors corresponding to the two groups of merge indexes in the merge list.
[0227] Specifically, for example, when there are two motion vectors corresponding to two groups of merge indexes (i.e., in the case of bidirectional prediction), based on the motion vectors mvL0P0 / mvL1P0 and mvL0P1 / mvL1P1 in the L0 and L1 directions, the pairwise average merged motion vectors mvL0Avg and mvL1Avg are independently calculated as follows.
[0228] mvL0Avg=(mvL0P0+mvL0P1) / 2
[0229] mvL1Avg=(mvL1P0+mvL1P1) / 2
[0230] Here, when one of mvL0P0 / mvL1P0 or mvL0P1 / mvL1P1 does not exist, the above calculation is performed excluding the non-existent motion vector.
[0231] At this time, Non-Patent Document 1 stipulates that the reference image indices RefIdxL0P0 and RefIdxL1P0 associated with the merge index P0 are always used as reference image indices associated with the pairwise average merge index.
[0232] And, if Fig.17 (a) and Fig.17 As shown in (b), the new half-pixel index hpelIfIdxAvg generated by pairwise average merging is set based on two sets of half-pixel indexes hpelIfIdxP0 and hpelIfIdxP1 corresponding to the two sets of merged indexes registered in the merge list.
[0233] Specifically, in step S17-1, it is determined whether hpelIfIdxP0 is identical to hpelIfIdxP1. If so, the process proceeds to step S17-2, and if not, the process proceeds to step S17-3.
[0234] In step S17 - 2 , hpelIfIdxAvg is set to hpelIfIdxP0 .
[0235] In step S17-3, hpelIfIdxAvg is set to invalid, that is, "0".
[0236] Here, when the values of hpelIfIdxP0 and hpelIfIdxP1 are "0" or "1", Fig.17 The processing of step S17-1 and step S17-3 shown in (a) is replaced by Fig.17 The processing of steps S17-4 to S17-6 of (b).
[0237] (Import of half-pixel index in temporal merging)
[0238] Below, reference Fig.18 The introduction of half-pixel indices in the temporal merging of this embodiment is described. Fig.18 This is a diagram showing an example of constructing a merged list according to the present embodiment.
[0239] In non-patent document 1, when a merge index for temporal merging is registered in a merge list, the half-pixel index corresponding to the merge index is always set to "0". Therefore, for temporal merging, in non-patent document 1, a smoothing filter is not used, but an HEVC filter is always used when a motion vector refers to a fractional pixel precision position.
[0240] Therefore, in this embodiment, instead of always setting the half-pixel index of the time merge to "0", the half-pixel index of the reference block is directly used and registered in the merge list.
[0241] Therefore, a smoothing filter can also be used for temporal merging, which means that the chances of selecting a smoothing filter for the entire merge list increase, so that the prediction accuracy can be improved by adaptively switching the filter according to the image characteristics, thereby improving the encoding performance.
[0242] (Introduce judgment using half-pixel index into pruning process when building merge list)
[0243] The following describes the introduction of judgment using half-pixel indices into the pruning process when constructing a merge list according to the present embodiment.
[0244] Non-patent document 1 describes a checking mechanism called pruning processing, which is to prevent merge indexes having the same motion vector and reference image index from being registered in the merge list when constructing the merge list.
[0245] Specifically, the pruning process takes effect when a new merge index is added to the merge list. If the motion vector and reference index associated with the newly added merge index are the same as the motion vector and reference index associated with the registered merge index, the merge index will not be added to the merge list.
[0246] This is to intentionally increase the variation of the motion vectors registered in the merge list. From the perspective of the image encoding device 100, the increased variation of selectable motion vectors means that there are more opportunities to select a motion vector with higher prediction accuracy for suppressing encoding costs.
[0247] Furthermore, from the perspective of the image decoding device 200 , an MC prediction image can be generated based on a motion vector with high prediction accuracy selected by the image encoding device 100 , and as a result, an improvement in encoding performance can be expected.
[0248] However, in non-patent document 1, the half-pixel index is not used in the judgment of the pruning process, and the merge index having the same motion vector and reference image index as the existing merge index but a different half-pixel index is not registered in the merge list.
[0249] Therefore, in this embodiment, the determination of the half-pixel index is added to the pruning process in the construction of the merge list.
[0250] Therefore, compared with the previous method, even if the merge index has the same motion vector and reference image index as the existing merge index, the merge index with a different half-pixel index will be registered in the merge list.
[0251] This indicates that the opportunities for selecting a smoothing filter for the merge list increase, which, from the perspective of the image encoding device 100 , means that an interpolation filter with a lower encoding cost can be adaptively selected according to image characteristics.
[0252] Furthermore, from the perspective of the image decoding device 200 , an MC prediction image can be generated using an interpolation filter with a low coding cost selected by the image coding device 100 , and as a result, an effect of improving coding performance can be expected.
[0253] [Change example: Expansion of pruning processing]
[0254] In the above example, the case where the judgment of the half-pixel index is added in the pruning process is shown, but in Non-Patent Document 1, the pruning process is performed only when the merge list is constructed using spatial merging and historical merging.
[0255] Moreover, during spatial merging, for the above five candidates (processing order: A1, B1, B0, A0, B2), when triangular merging is invalid, only comparisons are performed between B0 and B1, A0 and A1, and B2 and A1 and B1.
[0256] Therefore, in B0, A0, B2 in spatial merging, temporal merging, and paired average merging, the motion vector, reference image index, and half-pixel index may be repeated with the merging candidates in the previous stage that have not been compared.
[0257] Therefore, in the merge candidate and merge list construction method of non-patent document 1 that does not adopt pruning processing, if the judgment of half-pixel index is added after the pruning processing is expanded, it is possible to avoid adding merge candidates with the same motion vector, reference image index and half-pixel index to the merge list. Therefore, it is expected that the prediction accuracy will be improved, and further, the encoding performance will be improved.
[0258] (Introducing judgment using half-pixel indexes into the pruning process when building the history merge table)
[0259] The following describes the introduction of determination using half-pixel indices into the pruning process when constructing the history merging table according to the present embodiment.
[0260] Non-patent document 1 discloses a checking mechanism called pruning processing, which is to prevent history merging candidates having the same motion vector and reference image index from being registered in the history merging table when the history merging table is constructed.
[0261] Specifically, when a new historical merge candidate is added to the historical merge table, the pruning process takes effect. When the motion vector and reference index associated with the newly added historical merge candidate are the same as the motion vector and reference index associated with the registered historical merge candidate, the historical merge candidate is not added to the historical merge table.
[0262] This is to intentionally increase the variation of the motion vectors registered in the history merging table. From the perspective of the image encoding device 100, the increased variation of selectable motion vectors means that there are more opportunities to select a motion vector with higher prediction accuracy for suppressing encoding costs.
[0263] Furthermore, from the perspective of the image decoding device 200 , an MC prediction image can be generated based on a motion vector with high prediction accuracy selected by the image encoding device 100 , and as a result, an improvement in encoding performance can be expected.
[0264] However, in non-patent document 1, half-pixel indexes are not used in the judgment of the pruning process, and historical merging candidates that have the same motion vector and reference image index as existing historical merging candidates but have different half-pixel indexes are not registered in the historical merging table.
[0265] Therefore, in this embodiment, the judgment of the half-pixel index is added to the pruning process in the construction of the history merging table.
[0266] Therefore, compared with the conventional method, even when a historical merging candidate has the same motion vector and reference image index as an existing historical merging candidate, a historical merging candidate having a different half-pixel index is registered in the merging list.
[0267] This indicates that the opportunities for selecting a smoothing filter increase for the history merging table, and from the perspective of the image encoding device 100 , this means that an interpolation filter with a lower encoding cost can be adaptively selected according to image characteristics.
[0268] Furthermore, from the perspective of the image decoding device 200 , an MC prediction image can be generated using an interpolation filter with a lower coding cost selected by the image coding device 100 , and as a result, an effect of improving coding performance can be expected.
[0269] According to the present invention, by adding the judgment of the half-pixel index to the judgment conditions of the pruning process when constructing a merge list or a historical merge table, the chances of selecting a smoothing filter are increased, and as a result, an improvement in encoding performance can be expected.
[0270] The above-described image encoding apparatus 100 and image decoding apparatus 200 may be realized by a program that causes a computer to execute each function (each step).
[0271] In addition, in the above-mentioned embodiments, the application of the present invention to the image encoding device 100 and the image decoding device 200 is described as an example, but the present invention is not limited to this, and can also be applied to an image encoding system and an image decoding system having the functions of the image encoding device 100 and the image decoding device 200.
[0272] [Explanation of symbols]
[0273] 10: image processing system; 100: image encoding device; 111, 241: inter-frame prediction unit; 111A: mv derivation unit; 111A1, 241A1: AMVP unit; 111A2, 241A2: merging unit; 111B: AMVR unit; 111C, 241B: mv refinement unit; 111D, 241C: prediction signal generation unit; 111D1, 241C1: filter determination unit; 111D2, 241C2: filter Application unit; 112, 242: intra-frame prediction unit; 121: subtractor; 122, 230: adder; 131: transformation and quantization unit; 132, 220: inverse transformation and inverse quantization unit; 140: encoding unit; 150, 250: loop filter processing unit; 160, 260: frame buffer; 200: image decoding device; 210: decoding unit; 241A: mv decoding unit; 241B1: MMVD unit; 241B2: DMVR unit.
Claims
1. An image decoding device, It is characterized in that include: a merging unit configured to decode the motion vector and the half-pixel index according to the merging index, wherein the half-pixel index indicates whether the motion vector refers to a 1 / 2 pixel precision position; A motion vector refinement unit configured to refine the motion vector by MMVD or DMVR; a filter determination unit configured to determine whether to use an interpolation filter and the type of the interpolation filter based on the refined motion vector and the half-pixel index; and The filter application unit is configured to generate a motion compensation prediction pixel signal using the interpolation filter; and The merging unit is configured to generate a merge list by a specific merge list construction method, and decode the motion vector and the half-pixel index according to the merge list and the merge index. The object blocks are merged, The merging unit is configured to register the half-pixel indices corresponding to the merge indexes as different merge indexes in the merge list when constructing the merge list, even if the motion vectors and reference image indices corresponding to different merge indexes are the same.
2. An image decoding device, It is characterized in that include: a merging unit configured to decode the motion vector and the half-pixel index according to the merging index, wherein the half-pixel index indicates whether the motion vector refers to a 1 / 2 pixel precision position; A motion vector refinement unit configured to refine the motion vector by MMVD or DMVR; a filter determination unit configured to determine whether to use an interpolation filter and the type of the interpolation filter based on the refined motion vector and the half-pixel index; and The filter application unit is configured to generate a motion compensation prediction pixel signal using the interpolation filter; and The merging unit is configured to generate a merge list by a specific merge list construction method, and decode the motion vector and the half-pixel index according to the merge list and the merge index. The object blocks are merged, The merging unit is configured to register different historical merging candidates in the historical merging table as different historical merging candidates even if the motion vectors and reference image indices corresponding to different historical merging candidates are the same when the half-pixel indices corresponding to the historical merging candidates are different.
3. An image decoding device, It is characterized in that include: a merging unit configured to decode the motion vector and the half-pixel index according to the merging index, wherein the half-pixel index indicates whether the motion vector refers to a 1 / 2 pixel precision position; A motion vector refinement unit configured to refine the motion vector by MMVD or DMVR; a filter determination unit configured to determine whether to use an interpolation filter and the type of the interpolation filter based on the refined motion vector and the half-pixel index; and The filter application unit is configured to generate a motion compensation prediction pixel signal using the interpolation filter; and The merging unit is configured to generate a merge list by a specific merge list construction method, and decode the motion vector and the half-pixel index according to the merge list and the merge index. The object blocks are merged, The merging unit is configured to use the half-pixel index of the reference block when registering the merge index of the temporal merge in the merge list, and register it in the merge list.
4. An image decoding method, It is characterized in that include: Step A, the merging unit decodes the motion vector and the half-pixel index according to the merging index, wherein the half-pixel index indicates whether the motion vector refers to a 1 / 2 pixel precision position; Step B, refining the motion vector by MMVD or DMVR; Step C, determining whether to use an interpolation filter and the type of the interpolation filter based on the refined motion vector and the half-pixel index; and Step D, using the interpolation filter to generate a motion compensated predicted pixel signal; and In step A, the merging unit generates a merge list by a specific merge list construction method, and decodes the motion vector and the half-pixel index according to the merge list and the merge index. The object blocks are merged, When constructing the merge list, the merging unit registers the half-pixel indices corresponding to different merge indices in the merge list as different merge indices even if the motion vectors and reference image indices corresponding to the different merge indices are the same.
5. A program product comprising a program for causing a computer to function as an image decoding device, It is characterized in that The image decoding device comprises: a merging unit configured to decode the motion vector and the half-pixel index according to the merging index, wherein the half-pixel index indicates whether the motion vector refers to a 1 / 2 pixel precision position; A motion vector refinement unit configured to refine the motion vector by MMVD or DMVR; a filter determination unit configured to determine whether to use an interpolation filter and the type of the interpolation filter based on the refined motion vector and the half-pixel index; and The filter application unit is configured to generate a motion compensation prediction pixel signal using the interpolation filter; and The merging unit is configured to generate a merge list by a specific merge list construction method, and decode the motion vector and the half-pixel index according to the merge list and the merge index. The object blocks are merged, The merging unit is configured to register the half-pixel indices corresponding to the merge indexes as different merge indexes in the merge list when constructing the merge list, even if the motion vectors and reference image indices corresponding to different merge indexes are the same.
