Image decoding device, image encoding device, program, and image processing system
By using the width and height information of the block in the image decoding and encoding device to change the thinning area of the motion vector, and only using part of the pixels for thinning processing, the coding efficiency of DMVR in the prior art when applied to larger blocks is solved. Reduces block noise problems, reduces memory and computational load, and improves coding efficiency.
Patent Information
- Application Number
- CN201980055504.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-12-27
- Filing Date
- 2019-10-25
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2039-10-25
AI Technical Summary
When the existing technology prohibits the application of Decoder-side motion vector refinement (DMVR) in larger blocks, it results in a significant reduction in coding efficiency and is prone to block noise when DMVR is performed on each sub-block.
The image decoding and encoding device changes the thinning area of the motion vector using at least one of the width and height of the block, thereby limiting the thinning process of the motion vector to a larger block and using only the part within the block. The pixels in the area are refined.
While suppressing a decrease in coding efficiency, the memory, computational processing volume, and computational circuit count required to execute DMVR are reduced, thereby improving coding efficiency and reducing the amount of storage and computational complexity.
Smart Images

Figure CN112602325B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an image decoding device, an image encoding device, a program, and an image processing system. Background Art
[0002] Regarding the technology of Decoder-side motion vector refinement (DMVR), non-patent document 1 and non-patent document 2 disclose the following technology: in order to reduce the memory usage and search cost calculation amount during execution, DMVR is prohibited from being applied to blocks with a size larger than a threshold, or blocks with a size larger than the threshold are divided into smaller sub-blocks and DMVR is performed on each sub-block.
[0003] Prior art literature
[0004] Non-patent literature
[0005] Non-patent literature 1: CE9-related: Simplified DMVR with reduced internal memory, JVET-L0098
[0006] Non-patent literature 2: CE9-related: DMVR with Coarse-to-Fine Search and BlockSize Limit, JVET-L0382
[0007] Non-patent literature 3: CE9-related: Simplification of Decoder Side Motion Vector Derivation, JVET-K0105 Summary of the invention
[0008] Problems to be solved by the invention
[0009] However, in the above-mentioned prior art, when the application of DMVR is simply prohibited in a larger block, there is a problem that the coding efficiency is significantly reduced compared to the case where the prohibition is not performed based on the threshold.
[0010] Furthermore, in the above-mentioned prior art, when DMVR is performed on each sub-block, the value of the motion vector of each sub-block may be different, which may easily generate block noise.
[0011] Therefore, the present invention is completed in view of the above-mentioned problems, and its purpose is to provide an image decoding device, an image encoding device, a program and an image processing system that can reduce the memory, computing processing amount and number of computing circuits required to execute DMVR while suppressing the reduction in coding efficiency.
[0012] Solutions for solving problems
[0013] The gist of a first feature of the present invention is: an image decoding device configured to decode encoded data, comprising: a motion vector decoding unit configured to obtain a motion vector from the encoded data; and a thinning unit configured to change an area used for thinning the motion vector using at least any one of information of a width and a height of a block, wherein the block uses the motion vector.
[0014] The gist of a second feature of the present invention is that an image encoding device is configured to generate encoded data by encoding an input image signal, comprising: a motion vector search unit that searches for a motion vector by comparing a target frame and a reference frame; and a refinement unit that is configured to change an area used for refinement of the motion vector using at least any one of information of a width and a height of a block that uses the motion vector.
[0015] The gist of a third feature of the present invention is a program that causes a computer to function as an image decoding device configured to decode encoded data, the image decoding device comprising: a motion vector decoding unit configured to obtain a motion vector from the encoded data; and a thinning unit configured to change an area used for thinning the motion vector using at least any one of information of a width and a height of a block using the motion vector.
[0016] A fourth aspect of the present invention is gist of an image processing system comprising: the image decoding device according to the first aspect; and the image encoding device according to the second aspect.
[0017] Effects of the Invention
[0018] According to the present invention, it is possible to provide an image decoding device, an image encoding device, a program and an image processing system that can reduce the memory, the amount of computing processing and the number of computing circuits required to execute DMVR while suppressing the reduction in coding efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is a diagram showing an example of the configuration of an image processing system 10 according to an embodiment.
[0020] Figure 2 FIG. 1 is a diagram showing an example of functional blocks of an image encoding device 100 of an image processing system 10 according to an embodiment.
[0021] Figure 3 FIG. 1 is a diagram showing an example of a functional block of the inter prediction unit 111 of the image encoding device 100 according to an embodiment.
[0022] Figure 4 1 is a flowchart showing an example of a thinning process procedure in one embodiment, the thinning process being performed by the thinning section 111B of the inter prediction section 111 of the image encoding device 100 (the thinning section 241B of the inter prediction section 241 of the image decoding device 200 ).
[0023] Figure 5 The figure shows an example of a region used for thinning of a motion vector in a thinning process in one embodiment, wherein the thinning process is performed by the thinning unit 111B of the inter-frame prediction unit 111 of the image encoding device 100 (the thinning unit 241B of the inter-frame prediction unit 241 of the image decoding device 200).
[0024] Figure 6 The figure shows an example of a region used for thinning of a motion vector in a thinning process in one embodiment, wherein the thinning process is performed by the thinning unit 111B of the inter-frame prediction unit 111 of the image encoding device 100 (the thinning unit 241B of the inter-frame prediction unit 241 of the image decoding device 200).
[0025] Figure 7 The present invention is a flowchart showing an example of a process of determining the shape of an area used for thinning a motion vector in one embodiment, wherein the thinning of the motion vector is performed by the thinning unit 111B of the inter-frame prediction unit 111 of the image encoding device 100 (the thinning unit 241B of the inter-frame prediction unit 241 of the image decoding device 200).
[0026] Figure 8 FIG. 1 is a diagram showing an example of functional blocks of an image decoding device 200 of an image processing system 10 according to an embodiment.
[0027] Fig. 9 FIG. 1 is a diagram showing an example of a functional block of the inter prediction unit 241 of the image decoding device 200 according to an embodiment.
[0028] Fig.10 1 is a flowchart showing an example of a thinning process procedure in one embodiment, the thinning process being performed by the thinning section 111B of the inter prediction section 111 of the image encoding device 100 (the thinning section 241B of the inter prediction section 241 of the image decoding device 200 ).
[0029] Fig.11 1 is a flowchart showing an example of a thinning process procedure in a modification example, the thinning process being performed by the thinning section 111B of the inter prediction section 111 of the image encoding device 100 (the thinning section 241B of the inter prediction section 241 of the image decoding device 200 ).
[0030] Fig.12 1 is a diagram showing an example of a table used in the refinement unit 111B of the inter prediction unit 111 of the image encoding device 100 (the refinement unit 241B of the inter prediction unit 241 of the image decoding device 200 ) in a modification.
[0031] Fig.13 1 is a flowchart showing an example of a thinning process procedure in a modification example, the thinning process being performed by the thinning section 111B of the inter prediction section 111 of the image encoding device 100 (the thinning section 241B of the inter prediction section 241 of the image decoding device 200 ).
[0032] Fig.14 1 is a flowchart showing an example of a thinning process procedure in a modification example, the thinning process being performed by the thinning section 111B of the inter prediction section 111 of the image encoding device 100 (the thinning section 241B of the inter prediction section 241 of the image decoding device 200 ).
[0033] Fig.15 1 is a diagram showing an example of a region used for thinning of a motion vector in a thinning process in a modification example, the thinning process being performed by the thinning unit 111B of the inter prediction unit 111 of the image encoding device 100 (the thinning unit 241B of the inter prediction unit 241 of the image decoding device 200). DETAILED DESCRIPTION
[0034] (First Embodiment)
[0035] Below, refer to Figures 1 to 10 , an image processing system 10 according to a first embodiment of the present invention will be described. Figure 1 1 is a diagram showing an image processing system 10 according to the present embodiment.
[0036] like Figure 1 As shown, the image processing system 10 includes an image encoding device 100 and an image decoding device 200 .
[0037] The image encoding device 100 is configured to generate encoded data by encoding an input image signal. The image decoding device 200 is configured to generate an output image signal by decoding the encoded data.
[0038] The coded data may be transmitted from the image coding apparatus 100 to the image decoding apparatus 200 via a transmission path. In addition, the coded data may also be stored in a storage medium and then provided from the image coding apparatus 100 to the image decoding apparatus 200 .
[0039] (Image Coding Device 100)
[0040] Below, refer to Figure 2 The image encoding device 100 according to this embodiment will be described. Figure 2 FIG. 1 is a diagram showing an example of functional blocks of the image encoding device 100 according to the present embodiment.
[0041] like Figure 2 As shown, the image encoding device 100 has an inter-frame prediction unit 111, an intra-frame prediction unit 112, a subtractor 121, an adder 122, a transform and quantization unit 131, an inverse transform and inverse quantization unit 132, an encoding unit 140, an in-loop filter processing unit 150 and a frame buffer 160.
[0042] The inter-frame prediction unit 111 is configured to generate a prediction signal through inter-frame prediction.
[0043] Specifically, the inter-frame prediction unit 111 is configured to determine a reference block included in a reference frame by comparing a coding target frame (hereinafter referred to as a target frame) with a reference frame stored in the frame buffer 160, and determine a motion vector for the determined reference block.
[0044] In addition, the inter prediction unit 111 is configured to generate a prediction signal contained in the prediction block for each prediction block based on the reference block and the motion vector. The inter prediction unit 111 is configured to output the prediction signal to the subtractor 121 and the adder 122. The reference frame is a frame different from the target frame.
[0045] The intra prediction unit 112 is configured to generate a prediction signal through intra-frame prediction.
[0046] Specifically, the intra prediction section 112 is configured to determine a reference block included in the target frame and generate a prediction signal for each prediction block based on the determined reference block. In addition, the intra prediction section 112 is configured to output the prediction signal to the subtractor 121 and the adder 122.
[0047] The reference block is a block that is referenced for predicting a target block (hereinafter referred to as a target block). For example, the reference block is a block adjacent to the target block.
[0048] The subtractor 121 is configured to subtract the prediction signal from the input image signal and output the prediction residual signal to the transform and quantization section 131. The subtractor 121 is configured to generate a prediction residual signal which is a difference between the prediction signal generated by intra prediction or inter prediction and the input image signal.
[0049] The adder 122 is configured to add the prediction signal and the prediction residual signal output from the inverse transform and inverse quantization section 132 to generate a pre-filtering decoded signal, and output the pre-filtering decoded signal to the intra prediction section 112 and the in-loop filter processing section 150 .
[0050] The decoded signal before filtering constitutes a reference block used in the intra prediction unit 112 .
[0051] The transform and quantization unit 131 is configured to perform a transform process on the prediction residual signal and obtain a coefficient level value. Furthermore, the transform and quantization unit 131 may also be configured to perform quantization of the coefficient level value.
[0052] The transform process is a process of transforming the prediction residual signal into a frequency component signal. In the transform process, a basic pattern (transformation matrix) corresponding to a discrete cosine transform (DCT) or a basic pattern (transformation matrix) corresponding to a discrete sine transform (DST) can be used.
[0053] The inverse transform and inverse quantization unit 132 is configured to perform an inverse transform process on the coefficient level values output from the transform and quantization unit 131. The inverse transform and inverse quantization unit 132 may also be configured to perform an inverse quantization process on the coefficient level values before the inverse transform process.
[0054] However, the inverse transform process and the inverse quantization are performed in the reverse order to the transform process and the quantization performed by the transform and quantization unit 131 .
[0055] The encoding section 140 is configured to encode the coefficient level values output from the transform and quantization section 131 and output the encoded data.
[0056] Among them, for example, the encoding is entropy encoding that assigns codes of different lengths based on the probability of occurrence of coefficient level values.
[0057] Furthermore, the encoding unit 140 is configured to encode control data used in the decoding process in addition to the coefficient level values.
[0058] The control data may also include size data such as coding block (CU: Coding Unit) size, prediction block (PU: Prediction Unit) size, and transform block (TU: Transform Unit) size.
[0059] The in-loop filter processing section 150 is configured to perform a filter process on the decoded signal before the filter process output from the adder 122 , and output the decoded signal after the filter process to the frame buffer 160 .
[0060] Among them, for example, the filtering process is a deblocking filtering process that reduces distortion generated at a boundary portion of a block (coding block, prediction block, or transform block).
[0061] The frame buffer 160 is configured to accumulate reference frames used in the inter prediction section 111 .
[0062] The decoded signal after filtering constitutes a reference frame used in the inter-frame prediction unit 111 .
[0063] (Inter-frame prediction unit 111)
[0064] Below, refer to Figure 3 The inter-frame prediction unit 111 of the image encoding device 100 according to the present embodiment will be described. Figure 3 FIG. 1 is a diagram showing an example of functional blocks of the inter-frame prediction unit 111 of the image encoding device 100 according to the present embodiment.
[0065] like Figure 3 As shown, the inter prediction section 111 includes a motion vector search section 111A, a refinement section 111B, and a prediction signal generation section 111C.
[0066] The inter prediction section 111 is an example of a prediction section, and is configured to generate a prediction signal included in a prediction block based on a motion vector.
[0067] The motion vector search section 111A is configured to determine a reference block included in a reference frame by comparing the target frame with the reference frame, and search for a motion vector for the determined reference block.
[0068] In addition, regarding the method of searching for motion vectors, a known method can be used, and thus a detailed description thereof will be omitted.
[0069] The thinning section 111B is configured to perform a thinning process of setting a search range based on a reference position determined by a motion vector, determining a correction reference position with a minimum prescribed cost from the search range, and correcting the motion vector based on the correction reference position.
[0070] Furthermore, the refinement unit 111B may be configured to execute the refinement process when a predetermined condition is satisfied.
[0071] The prescribed conditions may also include a condition that the motion vector is encoded in a merge mode. In addition, the merge mode is a mode in which only the index of the motion vector of the encoded block adjacent to the prediction block is transmitted. In addition, the prescribed conditions may also include a condition that the motion vector does not apply motion compensation prediction using affine transformation.
[0072] In this embodiment, the refinement unit 111B is configured to perform refinement processing according to the following procedure. Figure 4 1 is a flowchart showing an example of a thinning process procedure in the present embodiment, the thinning process being performed by the thinning unit 111B of the inter prediction unit 111 of the image encoding device 100 .
[0073] like Figure 4 As shown, in step S10, the refinement unit 111B determines whether the above-mentioned prescribed condition is satisfied.
[0074] If it is determined that the conditions are satisfied, the process proceeds to step S11 , and if it is determined that the conditions are not satisfied, the process proceeds to step S15 and ends the processing.
[0075] In step S11, the refinement unit 111B determines whether the size of the currently processed block is less than or equal to a predetermined threshold value TH1 (first threshold value). In the following, the process of controlling the process according to the size of the prediction block is described as the type of block, but the same control can be performed using the size of the coding block.
[0076] If it is determined that the value is less than or equal to the threshold value TH1, the process proceeds to step S13, and if it is determined that the value is greater than the threshold value TH1, the process proceeds to step S12.
[0077] The threshold TH1 can be defined by, for example, the width (number of pixels in the horizontal direction), the height (number of pixels in the vertical direction), the total number of pixels in the block (the product of the width and the height), or a combination thereof. In this embodiment, the threshold is defined by the total number of pixels in the block. Specifically, the case where the threshold TH1 is set to 1024 pixels is taken as an example to explain the subsequent processing.
[0078] In step S12 , the refinement unit 111B determines whether the size of the prediction block currently being processed is equal to or smaller than a predetermined threshold value TH2 (second threshold value).
[0079] If it is determined that the value is less than or equal to the threshold value TH2, the process proceeds to step S14, and if it is determined that the value is greater than the threshold value TH2, the process proceeds to step S15.
[0080] Among them, threshold TH2 can be defined similarly to threshold TH1, for example, by the width of the block (the number of pixels in the horizontal direction), the height (the number of pixels in the vertical direction), the total number of pixels in the block (the product of the width and the height), or a combination thereof.
[0081] In addition, the threshold TH2 may be set in consideration of the parallel processing unit of the encoding process and the decoding process. For example, when the maximum size of the prediction block is 128×128 pixels and the parallel processing unit is 64×64 pixels, the threshold TH2 may be set to 64×64 pixels or 4096 pixels.
[0082] In step S13, the thinning unit 111B performs motion vector thinning processing by a common method. When searching for motion vectors in the thinning processing, the thinning unit 111B uses pixels in the entire area of the block for processing. In addition, a known method can be used for searching motion vectors, so its detailed description is omitted.
[0083] Although "pixels of the entire area" are described above, the thinning unit 111B does not necessarily need to use all pixels in the block for thinning processing. For example, the thinning unit 111B may be combined with a method for reducing the amount of calculation and the calculation circuit, that is, only the pixels on the even-numbered rows in the block are used for thinning processing.
[0084] In step S14 , the refinement section 111B performs motion vector refinement processing using only pixels of a partial area within the currently processed prediction block.
[0085] The refinement unit 111B only needs to predetermine the region used for refinement of the motion vector. For example, the refinement unit 111B may use the central region of the block as the region used for refinement of the motion vector. Figure 5 As shown, the upper left area of the block can also be used, such as Figure 6 shown.
[0086] Furthermore, the refinement unit 111B may predefine which region to use for each block shape (combination of block width and height) that can execute the process of step S14, or may express it by a mathematical expression that can uniquely determine the region.
[0087] For example, when the area used for thinning the motion vector is set to a rectangular area and the coordinates of the starting point (the upper left vertex of the rectangle) and the end point (the lower right vertex of the rectangle) are expressed in the form of (x, y), the thinning unit 111B can also be defined in advance by mathematical formulas, such as the starting point (block width / 2-16, block height / 2-16) and the end point (block width / 2+16, block height / 2+16).
[0088] In addition, for example, the refinement unit 111B may set the area used for refinement of the motion vector to the center of the block and perform the refinement according to the following steps: Figure 7 The flowchart shown is used to determine the shape of the region used for motion vector refinement.
[0089] like Figure 7As shown, in step S19, the refinement unit 111B sets initial values of information related to the region used for refinement.
[0090] The information related to the region used for refinement is composed of four types of information, for example, an offset value (horizontal offset, vertical offset) indicating the coordinates of the upper left vertex of the region used for refinement, and the size (width, height) of the region used for refinement. In addition, the offset value indicates the relative coordinates with respect to the coordinates of the upper left vertex of the currently processed prediction block.
[0091] When the area used for thinning is represented by the coordinates (x, y) of the start and end points as described above, it becomes the start point (horizontal offset, vertical offset) and the end point (horizontal offset+width, vertical offset+height).
[0092] In this embodiment, the initial values of the horizontal and vertical offsets are set to 0, and the initial values of the width and height are set to the width and height of the currently processed prediction block. After the initial values are set, the process proceeds to step S20.
[0093] In step S20 , it is determined whether the size of the region used for the refinement is equal to or smaller than a threshold value TH.
[0094] If it is determined to be less than the threshold value TH, the process proceeds to step S24 to determine the size of the region used for the refinement and then ends. If it is determined to be greater than the threshold value TH, the process proceeds to step S21.
[0095] In step S21 , the refinement unit 111B compares the height and width of the region used for refinement. If the height is greater than the width, the process proceeds to step S22 . If the width is greater than the height, the process proceeds to step S23 .
[0096] In step S22, the thinning unit 111B adds the vertical offset to a value of 1 / 4 of the height, and then updates the height of the region used for the thinning by a value of 1 / 2.
[0097] In step S23, the thinning unit 111B adds the horizontal offset to a value of 1 / 4 of the width, and then updates the width of the region used for the thinning to a value of 1 / 2.
[0098] After step S22 or step S23, the process returns to step S20, and the refinement unit 111B determines the size of the region used for refinement again. The refinement unit 111B can determine the region used for refinement by repeating the above process until the size of the region used for refinement is less than a predetermined threshold.
[0099] In addition, in step S14, the size of the region used for the refinement may be set to be equal to or smaller than the threshold value TH1.
[0100] In addition, Fig.10 In the process shown, we can also get Figure 4 The same processing results are obtained.
[0101] exist Fig.10 In the process, first in step S30, the refinement unit 111B determines whether the above-mentioned predetermined condition is satisfied and the size of the currently processed prediction block is less than or equal to the threshold value TH2.
[0102] If all of these conditions are determined to be satisfied, the process proceeds to step S31. If any of these conditions are determined not to be satisfied, the process proceeds to step S15 and ends the processing.
[0103] In step S31 , when it is determined that the size of the currently processed prediction block is less than the threshold TH1 , the process proceeds to step S13 ; otherwise, the process proceeds to step S14 .
[0104] The subsequent processing is the same as above Figure 4 Same description as .
[0105] The prediction signal generation unit 111C is configured to generate a prediction signal based on the motion vector. Specifically, the prediction signal generation unit 111C is configured to generate a prediction signal based on the motion vector input from the motion vector search unit 111A when the motion vector is not corrected. On the other hand, the prediction signal generation unit 111C is configured to generate a prediction signal based on the corrected motion vector input from the refinement unit 111B when the motion vector is corrected.
[0106] (Image Decoding Device 200)
[0107] Below, refer to Figure 8 , the image decoding device 200 involved in this embodiment is explained. Figure 8 FIG. 2 is a diagram showing an example of functional blocks of the image decoding device 200 according to the present embodiment.
[0108] like Figure 8 As shown, the image decoding apparatus 200 includes a decoding unit 210 , an inverse transform and inverse quantization unit 220 , an adder 230 , an inter prediction unit 241 , an intra prediction unit 242 , an in-loop filter processing unit 250 , and a frame buffer 260 .
[0109] The decoding section 210 is configured to decode the encoded data generated by the image encoding device 100 and decode the coefficient level values.
[0110] Here, for example, the decoding is entropy decoding in the reverse order to the entropy encoding performed by the encoding unit 140 .
[0111] The decoding unit 210 may also be configured to obtain control data through a decoding process of the encoded data.
[0112] In addition, as described above, the control data may also include size data such as coding block size, prediction block size, and transform block size. In addition, the control data may also include an information element indicating an input source used in generating prediction samples of the second component.
[0113] The inverse transform and inverse quantization unit 220 is configured to perform an inverse transform process on the coefficient level values output from the decoding unit 210. The inverse transform and inverse quantization unit 220 may also be configured to perform an inverse quantization process on the coefficient level values before the inverse transform process.
[0114] However, the inverse transform process and the inverse quantization are performed in the reverse order to the transform process and the quantization performed by the transform and quantization unit 131 .
[0115] The adder 230 is configured to add the prediction signal and the prediction residual signal output from the inverse transform and inverse quantization section 220 to generate a pre-filtering decoded signal, and output the pre-filtering decoded signal to the intra prediction section 242 and the in-loop filter processing section 250 .
[0116] Among them, the decoded signal before filtering constitutes a reference block used in the intra-frame prediction unit 242.
[0117] The inter-frame prediction unit 241 is configured to generate a prediction signal by inter-frame prediction, similarly to the inter-frame prediction unit 111 .
[0118] Specifically, the inter prediction section 241 is configured to generate a prediction signal for each prediction block based on a motion vector decoded from the encoded data and a reference signal included in a reference frame. The inter prediction section 241 is configured to output the prediction signal to the adder 230 .
[0119] The intra prediction unit 242 is configured to generate a prediction signal by intra-frame prediction, similarly to the intra prediction unit 112 .
[0120] Specifically, the intra prediction unit 242 is configured to determine a reference block included in the target frame, and generate a prediction signal for each prediction block based on the determined reference block. The intra prediction unit 242 is configured to output the prediction signal to the adder 230.
[0121] Similar to the in-loop filter processing unit 150 , the in-loop filter processing unit 250 is configured to perform filtering on the pre-filtering decoded signal output from the adder 230 and output the post-filtering decoded signal to the frame buffer 260 .
[0122] Among them, for example, the filtering process is a deblocking filtering process that reduces distortion generated at a boundary portion of a block (coding block, prediction block, or transform block).
[0123] The frame buffer 260 , similarly to the frame buffer 160 , is configured to accumulate reference frames used in the inter prediction unit 241 .
[0124] The decoded signal after filtering constitutes a reference frame used in the inter-frame prediction unit 241 .
[0125] (Inter-frame prediction unit 241)
[0126] Below, refer to Fig. 9 The inter-frame prediction unit 241 according to this embodiment will be described. Fig. 9 1 is a diagram showing an example of functional blocks of the inter prediction unit 241 according to the present embodiment.
[0127] like Fig. 9 As shown, the inter prediction section 241 includes a motion vector decoding section 241A, a refinement section 241B, and a prediction signal generation section 241C.
[0128] The inter prediction section 241 is an example of a prediction section, and is configured to generate a prediction signal included in a prediction block based on a motion vector.
[0129] The motion vector decoding section 241A is configured to acquire a motion vector by decoding the control data received from the image encoding device 100 .
[0130] The thinning unit 241B is configured to perform thinning processing according to the block size similarly to the thinning unit 111B, and the thinning processing is to correct the motion vector using pixels of the entire area within the block or a partial area within the block.
[0131] Alternatively, the thinning unit 241B is configured to determine not to perform thinning processing based on the block size and to terminate the processing, similarly to the thinning unit 111B.
[0132] The prediction signal generating unit 241C is configured to generate a prediction signal based on a motion vector, similarly to the prediction signal generating unit 111C.
[0133] According to the image encoding device 100 and the image decoding device 200 according to the present embodiment, in a block having a value greater than a predetermined threshold value TH1, the motion vector refinement process is performed using only pixels in a partial region within the block.
[0134] That is, by limiting the area used for thinning processing in a relatively large block, the memory and operation circuit required for searching the motion vector can be reduced compared to the case where there is no limitation.
[0135] At this time, by setting the size of the region used for motion vector thinning to be less than or equal to the threshold TH1, the maximum value of the memory and operation circuit required for motion vector thinning can be limited to the amount required for processing the block size of the threshold TH1.
[0136] In this way, even in a larger block, by performing motion vector refinement processing while limiting the area of pixels to be used, it is possible to suppress a decrease in encoding efficiency and reduce the amount of storage, the amount of calculation, and the calculation circuit.
[0137] Furthermore, compared to a case where thinning processing is simply prohibited in a larger block in order to reduce the amount of memory or the like, thinning processing can be performed in a larger block, and thus improvement in encoding efficiency can be expected.
[0138] Furthermore, in the refinement performed by sub-sampling in row units disclosed in non-patent document 3, the amount of computation associated with cost calculations (e.g., the sum of absolute value differences) when searching for motion vectors can be reduced, but in the case where the search point is a non-integer pixel position, the pixel values of the entire block are required for filtering, and therefore the amount of storage used to store reference pixels cannot be reduced.
[0139] On the other hand, according to the image encoding apparatus 100 and the image decoding apparatus 200 according to the present embodiment, thinning processing is performed using only pixels in a partial area within a block, so that both cost calculation and storage amount can be reduced.
[0140] In addition, the image encoding apparatus 100 and the image decoding apparatus 200 according to the present embodiment may be combined with the above-mentioned line-based subsampling. In this case, the amount of calculation and the calculation circuit related to the cost calculation can be further reduced.
[0141] Furthermore, according to the image encoding apparatus 100 and the image decoding apparatus 200 according to the present embodiment, thinning processing is not performed on blocks having a value greater than a predetermined threshold value TH2.
[0142] That is, when the maximum size of the prediction block is larger than the parallel processing unit in the image encoding device 100 and the image decoding device 200, by setting the threshold TH2 to be less than the parallel processing unit, parallel processing in the processing unit of the refinement process can be ensured.
[0143] (Variant 1)
[0144] Below, refer to Figure 11 to Figure 13, focusing on the differences from the above-mentioned first embodiment, the modified example 1 involved in the present invention is described.
[0145] In the first embodiment described above, if Figure 4 As shown, the thinning unit 111B / 241B is configured to determine the area to be used for thinning processing and whether to perform thinning processing using the threshold value TH1 and the threshold value TH2 for the block size. This processing is not, for example, processing using the above-mentioned threshold value, and the thinning unit 111B / 241B can achieve the same processing even by predetermining the processing for each block shape.
[0146] Fig.11 The flowchart shows an example of a thinning process in the present modification example 1, which is performed by the thinning section 111B of the inter prediction section 111 of the image encoding device 100 (and the thinning section 241B of the inter prediction section 241 of the image decoding device 200).
[0147] In step S16 , the refinement unit 111B / 241B determines which of steps S13 , S14 , and S15 to proceed to based on the shape of the currently processed prediction block (eg, defined by a combination of the width and height of the block).
[0148] This determination can be made, for example, by predetermining Fig.12 Furthermore, when only pixels in a partial area of a block are used for thinning, which area to use can also be predefined by a table.
[0149] Furthermore, the process using the threshold value of the block size in the first embodiment described above may be combined with the process for each block shape in the first modification. Fig.13 An example of a flowchart in this case is shown.
[0150] like Fig.13 As shown, for example, the thinning unit 111B / 241B may uniformly use pixels in the entire area of a block to perform thinning processing on blocks with a block size smaller than the threshold TH1, and only change the processing according to the block shape for blocks with a block size larger than the threshold TH1.
[0151] (Variant 2)
[0152] Below, refer to Figure 14-15 , focusing on the differences from the above-mentioned first embodiment and modification example 1, modification example 2 involved in the present invention is described.
[0153] In the first embodiment described above, if Figure 4As shown, the thinning unit 111B / 241B does not perform thinning processing on blocks larger than the threshold TH2. As described above, by setting the threshold TH2 to be less than the parallel processing unit of encoding and decoding, parallel processing of the thinning processing can be ensured.
[0154] In contrast, in the second modification, the thinning unit 111B / 241B is configured to perform thinning processing using only pixels in a partial region within the block even in a block larger than the parallel processing unit.
[0155] Fig.14 A flowchart showing an example of a thinning process in this modification example 2 is performed by the thinning section 111B of the inter prediction section 111 of the image encoding device 100 (and the thinning section 241B of the inter prediction section 241 of the image decoding device 200).
[0156] like Fig.14 As shown, similarly to the first embodiment, in step S14, the thinning unit 111B / 241B performs thinning processing using only a partial region for blocks larger than the threshold TH1.
[0157] In the first embodiment, in step S14, the area used for the thinning process is, for example, the central area of the block.
[0158] On the other hand, in the second modification, in step S17 , the thinning unit 111B / 241B performs thinning processing using only a partial region even for a block larger than the threshold TH2 .
[0159] Fig.15 An example of a region used for motion vector thinning in the thinning process of step S17 is shown when the maximum size of the prediction block is set to 128×128 pixels and the parallel processing unit is set to 64×64.
[0160] Fig.15 The dashed lines within the blocks in represent the boundaries of the parallel processing units. Fig.15 As shown, by predefining the area used for the refinement processing so as not to cross the boundary of the parallel processing unit, the refinement processing can be performed in a larger block while ensuring the parallel processing of each processing unit. Fig.15 As shown, the shape of the region used for refining the motion vector can be a square or a rectangle.
[0161] Furthermore, the above-described image encoding apparatus 100 and image decoding apparatus 200 may be implemented by a program that causes a computer to execute each function (each step).
[0162] In addition, in the above-mentioned embodiments, the application of the present invention to the image encoding device 100 and the image decoding device 200 is described as an example, but the present invention is not limited to this and can also be similarly applied to an encoding / decoding system having the functions of an encoding device and a decoding device.
[0163] Explanation of symbols
[0164] 10…image processing system, 100…image encoding device, 111, 241…inter-frame prediction unit, 111A…motion vector search unit, 111B, 241B…refinement unit, 111C, 241C…prediction signal generation unit, 112, 242…intra-frame prediction unit, 121…subtractor, 122, 230…adder, 131…transformation and quantization unit, 132, 220…inverse transformation and inverse quantization unit, 140…encoding unit, 150, 250…in-loop filter processing unit, 160, 260…frame buffer, 200…image decoding device, 210…decoding unit, 241A…motion vector decoding unit.
Claims
1. An image decoding device, configured to decode coded data, characterized in that: have: a motion vector decoding unit configured to acquire a motion vector from the encoded data; and a refinement unit configured to change a region used for refinement of the motion vector using at least any one of width and height of a block using the motion vector, The refinement unit is configured to refine the motion vector using only pixels in a partial area within the block when the block is larger than a first threshold.
2. The image decoding device according to claim 1, characterized in that: The thinning unit is configured to, in the block having a value greater than the first threshold, thin the motion vector using only pixels in a region within the block having a value less than the first threshold.
3. The image decoding device according to claim 1, characterized in that: The thinning unit is configured to, in the block having a value greater than the first threshold, thin the motion vector using only pixels in a central area of the block.
4. The image decoding device according to claim 1, wherein: The image decoding device performs parallel processing on each predetermined processing unit. The thinning unit is configured to thin the motion vector using only pixels in a region that does not overlap with a boundary of the parallel processing unit.
5. The image decoding device according to claim 1, wherein: The refinement unit is configured to not refine the motion vector in the block if the block is larger than a second threshold.
6. The image decoding device according to claim 5, characterized in that: The image decoding device performs parallel processing on each predetermined processing unit. The second threshold is configured to be smaller than the processing unit.
7. The image decoding device according to claim 1, characterized in that: The thinning section is configured to perform any of the following processing according to the shape of the block: thinning the motion vector using pixels of the entire area within the block, thinning the motion vector using pixels of a partial area within the block, or not thinning the motion vector.
8. The image decoding device according to claim 7, characterized in that: The thinning unit is configured to, when the size of the block is equal to or smaller than a first threshold, thin the motion vector using pixels in all regions within the block.
9. The image decoding device according to claim 1, characterized in that: The block is either a prediction block or a coding block.
10. An image encoding device configured to generate encoded data by encoding an input image signal, characterized in that: have: a motion vector search section that searches for a motion vector by comparing a target frame with a reference frame; and a refinement unit configured to change a region used for refinement of the motion vector using at least any one of width and height of a block using the motion vector, The refinement unit is configured to refine the motion vector using only pixels in a partial area within the block when the block is larger than a first threshold.
11. A computer-readable storage medium storing a program for causing a computer to function as an image decoding device configured to decode encoded data, characterized in that: The image decoding device comprises: a motion vector decoding unit configured to acquire a motion vector from the encoded data; and a refinement unit configured to change a region used for refinement of the motion vector using at least any one of width and height of a block using the motion vector, The refinement unit is configured to refine the motion vector using only pixels in a partial area within the block when the block is larger than a first threshold.
12. An image processing system comprising: The image decoding device according to any one of claims 1 to 9; and The image encoding device according to claim 10.
Citation Information
Patent Citations
Method and device for motion vector estimation in video transcoding using union of search areas
CA2726973A1
Method for coding video data of a sequence of pictures
CN101039419A
Method for modeling coding information of a video signal to compress / decompress the information
CN101218826A
Image encoding apparatus, image decoding apparatus, image encoding method and image decoding method
CN103385004A
High quality side information production method
CN105939475A
