Image decoding device, image encoding device, image decoding method and program

By applying OBMC judiciously based on block sizes and prediction directions, the image decoding and encoding processes are optimized, reducing memory bandwidth and computational requirements, thus improving encoding performance.

JP7549088B2Active Publication Date: 2024-09-10KDDI CORP

Patent Information

Application Number
JP2023098271
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2023-06-15
Publication Date
2024-09-10
Estimated Expiration
2038-12-28

AI Technical Summary

Technical Problem

Existing image decoding and encoding technologies face inefficiencies in memory bandwidth and computational requirements due to the application of Overlapped Block Motion Compensation (OBMC), particularly when block sizes and prediction directions are not considered, leading to increased calculations and reduced encoding performance.

Method used

The implementation of an image decoding device and method that applies OBMC based on restrictions related to block sizes, prediction directions, and adjacent block types, including determining the necessity of OBMC, converting prediction directions, adjusting weight coefficients, and reducing the number of calculations and memory bandwidth by applying OBMC only when necessary.

Benefits of technology

This approach effectively reduces memory bandwidth and computational load while improving encoding performance by optimizing the application of OBMC based on specific conditions, thereby enhancing the efficiency of image decoding and encoding processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007549088000011
    Figure 0007549088000011
  • Figure 0007549088000018
    Figure 0007549088000018
  • Figure 0007549088000005
    Figure 0007549088000005
Patent Text Reader

Abstract

To restrain increase in a memory band width and a number of times of calculation required at a time of application of OBMC.SOLUTION: An image decoder 30 includes a motion compensation prediction section 34b1 generating a prediction image signal of a prediction object block, on the basis of a motion vector in block unit and information about a reference frame, a doubling motion compensation section 34b3 performing doubling motion compensation processing for correcting the prediction image signal of the prediction object block, by weighted averaging of the prediction image signal of the projection object block and the prediction image signal generated on the basis of a motion vector of an adjacent block to the prediction object block, and the information about a reference frame, and a determination unit 34b2 for determining whether or not the doubling motion compensation processing is applied to the prediction object block, where the determination unit 34b2 determines that the doubling motion compensation processing is applied to the prediction object block, when unidirectional prediction has been applied to the adjacent block.SELECTED DRAWING: Figure 7
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an image decoding device, an image encoding device, an image decoding method, and a program. [Background technology]

[0002] Non-Patent Document 1 discloses a technique called overlapped block motion compensation (OBMC). OBMC is a technique that generates a final predicted pixel by performing weighted averaging of reference pixel values ​​indicated by motion vectors of a prediction target block and an adjacent block based on a preset weighting coefficient matrix in a predicted pixel generation process of motion compensation prediction.

[0003] In addition, Patent Document 1 describes a technology that determines the suitability of OBMC based on the size of the block to be predicted, the type of prediction direction (unidirectional prediction or bidirectional prediction), and the accuracy of the motion vector in order to reduce memory bandwidth when OMBC is applied.

[0004] Furthermore, Patent Document 2 describes a technique for modifying a bS value, which is a parameter for determining the strength of a deblocking filter, when applying OBMC to boundaries between multiple prediction target blocks in a block to be coded. This technique makes it possible to avoid unnecessary filter effects caused by a deblocking filter when a smoothing effect has already been applied to boundaries between prediction target blocks by applying OBMC. [Prior art documents] [Non-patent literature]

[0005] [Non-Patent Document 1] Algorithm Description of Joint Exploration Test Model 7(JEM 7) [Non-Patent Document 2] ITU-T H.265 High Efficiency Video Coding [Patent documents]

[0006] [Patent Document 1] JP 2016-184936 A [Patent Document 2] Patent No. 6169091 Summary of the Invention [Problem to be solved by the invention]

[0007] However, the OBMC disclosed in Non-Patent Document 1 is configured to be applied regardless of the size of the block to be predicted or the adjacent block or the type of prediction direction, and therefore there is a problem that the memory bandwidth and the number of calculations required when applying OBMC increase.

[0008] Furthermore, with the OBMC disclosed in Patent Document 1, there are cases in which the memory bandwidth and number of calculations required when such OBMC is applied exceed the memory bandwidth and number of calculations required when OBMC is not applied, and there is also the problem that the number of blocks to which OBMC is applied may be reduced on an unintended scale, which may result in a deterioration in coding performance.

[0009] Furthermore, Patent Document 2 discloses modifying the bS value used to determine the strength of the deblocking filter when OBMC is applied, but there is a problem in that OBMC is applied only to multiple prediction target block boundaries within a block to be coded. There was a problem:

[0010] Therefore, the present invention has been made in consideration of the above-mentioned problems, and aims to provide an image decoding device, an image encoding device, an image decoding method, and a program that can suppress the increase in memory bandwidth and number of calculations required when applying OBMC by adding a judgment (restriction) based on the size of the block to be predicted, the type of prediction direction, and the type of prediction direction of an adjacent block to the application conditions of OMBC, and can also achieve improved encoding performance. [Means for solving the problem]

[0011] A first feature of the present invention is an image decoding device configured to decode an image signal composed of a plurality of blocks, the image decoding device comprising: a motion compensation prediction unit configured to generate a predicted image signal of a block to be predicted based on information related to a motion vector and a reference frame for each block; an overlapping motion compensation unit configured to perform overlapping motion compensation processing to correct the predicted image signal of the block to be predicted by taking a weighted average of the predicted image signal of the block to be predicted and a predicted image signal generated based on information related to a motion vector and a reference frame of an adjacent block of the block to be predicted; and a determination unit configured to determine whether to apply the overlapping motion compensation processing to the block to be predicted, wherein the determination unit is configured to determine to apply the overlapping motion compensation processing to the block to be predicted when unidirectional prediction is applied to the adjacent block.

[0012] A second feature of the present invention is summarized as follows: an image decoding device configured to decode an image signal composed of a plurality of blocks, comprising: a motion compensation prediction unit configured to generate a predicted image signal of a block to be predicted based on information related to a motion vector and a reference frame for each block; an overlapped motion compensation unit configured to perform overlapped motion compensation processing to correct the predicted image signal of the block to be predicted by taking a weighted average of the predicted image signal of the block to be predicted and a predicted image signal generated based on information related to a motion vector and a reference frame of an adjacent block of the block to be predicted; and a determination unit configured to control a type of prediction direction applied to the adjacent block based on a size of the block to be predicted, and determine whether to apply the overlapped motion compensation processing to the block to be predicted.

[0013] A third aspect of the present invention is an image decoding device configured to decode an image signal composed of a plurality of blocks, the image decoding device comprising: a motion compensation prediction unit configured to generate a predicted image signal of a prediction target block based on information related to a motion vector and a reference frame for each block; an overlapped motion compensation unit configured to perform overlapped motion compensation processing for correcting the predicted image signal of the prediction target block by taking a weighted average of the predicted image signal of the prediction target block and a predicted image signal generated based on information related to a motion vector and a reference frame of an adjacent block of the prediction target block; and a determination unit configured to determine whether to apply the overlapped motion compensation processing to the prediction target block, The gist of the present invention is that the determination unit is configured to control a number of overlapped motion compensation taps of the adjacent block based on a size of the block to be predicted, and to determine whether to apply the overlapped motion compensation process to the block to be predicted.

[0014] A fourth aspect of the present invention is an image decoding device configured to decode an image signal composed of a plurality of blocks, the image decoding device comprising: a motion compensation prediction unit configured to generate a predicted image signal of a block to be predicted based on information related to a motion vector and a reference frame for each block; an overlapped motion compensation unit configured to perform overlapped motion compensation processing to correct the predicted image signal of the block to be predicted by taking a weighted average of the predicted image signal of the block to be predicted and a predicted image signal generated based on information related to a motion vector and a reference frame of an adjacent block of the block to be predicted; and a determination unit configured to determine whether to apply the overlapped motion compensation processing to the block to be predicted, wherein the determination unit is configured to convert the prediction method applied to the adjacent block from bidirectional prediction to unidirectional prediction by a predetermined method when bidirectional prediction is applied to the adjacent block.

[0015] A fifth feature of the present invention is summarized as an image decoding device configured to decode an image signal composed of a plurality of blocks, the image decoding device comprising: a motion compensation prediction unit configured to generate a predicted image signal of a block to be predicted based on information related to a motion vector and a reference frame for each block; a redundant motion compensation unit configured to perform a redundant motion compensation process for correcting the predicted image signal of the block to be predicted by taking a weighted average of the predicted image signal of the block to be predicted and a predicted image signal generated based on information related to a motion vector and a reference frame of an adjacent block of the block to be predicted; and a determination unit configured to determine whether to apply the redundant motion compensation process to the block to be predicted, wherein the redundant motion compensation unit is configured to change weight values ​​of a weighting coefficient matrix used in the weighted average based on the number of the adjacent blocks or a size of the block to be predicted.

[0016] A sixth feature of the present invention is summarized as an image decoding device configured to decode an image signal composed of a plurality of blocks, the image decoding device including: a motion compensation prediction unit configured to generate a predicted image signal of a block to be predicted based on information related to a motion vector and a reference frame for each block; an overlapped motion compensation unit configured to perform overlapped motion compensation processing to correct the predicted image signal of the block to be predicted by taking a weighted average of the predicted image signal of the block to be predicted and a predicted image signal generated based on information related to a motion vector and a reference frame of an adjacent block of the block to be predicted; and a determination unit configured to determine whether to apply the overlapped motion compensation processing to the block to be predicted, wherein the overlapped motion compensation unit is configured to change an application condition of a deblocking filter based on whether the overlapped motion compensation prediction processing is applied or not.

[0017] A seventh aspect of the present invention is summarized as an image decoding device configured to decode an image signal composed of a plurality of blocks, the image decoding device comprising: a motion compensation prediction unit configured to generate a predicted image signal of a block to be predicted based on information related to a motion vector and a reference frame for each block; an overlapping motion compensation unit configured to perform overlapping motion compensation processing to correct the predicted image signal of the block to be predicted by taking a weighted average of the predicted image signal of the block to be predicted and a predicted image signal generated based on information related to a motion vector and a reference frame of an adjacent block of the block to be predicted; and a determination unit configured to determine whether to apply the overlapping motion compensation processing to the block to be predicted, wherein the motion compensation prediction unit is configured to reduce the number of motion vectors and reference frames required for the overlapping motion compensation prediction processing by a predetermined reduction method when the motion vector of the block to be predicted and the motion vector of the adjacent block are different.

[0018] An eighth feature of the present invention is summarized as follows: an image coding device configured to generate coded data by coding an image signal composed of a plurality of blocks, the image coding device comprising: a motion compensation prediction unit configured to generate a predicted image signal of a block to be predicted based on information related to a motion vector and a reference frame for each block; an overlapped motion compensation unit configured to perform overlapped motion compensation processing to correct the predicted image signal of the block to be predicted by taking a weighted average of the predicted image signal of the block to be predicted and a predicted image signal generated based on information related to a motion vector and a reference frame of an adjacent block of the block to be predicted; and a determination unit configured to determine whether to apply the overlapped motion compensation processing to the block to be predicted, wherein the determination unit is configured to determine to apply the overlapped motion compensation processing to the block to be predicted when unidirectional prediction is applied to the adjacent block.

[0019] A ninth aspect of the present invention is an image decoding method for decoding an image signal composed of a plurality of blocks, comprising: a step A of generating a predicted image signal of a block to be predicted based on information relating to a motion vector and a reference frame for each block; a step B of performing overlapped motion compensation processing for correcting the predicted image signal of the block to be predicted by taking a weighted average of the predicted image signal of the block to be predicted and a predicted image signal generated based on information relating to a motion vector and a reference frame of an adjacent block of the block to be predicted; and a step C of determining whether to apply the overlapped motion compensation processing to the block to be predicted. In the step C, it is determined to apply the overlapped motion compensation processing to the block to be predicted if unidirectional prediction is applied to the adjacent block.

[0020] A tenth feature of the present invention is summarized as a program that causes a computer to function as an image decoding device configured to decode an image signal composed of a plurality of blocks, the image decoding device comprising: a motion compensation prediction unit configured to generate a predicted image signal of a prediction target block based on information related to a motion vector and a reference frame for each block; an overlapped motion compensation unit configured to perform overlapped motion compensation processing to correct the predicted image signal of the prediction target block by taking a weighted average of the predicted image signal of the prediction target block and a predicted image signal generated based on information related to a motion vector and a reference frame of an adjacent block of the prediction target block; and a determination unit configured to determine whether to apply the overlapped motion compensation processing to the prediction target block, wherein the determination unit is configured to determine to apply the overlapped motion compensation processing to the prediction target block when unidirectional prediction is applied to the adjacent block. Effect of the Invention

[0021] According to the present invention, by adding a judgment (restriction) based on the size of the block to be predicted, the type of prediction direction, and the type of prediction direction of an adjacent block to the application conditions of OMBC, it is possible to suppress an increase in the memory bandwidth and the number of calculations required when applying OBMC, and to provide an image decoding device, an image encoding device, an image decoding method, and a program that can improve encoding performance. [Brief description of the drawings]

[0022] [Figure 1] 1 is a diagram illustrating an example of a configuration of an image processing system 1 according to an embodiment. [Diagram 2] FIG. 1 is a diagram illustrating an example of functional blocks of an image encoding device 10 according to an embodiment. [Diagram 3] FIG. 2 is a diagram illustrating an example of functional blocks of an inter prediction unit 11 of an image encoding device 10 according to an embodiment. [Figure 4]FIG. 2 is a diagram illustrating an example of functional blocks of an MC prediction unit 11c of an inter prediction unit 11 of an image encoding device 10 according to an embodiment. [Diagram 5] FIG. 2 is a diagram illustrating an example of functional blocks of an image decoding device 30 according to an embodiment. [Figure 6] 2 is a diagram illustrating an example of functional blocks of an inter prediction unit 34 of an image decoding device 30 according to an embodiment. FIG. [Figure 7] 2 is a diagram illustrating an example of functional blocks of an MC prediction unit 34b of an inter prediction unit 34 of an image decoding device 30 according to an embodiment. FIG. [Figure 8] 13 is a flowchart showing an example of the operation of the MC prediction section 34b of the inter prediction section 34 of the image decoding device 30 according to an embodiment. [Figure 9] 13 is a flowchart showing an example of the operation of the MC prediction section 34b of the inter prediction section 34 of the image decoding device 30 according to an embodiment. [Figure 10] 13 is a flowchart showing an example of the operation of the MC prediction section 34b of the inter prediction section 34 of the image decoding device 30 according to an embodiment. [Figure 11] 13 is a flowchart showing an example of the operation of the MC prediction section 34b of the inter prediction section 34 of the image decoding device 30 according to a modified example. [Figure 12] FIG. 13 is a diagram showing an example of a table used in a modified example. [Figure 13] FIG. 13 is a diagram showing an example of a table used in a modified example. [Figure 14] 13 is a flowchart showing an example of the operation of the MC prediction section 34b of the inter prediction section 34 of the image decoding device 30 according to an embodiment. [Figure 15] FIG. 13 is a diagram illustrating an example of a table used in an embodiment. [Figure 16] FIG. 13 is a diagram illustrating an example of a table used in an embodiment. [Figure 17] FIG. 13 is a diagram showing an example of a table used in a modified example. [Figure 18]13 is a flowchart showing an example of the operation of the MC prediction section 34b of the inter prediction section 34 of the image decoding device 30 according to an embodiment. [Figure 19] FIG. 1 is a diagram for explaining an embodiment. [Figure 20] FIG. 1 is a diagram for explaining an embodiment. [Figure 21] FIG. 1 is a diagram for explaining an embodiment. [Figure 22] FIG. 1 is a diagram for explaining an embodiment. [Diagram 23] FIG. 1 is a diagram for explaining an embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0023] An image processing system 1 according to an embodiment of the present invention will be described below with reference to Fig. 1. Fig. 1 is a diagram showing the image processing system 1 according to the present embodiment.

[0024] As shown in FIG. 1, an image processing system 1 according to this embodiment includes an image encoding device 10 and an image decoding device 30.

[0025] The image encoding device 10 is configured to generate encoded data by encoding an input image signal. The image decoding device 30 is configured to generate an output image signal by decoding the encoded data.

[0026] The encoded data may be transmitted from the image encoding device 10 to the image decoding device 30 via a transmission path. The encoded data may be provided from the image encoding device 10 to the image decoding device 30 after being stored in a storage medium.

[0027] (Regarding image encoding device 10) The image encoding device 10 according to this embodiment will be described below with reference to Fig. 2. Fig. 2 is a diagram showing the image encoding device according to this embodiment.

[0028] As shown in FIG. 2, the image encoding device 10 includes an inter prediction unit 11, an intra prediction unit 12, a subtractor 13, an adder 14, a transform / quantization unit 15, an inverse transform / inverse quantization unit 16, an encoding unit 17, an in-loop filter 18, and a frame buffer 19.

[0029] The inter prediction unit 11 is configured to generate a predicted image signal by inter prediction (inter-frame prediction).

[0030] Specifically, the inter prediction unit 11 is configured to identify a reference unit contained in a reference frame to be encoded (hereinafter, the target frame) by comparing the frame with a reference frame stored in the frame buffer 19, and to determine a motion vector of a block to be predicted (prediction unit, for example, PU: Prediction Unit) for the identified reference unit.

[0031] Here, the reference frame is a frame different from the current frame, and the reference unit is a block referenced for the current block to be predicted.

[0032] The inter prediction unit 11 is configured to generate a prediction image signal for each prediction target block based on the prediction target block and a motion vector. The inter prediction unit 11 is configured to output the prediction image signal to the subtractor 13 and the adder 14.

[0033] The intra prediction unit 12 is configured to generate a predicted image signal by intra prediction (intra-frame prediction).

[0034] Specifically, the intra prediction unit 12 is configured to identify a reference unit included in a target frame, and generate a prediction image signal for each prediction target block based on the identified reference unit. The intra prediction unit 12 is also configured to output the prediction image signal to the subtractor 13 and the adder 14.

[0035] For example, such a reference unit is a block adjacent to the block to be predicted (adjacent block).

[0036] The subtractor 13 is configured to subtract the predicted image signal from the input image signal, generate a predicted residual signal that is the difference between the input image signal and the predicted image signal, and output the generated signal to the transform / quantize unit 15 .

[0037] The adder 14 is configured to add the predicted image signal output from the inter prediction unit 111 or the intra prediction unit 112 to the predicted residual signal output from the inverse transformation / inverse quantization unit 16 to generate a pre-filter decoded signal, and to output the pre-filter decoded signal to the intra prediction unit 12 and the in-loop filter 18.

[0038] Here, the unfiltered decoded signal constitutes a reference unit used by the intra prediction unit 12 .

[0039] The transform / quantization unit 15 is configured to perform a transform process on the input prediction residual signal to obtain coefficient level values. Furthermore, the transform / quantization unit 15 may be configured to quantize the coefficient level values.

[0040] Here, the conversion process is a process of converting the above-mentioned prediction residual signal into a frequency component signal. In addition, in the conversion process, a basis pattern (transformation matrix) corresponding to a discrete cosine transform (DCT) may be used, or a basis pattern (transformation matrix) corresponding to a discrete sine transform (DCT) may be used.

[0041] The inverse transform / inverse quantization unit 16 is configured to perform an inverse transform process on the coefficient level values ​​output from the transform / quantization unit 15. Here, the inverse transform / inverse quantization unit 16 may be configured to perform an inverse quantization process on the coefficient level values ​​prior to the inverse transform process.

[0042] Here, the inverse transformation process and inverse quantization are performed in the reverse order to the transformation process and quantization performed by the transformation / quantization unit 15 .

[0043] The encoding unit 17 is configured to encode the coefficient level values ​​output from the transform / quantization unit 17, generate encoded data, and output the encoded data.

[0044] For example, such coding is entropy coding, which assigns codes of different lengths based on the probability of occurrence of such coefficient level values.

[0045] Moreover, the encoding unit 17 is configured to encode control data used in the decoding process in the image decoding device 30, in addition to the coefficient level values.

[0046] Here, such control data may include size data such as the size of a coding unit (CU), the size of a block to be predicted, and the size of a transform unit (TU).

[0047] The in-loop filter 18 is configured to perform a filtering process on the unfiltered decoded signal output from the adder 14 to generate a filtered decoded signal, and to output the filtered decoded signal to a frame buffer 19 .

[0048] For example, such filtering is deblocking filtering that reduces distortion occurring at boundaries between blocks (prediction target blocks or transform units).

[0049] The frame buffer 19 is configured to store reference frames used by the inter prediction unit 11 .

[0050] Here, the filtered decoded signal constitutes a reference frame used in the inter prediction unit 11 .

[0051] (About Inter Prediction Unit 11) Hereinafter, the inter prediction unit 11 of the image encoding device 10 according to this embodiment will be described with reference to Fig. 3. Fig. 3 is a diagram showing the inter prediction unit 11 according to this embodiment.

[0052] As shown in FIG. 3, the inter prediction unit 11 includes a motion search unit 11a, a merging unit 11b, and a motion compensation prediction unit (hereinafter, MC prediction unit) 11c.

[0053] The motion search unit 11a is configured to receive as input an input image signal (original image), a reference frame (reconstructed image) stored in the frame buffer 19, and motion vectors of adjacent blocks of the block to be predicted, and to determine a motion vector and a reference frame for each block to be predicted.

[0054] For example, specifically, the motion search unit 11a includes a motion compensation (MC) prediction unit 11a1 and a cost calculation unit 11a2.

[0055] The motion compensation (MC) prediction unit 11a1 is configured to generate a predicted image signal for an input image signal corresponding to a prediction target block while changing a reference frame and a reference position within the reference frame.

[0056] The cost calculation unit 11a2 is configured to determine a reference position (i.e., a motion vector) and a reference frame that minimizes the cost between the predicted image signal generated by the motion compensation prediction unit 11a1 and the input image signal and minimizes the code amount difference with the motion vector of an adjacent block.

[0057] Here, the cost function used in the cost calculation unit 11a2 may be, for example, the sum of squared errors (SSE) or the sum of absolute differences (SAD), and the cost calculation unit 11a2 may be configured to appropriately select which cost function to use based on the calculation load.

[0058] The image encoding device 10 is configured to transmit to the image decoding device 30, information relating to the motion vector and the reference frame determined by the cost calculation unit 11a2, superimposed on the encoded data.

[0059] The merging unit 11b is configured to determine a merging candidate (motion vector) for the block to be predicted, based on the input image signal, a reference frame stored in the frame buffer 19, and a motion vector of an adjacent block.

[0060] The image encoding device 10 is configured to transmit to the image decoding device 30, information relating to the merging candidates determined by the merging unit 11b being superimposed on the encoded data. (Regarding the MC prediction unit 11c) Hereinafter, the MC prediction unit 11c of the inter prediction unit 11 of the image encoding device 10 according to this embodiment will be described with reference to Fig. 4. Fig. 4 is a diagram showing the MC prediction unit 11c of the inter prediction unit 11 of the image encoding device 10 according to this embodiment.

[0061] As shown in FIG. 4, the MC prediction unit 11c has a standard motion compensation prediction unit (standard MC prediction unit) 11c1, an OBMC application determination unit 11c2, and an OBMC application unit 11c3.

[0062] Here, the MC prediction unit 11c is configured to output a predicted image signal (predicted pixel value) based on the information related to the motion vector and reference frame (reference image list and reference image index) from the motion estimation unit 11a and the information related to the merging candidate from the merging unit 11b. Note that the output predicted image signal changes depending on whether OBMC is applied or not.

[0063] Furthermore, when an OBMC application determination flag is sent from the image encoding device 10, the MC prediction unit 11c is configured to determine whether or not OBMC is appropriate, based on the OBMC application determination flag.

[0064] Specifically, the standard MC prediction unit 11c1 is configured to generate a prediction image signal of a prediction target block, based on a block-by-block motion vector and a reference frame.

[0065] The OBMC application determination unit 11c2 is configured to determine whether or not to apply OBMC to the prediction target block. Here, when it is determined that OBMC is not applied, the OBMC application determination unit 11c2 is configured to output the predicted image signal generated by the standard MC prediction unit 11c1 as it is.

[0066] On the other hand, when it is determined that OBMC is applied, the OBMC application unit 11c3 is configured to apply OBMC to the prediction target block and output the generated predicted image signal. Here, when OBMC is applied, the image encoding device 10 is configured to transmit the OBMC application determination flag to the image decoding device 30 by superimposing it on the encoded data.

[0067] The specific method of determining whether or not to apply OBMC and the method of applying OBMC will be described later.

[0068] (Regarding the image decoding device 30) Hereinafter, the image decoding device 30 according to this embodiment will be described with reference to Fig. 5. Fig. 5 is a diagram showing the image decoding device according to this embodiment.

[0069] As shown in FIG. 5, the image decoding device 30 includes a decoding unit 31, an inverse transform / inverse quantization unit 32, an adder 33, an inter prediction unit 34, an intra prediction unit 35, an in-loop filter 36, and a frame buffer 37.

[0070] The decoding unit 31 is configured to decode the coded data generated by the image coding device 10, and to decode the coefficient level values.

[0071] Here, for example, the decoding is entropy decoding that is the reverse procedure of the entropy encoding performed by the encoding unit 17 of the image encoding device 10.

[0072] The decoding unit 31 may also be configured to obtain the control data by decoding the encoded data.

[0073] As described above, the control data may include size data such as the size of the coding unit, the size of the block to be predicted, the size of the transform unit, etc. The control data may also include information elements indicating an input source used to generate the prediction sample of the second component. Here, the second component refers to, for example, a color difference signal other than the luminance signal constituting the image signal.

[0074] The inverse transform / inverse quantization unit 32 is configured to perform an inverse transform process on the coefficient level values ​​output from the decoding unit 31. Note that the inverse transform / inverse quantization unit 32 may be configured to perform inverse quantization of the coefficient level values ​​prior to the inverse transform process.

[0075] Here, the inverse transformation process and inverse quantization are performed in the reverse order to the transformation process and quantization performed by the transformation / quantization unit 15 .

[0076] The adder 33 is configured to add the prediction image signal to the prediction residual signal output from the inverse transform / inverse quantization unit 32 to generate a pre-filter decoded signal, and to output the pre-filter decoded signal to the intra prediction unit 35 and the in-loop filter 36.

[0077] Here, such pre-filtered decoded signals form the reference units used by the intra prediction unit 35 .

[0078] The inter prediction unit 34 is configured to generate a predicted image signal by inter prediction (inter-frame prediction), similar to the inter prediction unit 11 of the image encoding device 10.

[0079] Specifically, the inter prediction unit 34 is configured to identify a reference unit contained in a reference frame by comparing the frame to be coded with a reference frame stored in the frame buffer 37, and to determine a motion vector of the block to be predicted with respect to the identified reference unit.

[0080] Here, the inter prediction unit 34 is configured to generate a prediction image signal for each prediction target block based on the prediction target block and the motion vector. The inter prediction unit 34 is configured to output the prediction image signal to the adder 33.

[0081] The intra prediction unit 35 is configured to generate a predicted image signal by intra prediction (intra-frame prediction), similar to the intra prediction unit 12 of the image encoding device 10.

[0082] Specifically, the intra prediction unit 35 is configured to identify a reference unit included in the encoding target frame, and generate a prediction image signal for each prediction target block based on the identified reference unit. The intra prediction unit 35 is configured to output the prediction image signal to the adder 33.

[0083] Similar to the in-loop filter 18 of the image encoding device 10, the in-loop filter 36 is configured to perform filtering on the pre-filter decoded signal output from the adder 33 to generate a post-filter decoded signal, and to output the post-filter decoded signal to the frame buffer 37.

[0084] For example, such filtering is deblocking filtering that reduces distortion occurring at boundaries between blocks (prediction target blocks or transform units).

[0085] Similar to the frame buffer 19 of the image encoding device 10, the frame buffer 37 is configured to store reference frames used by the inter prediction unit .

[0086] Here, the filtered decoded signal constitutes a reference frame used in the inter prediction unit 11 .

[0087] (Regarding the inter prediction unit 34) The inter prediction unit 34 of the image decoding device 30 according to this embodiment will be described below with reference to Fig. 6. Fig. 6 is a diagram showing the inter prediction unit 34 of the image decoding device 30 according to this embodiment.

[0088] As shown in FIG. 6, the inter prediction unit 34 has a motion vector decoding unit 34a and a motion compensation (MC) prediction unit 34b.

[0089] The motion vector decoding unit 34a is configured to decode information relating to the motion vectors and reference frames for each block (reference image list and reference image index) superimposed on the encoded data, information relating to merging candidates, and an OBMC application determination flag, and output the decoded information to the MC prediction unit 34b.

[0090] The MC prediction unit 34b is configured to receive as input the motion vector decoded by the motion vector decoding unit 34a, information related to the reference frame, and information related to the merging candidates, and to generate and output an output image signal (predicted pixel value).

[0091] (Regarding the MC prediction unit 34b) Hereinafter, the MC prediction unit 34b of the inter prediction unit 34 of the image decoding device 30 according to this embodiment will be described with reference to Fig. 7. Fig. 7 is a diagram showing the MC prediction unit 34b of the inter prediction unit 34 of the image decoding device 30 according to this embodiment.

[0092] As shown in FIG. 7, the MC prediction unit 34b has a standard motion compensation prediction unit (standard MC prediction unit) 34b1, an OBMC application determination unit 34b2, and an OBMC application unit 34b3.

[0093] The MC prediction unit 34b is configured to generate and output a predicted image signal (predicted pixel value) based on the motion vector from the motion vector decoding unit 34a, information related to the reference frame (reference image list and reference image index), information related to the merge candidate, and the OBMC application determination flag. Note that the predicted image signal to be output varies depending on whether or not OBMC is applied.

[0094] Specifically, the standard MC prediction unit 34b1 is configured to generate a prediction image signal of a prediction target block, based on a block-by-block motion vector and information related to a reference frame.

[0095] The OBMC application determination unit 34b2 is configured to determine whether or not to apply OBMC to the prediction target block. Here, when it is determined that OBMC is not to be applied, the OBMC application determination unit 34b2 is configured to output the predicted image signal generated by the standard MC prediction unit 34b1 as it is.

[0096] On the other hand, when it is determined that OBMC is to be applied, the OBMC application unit 34b3 is configured to apply OBMC to the block to be predicted, and output the generated predicted image signal.

[0097] The specific method of determining whether or not to apply OBMC and the method of applying OBMC will be described later.

[0098] The OBMC application unit 34b3 is configured to apply OBMC to the block to be predicted based on a result of the determination by the OBMC application determination unit 34b2, that is, when it is determined that OBMC is to be applied.

[0099] Here, OBMC is a overlapped motion compensation process that corrects a predicted image signal of a block to be predicted by taking a weighted average of a predicted image signal of the block to be predicted and a predicted image signal generated based on information related to motion vectors and reference frames of blocks adjacent to the block to be predicted.

[0100] A specific method of determining whether or not to apply OBMC and a method of applying OBMC will be described below with reference to Fig. 8 to Fig. 23. In the following example, the MC prediction unit 34b in the image decoding device 30 will be described, but the MC prediction unit 11c in the image encoding device 10 is also assumed to have the same function.

[0101] Moreover, the above-mentioned determination method and application method are applied when the motion vector of the prediction target block and the motion vector of the adjacent block are different.When the motion vectors of both are considered to be equal or the difference between them is small, there is no point in applying OBMC to the boundary between the prediction target block and the adjacent block.Therefore, in the following, this specification will be described on the premise that the motion vector of the prediction target block and the motion vector of the adjacent block are different.

[0102] In order to simplify the description, an example will be given in which the above-mentioned determination method and application method are performed on a per-block basis to be predicted, but the above-mentioned determination method and application method may also be performed on a per-subblock basis to be obtained by dividing the block to be predicted.

[0103] (First embodiment) Hereinafter, the first embodiment of the present invention will be described with reference to Fig. 8. Fig. 8 is a flowchart showing an example of the operation of the MC prediction section 34b of the inter prediction section 34 in this embodiment.

[0104] In the present embodiment, the OBMC application determination unit 34b2 of the MC prediction unit 34b is configured to determine whether to apply OBMC to a prediction target block, based on the type of prediction direction (unidirectional prediction or bidirectional prediction) of the prediction target block.

[0105] As shown in FIG. 8, in step S101, the OBMC application determining unit 34b2 determines whether or not unidirectional prediction is applied to the prediction target block.

[0106] If it is determined that unidirectional prediction is applied to the block to be predicted, the procedure proceeds to step S102, and if it is determined that unidirectional prediction is not applied to the block to be predicted, the procedure proceeds to step S103.

[0107] In step S102, the OBMC application determination unit 34b2 determines to apply OBMC to the block to be predicted, and the OBMC application unit 34b3 applies OBMC to the block to be predicted.

[0108] In step S103, the OBMC application determination unit 34b2 determines not to apply OBMC to the block to be predicted, and outputs the predicted image signal generated by the standard MC prediction unit 34b1 as is.

[0109] In addition, when OBMC is applied to a prediction target block when bidirectional prediction is applied to the prediction target block, the memory bandwidth and the number of calculations required for additional fetching are increased compared to when OBMC is applied to a prediction target block when unidirectional prediction is applied to the prediction target block. Therefore, according to the image encoding device 10 and the image decoding device 30 of this embodiment, by applying OBMC to a prediction target block only when unidirectional prediction is applied to the prediction target block, it is possible to prevent an unintended increase in memory bandwidth and the number of calculations.

[0110] Second embodiment Hereinafter, the second embodiment of the present invention will be described with reference to Fig. 9. Fig. 9 is a flowchart showing an example of the operation of the MC prediction section 34b of the inter prediction section 34 in this embodiment.

[0111] In the present embodiment, the OBMC application determination unit 34b2 of the MC prediction unit 34b is configured to determine that OBMC is applied to the prediction target block when the size of the prediction target block is equal to or larger than a predetermined threshold.

[0112] As shown in FIG. 9, in step S201, the OBMC application determining unit 34b2 determines whether or not the size of the block to be predicted is equal to or larger than a predetermined threshold.

[0113] If it is determined that the size of the block to be predicted is equal to or larger than the predetermined threshold, the procedure proceeds to step S202, and if it is determined that the size of the block to be predicted is smaller than the predetermined threshold, the procedure proceeds to step S203.

[0114] In step S202, the OBMC application determination unit 34b2 determines to apply OBMC to the block to be predicted, and the OBMC application unit 34b3 applies OBMC to the block to be predicted.

[0115] In step S203, the OBMC application determination unit 34b2 determines not to apply OBMC to the block to be predicted, and outputs the predicted image signal generated by the standard MC prediction unit 34b1 as is.

[0116] Here, such a predetermined threshold may be set to a value that makes the memory bandwidth and the number of calculations required when applying OBMC smaller than the memory bandwidth and the number of calculations required in bidirectional prediction when OBMC is not applied, for example.

[0117] Also, in the above example, the OBMC application determination unit 34b2 determines the size of the prediction target block using the number of pixels of the prediction target block, but as another method, the OBMC application determination unit 34b2 may be configured to determine the size of the prediction target block using the height and width of the prediction target block.

[0118] Furthermore, the OBMC application determination unit 34b2 may be configured to determine that OBMC is applied to the block to be predicted, using a table instead of the predetermined threshold value.

[0119] In addition, when OBMC is applied to a prediction target block having a relatively small size, the memory bandwidth required for additional fetching and the number of calculations increase. Therefore, according to the image encoding device 10 and the image decoding device 30 according to the present embodiment, by controlling whether or not to apply OBMC to the prediction target block based on the size of the prediction target block, it is possible to prevent an unintended increase in the memory bandwidth and the number of calculations.

[0120] Third embodiment Hereinafter, the first embodiment of the present invention will be described with reference to Fig. 10. Fig. 10 is a flowchart showing an example of the operation of the MC prediction section 34b of the inter prediction section 34 in this embodiment.

[0121] In this embodiment, the OBMC application determination unit 34b2 of the MC prediction unit 34b is configured to determine whether to apply OBMC to the prediction target block, based on the type of prediction direction (unidirectional prediction or bidirectional prediction) of the adjacent blocks of the prediction target block.

[0122] As shown in FIG. 10, in step S301, the OBMC application determination unit 34b2 determines whether or not unidirectional prediction is applied to the neighboring block.

[0123] If it is determined that unidirectional prediction is applied to the neighboring block, the procedure proceeds to step S302, and if it is determined that unidirectional prediction is not applied to the neighboring block, the procedure proceeds to step S303.

[0124] In step S302, the OBMC application determination unit 34b2 determines to apply OBMC to the block to be predicted, and the OBMC application unit 34b3 applies OBMC to the block to be predicted.

[0125] In step S303, the OBMC application determination unit 34b2 determines not to apply OBMC to the block to be predicted, and outputs the predicted image signal generated by the standard MC prediction unit 34b1 as is.

[0126] In addition, when OBMC is applied to a prediction target block when bidirectional prediction is applied to adjacent blocks, the memory bandwidth and the number of calculations required for additional fetching are increased compared to when OBMC is applied to a prediction target block when unidirectional prediction is applied to adjacent blocks. Therefore, according to the image encoding device 10 and the image decoding device 30 of this embodiment, by applying OBMC to a prediction target block only when unidirectional prediction is applied to adjacent blocks, it is possible to prevent an unintended increase in memory bandwidth and the number of calculations.

[0127] (Change example 1) Hereinafter, Modification 1 of the present invention will be described focusing on differences from the above-mentioned first to third embodiments with reference to Fig. 11. Fig. 11 is a flowchart showing an example of the operation of the MC prediction unit 34b of the inter prediction unit 34 in Modification 1.

[0128] As shown in FIG. 11, in step S401, the MC prediction unit 34b determines whether or not unidirectional prediction is applied to the block to be predicted.

[0129] If it is determined that unidirectional prediction is applied to the block to be predicted, the procedure proceeds to step S403, and if it is determined that unidirectional prediction is not applied to the block to be predicted, the procedure proceeds to step S402.

[0130] In step S402, the OBMC application determination unit 34b2 determines not to apply OBMC to the block to be predicted, and outputs the predicted image signal generated by the standard MC prediction unit 34b1 as is.

[0131] In step S403, the OBMC application determination unit 34b2 determines whether or not the size of the block to be predicted is equal to or larger than a predetermined threshold.

[0132] If it is determined that the size of the block to be predicted is equal to or larger than the predetermined threshold, the procedure proceeds to step S405, and if it is determined that the size of the block to be predicted is smaller than the predetermined threshold, the procedure proceeds to step S404.

[0133] In step S404, the OBMC application determination unit 34b2 determines not to apply OBMC to the block to be predicted, and outputs the predicted image signal generated by the standard MC prediction unit 34b1 as is.

[0134] In step S405, the MC prediction unit 34b determines whether or not unidirectional prediction is applied to the neighboring block.

[0135] If it is determined that unidirectional prediction is applied to the neighboring block, the procedure proceeds to step S406, and if it is determined that unidirectional prediction is not applied to the neighboring block, the procedure proceeds to step S407.

[0136] In step S406, the OBMC application determination unit 34b2 determines to apply OBMC to the block to be predicted, and the OBMC application unit 34b3 applies OBMC to the block to be predicted.

[0137] In step S407, the OBMC application determination unit 34b2 determines not to apply OBMC to the block to be predicted, and outputs the predicted image signal generated by the standard MC prediction unit 34b1 as is.

[0138] As described above, in this modification example 1, when applying OBMC to a prediction target block, the OBMC application determination unit 34b2 first determines whether or not unidirectional prediction has been applied to the prediction target block, second determines whether or not the size of the prediction target block is equal to or greater than a predetermined threshold, and third determines whether or not unidirectional prediction has been applied to an adjacent block.

[0139] In the present modification example 1, the effect of determining whether or not unidirectional prediction is applied to the block to be predicted and then determining whether or not the size of the block to be predicted is equal to or larger than a predetermined threshold is as follows.

[0140] According to the first embodiment described above, when unidirectional prediction is applied to the block to be predicted, OBMC is applied uniformly. However, by introducing a constraint based on the size of the block to be predicted after determining whether unidirectional prediction is applied to the block to be predicted, it is possible to avoid the worst case when OBMC is applied.

[0141] The worst case may occur when the coding tree block is filled with the smallest coding target block or prediction target block, and the memory bandwidth and the number of calculations required for applying OBMC are maximized at this time. In other words, this worst case is the memory bandwidth and the number of calculations required when applying OBMC.

[0142] Therefore, by introducing the size of the block to be predicted into determining whether OBMC is appropriate, for example, the memory bandwidth and number of calculations required when unidirectional prediction is applied to the block to be predicted and OBMC is applied can be made smaller than the memory bandwidth and number of calculations required for standard MC when OBMC is not applied and bidirectional prediction is applied to the block to be predicted.

[0143] In addition, in this modification example 1, the effect of determining whether or not unidirectional prediction is applied to the adjacent block after determining whether or not the size of the block to be predicted is equal to or larger than a predetermined threshold is as follows.

[0144] According to the above-mentioned configuration, when one-way prediction is applied to the block to be predicted and the size of the block to be predicted is equal to or larger than a predetermined threshold, OBMC is applied uniformly. However, even in such a case, when bidirectional prediction is applied to an adjacent block, the required memory bandwidth and number of calculations may exceed the worst case.

[0145] On the other hand, when bidirectional prediction is applied to an adjacent block, by not applying OBMC, the memory bandwidth and number of calculations required when applying OBMC can be reduced compared to the memory bandwidth and number of calculations required for standard MC when OBMC is not applied and bidirectional prediction is applied to the block to be predicted.

[0146] Here, a specific example of conditional branching when the block to be predicted and the OBMC-related parameters have the following values ​​will be shown. Coding tree block: 128×128 Minimum size of prediction block: 4×4 Standard motion compensation tap count for luma: 8 Standard motion compensation tap count for chrominance: 4 OBMC Taps for Luminance: 8 OBMC tap count for chrominance: 4 Number of OBMC lines: 4 lines Bidirectional prediction inhibition size for prediction target block: 4×4 Here, according to the conditional branch in Fig. 11, the judgment condition for whether OBMC is applied is set as follows. Note that the following predetermined threshold is set so as not to exceed the memory bandwidth required for standard MC when OBMC is not applied and bidirectional prediction is applied to the prediction target block. Here, S and L indicate the short side and long side obtained by comparing the height and width of the prediction target block (S≦L). When unidirectional prediction is applied to the block to be predicted, -(S=4 and L<64) or (S=8 and L=8) ⇒ OBMC is not applied.

[0147] - (S=4 and L≧64) or (S=8 and L≧16) or (S≧16) ⇒ OBMC is applied if unidirectional prediction is applied to the neighboring blocks. If the prediction target block is bidirectionally predicted, OBMC is not applied.

[0148] On the other hand, the OBMC application determining unit 34b2 may be configured to determine whether or not OBMC is appropriate based on, for example, a table as shown in FIG. 12, instead of a predetermined threshold value.

[0149] The "short side" and "long side" in Fig. 12 indicate the short side and long side obtained by comparing the height and width of the prediction target block, "not applied" in Fig. 12 indicates that OBMC is not applied, and "unidirectional" in Fig. 12 indicates that OBMC is applied when unidirectional prediction is applied to an adjacent block. Also, although not shown in Fig. 12, "bidirectional" means that OBMC is applied when unidirectional prediction or bidirectional prediction is applied to an adjacent block.

[0150] In the above example, a predetermined threshold or table (Figure 12) was described that was set based on a value that does not exceed the memory bandwidth. However, if the number of calculations is used as a guideline, the method of setting such a predetermined threshold will not result in a threshold that is symmetric with respect to the size (height and width) of the block to be predicted, as described for the memory bandwidth.

[0151] This is because the number of calculations varies depending on the processing order of MC, and therefore a table based on the number of calculations may have asymmetric values ​​in terms of size, as shown in FIG.

[0152] When setting the actual specified threshold value and designing the table, the parameters listed above are set so that the memory bandwidth and number of calculations are smaller than when OBMC is not applied and bidirectional prediction is applied to the block to be predicted, but the stricter conditions are set among the conditions obtained for the memory bandwidth and number of calculations.

[0153] (Fourth embodiment) Hereinafter, the fourth embodiment of the present invention will be described with reference to Fig. 14 and Fig. 15. Fig. 14 is a flowchart showing an example of the operation of the MC prediction section 34b of the inter prediction section 34 in this embodiment.

[0154] In the above-mentioned modification example 1, OBMC is applied when the size of the block to be predicted is equal to or larger than a predetermined threshold, but in reality, the cases in which OBMC is applied are limited to cases in which unidirectional prediction is applied to adjacent blocks.

[0155] However, depending on the size of the block to be predicted, even when bidirectional prediction is applied to adjacent blocks, there are cases in which the memory bandwidth and number of calculations required to apply OBMC can be made smaller than the memory bandwidth and number of calculations required for standard MC when OBMC is not applied and bidirectional prediction is applied to the block to be predicted. In such cases, even when bidirectional prediction is applied to adjacent blocks, applying OBMC will improve coding performance.

[0156] As shown in FIG. 14, in step S501, the OBMC application determination unit 34b2 determines whether or not unidirectional prediction is applied to the prediction target block.

[0157] If it is determined that unidirectional prediction is applied to the block to be predicted, the procedure proceeds to step S503, and if it is determined that unidirectional prediction is not applied to the block to be predicted, the procedure proceeds to step S502.

[0158] In step S502, the OBMC application determination unit 34b2 determines not to apply OBMC to the block to be predicted, and outputs the predicted image signal generated by the standard MC prediction unit 34b1 as is.

[0159] In step S503, the OBMC application determination unit 34b2 determines the size of the block to be predicted.

[0160] If it is determined that the size of the block to be predicted is less than the threshold TH1, the procedure proceeds to step S504; if it is determined that the size of the block to be predicted is greater than or equal to the threshold TH1 and less than the threshold TH2, the procedure proceeds to step S506; if it is determined that the size of the block to be predicted is greater than or equal to the threshold TH, the procedure proceeds to step S505.

[0161] In step S504, the OBMC application determination unit 34b2 determines not to apply OBMC to the block to be predicted, and outputs the predicted image signal generated by the standard MC prediction unit 34b1 as is.

[0162] In step S505, the OBMC application determination unit 34b2 determines to apply OBMC to the block to be predicted, and the OBMC application unit 34b3 applies OBMC to the block to be predicted.

[0163] In step S506, the OBMC application determination unit 34b2 determines whether or not unidirectional prediction is applied to the neighboring block.

[0164] If it is determined that unidirectional prediction is applied to the neighboring block, the procedure proceeds to step S507, and if it is determined that unidirectional prediction is not applied to the neighboring block, the procedure proceeds to step S5087.

[0165] In step S507, the OBMC application determination unit 34b2 determines to apply OBMC to the block to be predicted, and the OBMC application unit 34b3 applies OBMC to the block to be predicted.

[0166] In step S508, the OBMC application determination unit 34b2 determines not to apply OBMC to the block to be predicted, and outputs the predicted image signal generated by the standard MC prediction unit 34b1 as is.

[0167] In this embodiment, the OBMC application determining unit 34b2 is configured to use two thresholds (wherein threshold TH1≦threshold TH2).

[0168] Then, if the size of the prediction target block is less than the threshold TH1, the OBMC application determination unit 34b2 determines not to apply OBMC to the prediction target block, and if the size of the prediction target block is greater than or equal to the threshold TH1 and less than the threshold TH2, it proceeds to determine whether or not unidirectional prediction is applied to the adjacent block, and if the size of the prediction target block is greater than or equal to the threshold TH2, it determines to apply OBMC to the prediction target block regardless of whether bidirectional prediction is applied to the adjacent block.

[0169] That is, the OBMC application determination unit 34b2 is configured to control the type of prediction direction (unidirectional prediction or bidirectional prediction) applied to the adjacent blocks based on the size of the prediction target block, and determine whether to apply OBMC to the prediction target block.

[0170] Here, for example, a specific example of conditional branching (method of setting thresholds) when the prediction target block and OBMC-related parameters have the following values ​​will be shown. Coding tree block: 128×128 Minimum size of prediction block: 4×4 Standard number of motion compensation taps for luminance signal: 8 Standard number of motion compensation taps for chrominance signal: 4 Number of OBMC taps for luminance signal: 8 Number of OBMC taps for color difference signal: 4 Number of OBMC lines: 4 lines Bidirectional prediction inhibition size for prediction target block: 4×4 Note that the above shows an example in which the image signal has a luminance signal (Y) and color difference signal (CbCr) each configured in 4:2:0. If this is a different configuration (4:4:4 or 4:2:2), the number of OBMC taps, etc. may be changed as appropriate.

[0171] Here, the judgment condition for whether OBMC is applied is set as follows. Note that the following threshold is set so as not to exceed the memory bandwidth required for standard MC when OBMC is not applied and bidirectional prediction is applied to the prediction target block. Here, S and L indicate the short side and long side obtained by comparing the height and width of the prediction target block (S≦L). When unidirectional prediction is applied to the block to be predicted, -(S=4 and L<64) or (S=8 and L=8) ⇒ OBMC is not applied.

[0172] (S=4 and L≧64) or (S=8 and L≧16) or (S≧16) ⇒ Apply OBMC when unidirectional prediction is applied to the neighboring blocks.

[0173] - (S≧16) ⇒ Apply OBMC even if bi-prediction is applied to the neighboring blocks. · Do not apply OBMC if the block to be predicted is bi-predictive.

[0174] On the other hand, the OBMC application determination unit 34b2 may be configured to determine the suitability of OBMC based on, for example, a table as shown in Fig. 15, instead of a predetermined threshold value. Note that the grayed-out areas in Fig. 15 are areas where the above-mentioned short side S and long side L satisfy S≧L, and therefore do not need to be considered.

[0175] Fifth embodiment Hereinafter, a fourth embodiment of the present invention will be described with reference to FIG.

[0176] In the above-mentioned fourth embodiment, a case has been described in which the number of OBMC taps (number of overlapping motion compensation taps) is "8". However, if the number of OBMC taps changes from "8" to "4" or if the number of OBMC taps changes from "8" to "2", the memory bandwidth and number of calculations required when applying OBMC become smaller, and therefore the constraints on applying OBMC are relaxed.

[0177] For example, in the above embodiment, when only the number of taps of the filter is changed, the judgment condition for whether OBMC is applied is set as follows. However, the following threshold is set so as not to exceed the memory bandwidth required for standard MC when OBMC is not applied and bidirectional prediction is applied to the prediction target block, as in the above case. When unidirectional prediction is applied to the block to be predicted, - (S=4 and L=4) ⇒ Apply 2-tap OBMC (but only if unidirectional prediction is applied to adjacent blocks).

[0178] - (S=4 and L>4 and L<64) or (S=8 and L=8) ⇒ Apply 4-tap OBMC (but only if unidirectional prediction is applied to adjacent blocks).

[0179] (S=4 and H≦64) or (S=8 and L≧16) or (S≧16) ⇒ Apply 8-tap OBMC (but only if unidirectional prediction is applied to adjacent blocks). · If the block to be predicted is bi-directionally predicted, OBMC is not applied.

[0180] On the other hand, the OBMC application determining unit 34b2 may be configured to determine whether or not OBMC is appropriate based on, for example, a table as shown in FIG. 16, instead of a predetermined threshold value.

[0181] Here, the number of taps branched under the above conditions is downward compatible. For example, under conditions where 8-tap OBMC can be used, 4-tap or 2-tap OBMC may be used instead of 8-tap.

[0182] Furthermore, as described above, the OBMC tap number of the neighboring block may be controlled based on the size of the prediction target block, thereby relaxing the restriction on the application of OBMC to the prediction target block of small size. For example, in the above example, for the prediction target block of small size (4×4) to which OBMC is not applied in FIG. 15, the tap number is changed from 8 taps to 2 taps, thereby making it possible to apply OBMC to the prediction target block of the size.

[0183] In Fig. 16, "2tap" indicates that 2-tap OBMC is applied (however, when unidirectional prediction is applied to the adjacent block), "4tap" indicates that 4-tap OBMC is applied (however, when unidirectional prediction is applied to the adjacent block), and "8tap" indicates that 8-tap OBMC is applied (however, when unidirectional prediction is applied to the adjacent block). However, the number of taps in Fig. 16 is downward compatible, and for example, in the case of "4tap", 2-tap OBMC may be applied, and in the case of "8tap", 2-tap or 4-tap OBMC may be applied.

[0184] Here, for 4 taps, for example, a standard MC filter (4 taps) for color difference signals may be used. For 2 taps, for example, a bi-linear filter may be used. Note that if a standard MC for color difference signals is used for 4 taps, there is an advantage that additional filter design is not required when implementing the hardware.

[0185] As described above, in this embodiment, the OBMC application determination unit 34b2 is configured to control the number of taps of OBMC based on the size of the block to be predicted, and to determine whether to apply OBMC to the block to be predicted.

[0186] (Change example 2) So far, we have described methods for controlling the type of prediction direction of adjacent blocks or the number of OBMC taps depending on the size of the block to be predicted. However, in order to maximize the improvement in coding performance while reducing the memory bandwidth and number of calculations required when applying OBMC compared to the memory bandwidth and number of calculations required for standard MC when OBMC is not applied and bidirectional prediction is applied to the block to be predicted, a method can be considered that combines both the type of prediction direction of adjacent blocks depending on the size of the block to be predicted and the number of OBMC taps to relax the conditions for whether or not OBMC can be applied as much as possible.

[0187] In such a case, the threshold or table is designed with the same idea as described above. For example, the threshold is When unidirectional prediction is applied to the block to be predicted, - (S=4 and L=4) ⇒ Apply 2-tap OBMC (but only if unidirectional prediction is applied to adjacent blocks).

[0188] - (S=4 and L=8) ⇒ Apply 2-tap OBMC (however, bidirectional prediction may be applied to adjacent blocks).

[0189] (S=4 and L≧16) or (S=8 and L≧8) ⇒ Apply 4-tap OBMC (however, bidirectional prediction may be applied to adjacent blocks).

[0190] -(S≧16) ⇒ Apply 8-tap OBMC (however, bidirectional prediction may be applied to adjacent blocks). · If the block to be predicted is bi-directionally predicted, OBMC is not applied.

[0191] Here, the number of taps of the OBMC branched under the above conditions is downward compatible. For example, under conditions where an 8-tap OBMC can be used, a 4-tap or 2-tap OBMC may be used instead of the 8-tap OBMC.

[0192] Regarding the prediction direction of the adjacent block branched under the above-mentioned conditions, unidirectional prediction may be used under conditions in which application of bidirectional prediction is permitted.

[0193] Furthermore, as described above, by controlling the number of OBMC taps or the type of prediction direction of adjacent blocks based on the size of the block to be predicted, it is possible to relax the constraint on the application of OBMC to a small-sized block to be predicted.

[0194] For example, in the above example, by changing the number of taps from 8 taps to 2 taps for a small-sized prediction target block (4×4) to which OBMC was not applied in Fig. 15, it is possible to apply OBMC to a prediction target block of that size. Also, for a prediction target block of 4×8 or 8×4, by changing the number of taps from 8 taps to 2 taps, even if OBMC is applied to an adjacent block that is bidirectional prediction, the memory bandwidth and the number of calculations for the standard MC of a prediction target block that is bidirectional prediction and does not apply OBMC are not exceeded, so that OBMC of adjacent bidirectional prediction with 2 taps is possible.

[0195] As for the combination of the number of filter taps and the type of prediction direction, as described above, the designer may freely set them at their discretion, as long as the combination conditions are such that the memory bandwidth and number of calculations required when OBMC is applied do not exceed the memory bandwidth and number of calculations required for standard MC when OBMC is not applied and the block to be predicted is bidirectional prediction.

[0196] On the other hand, the OBMC application determining unit 34b2 may be configured to determine whether or not OBMC is appropriate based on, for example, a table as shown in FIG. 17, instead of a predetermined threshold value.

[0197] According to the table of FIG. 17, the OBMC application determination unit 34b2 is configured to make the number of taps ("2") of the OBMC of an adjacent block applied to a prediction target block of a first size (e.g., 4×4) smaller than the number of taps ("8") of the OBMC of an adjacent block applied to a prediction target block of a second size (e.g., 128×128) larger than the first size.

[0198] Alternatively, according to the table of FIG. 17, the OBMC application determination unit 34b2 is configured to reduce the number of types of prediction directions (one-way) of adjacent blocks applied to a prediction target block of a first size (e.g., 4×4) compared to the number of types of prediction directions (two-way) of adjacent blocks applied to a prediction target block of a second size (e.g., 4×8 or 8×4) larger than the first size.

[0199] Here, there may be a plurality of thresholds for branching the number of OBMC filter taps or the type of prediction direction for the adjacent block, as shown in FIG. (Change example 3) So far, we have described methods for controlling the type of prediction direction of adjacent blocks or the number of OBMC taps depending on the size of the block to be predicted. However, similar means for reducing the memory bandwidth and number of calculations when applying OBMC include changing the accuracy of the motion vectors of adjacent blocks when applying OBMC depending on the size of the block to be predicted, or changing the number of lines to which OBMC is applied.

[0200] Regarding the change in the accuracy of the motion vector, for example, when the size of the block to be predicted is smaller than a predetermined threshold, the accuracy of the motion vector may be converted from a decimal to an integer, and when the size of the block to be predicted is larger than the predetermined threshold, the accuracy of the motion vector may be changed to a decimal.

[0201] In addition, when the size of the block to be predicted is smaller than a predetermined threshold, the number of lines to which OBMC is applied may be reduced, and on the other hand, when the size of the block to be predicted is larger than the predetermined threshold, the number of lines to which OBMC is applied may be increased.

[0202] The method of setting the thresholds and tables in such a case is similar to that in the above-described embodiment and modified examples, and therefore a description thereof will be omitted.

[0203] (Change example 4) Hereinafter, a fourth modification of the present invention will be described with reference to Fig. 18 and Fig. 19, focusing on differences from the above-described embodiment or modifications. Fig. 18 is a flowchart showing an example of the operation of the MC prediction unit 34b of the inter prediction unit 34 in the fourth modification.

[0204] As shown in FIG. 18, in step S601, the OBMC application determination unit 34b2 determines whether or not unidirectional prediction is applied to the neighboring block.

[0205] If it is determined that unidirectional prediction is applied to the neighboring block, the procedure proceeds to step S603, and if it is determined that unidirectional prediction is not applied to the neighboring block, the procedure proceeds to step S602.

[0206] In step S602, the OBMC application determination unit 34b2 converts the prediction method applied to the neighboring blocks from bidirectional prediction to unidirectional prediction, using a predetermined method.

[0207] In step S603, the OBMC application determination unit 34b2 determines to apply OBMC to the block to be predicted, and the OBMC application unit 34b3 applies OBMC to the block to be predicted.

[0208] According to this modification example 4, when bidirectional prediction is applied to adjacent blocks, the prediction method applied to adjacent blocks is converted from bidirectional prediction to unidirectional prediction by a predetermined method, and OBMC is applied. Note that, this predetermined method will be described later.

[0209] According to this modification example 4, by converting the prediction method applied to adjacent blocks from bidirectional prediction to unidirectional prediction, it is possible to increase the number of prediction target blocks to which OBMC is applied and reduce the memory bandwidth and number of calculations required for OBMC.

[0210] As described above, when bidirectional prediction is applied to an adjacent block, the OBMC application determination unit 34b2 is configured to convert the prediction method applied to the adjacent block from bidirectional prediction to unidirectional prediction by a predetermined method.

[0211] Hereinafter, with reference to FIGS. 19 and 20, a predetermined method used when converting the prediction method applied to adjacent blocks from bidirectional prediction to unidirectional prediction will be described.

[0212] In Figure 19, "C p ” is the current frame of the block to be predicted, and “C n " is the current frame of the adjacent block, and the POC (Picture Order Count) of both is the same ("5").

[0213] Also, "L p0 " and "L p1 ” are the two reference frames of the block to be predicted, and “L n0 " and "L n1 " respectively indicate the two reference frames of the adjacent blocks.

[0214] In addition, in the table in Figure 20, "L p0 ", "L p1 ", "L n0 " and "L n1" each contains only one POC, but this is the POC indicated by the reference image list and reference image index superimposed on the encoded data. p0 ", "L p1 ", "L n0 " and "L n1 " There is not necessarily only one POC. However, the designer can freely set the number of reference frames, but the POC is uniquely determined by the reference image list and reference image index.

[0215] Here, in order to convert the prediction direction of an adjacent block from bidirectional prediction to unidirectional prediction, it is necessary to uniquely select a reference frame for the adjacent block. Below, we will explain a method that depends on the correlation between the current frame of the block to be predicted, the reference frame of the block to be predicted, and the reference frame of the adjacent block.

[0216] (Method 1) In the first method, the OBMC application determination unit 34b2 performs the following on the current frame C p and two reference frames L of adjacent blocks n0 / L n1 The absolute value of the difference between the POC and each of the above is compared.

[0217] For example, as shown in the examples of FIGS. 19 and 20, the current frame C p The POC of the adjacent block is "5", and the reference frame L n0 The POC of the adjacent block is "0" and the reference frame L n1 If the POC of is "8", |C p -L n0 |=5, |C p -L n0 |=3, the OBMC application determination unit 34b2 determines the reference frame L n1 Select .

[0218] This method is based on the idea that the smaller the absolute value of the POC difference, the more likely it is that prediction accuracy will be high.

[0219] That is, in method 1, the OBMC application determination unit 34b2 performs the following on the current frame C p and the reference frame of the adjacent block L n0 / L n1 The POC difference between the selected adjacent block and the reference frame L is selected. n1 is applied to the neighboring block.

[0220] (Method 2) The OBMC application determination unit 34b2 is a reference frame L p0 / L p1 and the reference frame of the adjacent block L n0 / L n1 The absolute value of the difference between the POC and the

[0221] For example, as shown in the examples of FIGS. 19 and 20, the reference frame L p0 / L p1 The POC of the adjacent block is "4" / "6", and the reference frame L n0 / L n1 If the POC of is "0" / "8", |L p0 -L n0 |=4, |L p0 -L n1 |=4, |L p1 -L n0 |=6, |L p1 -L n1 |=2, the OBMC application determination unit 34b2 determines whether the prediction target block is in the reference frame L p1 If the absolute value of the difference between the POCs of the adjacent blocks is smaller, the reference frame L n1 Select .

[0222] Here, the prediction target block is the reference frame L p0 If the absolute value of the difference between the POCs is the reference frame L of the adjacent block, n0 / L n1 Since they are equal, the reference frame of the adjacent block is uniquely determined by a selection method described later.

[0223] This method is based on the idea that the smaller the absolute value of the POC difference, the more likely it is that prediction accuracy will be high.

[0224] That is, in method 2, the OBMC application determination unit 34b2 uses the reference frame L p0 / L p1 and the reference frame of the adjacent block L n0 / L n1 The POC difference between the selected adjacent block and the reference frame L is selected. n1 is applied to the neighboring block.

[0225] (Method 3) In the method 3, the OBMC application determination unit 34b2 uses the reference frame L p0 / L p1 and the reference frame of the adjacent block L n0 / L n1 The selection is made by comparing the absolute value of the difference between the POC and the

[0226] For example, as shown in the examples of FIGS. 19 and 20, the reference frame L p0 / L p1 The POC of the adjacent block is "4" / "6", and the reference frame L n0 / L n1 If the POC of is "0" / "8", |L p0 -L n0 |=4, |L p0 -L n1 |=4, |L p1 -L n0 |=6, |L p1 -L n1 |=2, the OBMC application determination unit 34b2 determines whether the prediction target block is in the reference frame L p1 If the POC difference is larger than the reference frame L of the adjacent block, the absolute value of the POC difference is larger than the reference frame L of the adjacent block. n0 Select .

[0227] Here, the prediction target block is the reference frame L p0If the absolute value of the difference between the POCs is the reference frame L of the adjacent block, n0 / L n1 Therefore, in the selection method described later, if the reference frame of the adjacent block is uniquely large, prediction errors are more likely to occur, and it is therefore better to actively apply OBMC to such blocks (block boundaries).

[0228] That is, in method 3, the OBMC application determination unit 34b2 uses the reference frame L p0 / L p1 and the reference frame of the adjacent block L n0 / L n1 The POC difference between the two blocks is calculated by the reference frame L. n1 is applied to the neighboring block.

[0229] (Method 4) In method 4, the OBMC application determination unit 34b2 is configured to select a reference frame of a neighboring block having the same reference image list and reference image index of the block to be predicted.

[0230] That is, in method 4, the OBMC application determination unit 34b2 is configured to select a reference frame of a neighboring block that is equal to the reference frame of the block to be predicted, and determine that unidirectional prediction using the reference frame of the selected neighboring block is applied to the neighboring block.

[0231] This method is based on the idea that when a reference frame having the same reference image list and reference image index as the block to be predicted is selected for an adjacent block, the prediction directions of the block to be predicted and the adjacent block are more likely to be the same, thereby improving prediction accuracy.

[0232] (Method 5) In method 5, the OBMC application determination unit 34b2 is configured to select a reference frame of a neighboring block having a different reference image list and reference image index of the block to be predicted.

[0233] This method is based on the idea that when a reference frame with a different reference image list and reference image index for the block to be predicted is selected for an adjacent block, the prediction directions of the block to be predicted and the adjacent block are likely to differ, making it more likely that prediction errors will occur as a result, and it is therefore better to actively apply OBMC to such blocks (block boundaries).

[0234] (Method 6) In method 6, the current frame C p and the reference frame of the adjacent block L n0 / L n1 A selection method when the absolute values ​​of the difference between the POCs are equal in comparison between the absolute values ​​of the difference between the POCs is described below.

[0235] For example, the current frame C p and the reference frame of the adjacent block L n0 / L n1 The absolute value of the difference in POC between |C p -L n0 |=A, |C p -L n1 If |=B and A=B, the OBMC application determination unit 34b2 newly selects the reference frame L p0 / L p1 and the reference frame of the adjacent block L n0 / L n1 and a comparison of the absolute value of the difference in POC between the adjacent blocks is performed to uniquely select a reference frame of the adjacent block.

[0236] For example, if the block to be predicted is a reference frame L p0 If |L p0 -L n0 |=C, |L p0 -L n1|=D, if C < D, the OBMC application determination unit 34b2 is configured to select the L with a smaller absolute value n0 as the reference frame of the adjacent block.

[0237] (Method 7) In Method 7, the selection method when the absolute values are equal in the comparison of the absolute value of the difference in POC between the reference frame L p0 / L p1 of the prediction target block and the reference frame L n0 / L n1 of the adjacent block will be described.

[0238] For example, if the absolute value of the difference in POC between the reference current frame L p0 / L p1 of the prediction target block and the reference frame L n0 / L n1 of the adjacent block is |L p0 -L n0 | = X, |L p0 -L n1 | = Y and X = Y, the OBMC application determination unit 34b2 is configured to uniquely select the reference frame of the adjacent block by comparing the absolute value of the difference in POC between the current frame C p of the new prediction target block and the reference frame L n0 / L n1 of the adjacent block.

[0239] For example, |C p -L n0 | = U, |C p -L n1 | = V and U < V, the OBMC application determination unit 34b2 is configured to select the L with a smaller absolute value n0 as the reference frame of the adjacent block.

[0240] (Method 8) In Method 8, the OBMC application determination unit 34b2, in the comparison of the absolute value of the difference in POC between the reference frame of the prediction target block and the reference frame of the adjacent block, when the absolute values are equal, the reference frame of the adjacent block is the predetermined Ln0 (Or, L n1 ) is configured to be selected.

[0241] In the method 8, the OBMC application determination unit 34b2 determines whether the reference frame of the adjacent block is a predetermined L regardless of the result of the comparison of the absolute value of the POC difference between the reference frame of the prediction target block and the reference frame of the adjacent block. n0 (Or, L n1 ) may be selected.

[0242] (Change example 5) In addition, the OBMC application determination unit 34b2 may be configured to determine whether or not to apply OBMC not in units of prediction target blocks, but in units of prediction target sub-blocks obtained by dividing the prediction target block, as described in Non-Patent Document 1.

[0243] 21 and 22 show examples in which a block to be predicted is divided into sub-blocks to be predicted as a processing unit for determining whether or not to apply OBMC and for applying OBMC.

[0244] In the example of Fig. 21, the encoding target block includes two prediction target blocks #1 / #2 (16x32 units). Here, the OBMC application determination unit 34b2 divides the boundary of the prediction target blocks #1 / #2 into prediction target sub-blocks of 4x4 units and determines whether to apply OBMC to the prediction target sub-blocks.

[0245] Here, if the adjacent block has a motion vector different from that of the block to be predicted, as described above, the appropriateness of OBMC is determined, and if it is determined that OBMC should be applied, the boundary of the block to be predicted is smoothed by OBMC, reducing the prediction error, and ultimately improving the objective performance.

[0246] The example in FIG. 22 shows a case where a prediction target block has a different motion vector within a coding target block.

[0247] Examples of cases in which the prediction target block has a different motion vector within the encoding target block include cases in which the ATMVP (Alternative Temporal Motion Vector Prediction) mode, AFFINE mode, or FRUC (Frame-Rate-Up Conversion) mode proposed in Non-Patent Document 1 is applied.

[0248] In this case, the application judgment area of ​​OBMC for the prediction target block extends not only to the prediction target block boundary but also to the prediction target sub-block boundary. In this case, the required memory bandwidth and calculation load increase compared to the case where OBMC is applied only to the prediction target block boundary, so as described above, a method such as reducing the number of lines to which OBMC is applied can be taken.

[0249] Sixth embodiment Hereinafter, a sixth embodiment of the present invention will be described, focusing on the differences from the above-mentioned embodiments and modifications. In this embodiment, a method for determining weight values ​​of a weight coefficient matrix used when OBMC is applied will be described.

[0250] First, the size of the weighting coefficient matrix is ​​determined by the region to which OBMC is applied for the block to be predicted.

[0251] For example, when OBMC is applied to four lines (4×4 sub-block units to be predicted) from the boundary of the block to be predicted, the weighting coefficient matrix is ​​for four lines (4×4).

[0252] Secondly, the weighting coefficient matrix weights for the reference pixel values ​​of the prediction target block and the reference pixel values ​​of the adjacent blocks are determined based on the ratio of the distances from the boundary of the prediction target block. When OBMC is applied, the weighting coefficients for the reference pixel values ​​of the prediction target block are (3 / 4, 7 / 8, 15 / 16, 31 / 32) in ascending order of distance from the boundary of the prediction target block, and the weighting coefficients for the reference pixel values ​​of the adjacent blocks are (1 / 4, 1 / 8, 1 / 16, 1 / 32) in ascending order of distance from the boundary of the prediction target block.

[0253] On the other hand, when the upper left or upper, lower, left and right boundaries of a prediction sub-block are subject to OBMC, the weight values ​​of the weighting coefficient matrix may be changed based on the number of adjacent blocks.

[0254] However, since OBMC is not applied when an adjacent block has the same motion vector and reference frame as the sub-block to be predicted, the number of adjacent blocks is limited to adjacent blocks that have a different motion vector or reference frame from the sub-block to be predicted.

[0255] For example, if a sub-block to be predicted has an adjacent block to the upper left that is subject to OBMC, the weight values ​​of the reference pixel values ​​of the block to be predicted are (2 / 4, 6 / 8, 14 / 16, 30 / 32) in order of proximity to the boundary of the block to be predicted, the weight values ​​of the reference pixel values ​​of the adjacent block above are (1 / 4, 1 / 8, 1 / 16, 1 / 32) in order of proximity to the boundary of the block to be predicted, and the weight values ​​of the reference pixel values ​​of the adjacent block to the left are (1 / 4, 1 / 8, 1 / 16, 1 / 32) in order of proximity to the boundary of the block to be predicted.

[0256] This is because if the weighted average of the upper adjacent block and the left adjacent block is calculated separately for the block to be predicted using weight values ​​(1 / 4, 1 / 8, 1 / 16, 1 / 32), the weight value applied will change depending on the processing order, so the weight value is kept constant regardless of the processing order.

[0257] A method for determining such weight values ​​based on the sizes of the block to be predicted and the adjacent blocks will be described below.

[0258] In the conventional method described in Non-Patent Document 1, the weight values ​​of the weight matrix are weighted based on the distance from the boundary of the prediction target block. However, when the size of the prediction target block is large, it is likely to be a flat image, and therefore it is considered better to have a smaller weighting ratio between the reference pixel values ​​of the prediction target block and the adjacent block when performing weighted averaging in OBMC.

[0259] On the other hand, when the size of the block to be predicted is small, it is highly likely that the image contains complex patterns and edges, so it is considered better to increase the weighting ratio between the block to be predicted and the adjacent blocks to preserve the edges.

[0260] In this embodiment, the OBMC application unit 34b3 is configured to change the weight values ​​of the weighting coefficient matrix used in the weighted average in OBMC, based on the number of adjacent blocks or the size of the block to be predicted.

[0261] Seventh embodiment Hereinafter, a seventh embodiment of the present invention will be described with reference to Fig. 23, focusing on differences from the above-described embodiments and modifications. In this embodiment, an MC prediction unit 34b that modifies the application conditions of a deblocking filter when OBMC is applied will be described.

[0262] The deblocking filter employed in Non-Patent Document 2 is known to have a smoothing effect on block boundaries, and one of the criteria for determining whether or not to apply the filter is the boundary strength (BS value: Boundary Strength value).

[0263] For example, in HEVC, as shown in Figure 23, the BS value is specified for each condition of two blocks on either side of a block boundary, and it is known that when the BS value is "0", a deblocking filter is not applied to the block boundary, and when the BS value is "1" or greater, a deblocking filter is applied to the block boundary.

[0264] Here, as described above, when the prediction target block and the adjacent block have different motion vectors, OBMC is configured to smooth block boundaries by taking a weighted average of the reference pixel values ​​indicated by each motion vector in the reference frame.

[0265] Therefore, if a deblocking filter is applied after OBMC is applied, the block boundaries are smoothed twice, which may result in the area near the boundaries becoming unintentionally too flat.

[0266] Therefore, when OBMC is applied, in order to prevent unintended double smoothing by the deblocking filter, the BS value is modified as shown in FIG. 23 in order to determine the suitability of the deblocking filter.

[0267] In FIG. 23, the BS values ​​in conditions 3 and 4 were modified when OBMC was applied.

[0268] Conditions 3 and 4 state that the causes of block distortion occurring at block boundaries are that the motion vectors of the two blocks are different, that the reference images for motion compensation of the two blocks are different, and that the numbers of motion vectors of the two blocks are different.

[0269] Therefore, this embodiment is based on the idea that if OBMC, which is basically applied when two blocks on either side of a block boundary have different motion vectors, has already been applied to the block boundary, the BS value for conditions 3 and 4 may be set to "0" to prohibit double smoothing by a deblocking filter.

[0270] That is, in this embodiment, the OBMC application unit 34b3 is configured to change the application conditions of the deblocking filter based on whether or not OBMC is applied.

[0271] Eighth embodiment Hereinafter, an eighth embodiment of the present invention will be described, focusing on differences from the above-mentioned embodiments and modifications. In this embodiment, as a method for reducing memory bandwidth and the number of calculations when OBMC is applied, an MC prediction unit 34b configured to reduce the number of motion vectors and reference frames required for OBMC by a predetermined reduction method when the motion vectors of adjacent blocks of a prediction target block are different will be described.

[0272] When adjacent blocks of a block to be predicted have different motion vectors, the memory bandwidth and the number of calculations required for applying OBMC to the block to be predicted increase by the number of adjacent blocks.

[0273] Therefore, when adjacent blocks have different motion vectors, the following method, for example, can be considered to reduce the number of motion vectors and reference frames required for applying OBMC. Neighboring blocks with different motion vectors are merged to a predetermined block size (eg, 4x4 neighboring blocks are merged to 4x8 neighboring blocks or 8x4 neighboring blocks). A method of thinning out the neighboring blocks used when applying OBMC when there are neighboring blocks with different motion vectors (for example, when there are four 4x4 neighboring blocks above a 16x16 prediction target block, the two leftmost and third blocks counting from the left are used as neighboring blocks when applying OBMC, or the leftmost and rightmost neighboring blocks are used).

[0274] Furthermore, the above-mentioned method of merging adjacent blocks or thinning out the blocks may be determined using a threshold value.

[0275] For example, if the difference between the motion vectors of adjacent blocks having different motion vectors is less than one pixel, they are treated as adjacent blocks having the same motion vector.

[0276] The motion vector difference threshold may also be modified based on whether unidirectional or bidirectional prediction is applied to the neighboring blocks (e.g., less than 1.5 pixels if unidirectional prediction is applied, less than 1 pixel if bidirectional prediction is applied, etc.).

[0277] That is, in this embodiment, the OBMC application unit 34b3 is configured to reduce the number of motion vectors and reference frames required for OBMC by a predetermined reduction method when the motion vector of the block to be predicted and the motion vector of the adjacent block are different.

[0278] Furthermore, the above-described image encoding device 10 and image decoding device 30 may be realized as a program that causes a computer to execute each function (each process).

[0279] In each of the above embodiments, the present invention has been described by taking as an example its application to the image encoding device 10 and the image decoding device 30; however, the present invention is not limited to this and can be similarly applied to an encoding / decoding system having the functions of the image encoding device 10 and the image decoding device 30. [Explanation of symbols]

[0280] 1. Image processing system 10...Image encoding device 11, 34…Inter prediction section 11a…Motion detection section 11a1, 34b...Motion compensation (MC) prediction unit 11a2…Cost calculation section 11b…Merge section 11c...MC prediction section 11c1, 34b1...Standard motion compensation prediction unit (standard MC prediction unit) 11c2, 34b2...OBMC application judgment section 11c3, 34b3…OBMC application part 12, 35…Intra prediction section 13…Subtractor 14, 33…Adder 15...Transformation and quantization section 16, 32...Inverse transform / inverse quantization section 17...Encoding section 18, 36…In-loop filter 19, 37...Frame buffer 30...Image decoding device 31...Decoding section 34a...Motion vector decoding unit

Claims

1. An image decoding device configured to decode an image signal composed of a plurality of blocks, comprising: a motion compensation prediction unit configured to generate a prediction image signal of a prediction target block based on the block-by-block motion vector and information related to a reference frame; an overlapped motion compensation unit configured to perform a weighted average of a predicted image signal of the prediction target block and a predicted image signal generated based on information related to a motion vector and a reference frame of an adjacent block of the prediction target block, thereby correcting the predicted image signal of the prediction target block; a determination unit configured to control a number of taps of a overlapped motion compensation filter in the overlapped motion compensation process for the block to be predicted based on a size of the block to be predicted.

2. 2. The image decoding device according to claim 1 , wherein the determination unit is configured to control the number of taps and the type of prediction direction of the overlapped motion compensation filter of the neighboring block based on the size of the block to be predicted.

3. 2. The image decoding device according to claim 1, wherein the determination unit is configured to change a number of taps of the overlapped motion compensation filter of the adjacent block to a number of taps shorter than a number of taps of a standard motion compensation filter when the size of the prediction target block is smaller than a predetermined threshold.

4. 4. The image decoding device according to claim 3, wherein the determination unit is configured to change the number of taps of the overlapped motion compensation filter of the adjacent block from 8 taps to 4 taps or 2 taps when the size of the prediction target block is smaller than the predetermined threshold.

5. 5. The image decoding device according to claim 4, wherein a 4-tap standard motion compensation filter for a color difference signal is used as the overlapped motion compensation filter for the adjacent blocks.

6. 5. The image decoding device according to claim 4, wherein a bilinear filter is used as the overlapped motion compensation filter for the adjacent blocks.

7. 1. An image decoding method for decoding an image signal composed of a plurality of blocks, comprising the steps of: A step A of generating a prediction image signal of a block to be predicted based on the motion vector of each block and information related to a reference frame; a step B of performing overlapped motion compensation processing to correct the predicted image signal of the prediction target block by taking a weighted average of a predicted image signal of the prediction target block and a predicted image signal generated based on information related to a motion vector and a reference frame of an adjacent block of the prediction target block; and C. controlling a number of taps of a overlapped motion compensation filter in the overlapped motion compensation process for the block to be predicted based on a size of the block to be predicted.

8. A program for causing a computer to function as an image decoding device configured to decode an image signal composed of a plurality of blocks, comprising: The image decoding device comprises: a motion compensation prediction unit configured to generate a prediction image signal of a prediction target block based on the motion vector of each block and information related to a reference frame; an overlapped motion compensation unit configured to perform a weighted average of a predicted image signal of the prediction target block and a predicted image signal generated based on information related to a motion vector and a reference frame of an adjacent block of the prediction target block, thereby correcting the predicted image signal of the prediction target block; a determination unit configured to control a number of taps of a overlapped motion compensation filter in the overlapped motion compensation process for the block to be predicted based on a size of the block to be predicted.

Citation Information

Patent Citations

  • Matrix type liquid crystal color display

    JP1986069091A

  • Adaptive overlapping block motion compensation

    JP2015502094A

  • Adaptive overlapped block motion compensation

    JP2016184936A

  • Overlapped motion compensation for video coding

    WO2016123068A1

  • Predicted image generation device, video decoding device and video encoding device

    WO2017195554A1

Cited By

  • Decision process for extra-long deblocking filters

    US12795088B2

  • Decision process for extra-long deblocking filters

    US20250365407A1