Image processing apparatus and image processing method

By calculating chromatic aberration correlation parameters in VVC to determine the necessity and strength of the deblocking filter, the problem of chromatic aberration component block distortion is solved, achieving more efficient image quality improvement and coding efficiency.

CN118764647APending Publication Date: 2024-10-11SONY GROUP CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410945208.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2018-11-02
Filing Date
2019-10-18
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing image coding methods have failed to effectively address the block distortion problem of chromatic aberration components in VVC, especially when the block size is large. Using only weak filters cannot sufficiently reduce block distortion, and existing technologies have failed to properly consider the effects of block shape and orientation when applying deblocking filters.

Method used

By calculating the chromatic aberration-related parameters in the decoded image, the block boundary strength is determined, and based on this, the necessity and strength of applying a deblocking filter are decided. A higher-strength filter is used to process the chromatic aberration components, adapting to different block shapes and orientations, and combined with appropriate line buffer management to balance performance and cost.

Benefits of technology

It effectively reduces block distortion of color difference components, improves image quality, and increases coding efficiency while controlling costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764647A_ABST
    Figure CN118764647A_ABST
Patent Text Reader

Abstract

The present technology pertains to an image processing device and an image processing method that make it possible to provide various DFs. Applying the reduced second luminance filter or the reduced first luminance filter as a second color difference filter having a higher filter strength than the first color difference filter to pixels of color difference components located around the block boundary of the decoded image; the reduced second luminance filter is obtained by reducing a filter characteristic of the second luminance filter having a higher filter strength than the first luminance filter, and the reduced first luminance filter is obtained by reducing a filter characteristic of the first luminance filter. The present technology can be applied, for example, to image encoding and decoding.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the application with national application number 201980070434.X, international application date October 18, 2019, national entry date April 23, 2021, and invention name “Image processing device and image processing method”. Technical Field

[0002] The present technology relates to an image processing device and an image processing method, and particularly to an image processing device and an image processing method by which, for example, various DFs (deblocking filters) can be provided. Background Art

[0003] In H.265 / HEVC, which is a standard for image coding, a deblocking filter is applied to block boundaries in a decoded image to prevent degradation of image quality due to block distortion generated during encoding. In H.265 / HEVC, two types of deblocking filters (i.e., a weak filter and a strong filter) can be applied to the luminance component, while only one type of deblocking filter (i.e., a weak filter) can be applied to the color difference component.

[0004] In addition, in order to obtain higher coding efficiency than that of H.265 / HEVC, JVET (Joint Video Experts Team), which is a common standardization organization of ITU-T and ISO / IEC, is promoting the standardization of VVC (Versatile Video Coding) as a next-generation image coding method (for example, see non-patent document 1).

[0005] In the standardization of VVC, Non-Patent Document 1 proposes a method in which a deblocking filter applicable to a color difference component is changed to two types, as in a deblocking filter applicable to a luminance component, so that a strong filter can also be applied to the color difference component.

[0006] Reference List

[0007] Non-patent literature

[0008] Non-patent literature 1: Jianle Chen, Yan Ye, Seung Hwan Kim: Algorithm description for Versatile Video Coding and Test Model 2 (VTM 2), Joint Video Experts Team (JVET) of ITU-T SG 16WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11 11th Meeting, Ljubljana, SI, 10-18 July 2018. Summary of the invention

[0009] Technical issues

[0010] Regarding DF, various types of DF have been requested.

[0011] The present technology has been made in view of the above circumstances, and can provide various DFs.

[0012] [Solution to the problem]

[0013] According to the first image processing device of the present technology, there is provided: a decoding unit, which generates a decoded image by performing decoding processing on a bit stream; and a filtering unit, which applies a reduced second luminance filter or a reduced first luminance filter as a second chromatic aberration filter having a higher filter strength than the first chromatic aberration filter to pixels of a chromatic aberration component located around a block boundary in the decoded image that has been decoded by the decoding unit, the reduced second luminance filter having reduced filter characteristics relative to the second luminance filter having a higher filter strength than the first luminance filter, and the reduced first luminance filter having reduced filter characteristics relative to the first luminance filter.

[0014] According to the first image processing method of the present technology, a decoded image is generated by performing decoding processing on a bit stream; and a reduced second brightness filter or a reduced first brightness filter is applied as a second color difference filter having a higher filter strength than the first color difference filter to pixels of a color difference component located around a block boundary in the decoded image that has been decoded by a decoding unit, the reduced second brightness filter having a reduced filter characteristic relative to the second brightness filter having a higher filter strength than the first brightness filter, and the reduced first brightness filter having a reduced filter characteristic relative to the first brightness filter.

[0015] In the first image processing device and the first image processing method according to the present technology, a decoded image is generated by decoding processing of a bit stream. Then, a reduced second luminance filter or a reduced first luminance filter is applied as a second color difference filter having a higher filter strength than the first color difference filter to pixels of a color difference component located around a block boundary in the decoded image, the reduced second luminance filter having a reduced filter characteristic relative to the second luminance filter having a higher filter strength than the first luminance filter, and the reduced first luminance filter having a reduced filter characteristic relative to the first luminance filter.

[0016] A second image processing device according to the present technology includes: a filtering unit that applies a reduced second luminance filter or a reduced first luminance filter as a second chromatic aberration filter having a higher filter strength than the first chromatic aberration filter to pixels of a chromatic aberration component located around a block boundary in a local decoded image obtained by a local decoding process during encoding processing of the image, the reduced second luminance filter having a reduced filter characteristic relative to the second luminance filter having a higher filter strength than the first luminance filter, and the reduced first luminance filter having a reduced filter characteristic relative to the first luminance filter; and an encoding unit that performs encoding processing on the image by using the local decoded image to which the second chromatic aberration filter has been applied by the filtering unit.

[0017] A second image processing method according to the present technology includes: applying a reduced second luminance filter or a reduced first luminance filter as a second chromatic aberration filter having a higher filter strength than the first chromatic aberration filter to pixels of a chromatic aberration component located around a block boundary in a local decoded image obtained by a local decoding process during an encoding process of the image, the reduced second luminance filter having a reduced filter characteristic relative to the second luminance filter having a higher filter strength than the first luminance filter, and the reduced first luminance filter having a reduced filter characteristic relative to the first luminance filter; and performing encoding processing on the image by using the local decoded image to which the second chromatic aberration filter has been applied.

[0018] In the second image processing device and the second image processing method according to the present technology, during the encoding process of the image, a reduced second luminance filter or a reduced first luminance filter is applied as a second color difference filter having a higher filter strength than the first color difference filter to pixels of a color difference component located around a block boundary in a local decoded image obtained by the local decoding process, the reduced second luminance filter having a reduced filter characteristic relative to the second luminance filter having a higher filter strength than the first luminance filter, and the reduced first luminance filter having a reduced filter characteristic relative to the first luminance filter. In addition, the encoding process is performed on the image by using the local decoded image to which the second color difference filter has been applied.

[0019] Note that the image processing apparatus can be realized by causing a computer to execute a program. The program can be provided by being recorded in a recording medium or by being transmitted via a transmission medium. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 This is a table for explaining the calculation of bS in HEVC.

[0021] Figure 2 This is a table for explaining the calculation of bS in Non-Patent Document 1.

[0022] Figure 3 1 is an explanatory diagram depicting one example of pixels of color difference components (U component and V component) in two blocks, ie, a block Bp and a block Bq adjacent to each other with a vertical block boundary BB provided therebetween.

[0023] Figure 4 : is a table for explaining the calculation of bS in one embodiment according to the present disclosure.

[0024] Figure 5 : is a block diagram depicting one configuration example of an image encoding device 10 as one aspect of an image processing device according to an embodiment.

[0025] Figure 6 : is a block diagram depicting one configuration example of an image decoding device 60 which is one aspect of an image processing device according to an embodiment.

[0026] Figure 7 : is a block diagram depicting one detailed configuration example of the deblocking filter 26 according to the embodiment.

[0027] Figure 8 : is a table showing an example of bS calculated by the boundary strength calculation unit 261 .

[0028] Fig. 9 is a flowchart depicting one example of the flow of processing performed by the deblocking filter 26 according to the embodiment.

[0029] Fig.10 This is a flowchart for explaining the flow of the boundary strength calculation process executed by the boundary strength calculation unit 261 .

[0030] Fig.11 is a block diagram depicting a configuration example of the DF 300 as a new DF.

[0031] Fig.12 is a diagram depicting a configuration example of a decoded image to be processed by the DF 300 .

[0032] Fig.13 : is a flowchart for explaining the processing of the DF 300.

[0033] Fig.14 It is a diagram for explaining DF in HEVC.

[0034] Fig.15 It is a diagram for explaining the new DF.

[0035] Fig.16 is a diagram depicting an example of pixels of color difference components at a block boundary.

[0036] Fig.17 : is a diagram showing the filter NC1 and necessary pixels in the case where a filter based on the filter Y1 is adopted as the filter NC1.

[0037] Fig.18 : is a diagram showing the filter NC1 and necessary pixels in the case where a filter based on the filter OF is adopted as the filter NC1.

[0038] Fig.19 : is a diagram showing the filter NC1 and necessary pixels in the case where a filter based on the filter Y2 is adopted as the filter NC1.

[0039] Fig. 20 is a diagram depicting an example of an application method for applying the filter NC1 to a decoded image.

[0040] Fig.21 is a diagram depicting another example of an application method for applying the filter NC1 to a decoded image.

[0041] Fig. 22 is a block diagram depicting a configuration example of one embodiment of a computer. DETAILED DESCRIPTION

[0042] Hereinafter, preferred embodiments according to the present disclosure will be described in detail with reference to the accompanying drawings. Note that throughout this specification and the accompanying drawings, components having substantially the same functional configuration are denoted by the same reference numerals, and repeated description thereof will be omitted.

[0043] In addition, the scope disclosed in this specification is not limited to the implementation methods. The disclosures in the following references REF1 to REF3, which are already known at the time of filing this application, are also incorporated into this specification by reference. That is, the disclosures in the following references REF1 to REF3 are also used as a basis for determining the support requirements. For example, even if the quadtree block structure described in reference REF2 or the QTBT (quadtree plus binary tree) block structure described in reference REF3 is not directly defined in the detailed description of the present invention, the structure is considered to be included in the scope of the present disclosure and meets the support requirements of the claims. The same applies to technical terms such as parsing, grammar, and semantics. Even if these technical terms are not directly defined in the detailed description of the present invention, these technical terms are considered to be included in the scope of the present disclosure and meet the support requirements of the claims.

[0044] REF1: Recommendation ITU-T H.264(04 / 2017)"Advanced video coding forgeneric audiovisual services", April 2017

[0045] REF2: Recommendation ITU-T H.265, (12 / 2016) "High efficiency videocoding", December 2016

[0046] REF3: J.Chen,E.Alshina,GJSullivan,J.-R.Ohm,J.Boyce,"AlgorithmDescription of Joint Exploration Test Model(JEM7)",JVET-G1001,Joint VideoExploration Team(JVET)of ITU-T SG 16WP 3and ISO / IEC JTC 1 / SC 29 / WG 11 7thMeeting:Torino,IT,13-21July 2017

[0047] In addition, hereinafter, unless otherwise specified, in the following description, a YUV420 format signal is used as an example, a luminance component is represented as a Y component, and a color difference component is represented as a U component and a V component. However, the technology described below can be applied to a signal of any other format (for example, a YUV444 format and a YUV422 format). In addition, the representation of the luminance component and the color difference component differs depending on the target signal. For example, the technology described below can also be applied to a signal in which the luminance component and the color difference component are represented by YCbCr.

[0048] Furthermore, the following terms used in this specification are defined as follows.

[0049] The term "color difference related parameter" refers to any parameter related to color difference. For example, the color difference related parameter may include information about the transform coefficient of the color difference component, such as the transform coefficient of the color difference component included in each TU (transform unit) and a flag indicating the presence / absence of a significant coefficient (non-zero transform coefficient) of the color difference component in each TU. However, the term "color difference related parameter" is not limited to these examples and may refer to various parameters related to color difference.

[0050] The term "necessity / unnecessity of application of a deblocking filter" refers to whether a deblocking filter is applied. For example, determining the necessity / unnecessity of application of a deblocking filter refers to determining whether a deblocking filter is applied. In addition, the determination result of the necessity / unnecessity of application of a deblocking filter refers to a result obtained by determining whether a deblocking filter is applied. For example, the determination result may be information indicating that a deblocking filter should be applied, or information indicating that a deblocking filter does not need to be applied.

[0051] The large block determination refers to a determination as to whether or not a target block is large. In this specification, the target block may be a block having a block boundary disposed therebetween, as described later. In addition, the large block determination may be made by comparing the size of the block (block size) with a predetermined threshold value. It is to be noted that the case where the large block determination is made and the details of the large block determination will be described later.

[0052] <1. Overview>

[0053] [1-1. Conventional methods]

[0054] In an existing image encoding method such as HEVC, processing related to a deblocking filter involves application necessity / unnecessity determination processing, filter strength determination processing, and filtering processing (filter application processing). Hereinafter, an explanation of existing processing related to a deblocking filter will be given by way of example using a deblocking filter in HEVC. It should be noted that the following will mainly explain the deblocking filter for the color difference component in a decoded image (including an image obtained by local decoding during encoding), and the explanation of the deblocking filter for the luminance component in the decoded image will be appropriately omitted.

[0055] In the process of deblocking filter, the application necessity / unnecessity determination process is first performed. In the application necessity / unnecessity determination process, it is determined whether to apply the deblocking filter to the block boundary in the decoded image. It should be noted that in HEVC, the block boundary is specified based on the block structure of the quadtree block structure described in reference REF2. Specifically, in HEVC, among the edges of the 8×8 pixel block (sample grid) as the minimum block unit, the edges that meet the following conditions are designated as block boundaries: the edge is at least any one of the TU (transform unit) boundary or the PU (prediction unit) boundary.

[0056] The application necessity / unnecessity determination process is performed based on the boundary strength of the block boundary (hereinafter, referred to as "bS" in some cases). In HEVC, bS is calculated for every 4 rows of the specified block boundary. In the case where the block boundary is a vertical boundary, the row corresponds to the row orthogonal to the vertical boundary. In the case where the block boundary is a horizontal boundary, the row corresponds to the column orthogonal to the horizontal boundary.

[0057] Figure 1 is a table for explaining the calculation of bS in HEVC. Figure 1 As depicted, in HEVC, bS is calculated based on whether condition A, condition B1, and condition B2 are true or false (satisfied or not), condition A is a condition on intra prediction, condition B1 is a condition on the significant coefficient of the Y component, and condition B2 is a condition on the motion vector (MV) and the reference picture. Figure 1 , when condition A is true, bS is set to 2. In addition, when condition A is false and at least one of condition B1 or condition B2 is true, bS is set to 1. In addition, when condition A, condition B1, and condition B2 are all false, bS is set to 0. It should be noted that Figure 1 Condition A, Condition B1, and Condition B2 depicted in are as follows.

[0058] Condition A: Regarding CUs (coding units) including pixels in the uppermost row among rows that are bS calculation targets and having a block boundary provided therebetween, the encoding mode in at least any one of the CUs is an intra prediction mode.

[0059] Condition B1: Regarding two TUs, a significant coefficient of the Y component exists in at least one of the TUs, a TU boundary between the two TUs is a block boundary, the two TUs include the topmost row of rows as bS calculation targets, and a block boundary is provided therebetween.

[0060] Condition B2: Between two CUs, the absolute value of the MV difference is one pixel or more, or the CUs are different in reference pictures for motion compensation or in the number of MVs, the two CUs including pixels in the uppermost row of rows as bS calculation targets with a block boundary set therebetween.

[0061] In addition, in HEVC, the deblocking filter for the luminance component (Y component) in the decoded image can be applied to the block boundary having a bS of 1 or more set in the above-mentioned manner. Therefore, in HEVC, the determination result of the necessity / unnecessity determination of the application of the deblocking filter for the luminance component in the decoded image can be changed depending on whether the conditions B1 and B2 are satisfied.

[0062] It should be noted that in HEVC, a strong filter with a high filter strength and a weak filter with a low filter strength are prepared as a deblocking filter for the luminance component in the decoded image. In the case where bS is 1 or more, processing is performed on the deblocking filter for the luminance component in the decoded image so that the filter strength determination processing and the filtering processing are performed after the additional application necessity / unnecessity determination processing based on the additional condition. The description of these processing described in detail in reference REF2 is omitted here.

[0063] Meanwhile, in HEVC, the deblocking filter for the color difference components (U component and V component) in the decoded image is applied only to the block boundaries where bS is 2. Therefore, Figure 1 As depicted, in HEVC, whether or not Condition B1 and Condition B2 are satisfied does not affect determination regarding the necessity / unnecessity of application of a deblocking filter to a color difference component in a decoded image.

[0064] In addition, in HEVC, only a weak filter is used as a deblocking filter that can be applied to the color difference component in the decoded image. Therefore, for the color difference component in the decoded image, the filter strength determination process is unnecessary. When bS is 2, a weak filter is applied to the color difference component in the decoded image.

[0065] At the same time, as described in reference REF3, in VVC, compared with the block division based on the quadtree block structure in HEVC, blocks of much larger size can be selected by block division based on the QTBT block structure. In the case where the size of the block is large in a flat area (an area where the change in pixel value is small), block distortion is likely to occur. Therefore, in VVC where blocks of much larger size can be selected, when only a weak filter is used as a deblocking filter applicable to the color difference component in the decoded image, as in HEVC, there is a possibility of significant block distortion remaining in the color difference component. In view of this situation, it is necessary to improve the deblocking filter for the color difference component in the decoded image.

[0066] For example, non-patent document 1 proposes a method in which the number of types of deblocking filters applicable to color difference components is changed to two, as with the deblocking filter applicable to the luminance component, so that a strong filter can also be applied to the color difference component. In addition, non-patent document 1 indicates that the deblocking filter can be applied to the color difference component in the decoded image not only when bS is 2 but also when bS is 1.

[0067] Figure 2 is a table for explaining the calculation of bS in Non-Patent Document 1. Figure 2 As described, in Non-Patent Document 1, bS is calculated based on the above-mentioned conditions A, B1, and B2, as shown in Figure 1 However, as previously explained, in Non-Patent Document 1, the deblocking filter can be applied to the color difference component in the decoded image not only when bS is 2 but also when bS is 1. Therefore, Figure 2 As depicted, in Non-Patent Literature 1, the determination result of the necessity / unnecessity of application of the deblocking filter to the color difference components (U component and V component) in the decoded image may differ depending on whether the condition B1 and the condition B2 are satisfied.

[0068] In the following, reference is made to Figure 3 , an explanation will be given on application necessity / unnecessity determination processing, filter strength determination processing, and filtering processing of a deblocking filter applicable to a color difference component in a decoded image in Non-Patent Literature 1. Figure 3 1 is an explanatory diagram depicting an example of pixels of color difference components (U component and V component) in two blocks (i.e., a block Bp and a block Bq adjacent to each other with a vertical block boundary BB provided between the block Bp and the block Bq). Here, a vertical boundary is used as an example, but, of course, the description can also be applied to a horizontal boundary. In addition, Figure 3 In the depicted example, the block Bp and the block Bq each include 4×4 color difference components, but the description can also be applied to blocks of any other size.

[0069] exist Figure 3 In the example in FIG. 1 , the pixels of the color difference component in the block Bp are represented by the symbol p i,j , where i represents the column index and j represents the row index. Starting from the column closest to the block boundary BB in order ( Figure 3 The column index i is numbered as 0, 1, 2, and 3 from the right to the left in the block. The row index j is numbered as 0, 1, 2, and 3 in order from the top to the bottom. The pixels of the color difference component in the block Bq are denoted by the symbol q k,j , where k represents the column index and j represents the row index. Starting from the column closest to the block boundary BB ( Figure 3 ), the column index k is numbered 0, 1, 2, and 3 in sequence.

[0070] In reference Figure 2 After bS is calculated in the manner described above, the application necessity / unnecessity determination process and the filter strength determination process are performed by using the following three conditions. In the YUV420 format, these processes are performed for every 2 lines of the color difference component. For example, Figure 3In the depicted example, determination is performed on row L11 and row L12, and determination is performed on row L21 and row L22, respectively. Note that row-based determination is performed using pixels in the determination target row. Hereinafter, an explanation will be given of application necessity / unnecessity determination processing, filter strength determination processing, and filtering processing using row L11 and row L12 by way of example.

[0071] First, in the application necessity / unnecessity determination process, it is sequentially determined whether the following condition C91 is true and whether the following condition C92 is true.

[0072] ·Condition C91: (bS==2||bS==1&&(block_width>16&&block_height>16))

[0073] Condition C92: d <beta

[0074] It should be noted that in the above condition C91, block_width and block_height respectively represent the horizontal size and vertical size of each block (eg, CU) related to the block boundary to be determined. Figure 3 As depicted in .

[0075] In addition, in condition C92, variable beta is an edge determination threshold. The initial value of variable beta is given according to the quantization parameter. In addition, the value of variable beta can be specified by a parameter in a slice header given by the user. In addition, in condition C92, variable d is calculated by the following expressions (1) to (7).

[0076] dp0=Abs(p 2,0 -2*p 1,0 +p 0,0 )…(1)

[0077] dp1=Abs(p 2,1 -2*p 1,1 +p 0,1 )…(2)

[0078] dq0=Abs(q 2,0 -2*q 1,0 +q 0,0 )…(3)

[0079] dq1=Abs(q 2,1 -2*q 1,1 +q 0,1 )…(4)

[0080] dpq0=dp0+dq0…(5)

[0081] dpq1=dp1+dq1…(6)

[0082] d=dpq0+dpq1…(7)

[0083] Except for the difference in the rows to be referenced, condition C92 is similar to the condition used in the determination process of the necessity / unnecessity of application of the deblocking filter to be applied to the luminance component in HEVC (hereinafter referred to as the condition for the luminance component). In the condition for the luminance component, the pixels in the first row and the pixels in the fourth row are referenced, and determination is performed every 4 rows. On the other hand, in the YUV420 format, the pixel density of the color difference component (U component and V component) is half as high as the pixel density of the luminance component. Therefore, in condition C92, the pixels in row L11 as the first row and the pixels in row L12 as the second row are referenced, and determination is performed every 2 rows.

[0084] In the case where at least either one of the condition C91 or the condition C92 is false, the deblocking filter is not applied to the color difference component in the decoded image. On the other hand, in the case where both the condition C91 and the condition C92 are true, the process proceeds to the filter strength determination process.

[0085] In the filter strength determination process, it is determined whether the following condition C93 is true in order to determine whether to apply a strong filter or a weak filter.

[0086] Condition C93: (block_width>16&&block_height>16)

[0087] It is to be noted that, similar to block_width and block_height in condition C91, block_width and block_height in condition C93 respectively represent the horizontal size and the vertical size of each block related to the block boundary to be determined.

[0088] In the case where condition C93 is true, a strong filter is applied to the color difference components in the decoded image at the target block boundary. In the case where condition C93 is false, a weak filter is applied to the color difference components in the decoded image at the target block boundary.

[0089] In Non-Patent Document 1, the strong filter applied to the color difference component is similar to the strong filter applied to the luminance component in HEVC. The strong filter is represented by the following expressions (8) to (13).

[0090] p0′=Clip3(p0-2*tc, p0+2*t C , (p2+2*p1+2*p0+2*q0+q1+4)>>3)…(8)

[0091] p1′=Clip3(p1-2*tc, p1+2*t C , (p2+p1+p0+q0+2)>>2)…(9)

[0092] p2′=Clip3(p2-2*tc, p2+2*t C , (2*p3+3*p2+p1+p0+q0+4)>>3)…(10)

[0093] q0′=Clip3(q0-2*tc, q0+2*t C , (p1+2p0+2q0+2q1+q2+4)>>3)…(11)

[0094] q1′=Clip3(q1-2*tc, q1+2*t C , (p0+q0+q1+q2+2)>>2)…(12)

[0095] q2′=Clip3(q2-2*t c ,q2+2*t C , (p0+q0+q1+3*q2+2*q3+4)>>3)…(13)

[0096] In expressions (8) to (13), p i and q k Each represents a pixel value of a color difference component that has not been subjected to application of a deblocking filter, and p i ′ and q k ′ each represents a pixel value of a color difference component that has not been subjected to application of a deblocking filter. Here, i and k each represent a column index in the above-mentioned block Bp and block Bq, respectively. The row index is omitted in expressions (8) to (13). In addition, t C Indicates a parameter given according to a quantization parameter. Clip3(a,b,c) indicates a clipping process for clipping the value c within the range of a≤c≤b.

[0097] Since the weak filter applied to the color difference component in Non-Patent Document 1 is the same as the weak filter applied to the color difference component in HEVC, the description of the weak filter is omitted here.

[0098] So far, the process has been described regarding the deblocking filter applicable to the color difference component in the decoded image in Non-Patent Literature 1. With the above method, a strong filter can be applied not only to the luminance component but also to the color difference component according to the conditions.

[0099] However, as previously referenced Figure 2As explained, condition B1 for calculating bS in non-patent document 1 depends on the presence / absence of effective coefficients of the luminance component (Y component), as in HEVC. Even under other conditions, information about the color difference components (U component and V component) is not used. However, the spatial pattern of the luminance component does not necessarily match the spatial pattern of each color difference component. Therefore, if the necessity / unnecessity of applying a deblocking filter to the color difference component is determined based on a condition based on information about the luminance component, the deblocking filter cannot be properly applied regardless of whether block distortion occurs. This may cause block distortion.

[0100] In addition, in order to make condition C91 for applying the necessity / unnecessity determination processing true when bS is 1 in non-patent document 1, the horizontal size and vertical size of each block related to the block boundary to be determined need to be greater than 16 respectively. However, as described in reference REF3, the shape of the block (e.g., CU) in VVC is not limited to a square shape, and may be a non-square rectangle. In addition, it is possible that block distortion is generated not depending on the size in the same direction as the direction of the block boundary but depending on the size in the direction orthogonal to the block boundary. Therefore, in the case of a certain block shape, in non-patent document 1, during the application necessity / unnecessity determination processing, the deblocking filter is not properly applied, so that there is a possibility that block distortion remains.

[0101] In addition, the strong filter in non-patent document 1 is similar to the strong filter applied in HEVC. On the other hand, as previously explained, in VVC, a large-sized block can be selected compared to the divided blocks in HEVC. Therefore, even if the strong filter of non-patent document 1 is applied, there is a possibility that block distortion is not sufficiently reduced.

[0102] [1-2. Overview of one embodiment according to the present disclosure]

[0103] To this end, in view of the above situation, an embodiment of the present disclosure has been made. An image processing device according to an embodiment of the present disclosure performs an application necessity / unnecessity determination process for determining the necessity / unnecessity of applying a deblocking filter to a color difference component in a decoded image based on a boundary strength (bS) calculated using a color difference related parameter related to the color difference in the decoded image. Hereinafter, an overview of an embodiment of the present disclosure will be described.

[0104] Figure 4 is a table for explaining the calculation of bS according to this embodiment. Figure 4As depicted, calculation is performed based on condition A, condition B1-Y, condition B1-U, condition B1-V and condition B2, condition A is a condition regarding intra-frame prediction, condition B1-Y is a condition regarding the presence / absence of a valid coefficient of the Y component, condition B1-U is a condition regarding the presence / absence of a valid coefficient of the U component, condition B1-V is a condition regarding the presence / absence of a valid coefficient of the V component, and condition B2 is a condition regarding MV and a reference picture.

[0105] Reference Figure 4 , when condition A is true, bS is set to 16. In addition, when condition A is false and condition B2 is true, bS is set to 1. When conditions A and B2 are false and any one of conditions B1-Y, B1-U, or B1-V is true, bS is set to a value between 2 and 14. In addition, when conditions A, B1-Y, B1-U, B1-V, and B2 are all false, bS is set to 0. Note that Figure 4 Condition A, Condition B1-Y and Condition B2 in the reference Figure 1 The conditions A, B1, and B2 described above are the same. The bS calculation method according to the present embodiment will be described in detail later.

[0106] also, Figure 4 The condition B1-U and the condition B1-V depicted in correspond to conditions for using the presence / absence of the significant coefficient of the U component and the presence / absence of the significant coefficient of the V component for determination, respectively, instead of the presence / absence of the significant coefficient of the Y component in the condition B1-Y. The condition B1-U and the condition B1-V are expressed as follows. It is to be noted that whether the condition B1-U is true or false and whether the condition B1-V is true or false can be determined based on a flag indicating the presence / absence of the significant coefficient of the color difference component in each TU (an example of a color difference-related parameter).

[0107] Condition B1-U: The block boundary is a TU boundary, and for two TUs each including pixels of the uppermost row among rows as bS calculation targets and having the block boundary disposed therebetween, a significant coefficient of the U component exists in at least any one of the two TUs.

[0108] Condition B1-V: The block boundary is a TU boundary, and for two TUs each including pixels of the uppermost row among rows as bS calculation targets and having the block boundary disposed therebetween, a significant coefficient of the V component exists in at least any one of the two TUs.

[0109] In this embodiment, the necessity / unnecessity of application of the deblocking filter to the color difference component in the decoded image is determined based on bS calculated using the above-mentioned conditions B1-U and B1-V related to the color difference. With this configuration, the deblocking filter can be appropriately applied to the color difference component.

[0110] In addition, in the present embodiment, as described later, the necessity / unnecessity of applying a deblocking filter to the color difference component in the decoded image is also determined based on the size in the direction orthogonal to the block boundary. With this configuration, even in the case where the shape of each block is a non-square rectangle, the deblocking filter can be applied more appropriately.

[0111] In addition, in the present embodiment, a strong filter (having a strong low-pass characteristic) having a higher strength than the strong filter of non-patent document 1 can be applied to the color difference component in the decoded image, as described later. In addition, in the present embodiment, in order to more appropriately apply such a strong filter, the filter strength is determined by a method different from the method in the filter strength determination process of non-patent document 1. With this configuration, block distortion can be further reduced.

[0112] So far, the overview of one embodiment according to the present disclosure has been described. Hereinafter, the configuration and operation for achieving the above-mentioned effects according to the present embodiment will be described in detail in order.

[0113] <2. Schematic Configuration of Device>

[0114] First, we will use Figure 5 and Figure 6 A schematic configuration of a device as an example to which the technology disclosed in this specification can be applied is described. The technology disclosed in this specification can be applied to, for example, an image encoding device and an image decoding device.

[0115] [2-1. Image Coding Device]

[0116] Figure 5 1 is a block diagram depicting one configuration example of an image encoding device 10 which is one aspect of an image processing device according to one embodiment of the present disclosure.

[0117] according to Figure 5 The image encoding device 10 includes a reordering buffer 11, a control unit 12, a subtraction unit 13, an orthogonal transformation unit 14, a quantization unit 15, a lossless encoding unit 16, a storage buffer 17, an inverse quantization unit 21, an inverse orthogonal transformation unit 22, an addition unit 23, a loop filter 24, a frame memory 30, a switch 31, a mode setting unit 32, an intra-frame prediction unit 40 and an inter-frame prediction unit 50.

[0118] The reordering buffer 11 reorders a series of images (original images) to be encoded according to the GOP (Group of Pictures) structure for encoding processing. The reordering buffer 11 outputs the reordered images to the control section 12, the subtraction section 13, the intra prediction section 40 and the inter prediction section 50.

[0119] The control unit 12 divides the image into processing unit blocks based on an external or pre-specified processing unit block size. By dividing into blocks by the control unit 12, a CU of a quadtree block structure or a QTBT (quadtree plus binary tree) block structure can be formed as a processing unit. In addition, the control unit 12 determines parameters for encoding processing based on RDO (rate distortion optimization), for example. The determined parameters are provided to each unit.

[0120] The subtraction section 13 calculates a prediction error indicating a difference between the image input from the rearrangement buffer 11 and the predicted image, and outputs the calculated prediction error to the orthogonal transformation section 14 .

[0121] The orthogonal transform section 14 performs an orthogonal transform process on each of one or more transform blocks (TU) set in each region. The orthogonal transform may be, for example, a discrete cosine transform or a discrete sine transform. More specifically, the orthogonal transform section 14 transforms the prediction error input from the subtraction section 13 from the image signal of the spatial region into a transform coefficient of the frequency region for each of the transform blocks. Then, the orthogonal transform section 14 outputs the transform coefficient to the quantization section 15.

[0122] Furthermore, the orthogonal transform section 14 may generate flags, each flag indicating the presence / absence of a significant coefficient of a corresponding component (Y component, U component, and V component) in each TU, based on the transform coefficient obtained by the orthogonal transform, and the orthogonal transform section 14 may output the flags to the lossless encoding section 16 and the loop filter 24. Note that the flag indicating the presence / absence of a significant coefficient of the U component in each TU generated by the orthogonal transform section 14 and the flag indicating the presence / absence of a significant coefficient of the V component in each TU generated by the orthogonal transform section 14 are included in the color difference related parameters.

[0123] The transform coefficient input from the orthogonal transform section 14 and a rate control signal (described later) from the rate control section 18 are supplied to the quantization section 15. The quantization section 15 quantizes the transform coefficient and outputs the quantized transform coefficient (hereinafter, also referred to as quantized data) to the lossless encoding section 16 and the inverse quantization section 21. In addition, by switching the quantization scale based on the rate control signal from the rate control section 18, the quantization section 15 changes the bit rate of the quantized data to be input to the lossless encoding section 16.

[0124] The lossless encoding section 16 generates an encoded stream by encoding the quantized data input from the quantization section 15. In addition, the lossless encoding section 16 encodes various parameters to be referred to by the decoder and inserts the encoded parameters into the encoded stream. The parameters to be encoded by the lossless encoding section 16 may include the above-mentioned parameters determined by the control section 12.

[0125] In addition, the parameters to be encoded by the lossless encoding section 16 may include color difference related parameters. The color difference related parameters to be encoded by the lossless encoding section 16 include a flag indicating the presence / absence of a significant coefficient of the U component in each TU and a flag indicating the presence / absence of a significant coefficient of the V component in each TU input from the orthogonal transform section 14, as previously described. The lossless encoding section 16 outputs the generated encoded stream to the storage buffer 17.

[0126] By using a storage medium such as a semiconductor memory, the storage buffer 17 temporarily stores the encoded stream input from the lossless encoding section 16. Then, the storage buffer 17 outputs the stored encoded stream to a transmission section (e.g., a connection interface or a communication interface to a peripheral device) (not shown) at a rate corresponding to the frequency band of the transmission path.

[0127] The rate control section 18 monitors the free capacity of the storage buffer 17. In addition, the rate control section 18 generates a rate control signal according to the free capacity of the storage buffer 17, and outputs the generated rate control signal to the quantization section 15. For example, when the free capacity of the storage buffer 17 is small, the rate control section 18 generates a rate control signal for reducing the bit rate of the quantized data. For example, when the free capacity of the storage buffer 17 is sufficiently large, the rate control section 18 generates a rate control signal for increasing the bit rate of the quantized data.

[0128] The inverse quantization unit 21, the inverse orthogonal transformation unit 22, and the addition unit 23 constitute a local decoder. The local decoder has a function of locally decoding the encoded data into a decoded image.

[0129] The inverse quantization section 21 restores the transform coefficient by inversely quantizing the quantized data using the same quantization parameter as the parameter used by the quantization section 15. Then, the inverse quantization section 21 outputs the restored transform coefficient to the inverse orthogonal transform section 22.

[0130] The inverse orthogonal transform section 22 restores the prediction error by performing an inverse orthogonal transform process on the transform coefficient input from the inverse quantization section 21. Then, the inverse orthogonal transform section 22 outputs the restored prediction error to the addition section 23.

[0131] The addition section 23 generates a decoded image (reconstructed image) by adding the restored prediction error input from the inverse orthogonal transform section 22 to the predicted image input from the intra prediction section 40 or the inter prediction section 50. Then, the addition section 23 outputs the generated decoded image to the loop filter 24 and the frame memory 30.

[0132] In order to improve the image quality of the decoded image, the loop filter 24 applies a series of loop filters. For example, as described in "2.5. Loop Filtering" in reference REF3, the four loop filters may be applied in the order of a bilateral filter, a deblocking filter, an adaptive offset filter, and an adaptive loop filter. For example, Figure 5 The loop filter 24 depicted in FIG. 2 includes a bilateral filter 25, a deblocking filter 26a, an adaptive offset filter 27, and an adaptive loop filter 28, so that these four loop filters can be applied sequentially. However, the loop filter 24 is not limited to this configuration. Which of the four loop filters is applied and the order in which the loop filters are applied can be appropriately selected. It should be noted that the deblocking filter 26a will be described in detail later.

[0133] The loop filter 24 outputs the decoded image to which the loop filter has been applied to the frame memory 30 .

[0134] By using a storage medium, the frame memory 30 stores the unfiltered decoded image input from the adding section 23 and the decoded image input from the loop filter 24 that has been subjected to application of the loop filter.

[0135] The switch 31 reads out the unfiltered decoded image from the frame memory 30 for intra prediction, and supplies the read decoded image as a reference image to the intra prediction section 40. In addition, the switch 31 reads out the filtered decoded image from the frame memory 30 for inter prediction, and supplies the read decoded image as a reference image to the inter prediction section 50.

[0136] The mode setting section 32 sets the prediction encoding mode for each block based on the comparison between the cost input from the intra prediction section 40 and the cost input from the inter prediction section 50. For the block for which the intra prediction mode has been set, the mode setting section 32 outputs the prediction image generated by the intra prediction section 40 to the subtraction section 13 and the addition section 23, and outputs the information on the intra prediction to the lossless encoding section 16. For the block for which the inter prediction mode has been set, the mode setting section 32 outputs the prediction image generated by the inter prediction section 50 to the subtraction section 13 and the addition section 23, and outputs the information on the inter prediction to the lossless encoding section 16.

[0137] The intra prediction section 40 performs intra prediction processing based on the original image and the decoded image. For example, for each of the prediction mode candidates included in the search range, the intra prediction section 40 evaluates the cost based on the prediction error and the amount of code generated. Next, the intra prediction section 40 selects the prediction mode with the smallest cost as the optimal prediction mode. In addition, the intra prediction section 40 generates a predicted image based on the selected optimal prediction mode. Then, the intra prediction section 40 outputs information related to intra prediction including prediction mode information indicating the optimal prediction mode, the corresponding cost, and the predicted image to the mode setting section 32.

[0138] The inter-frame prediction section 50 performs inter-frame prediction processing (motion compensation) based on the original image and the decoded image. For example, for each of the prediction mode candidates included in a specific search range, the inter-frame prediction section 50 evaluates the cost based on the prediction error and the amount of code generated. Next, the inter-frame prediction section 50 selects the prediction mode in which the cost becomes the smallest (i.e., the prediction mode in which the compression rate becomes the largest) as the optimal prediction mode. In addition, the inter-frame prediction section 50 generates a predicted image based on the selected optimal prediction mode. Then, the inter-frame prediction section 50 outputs information related to the inter-frame prediction, the corresponding cost, and the predicted image to the mode setting section 32.

[0139] [2-2. Image Decoding Device]

[0140] Next, decoding of data obtained by the above encoding will be described. Figure 6 1 is a block diagram illustrating a configuration example of an image decoding device 60 which is one aspect of an image processing device according to the present embodiment. Figure 6 The image decoding device 60 includes a storage buffer 61, a lossless decoding unit 62, an inverse quantization unit 63, an inverse orthogonal transform unit 64, an addition unit 65, a loop filter 66, a reordering buffer 72, a D / A (digital to analog) conversion unit 73, a frame memory 80, selectors 81a and 81b, an intra-frame prediction unit 90 and an inter-frame prediction unit 100.

[0141] The storage buffer 61 temporarily stores the encoded stream received from the image encoding device 10 via a transmission section (for example, a connection interface or a communication interface to a peripheral device) (not shown) by using a storage medium.

[0142] The lossless decoding section 62 generates quantized data by decoding the encoded stream input from the storage buffer 61 according to the encoding scheme used during encoding. The lossless decoding section 62 outputs the generated quantized data to the inverse quantization section 63.

[0143] In addition, the lossless decoding section 62 parses various types of parameters from the encoded stream. The parameters to be parsed by the lossless decoding section 62 may include, for example, information on intra prediction and information on inter prediction. The lossless decoding section 62 outputs the information on intra prediction to the intra prediction section 90. In addition, the lossless decoding section 62 outputs the information on inter prediction to the inter prediction section 100.

[0144] In addition, the parameters to be parsed by the lossless decoding section 62 may include color difference related parameters. The lossless decoding section 62 outputs the color difference related parameters to the loop filter 66. It is to be noted that the color difference related parameters to be parsed by the lossless decoding section 62 include, for example, the above-mentioned flag indicating the presence / absence of the significant coefficient of the U component in each TU and the above-mentioned flag indicating the presence / absence of the significant coefficient of the V component in each TU.

[0145] The inverse quantization section 63 restores the transform coefficient by inversely quantizing the quantized data input from the lossless decoding section 62 using the same quantization procedure as that used during encoding. The inverse quantization section 63 outputs the restored transform coefficient to the inverse orthogonal transform section 64.

[0146] The inverse orthogonal transform section 64 generates a prediction error by performing an inverse orthogonal transform on the transform coefficient input from the inverse quantization section 63 according to the orthogonal transform scheme used during encoding. The inverse orthogonal transform section 64 outputs the generated prediction error to the addition section 65.

[0147] The addition section 65 generates a decoded image by adding the prediction error input from the inverse orthogonal transform section 64 and the predicted image input from the selector 81 b. Then, the addition section 65 outputs the generated decoded image to the loop filter 66 and the frame memory 80.

[0148] In order to improve the image quality of the decoded image, the loop filter 66 applies a series of loop filters. For example, as described in "2.5. Loop Filtering" of reference REF3, the four loop filters may be applied in the order of a bilateral filter, a deblocking filter, an adaptive offset filter, and an adaptive loop filter. For example, Figure 6 The loop filter 66 depicted in FIG. 6 includes a bilateral filter 67, a deblocking filter 26 b, an adaptive offset filter 69, and an adaptive loop filter 70, so that these four loop filters can be applied sequentially. However, the loop filter 66 is not limited to this configuration. Which of the four loop filters is applied and the order in which the loop filters are applied can be appropriately selected. It should be noted that the deblocking filter 26 b will be described in detail later.

[0149] The loop filter 66 outputs the decoded image to which the loop filter has been applied to the reordering buffer 72 and the frame memory 80 .

[0150] The reordering buffer 72 generates a group of time-series images by reordering the images input from the loop filter 66. Then, the reordering buffer 72 outputs the generated images to the D / A conversion section 73.

[0151] The D / A conversion section 73 converts the digital image input from the reordering buffer 72 into an analog image signal. Then, the D / A conversion section 73 causes a display (not shown) connected to the image decoding device 60 to display an image, for example, by outputting the analog image signal to the display.

[0152] By using a storage medium, the frame memory 80 stores the unfiltered decoded image input from the adding section 65 and the decoded image input from the loop filter 66 that has been subjected to application of the loop filter.

[0153] For each block in the image, the selector 81a switches the output destination of the image from the frame memory 80 to the intra prediction section 90 or the inter prediction section 100 according to the prediction mode information acquired by the lossless decoding section 62. For example, in the case where the intra prediction mode is specified, the selector 81a outputs the unfiltered decoded image supplied from the frame memory 80 as a reference image to the intra prediction section 90. Also, in the case where the inter prediction mode is specified, the selector 81a outputs the filtered decoded image as a reference image to the intra prediction section 100.

[0154] The selector 81b switches the output source of the predicted image to be supplied to the addition section 65 to the intra prediction section 90 or the inter prediction section 100 according to the prediction mode information acquired by the lossless decoding section 62. For example, in the case where the intra prediction mode is specified, the selector 81b supplies the predicted image output from the intra prediction section 90 to the addition section 65. Also, in the case where the inter prediction mode is specified, the selector 81b supplies the predicted image output from the inter prediction section 100 to the addition section 65.

[0155] The intra prediction section 90 generates a predicted image by performing an intra prediction process based on the information on intra prediction input from the lossless decoding section 62 and the reference image from the frame memory 80. Then, the intra prediction section 90 outputs the generated predicted image to the selector 81b.

[0156] The inter prediction section 100 generates a predicted image by performing an inter prediction process based on the information on inter prediction input from the lossless decoding section 62 and the reference image from the frame memory 80. Then, the inter prediction section 100 outputs the generated predicted image to the selector 81b.

[0157] <3. Deblocking filter>

[0158] [3-1. Configuration example of deblocking filter]

[0159] In this chapter, we will explain Figure 5 A configuration example of the deblocking filter 26a of the image encoding device 10 depicted in FIG. Figure 6 26a and 26b are collectively referred to as the deblocking filter 26, unless there is a particular need to distinguish between the two.

[0160] As previously described, the deblocking filter 26 according to the present embodiment determines the necessity / unnecessity of applying the deblocking filter to the color difference component in the decoded image based on the bS calculated using the color difference related parameters related to the color difference. In addition, as previously described, the deblocking filter 26 according to the present embodiment also determines the necessity / unnecessity of applying the deblocking filter to the color difference component in the decoded image based on the size in the direction orthogonal to the block boundary. In addition, as previously described, the deblocking filter 26 according to the present embodiment can apply a strong filter having a higher strength (having a strong low-pass characteristic) than the strong filter of non-patent document 1 to the color difference component in the decoded image. In addition, in order to appropriately apply such a strong filter in the present embodiment, the filter strength is determined by a method different from the method in the filter strength determination process in non-patent document 1. It is to be noted that, hereinafter, the function of the deblocking filter 26 regarding the deblocking filter mainly applied to the color difference component in the decoded image will be described, and the function of the deblocking filter 26 regarding the deblocking filter applied to the luminance component will be appropriately omitted.

[0161] Figure 7 2 is a block diagram illustrating a detailed configuration example of the deblocking filter 26 according to the present embodiment. Figure 7 The deblocking filter 26 includes a boundary strength calculation unit 261 , a determination unit 263 and a filtering unit 269 .

[0162] (1) Boundary strength calculation unit

[0163] The boundary strength calculation unit 261 calculates bS (boundary strength) of the block boundary in the decoded image by using the color difference related parameters related to the color difference. When the YUV420 format signal is the target, the boundary strength calculation unit 261 calculates bS for every 4 lines of the luminance component in the decoded image, that is, every 2 lines of the color difference component in the decoded image.

[0164] In this embodiment, the color difference related parameters used by the boundary strength calculation unit 261 to calculate bS include a flag indicating the presence / absence of a significant coefficient of the U component in each TU and a flag indicating the presence / absence of a significant coefficient of the V component in each TU. Figure 7 As depicted in , a flag indicating the presence / absence of a significant coefficient of a corresponding component (Y component, U component, and V component) in each TU is input from the orthogonal transform section 14 or the lossless decoding section 62 to the boundary strength calculation section 261.

[0165] The boundary strength calculation unit 261 is based on the reference Figure 4 bS is calculated by the conditions A, B1-Y, B1-U, B1-V, and B2 described above. That is, the boundary strength calculation unit 261 calculates bS based on whether there are effective coefficients of the color difference component in the TUs set on both sides of the block boundary as the bS calculation target. In addition, the boundary strength calculation unit 261 according to the present embodiment can calculate bS by respectively determining whether there are corresponding effective coefficients of the Y component, the U component, and the V component in the TUs set on both sides of the block boundary as the bS calculation target. With this configuration, the bS is calculated in accordance with the previously described method. Figure 2 Compared to the case described above where bS is calculated based on whether or not there is a significant coefficient of the Y component, bS suitable for the U component and the V component is calculated. Therefore, the deblocking filter can be applied more appropriately.

[0166] Will refer to Figure 8 The calculation of bS by the boundary strength calculation unit 261 will be described in more detail. Figure 8 is a table depicting an example of bS calculated by the boundary strength calculation unit 261. The bS calculated by the boundary strength calculation unit 261 can be represented by a plurality of bits. Figure 8 In the depicted example, bS is represented by 5 bits. In addition, bS can be calculated so that the plurality of bits include at least one bit corresponding to the Y component, at least one bit corresponding to the U component, and at least one bit corresponding to the V component. With this configuration, when determining the necessity / unnecessity of application of the deblocking filter based on bS (described later), the determination section 263 refers to the corresponding bit of bS for each determination target component. Therefore, determination can be easily performed.

[0167] In addition, the boundary strength calculation unit 261 may calculate bS so that the bits included in bS correspond to whether the corresponding condition is true or false. Figure 8 In the depicted example, bS is calculated so that the bits corresponding to the true conditions are set to 1, and the bits corresponding to the false conditions are set to 0. Figure 8In the depicted example, bS is represented by 5 bits, the fifth bit of bS corresponds to condition A regarding intra prediction, the fourth bit of bS corresponds to condition B1-Y regarding the significant coefficient of the Y component, the third bit of bS corresponds to condition B1-U regarding the significant coefficient of the U component, the second bit of bS corresponds to condition B1-V regarding the significant coefficient of the V component, and the first bit of bS corresponds to condition B2 regarding MV and reference picture. However, the correspondence between the bits of bS and the conditions is not limited to Figure 8 For example, the order of the fourth bit, the third bit, and the second bit of bS, ie, the bits corresponding to the Y component, the U component, and the V component, respectively, may be changed.

[0168] (2) Determination

[0169] like Figure 7 As depicted, the determination section 263 includes: an application necessity / unnecessity determination section 265 that determines the necessity / unnecessity of applying a deblocking filter to a color difference component in a decoded image; and a filter strength determination section 267 that determines the filter strength of the deblocking filter to be applied to the color difference component in the decoded image. Hereinafter, the function of the application necessity / unnecessity determination section 265 and the function of the filter strength determination section 267 will be sequentially described.

[0170] It should be noted that the following will mainly describe the determination of the necessity / unnecessity of applying the deblocking filter to the color difference component in the decoded image and the determination of the filter strength, and the description of the determination for the luminance component will be appropriately omitted. In addition, the application necessity / unnecessity determination unit 265 and the filter strength determination unit 267 according to the present embodiment determine the necessity / unnecessity and the filter strength of the deblocking filter separately for each of the U component and the V component, respectively.

[0171] The application necessity / unnecessity determination section 265 determines the necessity / unnecessity of applying a deblocking filter to the color difference component in the decoded image based on the bS (boundary strength) calculated by the boundary strength calculation section 261 in the above-mentioned manner with respect to the block boundary of the decoded image.

[0172] In addition, the application necessity / unnecessity determination unit 265 can also determine the necessity / unnecessity of applying a deblocking filter to the color difference component in the decoded image based on the block size of the blocks set on both sides of the block boundary. It is to be noted that, hereinafter, the determination based on such a block size may be referred to as a large block determination. In addition, the application necessity / unnecessity determination unit 265 does not necessarily need to perform a large block determination on all block boundaries, and may decide whether to perform a large block determination based on bS. It is to be noted that the case of performing a large block determination and the details of the large block determination will be described later.

[0173] The application necessity / unnecessity determination section 265 according to the present embodiment determines the necessity / unnecessity of applying the deblocking filter by determining the following condition C1 and determining the following condition C2.

[0174] Condition C1: (bS == 16 || (Condition C11 && Condition C12))

[0175] Condition C2: d <beta

[0176] Condition C11 in Condition C1 is given to determine whether to perform large block determination. Condition C12 is about large block determination. In the case where bS is 16, that is, in the case where Condition A about intra prediction is satisfied, large block determination is not required, and Condition C1 can be determined to be true. Therefore, in the case where bS has a value related to inter prediction, Condition C11 for determining whether to perform large block determination can be true. It is to be noted that by skipping large block determination in the case where bS is 16 and determining that Condition C1 is true as described above, the amount of processing for large block determination can be reduced.

[0177] In addition, even in the case where condition C11 among conditions C1 is false, determination of condition C12 (large block determination) is not performed, and condition C1 is determined to be false. With this configuration, the amount of processing for large block determination can be reduced.

[0178] In the case where the condition about the effective coefficient of each component or the condition B2 mentioned above is true, the condition C11 may be true. That is, the condition C11 may vary according to the determination target component. For example, in the case where the U component is the determination target, the following condition C11-U may be used as the condition C11, and in the case where the V component is the determination target, the following condition C11-V may be used as the condition C11.

[0179] Condition C11-U: (bS&0×04||bS&0×01)

[0180] Condition C11-V: (bS&0×02||bS&0×01)

[0181] In addition, the application necessity / unnecessity determination section 265 performs large block determination based on the size of each block set on both sides of the block boundary in the direction orthogonal to the block boundary. With this configuration, in the case where the block shape is a non-square rectangular shape, the necessity / unnecessity of application of the deblocking filter can be determined based on the size in the direction orthogonal to the block boundary. The size may affect the occurrence of block distortion.

[0182] In addition, the application necessity / unnecessity determination unit 265 can perform large block determination based on whether the size of each block set on both sides of the block boundary in the direction orthogonal to the block boundary is greater than a predetermined threshold. There is no limitation on the threshold used in the large block determination. For example, the threshold can be set to 16. In the case where the size in the direction orthogonal to the block boundary is small, especially in the case where the size is not greater than 16, the block noise is almost invisible. Therefore, with this configuration, unnecessary application of the deblocking filter can be avoided. For example, the condition C12 regarding the large block determination can be defined as follows.

[0183] Condition C12:

[0184] (EDGE_VER&&block_width>16)||(EDGE_HOR&&block_height>16)

[0185] It is to be noted that, in condition C12, EDGE_VER indicates that the block boundary as a determination target is a vertical boundary, and EDGE_HOR indicates that the block boundary as a determination target is a horizontal boundary.

[0186] In addition, since condition C2 is the same as condition C92 mentioned above, the description of condition C2 is omitted here. It should be noted that when condition C1 is true, determination of condition C2 is performed. When condition C1 is false, it is determined that the deblocking filter is not applied and determination of condition C2 is not required. Determination of condition C2 involves processing for calculating variable d by expressions (1) to (7) mentioned above, so that the processing amount is greater than the processing amount for determination of condition C1. Therefore, when determination of condition C2 follows determination of condition C1, the processing amount can be reduced.

[0187] In addition, after determining the necessity / unnecessity of application of the deblocking filter based on the conditions C1 and C2 in the above-mentioned manner, the filter strength determination section 267 further determines the filter strength of the deblocking filter to be applied to the color difference component in the decoded image. The deblocking filter that can be applied in the present embodiment can be divided into two types, that is, a weak filter with a lower strength and a strong filter with a higher strength, as described later. The filtering section 269 to be described later applies either a weak filter or a strong filter according to the filter strength determined by the filter strength determination section 267.

[0188] When the application of the deblocking filter is determined, the filter strength determination section 267 determines the filter strength. Since the determination of the filter strength follows the determination of the necessity / unnecessity of the application of the deblocking filter, the processing involved in the determination of the filter strength can be reduced.

[0189] In addition, the filter strength determination section 267 determines the filter strength based on the waveform of the color difference component in the pixels around the block boundary. Hereinafter, the waveform-based determination will be described. The filter strength determination section 267 determines the filter strength based on the following waveform-based condition C3.

[0190] Condition C3: (Condition C31 && Condition C32 && C33)

[0191] Condition C31: |p3-p0|+|q3-q0|<(beta>>3)

[0192] Condition C32: |p2-2*p1+p0|+|q2-2*q1+q0|<(beta>>2)

[0193] Condition C33: |p0-q0|<((t c *5+1)>>1)

[0194] For pixels included in two rows among pixels located around the block boundary, the filter strength determination section 267 performs determination of condition C3. Conditions C31, C32, and C33 used in C3 are determined for each row. Note that the conditions C31, C32, and C33 have been described above. i ,q k 、p i ′、q k ′, beta, and t c , so its description is omitted here.

[0195] Condition C31, condition C32, and condition C33 are determined using the pixels included in each row. More specifically, condition C31 is related to the flatness of the color difference components of the pixels included in each row in the block. In addition, condition C32 is related to the determination of the continuity of the color difference components of the pixels included in each row in the block. Furthermore, condition C33 is related to the gap (difference) between blocks of the color difference components of the pixels included in each row, and more specifically, condition C33 is a condition for determining the gap between blocks by using the values ​​of pixels adjacent to the block boundary.

[0196] When condition C31 is true, the flatness of the waveform of the color difference component is high in each block. In addition, when condition C32 is true, the continuity of the waveform of the color difference component is high in each block. In addition, when condition C33 is true, the waveform of the color difference component has a large gap at the block boundary.

[0197] Therefore, when conditions C31, C32, and C33 are all determined to be true, condition C3 is determined to be true. In addition, the filter strength determination unit 267 determines condition C3 for each row. However, as described above, the filter strength is determined for every 2 rows. That is, the filter strength is determined so that when conditions C3 are true for two consecutive rows, a strong filter is applied to the two rows, and when conditions C3 are false for two consecutive rows, a weak filter is applied to the two rows.

[0198] (3) Filter section

[0199] The filtering section 269 applies the deblocking filter to the color difference component of the pixels located around the block boundary based on the determination result regarding the application of the deblocking filter by the application necessity / unnecessity determination section 265. In addition, as explained above, the filtering section 269 adopts a weak filter or a strong filter as the deblocking filter according to the filter strength determined by the filter strength determination section 267.

[0200] The weak filter applied to the color difference component by the filter unit 269 according to the present embodiment may be the same as the weak filter applied to the color difference component in the decoded image in, for example, the above-mentioned non-patent document 1 or in HEVC. However, the strong filter applied to the color difference component in the present embodiment may be different from the strong filter applied to the color difference component in non-patent document 1 (the strong filter applied to the luminance component in HEVC). Hereinafter, an example of the strong filter applied to the color difference component in the present embodiment will be described.

[0201] The coefficient of the strong filter applied to the color difference component in the present embodiment may be 2 at the center position of the application target range of the strong filter, and may be 1 at any other position. In addition, the filtering unit 269 may set the application target range of the strong filter to a range of three pixels from the block boundary on each side, and may set three pixels from the center position of the application target range on each side as reference pixels, and may apply the strong filter to the color difference component of the pixels included in the application target range. For example, a strong filter whose application target range is at the center position of p0 is represented by the following expression (14).

[0202] p0′=Clip3(p0_w*t C , p0+w*t C , ((p3+p2+p1+2*p0+q0+q1+q2+4)>>3))…(14)

[0203] In Expression (14), w represents a weight that can be set appropriately. For example, w can be set to 1 or 2. As described above, Clip3 (a, b, c) represents a clipping process of clipping a value c within a range of a ≤ c ≤ b.

[0204] When such a strong filter is applied, a stronger deblocking filter than the strong filter applied to the color difference component in Non-Patent Document 1 can be applied.

[0205] In the case where the center position of the application target range of the strong filter is at the second pixel or the third pixel from the block boundary, the pixel separated from the block boundary by five or more pixels is included in the reference pixel. However, the pixel separated from the block boundary by five or more pixels is not used for determination of the filter strength, and is therefore not suitable for use as a reference pixel in some cases. Therefore, the filtering unit 269 can fill the pixel value of the fourth pixel separated from the block boundary and replace the pixel separated from the block boundary by five or more pixels, using the pixel value as the pixel value of the reference pixel.

[0206] For example, a strong filter whose application target range has its center position set at p1 is expressed by the following Expression (15).

[0207] p1′=Clip3(p1_w*t C , p1+w*t C , ((p4+p3+p2+2*p1+p0+q0+q1+4)>>3))

[0208] = Clip3(p1_w*t C , p1+w*t C , ((p3+p3+p2+2*p1+p0+q0+q1+4)>>3))

[0209] = Clip3(p1_w*t C , p1+w*t C , ((2*p3+p2+2*p1+p0+q0+q1+4)>>3))…(15)

[0210] Similarly, a strong filter whose application target range center position is set at p2 is expressed by the following Expression (16).

[0211] p2′=Clip3(p2_w*t C , p2+w*t C , ((p5+p4+p3+2*p2+p1+p0+q0+4)>>3))

[0212] = Clip3(p2_w*t C , p2+w*t C , ((p3+p3+p3+2*p2+p1+p0+q0+4)>>3))

[0213] = Clip3(p2_w*tC , p2+w*t C , ((3*p3+2*p2+p1+p0+q0+4)>>3))…(16)

[0214] Furthermore, similarly, strong filters whose center positions of application target ranges are set at q0 to q3, respectively, are expressed by the following expressions (17) to (19), respectively.

[0215] q0′=Clip3(q0-w*t C ,q0+w*t C , ((p2+p1+p0+2*q0+q1+q2+q3+4)>>3))…(17)

[0216] q1′=Clip3(q1-w*t C , q1+w*t0, ((p1+p0+q0+2*q1+q2+2*q3+4)>>3))…(18)

[0217] q2′=Clip3(q2-w*t C ,q2+w*t C , ((p0+q0+q1+2*q2+3*q3+4)>>3))…(19)

[0218] [3-2. Processing flow]

[0219] The configuration example of the deblocking filter 26 according to the present embodiment has been described above. Next, the flow of processing performed by the deblocking filter 26 according to the present embodiment will be described. Fig. 9 1 is a flowchart depicting an example of the flow of processing performed by the deblocking filter 26 according to the present embodiment. Note that, hereinafter, among the processing performed by the deblocking filter 26, processing related to the features of the present embodiment will be described, and description of the remaining processing will be appropriately omitted.

[0220] First, the boundary strength calculation unit 261 calculates bS (boundary strength) (S10). Fig.10 The bS calculation method is described in more detail. Fig.10 This is a flowchart for explaining the flow of the boundary strength calculation process ( S10 ) executed by the boundary strength calculation unit 261 .

[0221] First, the boundary strength calculation unit 261 initializes bS to 0 (S102). Next, the boundary strength calculation unit 261 determines whether condition A, which is a condition regarding intra prediction, is true or false (S104). When condition A is true ("Yes" at S104), bS is set to 16 (S106).

[0222] On the other hand, when the condition A is false (No at S104), the boundary strength calculation unit 261 determines whether the condition B2, which is a condition about the motion vector (MV) and the reference picture, is true or false (S108). When the condition B2 is true (Yes at S108), bS is set to 1 (S110).

[0223] On the other hand, in the case where the condition B2 is false ("No" at S108), the boundary strength calculation section 261 determines whether the condition B1-Y, which is a condition regarding the presence / absence of the effective coefficient of the Y component, is true or false (S112). In the case where the condition B1-Y is true ("Yes" at S112), 8 is added to bS (S114), and then, the process proceeds to step S116. On the other hand, in the case where the condition B1-Y is false ("No" at S112), the process proceeds directly to step S116.

[0224] At step S116, the boundary strength calculation section 261 determines whether the condition B1-U, which is a condition regarding the presence / absence of the effective coefficient of the U component, is true or false. In the case where the condition B1-U is true ("Yes" at S116), 4 is added to bS (S118), and then, the process proceeds to step S120. On the other hand, in the case where the condition B1-U is false ("No" at S116), the process proceeds directly to step S120.

[0225] At step S120, the boundary strength calculation section 261 determines whether the condition B1-V, which is a condition regarding the presence / absence of the effective coefficient of the V component, is true or false. In the case where the condition B1-V is true ("Yes" at S120), 2 is added to bS (S122), and then, the boundary strength calculation process (S10) ends. In the case where the condition B1-V is false ("No" at S120), the boundary strength calculation process (S10) ends directly.

[0226] Return to reference Fig. 9 , the description of the flow of the processing performed by the deblocking filter 26 will be continued. At step S20, the application necessity / unnecessity determination section 265 of the determination section 263 determines whether the above-mentioned condition C1 is true or false. In the case where the condition C1 is false ("No" at S20), the processing ends.

[0227] On the other hand, when condition C1 is true (Yes at S20), the application necessity / unnecessity determination unit 265 determines whether condition C2 is true or false (S30). When condition C2 is false (No at S30), the process ends.

[0228] On the other hand, in the case where the condition C2 is true ("Yes" at S30), the filter strength determination section 267 of the determination section 263 determines the filter strength by determining whether the above-mentioned condition C3 is true or false (S40). In the case where the condition C3 is true ("Yes" at S40), the filter section 269 applies a strong filter to the color difference components of the pixels located around the block boundary (S50). On the other hand, in the case where the condition C3 is false ("No" at S40), the filter section 269 applies a weak filter to the color difference components of the pixels located around the block boundary (S60).

[0229] The flow of the processing performed by the deblocking filter 26 according to the present embodiment has been described above. Note that in the YUV420 format, for example, for every 4 lines of the luminance component in the decoded image, that is, for every 2 lines of the color difference component in the decoded image, the processing which has been referred to is performed. Fig. 9 and Fig.10 The above processing is described.

[0230] <New DF>

[0231] Hereinafter, the new DF (deblocking filter) will be explained.

[0232] It is to be noted that documents related to the present technology include the following documents which are conventional technologies and are incorporated into the present specification by reference.

[0233] [JVET-L0072(version 1-date 2θ18-θ9-25 0θ:23:50)]

[0234] K.Andersson, Z.Zhang, R.Sjoberg: CE11: Long deblocking fitters for luma(CE11.1.1)and for both luma and chroma(CE11.1.9), Joint Video Experts Team(JVET) of ITU-T SG 16 WP 3and ISO / IEC JTC 1 / SC 29 / WG 11 12th Meeting, Macao, CN, 3-12 Oct.2018.

[0235] [JVET-L0224(version 1-date 2018-09-25 01:59:53)]

[0236] Anand Meher Kotra,Biao Wang,Semih Esenlik,Han Gao,Zhijie Zhao,JianleChen:CE11.1.8:Longer tap Luma deblocking filter,Joint Video Experts Team(JVET)of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11 12th Meeting,Macao,CN,3-12 Oct.2018.

[0237] [JVET-L0403r1(version 3-date 2018-10-04 05:13:00)]

[0238] Dmytro Rusanovskyy,Marta Karczewicz:CE11:Test on long deblockingfiltering from JVET-J0021 / JVET-K0334(CE11.1.4).Joint Video Experts Team(JVET)of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11 12th Meeting,Macao,CN,3-12Oct.2018.

[0239] [JVET-L0405r1(version 2-date 2θ18-1θ-θ3 07:14:31)]

[0240] Weijia Zhu,Kiran Misra,Phil Cowan,Andrew Segall:CE11:Deblockingmodifications for Large CUs both luma and chroma(Test 11.1.7a and CE11.1.7b).Joint Video Experts Team(JVET)of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG11 12th Meeting,Macao,CN,3-12 Oct.2018.

[0241] [JVET-L0327-v1(version 1-date 2018-09-25 02:33:13)]

[0242] Masaru Ikeda, Teruhiko Suzuki: CE11: Long-tap deblocking filter for lumaand chroma(CE11.1.6).Joint Video Experts Team(JVET) of ITU-T SG 16 WP 3 andISO / IEC JTC 1 / SC 29 / WG 11 12th Meeting, Macao, CN, 3-12 Oct.2018.

[0243] In addition, the scope disclosed in this specification is not limited to the embodiments, and the disclosure in reference REF4, which is already known at the time of filing this application, is also incorporated into this specification by reference. That is, the disclosure in reference REF4 is also used as a basis for determination of support requirements.

[0244] REF4:[JVET-K1002-v2(version 3-date 2018-10-02 16:37:03)]

[0245] Jianle Chen,Yan Ye,Seung Hwan Kim:Algorithm description for VersatileVideo Coding and Test Model 2(VTM 2),Joint Video Experts Team(JVET)of ITU-TSG 16WP 3and ISO / IEC JTC 1 / SC 29 / WG 11 11th Meeting,Ljubljana,SI,10-18July2018.

[0246] The block size used for encoding in VVC is large (8 times larger than in AVC and 2 times larger than in HEVC), making the degradation of block boundaries noticeable.

[0247] In the case where strong noise is generated in a large block with a large block size, the DF (deblocking filter) in HEVC cannot always completely eliminate the block noise.

[0248] In addition, in VVC, in the intra case, different block partitions can be selected for the luma component and the color difference component. Therefore, the block size can be optimized separately for the luma component and the color difference component. It is known that when large blocks are used for the color difference component and small blocks with small block sizes are used for the luma component, the coding efficiency is improved. Therefore, the importance of DF for large blocks of color difference components is increasing.

[0249] In large blocks, block noise (block distortion) may become large. In order to properly remove large block noise, a DF with a high filter strength (i.e., blurring the image more) is required.

[0250] The filter that makes the image more blurred is a long tap filter (the number of taps is large). Therefore, in order to appropriately eliminate large block noise, it is necessary to adopt a long tap filter as the DF to be applied to the luminance component and the color difference component.

[0251] In the case of adopting a long tap filter as DF, for example, it is necessary to prepare a row buffer for pixels required in the filtering process at the block boundary, that is, at the horizontal boundary if DF is applied in raster scan order. For example, in the case where 8 pixels set in the vertical direction orthogonal to the horizontal boundary are used for the filtering process performed by DF, when 4 pixels of these 8 pixels are included in the block on the upper side of the horizontal boundary, a row buffer for storing pixels (pixel values) in 4 rows is required.

[0252] When a large-capacity line buffer is provided for DF, the cost becomes high. When the capacity of the line buffer is reduced in view of the cost, a long tap filter cannot be adopted as DF. In this case, since the performance of DF is degraded, block noise cannot be sufficiently eliminated.

[0253] Therefore, it is desirable to decide the size of DF by balancing cost and performance. Note that in AVC and HEVC, DF is designed without considering the line buffer capacity.

[0254] To this end, the present technology proposes a new DF (hereinafter, also referred to as new DF).

[0255] Note that, unless otherwise mentioned, the following description is about the color difference component. The description about the brightness component will be omitted.

[0256] Fig.11 is a block diagram depicting a configuration example of the DF 300 as a new DF.

[0257] The DF 300 can be used as a DF 26.

[0258] It should be noted that Fig.11 Zhongyu Figure 7 The corresponding parts of the DF 26 in FIG. 1 are denoted by the same reference numerals. Hereinafter, the description of these parts will be appropriately omitted.

[0259] exist Fig.11 , the DF 300 includes a boundary strength calculation section 261 , a determination section 310 , a filtering section 320 , a line buffer 330 , and a control section 340 .

[0260] Therefore, DF 300 and Figure 7 DF 26 in DF 300 has the same feature of including a boundary strength calculation section 261. However, DF 300 is different from DF 26 in that it includes a determination section 310 and a filtering section 320 instead of the determination section 263 and the filtering section 269. Furthermore, DF 300 is different from DF 26 in that it additionally includes a control section 340.

[0261] It should be noted that, like the DF 300, Figure 7 The depicted DF 26 includes a row buffer (which is Figure 7 However, the capacity of the line buffer 330 of the DF 300 may be different from the capacity of the line buffer of the DF 26.

[0262] The determination section 310 includes an application necessity / unnecessity determination section 311 and a filter strength determination section 312 .

[0263] bS from the boundary strength calculation section 261 is supplied to the application necessity / unnecessity determination section 311. In addition, bS from the outside of the DF 300 ( Figure 5 The addition part 23 or Figure 6 The decoded image of the adding section 65 in the example or the line buffer 330 is supplied to the application necessity / unnecessity determination section 311.

[0264] With Figure 7 In a similar manner to the application necessity / unnecessity determination section 265 in FIG. 2 , the application necessity / unnecessity determination section 311 performs application necessity / unnecessity determination processing by using bS from the boundary strength calculation section 261 and also a decoded image from the external or line buffer 330 of the DF 300 .

[0265] It is to be noted that the application necessity / unnecessity determination section 311 performs a step difference determination based on bS to determine whether there is a high possibility of a step difference on a block boundary. For example, in a case where bS is greater than 0 (not less than 1), the application necessity / unnecessity determination section 311 determines that there is a high possibility of a step difference on a block boundary. Then, after determining that there is a high possibility of a step difference on a block boundary through the step difference determination, the application necessity / unnecessity determination section 311 performs a filter application determination to determine whether to apply DF to pixels of a color difference component located around a block boundary. The application necessity / unnecessity determination processing performed by the application necessity / unnecessity determination section 311 includes the above-mentioned step difference determination and the above-mentioned filter application determination.

[0266] The application necessity / unnecessity determination section 311 supplies the determination result of the filter application determination to the filter strength determination section 312 as the determination result of the application necessity / unnecessity determination process.

[0267] Not only the determination result of the filter application determination from the application necessity / unnecessity determination section 311 but also a decoded image from the outside of the DF 300 or the line buffer 330 is supplied to the filter strength determination section 312 .

[0268] In the case where the filter application determination made by the application necessity / unnecessity determination section 311 indicates that the DF is to be applied, the filter strength determination section 312 determines the filter strength by using the decoded image from the external or line buffer 330 of the DF 300 to match the filter strength determination section 312. Figure 7 The filter strength determination unit 321 performs filter strength determination for determining the filter strength of the DF of the color difference component to be applied to the decoded image in a similar manner to the filter strength determination unit 267 in the decoded image, that is, filter type determination for determining the filter type to be applied to the DF of the color difference component in the decoded image. Then, the filter strength determination unit 321 supplies the determination result of the filter type determination to the filtering unit 320.

[0269] In the new DF, for example, the filter type of the DF to be applied to the color difference component in the decoded image includes two types, namely, a weak filter having a lower filter strength (than a strong filter) and a strong filter having a higher filter strength (than the weak filter).

[0270] Not only the determination result of the filter type determination from the filter strength determination section 312 but also a decoded image from the outside of the DF 300 or the line buffer 330 is supplied to the filtering section 320 .

[0271] The filter unit 320 is Figure 7 In a similar manner to the filtering section 269 in the DF 300, a filtering process of applying a strong filter or a weak filter indicated by the determination result of the filter type determination from the filter strength determination section 312 to the decoded image is performed. That is, the filtering section 320 performs calculation of the filtering process as a target pixel, which is a pixel of the color difference component to be filtered in the decoded image from the outside of the DF 300 or the line buffer 330, by using the pixels of the color difference component located around the target pixel. Here, the pixels used in the filtering process are also referred to as filter constituent pixels.

[0272] The filtering section 320 outputs the pixel (of the color difference component) obtained by the filtering process of the target pixel as a filtered pixel (a pixel constituting a filtered image subjected to the filtering process).

[0273] The decoded image is supplied to the line buffer 330 from the outside of the DF 300. The line buffer 330 appropriately stores the pixels of the color difference components in the decoded image from the outside of the DF 300 (the color difference components of the pixels in the decoded image). It is to be noted that the line buffer 330 has a storage capacity for storing pixels of the color difference components of a predetermined number of lines, so that after storing the pixels to the storage capacity, the line buffer 330 stores the new pixels by overwriting the oldest pixels.

[0274] The control unit 340 controls the blocks constituting the DF 300 .

[0275] It should be noted that in the present embodiment, it is assumed that the DF 300 processes the decoded image in a raster scan order, for example. In the case where the following operation is repeated, for example, from the left side to the right side: the decoded image is not processed in a raster scan order but in a downward manner in the vertical direction, the horizontal direction (lateral direction) (left and right) and the vertical direction (vertical direction) (up and down) in the following description are reversed (swapped).

[0276] Fig.12 is a diagram depicting a configuration example of a decoded image processed by the DF 300 .

[0277] The blocks constituting the decoded image include CTU. CTU includes blocks such as PU or TU.

[0278] Fig.11 The boundary strength calculation section 261, the determination section 310, and the filtering section 320 of the DF 300 in the embodiment may perform, for example, CTU-based processing. In this case, a buffer (hereinafter also referred to as an internal buffer) not shown that can store CTU is provided.

[0279] Here, among block boundaries, a boundary of a CTU is referred to as a CTU boundary, and further, a block boundary other than a CTU boundary is referred to as an internal boundary. In addition, it is assumed that a CTU to be processed by the DF 300 is referred to as a focus CTU.

[0280] The boundary strength calculation section 261 , the determination section 310 , and the filtering section 320 store pixels in a line included in the focused CTU in an internal buffer, and process the focused CTU.

[0281] For an internal boundary in the horizontal direction in the focused CTU, pixels in blocks disposed above and below the internal boundary are stored in the internal buffer and thus do not need to be stored in the line buffer 330 .

[0282] In addition, for the upper CTU boundary in the horizontal direction of the CTU of interest, the pixels in the block below the CTU boundary are stored in the internal buffer, and therefore, do not need to be stored in the line buffer 330. However, the pixels in the block on the upper CTU boundary in the horizontal direction are the pixels in the CTU in the upper row in the CTU of interest, and therefore, are not stored in the internal buffer. Therefore, it is necessary to store the pixels in the block on the upper side of the upper CTU boundary in the horizontal direction of the CTU of interest in the line buffer 330.

[0283] The reason why the line buffer 330 is required has been explained above.

[0284] Fig.13 Is used to illustrate the Fig.11 Flowchart of the processing performed by the DF 300 in FIG.

[0285] In the DF 300 , the line buffer 330 appropriately stores pixels of a color difference component in a decoded image supplied from the outside of the DF 300 .

[0286] Then, at step S211, the boundary strength calculation section 261 calculates bS in the above-described manner, and supplies the bS to the application necessity / unnecessity determination section 311. Then, the process proceeds to step S212.

[0287] At step S212 , the application necessity / unnecessity determination section 311 performs a step difference determination of determining whether bS is greater than zero.

[0288] In the case where it is determined as a result of the step difference determination at step S212 that bS is not greater than 0, that is, in the case where there is no possibility of any step difference on the block boundary, the process ends. Therefore, in this case, the filtering process of the DF 300 is not applied to the decoded image.

[0289] On the other hand, in the case where it is determined as a result of the step difference determination at step S212 that bS is greater than 0, that is, in the case where there is a possibility of a step difference on the block boundary, the process proceeds to step S213.

[0290] At step S213 , the application necessity / unnecessity determination section 311 performs filter application determination of determining whether to apply DF to the pixels of the color difference component located around the block boundary.

[0291] In the case where it is determined to avoid applying DF (not apply) as a result of the filter application determination at step S213 , the process ends.

[0292] On the other hand, in the event that it is determined that DF is applied as a result of the filter application determination at step S213 , the process proceeds to step S214 .

[0293] At step S214, the filter strength determination section 312 performs filter type determination. Then, the process proceeds to step S215.

[0294] At step S215, the filter section 320 performs a filtering process to apply a strong filter or a weak filter indicated by the determination result of the filter type determination at step S214 to the decoded image. Then, the process ends.

[0295] Fig.14 It is a diagram for explaining DF in HEVC.

[0296] DF in HEVC includes filters Y1, Y2 and C1.

[0297] The filter Y1 is a strong filter for the luminance component. The filter Y1 performs a filtering process on the luminance component which is a DF target.

[0298] The filter Y2 is a weak filter for the luminance component. The filter Y2 performs a filtering process on the luminance component which is a DF target.

[0299] The filter C1 is a filter for a color difference component. The filter C1 performs a filter process on the color difference component which is a DF target.

[0300] In HEVC, only filter C1 performs filtering processing on the color difference component that is a DF target. Filter C1 is not classified as a strong filter or a weak filter.

[0301] Fig.15 It is a diagram for explaining the new DF.

[0302] The new DF includes filters NY1, NY2, NC1 and NC2.

[0303] The filter NY1 is a strong filter for the luminance component. The filter NY1 performs a filtering process on the luminance component as the DF target. For example, the filter Y1 can be adopted as the filter NY1.

[0304] The filter NY2 is a weak filter for the luminance component. The filter NY2 performs a filtering process on the luminance component as the DF target. For example, the filter Y2 can be adopted as the filter NY2.

[0305] The filter NC1 is a strong filter for the color difference component (it has a higher filter strength than the filter NC2). The filter NC1 performs filtering processing on the color difference component as the DF target. For example, the filter Y1, Y2 or a filter based on the original filter OF described later (the filter Y1, Y2 or OF itself, or a filter obtained by reducing the filter characteristics of the filter Y1, Y2 or OF) can be used as the filter NC1.

[0306] The filter NC2 is a weak filter for the color difference component (it has a lower filter strength than the filter NC1). The filter NC2 performs a filter process on the color difference component as the DF target. For example, the filter C1 can be adopted as the filter NC2.

[0307] Fig.16 is a diagram depicting an example of pixels of color difference components at block boundaries.

[0308] It should be noted that Fig.16 The left and right directions in indicate the up and down directions of the decoded image, and Fig.16 The up and down directions in indicate the intensity of the color difference component. Fig.16 The block boundaries indicated by the vertical straight lines in are horizontal boundaries (boundaries in the horizontal direction) in the decoded image.

[0309] As described above, a description of the new DF will be given based on the case where the DF is applied to pixels in vertically adjacent blocks Bp and Bq with a horizontal boundary set therebetween. In this case, the DF applied to the pixels in blocks Bp and Bq is a vertical filter applied in the vertical direction.

[0310] A new DF or any other filter may be adopted as the DF to be applied to pixels in the neighboring blocks disposed on the left and right sides of the vertical boundary. Hereinafter, description of the case where the DF is applied to pixels in the neighboring blocks disposed on the left and right sides of the vertical boundary will be omitted.

[0311] exist Fig.16 In the example, the pixels in the block Bp on the upper side of the horizontal boundary and the pixels in the block Bq on the lower side of the horizontal boundary are represented by p i,j and q k,j Indicates that Figure 3 However, in Fig.16 In, p i,j and q k,j The index j in is omitted. The pixel p i (p i,j ) is also called p-side pixel. k (q k,j ) is also called q-side pixel.

[0312] In the adjacent blocks Bp and Bq on the upper and lower sides of the horizontal boundary, |p3-p0|+|q3-q0| represents the flatness between blocks Bp and Bq. In addition, |p2-2*p1+p0|+|q2-2*q1+q0| represents the continuity between blocks Bp and Bq, and |p0-q0| represents the gap between blocks Bp and Bq.

[0313] Hereinafter, regarding the new DF, a modification of the filter NC1 serving as a strong filter to be applied to the color difference component will be described.

[0314] <When a filter based on filter Y1 is used as filter NCl>

[0315] Fig.17 : is a diagram depicting filter NC1 and necessary pixels when a filter based on filter Y1 is adopted as filter NC1.

[0316] The filter NC1 based on the filter Y1 is a Y1 normal filter, a Y1 -1 asymmetric filter, a Y1 -1 symmetric filter, a Y1 -2 asymmetric filter or a Y1 -2 symmetric filter.

[0317] In the case where a Y1 normal filter is adopted as the filter NC1 , during the filter application determination, a determination similar to the luma component application determination of determining whether to apply DF to the luma component in HEVC is made.

[0318] In the luminance component application determination, it is determined whether Expression (20) is satisfied. In the case where Expression (20) is satisfied, it is determined that DF is applied. In the case where Expression (20) is not satisfied, it is determined that DF is avoided from being applied.

[0319] dp0=Abs(p2,0-2*p1,0+p0,0)

[0320] dp3=Abs(p2,3-2*p1,3+p0,3)

[0321] dq0=Abs(q2,0-2*q1,0+q0,0)

[0322] dq3=Abs(q2,3-2*q1,3+q0,3)

[0323] d=dp0+dp3+dq0+dq3<beta

[0324] …(20)

[0325] In expression (20), Abs(A) represents the absolute value of A.

[0326] In the determination of the luma component application, the pixel p of the luma component in the first row of the blocks Bp and Bq is used. i,j and q k,j and the pixel p of the luminance component in the fourth row i,j and q k,j It is determined whether Expression (20) is satisfied. In the case where Expression (20) is satisfied, it is determined that DF is applied to the pixels in the fourth row in the blocks Bp and Bq.

[0327] Here, when it is assumed that a decoded image in the YUV420 format is used as a DF target, two rows of pixels of the color difference component are included in the blocks Bp and Bq. In the filter application determination in the case of adopting the Y1 normal filter, one row of pixels of the color difference component among the two rows of pixels of the color difference component is used to determine whether Expression (20) is satisfied. That is, for example, dp3 and dq3 in Expression (20) are set to 0, thereby determining whether Expression (20) is satisfied.

[0328] In this case, the pixels of the color difference component used in the filter application determination (hereinafter also referred to as application determination pixels) are 6 pixels, that is, pixels p0 to p2 and q0 to q2.

[0329] Therefore, for the filter application determination in the case where the horizontal boundary is a CTU boundary, the capacity of the color difference components of rows for storing 3 pixels, i.e., pixels p0 to p2 in the block Bp on the upper side of the horizontal boundary (hereinafter also referred to as the capacity of 3 pixel rows) is required as the storage capacity of the row buffer 330.

[0330] In the case where a Y1 normal filter is adopted as filter NCl, during filter type determination, a determination similar to the luma component application determination of determining whether to apply DF to the luma component in HEVC is performed. That is, it is determined whether expression (21) is satisfied in the filter type determination.

[0331] |p3-p0|+|q3-q0|<(beta>>3)

[0332] |p2-2*p1+p0|+|q2-2*q1+qθ|<(beta>>2)

[0333] |p0-q0|<((tc*5+1)>>1)

[0334] …(twenty one)

[0335] It should be noted that A>>B means A is shifted right by B bits, while A<<B means A is shifted left by B bits.

[0336] In the filter type determination, when Expression (21) is satisfied, it is determined that filter NC1 which is a strong filter is applied to the color difference component, and when Expression (21) is not satisfied, it is determined that filter NC2 which is a weak filter is applied to the color difference component.

[0337] The pixels of the color difference component used in the filter type determination of Expression (21) (hereinafter also referred to as type determination pixels) are 8 pixels, that is, pixels p0 to p3 and q0 to q3.

[0338] Therefore, for determining the filter type in the case where the horizontal boundary is the CTU boundary, it is necessary to use the capacity of the 4 pixel rows of pixels p0 to p3 in block Bp on the upper side of the horizontal boundary as the storage capacity of row buffer 330.

[0339] A strong filter for the luma component in HEVC can be used as the Y1 normal filter. In this case, the Y1 normal filter is represented by expression (22).

[0340] p2′ = Clip3(p2 - 2*tC, p2 + 2*tC, (2*p3 + 3*p2 + p1 + p0 + q0 + 4) >> 3)

[0341] p1′ = Clip3(p1 - 2*tC, p1 + 2*tC, (p2 + p1 + p0 + q0 + 2) >> 2)

[0342] p0′ = Clip3(p0 - 2*tC, p0 + 2*tC, (p2 + 2*p1 + 2*pθ + 2*qθ + q1 + 4) >> 3)

[0343] q0′ = Clip3(q0 - 2*tC, q0 + 2*tC, (p1 + 2*p0 + 2*q0 + 2*q1 + q2 + 4) >> 3)

[0344] q1’ = Clip3(q1 - 2*tC, q1 + 2*tC, (p0 + q0 + q1 + q2 + 2) >> 2)

[0345] q2′ = Clip3(q2 - 2*tC, q2 + 2*tC, (p0 + q0 + q1 + 3*q2 + 2*q3 + 4) >> 3)

[0346] …(22)

[0347] Clip3(A, B, C) represents the following function: this function indicates A when C < A, indicates B when C > B, and indicates C in other cases.

[0348] In the filtering process using the Y1 normal filter in expression (22), the filter constituent pixels of the chrominance components are 8 pixels, namely, pixels p0 to p3 and q0 to q3. Additionally, the target pixels of the chrominance components for which filtering is required (the pixels for which filtering is needed) are 6 pixels, namely, pixels p0 to p2 and q0 to q2.

[0349] Therefore, in the case where the horizontal boundary is the CTU boundary, it is necessary to use the capacity of the 4 pixel rows of pixels p0 to p3 in block Bp on the upper side of the horizontal boundary as the storage capacity of row buffer 330 for the filtering process using the Y1 normal filter.

[0350] Therefore, when the Y1 normal filter is used as the filter NC1, the storage capacity of the row buffer 330 is limited by the application determination pixel, the type determination pixel, and the type determination pixel with the largest number on the p side among the filter constituent pixels, and the capacity of the four pixel rows of pixels p0 to p3 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the row buffer 330.

[0351] In the case where a Y1-1 asymmetric filter is adopted as the filter NCl, filter application determination is performed in a manner similar to the case of the Y1 normal filter, for example.

[0352] Therefore, the application determination pixels of the color difference component used in the filter application determination are 6 pixels, that is, pixels p0 to p2 and q0 to q2, as in the case of the Y1 normal filter.

[0353] Therefore, in the filter application determination in the case where the horizontal boundary is a CTU boundary, the capacity of three pixel rows for pixels p0 to p2 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the line buffer 330 .

[0354] In the case of adopting a Y1-1 asymmetric filter as filter NC1, during the filter type determination, it is determined whether expression (23) is satisfied, in which pixel p3 (a p-side pixel farthest from the horizontal boundary) in expression (21) for determining whether DF is applied to the luminance component in HEVC is replaced with pixel p2 (only one pixel) on the horizontal boundary side.

[0355] |p2-p0|+|q3-q0|<(beta>>3)

[0356] |p2-2*p1+p0|+|q2-2*q1+q0|<(beta>>2)

[0357] |p0-q0|<((tc*5+1)>>1)

[0358] …(twenty three)

[0359] In the filter type determination, when Expression (23) is satisfied, it is determined that filter NC1 which is a strong filter is applied to the color difference component, and when Expression (23) is not satisfied, it is determined that filter NC2 which is a weak filter is applied to the color difference component.

[0360] The type determination pixels of the color difference component used in the filter type determination in Expression (23) are 7 pixels, that is, pixels p0 to p2 and q0 to q3.

[0361] Therefore, in the filter type determination in the case where the horizontal boundary is a CTU boundary, the capacity of three pixel rows for pixels p0 to p2 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the row buffer 330 .

[0362] The Y1 normal filter in expression (22), that is, the filter obtained by replacing the pixel p3 in the strong filter for the luminance component in HEVC with the pixel p2 on the horizontal boundary side, can be used as a Y1-1 asymmetric filter. In this case, the Y1-1 asymmetric filter is represented by expression (24).

[0363] p2′=Clip3(p2-2*tC, p2+2*tC, (5*p2+3*p2+p1+p0+q0+4)>>3)

[0364] p1′=Clip3(p1-2*tC, p1+2*tC, (p2+p1+p0+q0+2)>>2)

[0365] p0′=Clip3(p0-2*tC, p0+2*tC, (p2+2*p1+2*p0+2*q0+q1+4)>>3)

[0366] qθ′=Clip3(q0-2*tC, q0+2*tC, (p1+2*p0+2*q0+2*q1+q2+4)>>3)

[0367] q1′=Clip3(q1-2*tC, q1+2*tC, (p0+q0+q1+q2+2)>>2)

[0368] q2′=Clip3(q2-2*tC, q2+2*tC, (p0+q0+q1+3*q2+2*q3+4)>>3)

[0369] …(twenty four)

[0370] The filter constituent pixels of the color difference component used in the filtering process using the Y1-1 asymmetric filter in expression (24) are 7 pixels, that is, pixels p0 to p2 and q0 to q3. In addition, the target pixels of the color difference component as the target of the filtering process are 6 pixels, that is, pixels p0 to p2 and q0 to q2.

[0371] Therefore, for filtering processing using the Y1-1 asymmetric filter when the horizontal boundary is a CTU boundary, the capacity of three pixel rows for pixels p0 to p2 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the row buffer 330.

[0372] The Y1-1 asymmetric filter in expression (24) is a filter obtained by replacing the pixel p3 in the first expression for obtaining pixel p2′ of expression (22) with the pixel p2 on the horizontal boundary side. Therefore, the tap coefficient (filter coefficient) for pixel p2 in the first expression for obtaining pixel p2′ is changed from 3 in expression (22) to 5 (=2+3).

[0373] Therefore, in the case where a Y1-1 asymmetric filter is adopted as the filter NC1, the capacity of three pixel rows for pixels p0 to p2 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the line buffer 330.

[0374] Here, the pixels used when the Y1-1 asymmetric filter is adopted as the filter NC1 are pixels p0 to p2 in the block Bp and pixels q0 to q3 in the block Bq. These pixels are asymmetric with respect to the horizontal boundary (the p side and the q side are asymmetric).

[0375] For example, in the case where a Y1-1 symmetric filter is adopted as the filter NC1, filter application determination is performed as in the case of the Y1 normal filter.

[0376] Therefore, as in the case of the Y1 normal filter, the application determination pixels of the color difference component used in the filter application determination are 6 pixels, that is, pixels p0 to p2 and q0 to q2.

[0377] Therefore, for the filter application determination in the case where the horizontal boundary is a CTU boundary, the capacity of three pixel rows for pixels p0 to p2 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the row buffer 330.

[0378] In the filter type determination when a Y1-1 symmetric filter is used as filter NC1, pixel p3 in expression (21) for determining whether DF is applied to the luminance component in HEVC is replaced by pixel p2 on the horizontal boundary side, and it is further determined whether expression (25) in which pixel q3 is replaced by pixel q2 on the horizontal boundary side is satisfied.

[0379] |p2-p0|+|q2-q0|<(beta>>3)

[0380] |p2-2*p1+p0|+|q2-2*q1+q0|<(beta>>2)

[0381] |p0-q0|<((tc*5+1)>>1)

[0382] …(25)

[0383] In the filter type determination, when expression (25) is satisfied, it is determined that filter NC1 as a strong filter is applied to the color difference component, and when expression (25) is not satisfied, it is determined that filter NC2 as a weak filter is applied to the color difference component.

[0384] The type determination pixels of the color difference component used in the filter type determination in Expression (25) are 6 pixels, that is, pixels p0 to p2 and q0 to q2.

[0385] Therefore, for filter type determination in the case where the horizontal boundary is a CTU boundary, the capacity of three pixel rows for pixels p0 to p2 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the row buffer 330 .

[0386] The Y1 normal filter in expression (22), that is, the filter obtained by replacing the pixel p3 in the strong filter for the luminance component in HEVC with the pixel p2 on the horizontal boundary side, and further replacing the pixel q3 with the pixel q2 on the horizontal boundary side, can be used as a Y1-1 symmetric filter. In this case, the Y1-1 symmetric filter is represented by expression (26).

[0387] p2′=Clp3(p2-2*tC, p2+2*tC, (5*p2+3*p2+p1+p0+q0+4)>>3)

[0388] p1′=Clp3(p1-2*tC, p1+2*tC, (p2+p1+p0+q0+2)>>2)

[0389] p0′=Clip3(p0-2*tC, p0+2*tC, (p2+2*p1+2*p0+2*qθ+q1+4)>>3)

[0390] q0′=Clip3(qθ-2*tC, qθ+2*tC, (p1+2*p0+2*qθ+2*q1+q2+4)>>3)

[0391] q1′=Clip3(q1-2*tC, q1+2*tC, (p0+q0+q1+q2+2)>>2)

[0392] q2′=Clip3(q2-2*tC, q2+2*tC, (p0+q0+q1+5*q2+4)>>3)

[0393] …(26)

[0394] The filter constituent pixels of the color difference component used in the filtering process using the Y1-1 symmetric filter in expression (26) are 6 pixels, that is, pixels p0 to p2 and q0 to q2. In addition, the target pixels of the color difference component as the target of the filtering process are 6 pixels, that is, pixels p0 to p2 and q0 to q2.

[0395] Therefore, for filtering processing using a Y1-1 symmetric filter when the horizontal boundary is a CTU boundary, the capacity of three pixel rows for pixels p0 to p2 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the row buffer 330.

[0396] The Y1-1 symmetric filter in expression (26) is a filter obtained by replacing the pixel p3 in the first expression for obtaining pixel p2′ in expression (22) with the pixel p2 on the horizontal boundary side. Therefore, the tap coefficient of pixel p2 in the first expression for obtaining pixel p2′ is changed from 3 in expression (22) to 5 (=2+3). In addition, the Y1-1 symmetric filter in expression (26) is a filter obtained by replacing the pixel q3 in the sixth expression for obtaining pixel q2′ in expression (22) with the pixel q2 on the horizontal boundary side. Therefore, the tap coefficient of pixel q2 in the sixth expression for obtaining pixel q2′ is changed from 3 in expression (22) to 5 (=3+2).

[0397] Therefore, when a Y1-1 symmetric filter is adopted as the filter NCl, the capacity of three pixel rows for pixels p0 to p2 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the row buffer 330.

[0398] Here, the pixels used when the Y1-1 symmetric filter is adopted as the filter NCl are the pixels p0 to p2 in the block Bp and the pixels q0 to q2 in the block Bq. These pixels are symmetrical with respect to the horizontal boundary.

[0399] In the filter application determination when a Y1-2 asymmetric filter is used as filter NC1, it is determined whether expression (27) is satisfied. In expression (27), for example, dp3 and dq3 in expression (20) are set to 0, and pixel p2,0 is replaced with pixel p1,0 on the horizontal boundary side.

[0400] dp0=Abs(p1,0-2*p1,0+p0,0)=Abs(p0,0-p1,0)

[0401] dq0=Abs(q2,0-2*q1,0+q0,0)

[0402] d=dp0+dq0<(beta>>1)

[0403] …(27)

[0404] In the filter application determination, in the case where Expression (27) is satisfied, it is determined to apply DF, and in the case where Expression (27) is not satisfied, it is determined to avoid applying DF.

[0405] Therefore, the application determination pixels of the color difference component used in the filter application determination are 5 pixels: p0 to p1 and q0 to q2.

[0406] Therefore, for the filter application determination in the case where the horizontal boundary is a CTU boundary, the capacity of 2 pixel rows for pixels p0 to p1 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the line buffer 330 .

[0407] In the filter type determination when a Y1-2 asymmetric filter is used as filter NCl, it is determined whether expression (28) is satisfied. In expression (28), pixels p3 and p2 (the two p-side pixels farthest from the horizontal boundary) in expression (21) for determining whether DF is applied to the luminance component in HEVC is replaced by pixel p1 on the horizontal boundary side.

[0408] |p1-p0|+|q3-q0|<(beta>>3)

[0409] |p1-2*p1+p0|+|q2-2*q1+q0|<(beta>>2)=|p0-p1|+|q2-2*q1+q0|<(beta>>2)

[0410] |p0-q0|<((tc*5+1)>>1)……(28)

[0411] In the filter type determination, when expression (28) is satisfied, it is determined that filter NC1 as a strong filter is applied to the color difference component, and when expression (28) is not satisfied, it is determined that filter NC2 as a weak filter is applied to the color difference component.

[0412] The type determination pixels of the color difference component used in the filter type determination in Expression (28) are 6 pixels, that is, pixels p0 to p1 and q0 to q3.

[0413] Therefore, for filter type determination in the case where the horizontal boundary is a CTU boundary, the capacity of 2 pixel rows for pixels p0 to p1 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the row buffer 330 .

[0414] The Y1 normal filter in expression (22), that is, the filter obtained by replacing pixel p3 and pixel p2 in the strong filter for the luminance component in HEVC with pixel p1 on the horizontal boundary side, can be adopted as a Y1-2 asymmetric filter. In this case, the Y1-2 asymmetric filter is represented by expression (29).

[0415] p1′=Clip3(p1-2*tC, p1+2*tC, (2*p1+p0+q0+2)>>2)

[0416] p0′=Clip3(p0-2*tC, p0+2*tC, (3*p1+2*p0+2*q0+ql+4)>>3)

[0417] q0′=Clip3(q0-2*tC, q0+2*tC, (p1+2*p0+2*q0+2*q1+q2+4)>>3)

[0418] q1′=Clip3(q1-2*tC, q1+2*tC, (p0+q0+q1+q2+2)>>2)

[0419] q2′=Clip3(q2-2*tC, q2+2*tC, (p0+q0+q1+3*q2+2*q3+4)>>3)

[0420] …(29)

[0421] The filter constituent pixels of the color difference component used in the filtering process using the Y1-2 asymmetric filter in expression (29) are 6 pixels, that is, pixels p0 to p1 and q0 to q3. In addition, the target pixels of the color difference component to be filtered are 5 pixels, that is, pixels p0 to p1 and q0 to q2.

[0422] Therefore, in the filtering process using the Y1-2 asymmetric filter when the horizontal boundary is a CTU boundary, the capacity of two pixel rows for pixels p0 to p1 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the row buffer 330.

[0423] The Y1-2 asymmetric filter in expression (29) lacks the first expression in expression (22) for obtaining pixel p2′. In addition, the Y1-2 asymmetric filter in expression (29) is a filter in which the pixel p2 in the expression for obtaining pixels p1′ and p0′ in expression (22) is replaced with the pixel p1 on the horizontal boundary side. Therefore, the tap coefficient of the pixel p1 in the expression for obtaining pixel p1′ in expression (29) is changed from 1 in expression (22) to 2 (=1+1), and the tap coefficient of the pixel p1 in the expression for obtaining pixel p0′ in expression (29) is changed from 2 in expression (22) to 3 (=1+2).

[0424] Therefore, in the case where a Y1-2 asymmetric filter is adopted as the filter NC1 , the capacity of two pixel rows for pixels p0 to p1 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the line buffer 330 .

[0425] Here, the pixels used in the case of adopting the Y1-2 asymmetric filter as the filter NC1 are the pixels p0 to p1 in the block Bp and the pixels q0 to q3 in the block Bq. These pixels are asymmetric with respect to the horizontal boundary.

[0426] In the filter application determination in the case of using a Y1-2 symmetric filter as filter NC1, it is determined whether expression (30) is satisfied, in which, for example, dp3 and dq3 in expression (20) are set to 0, and further, pixels p2,0 and q2,0 are replaced with pixels p1,0 and q1,0 on the horizontal boundary side.

[0427] dpθ=Abs(p1,0-2*p1,0+pθ,θ)=Abs(p0,θ-p1,θ)

[0428] dqθ=Abs(q1,0-2*q1,0+q0,0)=Abs(q0,0-q 1,0)

[0429] d=dp0+dq0<(beta>>1)

[0430] …(30)

[0431] In the filter application determination, it is determined that DF is applied when Expression (30) is satisfied, and it is determined that DF is avoided when Expression (30) is not satisfied.

[0432] Therefore, the application determination pixels of the color difference component used in the filter application determination are 4 pixels, that is, pixels p0 to p1 and q0 to q1.

[0433] Therefore, for the filter application determination in the case where the horizontal boundary is a CTU boundary, the capacity of 2 pixel rows for pixels p0 to p1 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the line buffer 330 .

[0434] In determining the filter type when a Y1-2 symmetric filter is used as filter NC1, it is determined whether expression (31) is satisfied. In expression (31), pixels p3 and p2 in expression (21) for determining whether DF is applied to the luminance component in HEVC are replaced with pixel p1 on the horizontal boundary side, and pixels q3 and q2 are replaced with pixel q1 on the horizontal boundary side.

[0435] |p1-p0|+|q1-q0|<(beta>>3)

[0436] |p1-2*p1+p0|+|q1-2*q1+q0|<(beta>>2)=|p0-p1|+lq0-q1|<(beta>>2)

[0437] |p0-qθ|<((tc*5+1)>>1)

[0438] …(31)

[0439] In the filter type determination, it is determined that filter NC1 as a strong filter is applied to the color difference component when Expression (31) is satisfied, and it is determined that filter NC2 as a weak filter is applied to the color difference component when Expression (31) is not satisfied.

[0440] The type determination pixels of the color difference component used in the filter type determination in Expression (31) are 4 pixels, that is, pixels p0 to p1 and q0 to q1.

[0441] Therefore, for filter type determination in the case where the horizontal boundary is a CTU boundary, the capacity of 2 pixel rows for pixels p0 to p1 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the row buffer 330 .

[0442] The Y1 normal filter in expression (22), that is, the filter obtained by replacing the pixel p3 and the pixel p2 in the strong filter for the luminance component in HEVC with the pixel p1 on the horizontal boundary side and replacing the pixel q3 and the pixel q2 with the pixel q1 on the horizontal boundary side, can be adopted as a Y1-2 symmetric filter. In this case, the Y1-2 symmetric filter is represented by expression (32).

[0443] p1′=Clip3(p1-2*tC, p1+2*tC, (2*p1+p0+q0+2)>>2)

[0444] p0'=Clip3(p0-2*tC, p0+2*tC, (3*p1+2*p0+2*q0+q1+4)>>3)

[0445] q0′=Clip3(q0-2*tC, q0+2*tC, (p1+2*p0+2*q0+3*q1+4)>>3)

[0446] q1′=Clip3(q1-2*tC, q1+2*tC, (p0+q0+2*q1+2)>>2)

[0447] …(32)

[0448] The filter constituent pixels of the color difference component used in the filtering process using the Y1-2 symmetric filter in expression (32) are 4 pixels, that is, pixels p0 to p1 and q0 to q1. In addition, the target pixels of the color difference component to be filtered are 4 pixels, that is, pixels p0 to p1 and q0 to q1.

[0449] Therefore, for filtering processing using a Y1-2 symmetric filter when the horizontal boundary is a CTU boundary, the capacity of two pixel rows for pixels p0 to p1 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the row buffer 330.

[0450] In the Y1-2 symmetric filter in expression (32), the first expression for obtaining pixel p2′ and the sixth expression for obtaining pixel q2′ in expression (22) are missing. In addition, the Y1-2 symmetric filter in expression (32) is a filter obtained by replacing pixel p2 in the expression for obtaining pixels p1′ and p0′ in expression (22) with pixel p1, and replacing pixel q2 in the expression for obtaining pixels q1′ and q0′ in expression (22) with pixel q1 on the horizontal boundary side. Therefore, the tap coefficient of pixel p1 in the expression for obtaining pixel p1′ in expression (31) is changed from 1 in expression (22) to 2 (=1+1), and the tap coefficient of pixel p1 in the expression for obtaining pixel p0′ in expression (31) is changed from 2 in expression (22) to 3 (=1+2). In addition, the tap coefficient of pixel q1 in the expression for obtaining pixel q0′ in expression (31) is changed from 2 in expression (22) to 3 (=2+1), and the tap coefficient of pixel q1 in the expression for obtaining pixel q1′ in expression (31) is changed from 1 in expression (22) to 2 (=1+1).

[0451] Therefore, in the case where a Y1-2 symmetric filter is adopted as the filter NC1 , the capacity of two pixel rows for the pixels p0 to p1 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the line buffer 330 .

[0452] Here, the pixels used in the case of adopting the Y1-2 symmetric filter as the filter NC1 are the pixels p0 to p1 in the block Bp and the pixels q0 to q1 in the block Bq. These pixels are symmetric with respect to the horizontal boundary.

[0453] <When a filter based on filter OF is used as filter NC1>

[0454] Fig.18 : is a diagram depicting filter NC1 and necessary pixels when a filter based on filter OF is adopted as filter NC1.

[0455] The filter NC1 based on the filter OF is an OF normal filter, an OF-1 asymmetric filter, an OF-1 symmetric filter, an OF-2 asymmetric filter or an OF-2 symmetric filter.

[0456] In the case where the OF normal filter is adopted as the filter NC1, the filter application determination is performed in a manner similar to the case of the Y1 normal filter, that is, in a manner similar to the luminance component application determination in Expression (20).

[0457] Therefore, the application determination pixels of the color difference component used in the filter application determination are 6 pixels, ie, pixels p0 to p2 and q0 to q2, as in the case of the Y1 normal filter.

[0458] Therefore, for the filter application determination in the case where the horizontal boundary is a CTU boundary, the capacity of three pixel rows for pixels p0 to p2 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the row buffer 330.

[0459] In the filter type determination in the case where the OF normal filter is adopted as the filter NC1, in a manner similar to the case of the Y1 normal filter, it is determined whether Expression (21) is satisfied.

[0460] Therefore, the type determination pixels of the color difference component used in the filter type determination are 8 pixels, ie, pixels p0 to p3 and q0 to q3, as in the case of the Y1 normal filter.

[0461] Therefore, for filter type determination in the case where the horizontal boundary is a CTU boundary, the capacity of 4 pixel rows for pixels p0 to p3 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the row buffer 330.

[0462] A strong filter for the luminance component in HEVC, that is, a filter in which the tap coefficient of the Y1 normal filter of expression (22) and the clipping parameters A and B in the clipping function Clip3 (A, B, C) are changed, can be used as the OF normal filter. For example, the filter of expression (33) is used as the OF normal filter.

[0463] p2′=Clip3(p2-tC, p2+tC, (3*p3+2*p2+p1+p0+q0+4)>>3)

[0464] p1′=Clip3(p1-tC, p1+tC, (2*p3+p2+2*p1+p0+q0+q1+4)>>3)

[0465] p0′=Clip3(p0-tC, p0+tC, (p3+p2+p1+2*p0+q0+q1+q2+4)>>3)

[0466] q0′=Clip3(q0-tC, q0+tC, (p2+p1+p0+2*q0+q1+q2+q3+4)>>3)

[0467] q 1′=Clip3(q1-tC, q1+tC, (p1+p0+q0+2*q 1+q2+2*q3+4)>>3)

[0468] q2′=Clip3(q2-tC, q2+tC, (p0+q0+q1+2*q2+3*q3+4)>>3)

[0469] …(33)

[0470] The OF normal filter of expression (33) is a strong filter for the luminance component in HEVC, that is, a filter in which the tap coefficient of the Y1 normal filter of expression (22) and the clipping parameters A and B in the clipping function Clip3 (A, B, C) are changed. For example, in the OF normal filter of expression (33), 2tC constituting the clipping parameter in expression (22) is changed to tC.

[0471] The filter constituent pixels of the color difference component used in the filtering process of the OF normal filter using expression (33) are 8 pixels, that is, pixels p0 to p3 and q0 to q3. In addition, the target pixels of the color difference component to be filtered are 6 pixels, that is, pixels p0 to p2 and q0 to q2.

[0472] Therefore, for filtering processing using the OF normal filter when the horizontal boundary is a CTU boundary, the capacity of 4 pixel rows for pixels p0 to p3 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the row buffer 330.

[0473] Therefore, in the case where the OF normal filter is adopted as the filter NC1 , the capacity of four pixel rows for the pixels p0 to p3 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the line buffer 330 .

[0474] In the case where the OF-1 asymmetric filter is adopted as the filter NC1, for example, filter application determination is performed in a manner similar to the case of the OF normal filter.

[0475] Therefore, the application determination pixels of the color difference component used in the filter application determination are 6 pixels, ie, pixels p0 to p2 and q0 to q2, as in the case of the OF normal filter.

[0476] Therefore, for the filter application determination in the case where the horizontal boundary is a CTU boundary, the capacity of three pixel rows for pixels p0 to p2 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the row buffer 330.

[0477] In the case where the OF-1 asymmetric filter is adopted as the filter NC1, in a similar manner to the case of the Y1-1 asymmetric filter, it is determined during the filter type determination whether or not Expression (23) is satisfied.

[0478] Therefore, the type determination pixels of the color difference component used in the type determination of the OF-1 asymmetric filter are 7 pixels, ie, pixels p0 to p2 and q0 to q3, as in the case of the Y1-1 asymmetric filter.

[0479] Therefore, for filter type determination in the case where the horizontal boundary is a CTU boundary, the capacity of three pixel rows for pixels p0 to p2 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the row buffer 330 .

[0480] As the OF-1 asymmetric filter, a filter obtained by replacing the pixel p3 in the OF normal filter in Expression (33) with the pixel p2 on the horizontal boundary side can be adopted. In this case, the OF-1 asymmetric filter is represented by Expression (34).

[0481] p2′=Clip3(p2-tC, p2+tC, (5*p2+p1+p0+q0+4)>>3)

[0482] p1′=Clip3(p1-tC, p1+tC, (3*p2+2*p1+p0+q0+q1+4)>>3)

[0483] p0′=Clip3(p0-tC, p0+tC, (2*p2+p1+2*p0+q0+q1+q2+4)>>3)

[0484] q0′=Clip3(q0-tC, q0+tC, (p2+p1+p0+2*q0+q1+q2+q3+4)>>3)

[0485] q1′=Clip3(q1-tC, q1+tC, (p1+p0+q0+2*q1+q2+2*q3+4)>>3)

[0486] q2′=Clip3(q2-tC, q2+tC, (p0+q0+q1+2*q2+3*q3+4)>>3)

[0487] …(34)

[0488] The filter constituent pixels of the color difference component used in the filtering process using the OF-1 asymmetric filter in expression (34) are 7 pixels, that is, pixels p0 to p2 and q0 to q3. In addition, the target pixels of the color difference component to be filtered are 6 pixels, that is, pixels p0 to p2 and q0 to q2.

[0489] Therefore, when the horizontal boundary is a CTU boundary, filtering processing using the OF-1 asymmetric filter requires the capacity of three pixel rows for pixels p0 to p2 in the block Bp on the upper side of the horizontal boundary as the storage capacity of the row buffer 330.

[0490] The OF-1 asymmetric filter of expression (34) is a filter obtained by replacing the pixel p3 in the expression for obtaining pixels p2′ to p0′ in expression (33) with the pixel p2 on the horizontal boundary side. Therefore, the tap coefficient of the pixel p2 in the expression for obtaining pixel p2′ is changed from 2 in expression (33) to 5 (=3+2). In addition, the tap coefficient of the pixel p2 in the expression for obtaining pixel p1′ is changed from 1 in expression (33) to 3 (=2+1), and the tap coefficient of the pixel p2 in the expression for obtaining pixel p2′ is changed from 1 in expression (33) to 2 (=1+1).

[0491] Therefore, in the case where the OF-1 asymmetric filter is adopted as the filter NC1 , the capacity of three pixel rows for the pixels p0 to p2 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the line buffer 330 .

[0492] Here, the pixels used in the case of adopting the OF-1 asymmetric filter as the filter NC1 are pixels p0 to p2 in the block Bp and pixels q0 to q3 in the block Bq. These pixels are asymmetric with respect to the horizontal boundary.

[0493] In the case where the OF-1 symmetric filter is adopted as the filter NC1, filter application determination is performed in a manner similar to the case of the OF normal filter, for example.

[0494] Therefore, the application determination pixels of the color difference component used in the filter application determination are 6 pixels, ie, pixels p0 to p2 and q0 to q2, as in the case of the OF normal filter.

[0495] Therefore, for the filter application determination in the case where the horizontal boundary is a CTU boundary, the capacity of three pixel rows for pixels p0 to p2 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the row buffer 330.

[0496] In the case of adopting an OF-1 symmetric filter as the filter NC1, it is determined whether Expression (25) is satisfied during filter type determination, as in the case of a 1-1 symmetric filter.

[0497] Therefore, the type determination pixels of the color difference component used in the filter type determination of the OF-1 symmetric filter are 6 pixels, ie, pixels p0 to p2 and q0 to q2, as in the case of the Y1-1 symmetric filter.

[0498] Therefore, for filter type determination in the case where the horizontal boundary is a CTU boundary, the capacity of three pixel rows for pixels p0 to p2 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the row buffer 330 .

[0499] A filter obtained by replacing pixel p3 in the OF normal filter in expression (33) with pixel p2 on the horizontal boundary side and further replacing pixel q3 with pixel q2 on the horizontal boundary side can be used as an OF-1 symmetric filter. In this case, the OF-1 symmetric filter is represented by expression (35).

[0500] p2′=Clip3(p2-tC, p2+tC, (5*p2+p1+p0+q0+4)>>3)

[0501] p1′=Clip3(p1-tC, p1+tC, (3*p2+2*p1+p0+q0+q1+4)>>3)

[0502] p0′=Clip3(p0-tC, p0+tC, (2*p2+p1+2*p0+q0+q1+q2+4)>>3)

[0503] q0′=Clip3(q0-tC, q0+tC, (p2+p1+p0+2*q0+q1+2*q2+4)>>3)

[0504] q1′=Clip3(q1-tC, q1+tC, (p1+p0+q0+2*q 1+3*q2+4)>>3)

[0505] q2′=Clip3(q2-tC, q2+tC, (p0+q0+q1+5*q2+4)>>3)

[0506] …(35)

[0507] The filter constituent pixels of the color difference component used in the filtering process using the OF-1 symmetric filter in expression (35) are 6 pixels, that is, pixels p0 to p2 and q0 to q2. In addition, the target pixels of the color difference component to be filtered are 6 pixels, that is, pixels p0 to p2 and q0 to q2.

[0508] Therefore, for filtering processing using the OF-1 symmetric filter when the horizontal boundary is a CTU boundary, the capacity of three pixel rows for pixels p0 to p2 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the row buffer 330.

[0509] The OF-1 symmetric filter of expression (35) is a filter obtained by replacing the pixel p3 in the expression for obtaining pixels p2' to p0' in expression (33) with the pixel p2 on the horizontal boundary side. Therefore, the tap coefficient of the pixel p2 in the expression for obtaining pixel p2' is changed from 2 in expression (33) to 5 (=3+2). In addition, the tap coefficient of the pixel p2 in the expression for obtaining pixel p1' is changed from 1 in expression (33) to 3 (=2+1), and the tap coefficient of the pixel p2 in the expression for obtaining pixel p0' is changed from 1 in expression (33) to 2 (=1+1).

[0510] In addition, the OF-1 symmetric filter of expression (35) is a filter obtained by replacing the pixel q3 in the expression for obtaining pixels q0′ to q2′ in expression (33) with the pixel q2 on the horizontal boundary side. Therefore, the tap coefficient of the pixel q2 in the expression for obtaining the pixel q0′ is changed from 1 in expression (33) to 2 (=1+1). In addition, the tap coefficient of the pixel q2 in the expression for obtaining the pixel q1′ is changed from 1 in expression (33) to 3 (=1+2), and the tap coefficient of the pixel q2 in the expression for obtaining the pixel q2′ is changed from 2 in expression (33) to 5 (=2+3).

[0511] Therefore, in the case where an OF-1 symmetric filter is adopted as the filter NC1 , the capacity of three pixel rows for pixels p0 to p2 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the line buffer 330 .

[0512] Here, the pixels used in the case of adopting the OF-1 symmetric filter as the filter NC1 are the pixels p0 to p2 in the block Bp and the pixels q0 to q2 in the block Bq. These pixels are symmetrical with respect to the horizontal boundary.

[0513] In the case where the OF-2 asymmetric filter is adopted as the filter NC1, it is determined whether Expression (27) is satisfied during the filter application determination, as in the case of the Y1-2 asymmetric filter.

[0514] Therefore, the application determination pixels of the color difference component used in the filter application determination of the OF-2 asymmetric filter are 5 pixels, ie, pixels p0 to p1 and q0 to q2, as in the case of the Y1-2 asymmetric filter.

[0515] Therefore, for the filter application determination in the case where the horizontal boundary is a CTU boundary, the capacity of 2 pixel rows for pixels p0 to p1 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the line buffer 330 .

[0516] In the case where an OF-2 asymmetric filter is adopted as the filter NC1, it is determined whether Expression (28) is satisfied during filter type determination, as in the case of the Y1-2 asymmetric filter.

[0517] Therefore, the type determination pixels of the color difference component used in the filter type determination of the OF-2 asymmetric filter are 6 pixels, ie, pixels p0 to p1 and q0 to q3, as in the case of the Y1-2 asymmetric filter.

[0518] Therefore, for filter type determination in the case where the horizontal boundary is a CTU boundary, the capacity of 2 pixel rows for pixels p0 to p1 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the row buffer 330 .

[0519] A filter obtained by replacing pixel p3 and pixel p2 in the OF normal filter of expression (33) with pixel p1 on the horizontal boundary side can be used as an OF-2 asymmetric filter. In this case, the OF-2 asymmetric filter is represented by expression (36).

[0520] p1′=Clip3(p1-tC, p1+tC, (5*p1+p0+q0+q1+4)>>3)

[0521] p0′=Clp3(p0-tC, p0+tC, (3*p1+2*p0+q0+q1+q2+4)>>3)

[0522] q0'=Clp3(q0-tC, q0+tC, (2*p1+p0+2*q0+q1+q2+q3+4)>>3)

[0523] q1′=Clp3(q1-tC, q1+tC, (p1+p0+q0+2*ql+q2+2*q3+4)>>3)

[0524] q2′=Clip3(q2-tC, q2+tC, (p0+q0+ql+2*q2+3*q3+4)>>3)

[0525] …(36)

[0526] The filter constituent pixels of the color difference component used in the filtering process of the OF-2 asymmetric filter using expression (33) are 6 pixels, that is, pixels p0 to p1 and q0 to q3. In addition, the target pixels of the color difference component to be filtered are 5 pixels, that is, pixels p0 to p1 and q0 to q2.

[0527] Therefore, for filtering processing using the OF-2 asymmetric filter when the horizontal boundary is a CTU boundary, the capacity of two pixel rows for pixels p0 to p1 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the row buffer 330.

[0528] In the OF-2 asymmetric filter of Expression (36), the expression for obtaining the pixel p2′ in Expression (33) is missing.

[0529] In addition, the OF-2 asymmetric filter of expression (36) is a filter obtained by replacing the pixels p2 and p3 in the expression for obtaining pixels p1, p0′ and q0′ in expression (33) with the pixel p1 on the horizontal boundary side. Therefore, the tap coefficient of the pixel p1 in the expression for obtaining pixel p1′ in expression (36) is changed from 2 in expression (33) to 5 (=2+1+2). In addition, the tap coefficient of the pixel p1 in the expression for obtaining pixel p0′ in expression (36) is changed from 1 in expression (33) to 3 (=1+1+1), and the tap coefficient of the pixel p1 in the expression for obtaining pixel q0′ in expression (36) is changed from 1 in expression (33) to 2 (=1+1).

[0530] Therefore, in the case where the OF-2 asymmetric filter is adopted as the filter NC1 , the capacity of two pixel rows for the pixels p0 to p1 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the line buffer 330 .

[0531] Here, the pixels used when the OF-2 asymmetric filter is used as the filter NC1 are pixels p0 to p1 in the block Bp and pixels q0 to q3 in the block Bq. These pixels are asymmetric with respect to the horizontal boundary (the OF-2 asymmetric filter is an asymmetric filter).

[0532] In the case of adopting an OF-2 symmetric filter as the filter NC1, it is determined whether Expression (30) is satisfied during filter application determination, as in the case of the Y1-2 symmetric filter.

[0533] Therefore, the application determination pixels of the color difference component used in the filter application determination of the OF-2 symmetric filter are 4 pixels, ie, pixels p0 to p1 and q0 to q1, as in the case of the Y1-2 symmetric filter.

[0534] Therefore, for the filter application determination in the case where the horizontal boundary is a CTU boundary, the capacity of 2 pixel rows for pixels p0 to p1 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the line buffer 330 .

[0535] In the case of adopting an OF-2 symmetric filter as the filter NC1, it is determined whether Expression (31) is satisfied during filter type determination, as in the case of the Y1-2 symmetric filter.

[0536] Therefore, the type determination pixels of the color difference component used in the filter type determination of the OF-2 symmetric filter are 4 pixels, ie, pixels p0 to p1 and q0 to q1, as in the case of the Y1-2 symmetric filter.

[0537] Therefore, for filter type determination in the case where the horizontal boundary is a CTU boundary, the capacity of 2 pixel rows for pixels p0 to p1 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the row buffer 330 .

[0538] A filter obtained by replacing pixels p3 and p2 in the OF normal filter in expression (33) with pixel p1 on the horizontal boundary side and replacing pixels q2 and q3 with pixel q1 on the horizontal boundary side can be used as an OF-2 symmetric filter. In this case, the OF-2 symmetric filter is represented by expression (37).

[0539] p1′=Clip3(p1-tC, p1+tC, (5*p1+p0+q0+q1+4)>>3)

[0540] p0′=Clip3(p0-tC, p0+tC, (3*p1+2*p0+q0+ql+q2+4)>>3)

[0541] q0′=Clip3(q0-tC, q0+tC, (2*p1+p0+2*q0+3*ql+4)>>3)

[0542] q1'=Clip3(q1-tC, q1+tC, (p1+p0+q0+5*q1+4)>>3)

[0543] ……(37)

[0544] The filter constituent pixels of the color difference component used in the filtering process of the OF-2 symmetric filter using expression (37) are 4 pixels, that is, pixels p0 to p1 and q0 to q1. In addition, the target pixels of the color difference component to be filtered are 4 pixels, that is, pixels p0 to p1 and q0 to q1.

[0545] Therefore, for filtering processing using the OF-2 symmetric filter when the horizontal boundary is a CTU boundary, the capacity of 2 pixel rows for pixels p0 to p1 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the row buffer 330.

[0546] In the OF-2 symmetric filter of Expression (37), the first expression for obtaining the pixel p2' and the sixth expression for obtaining the pixel q2' in Expression (33) are missing.

[0547] In addition, the OF-2 symmetric filter of expression (37) is a filter obtained by replacing the pixels p2 and p3 in the expression for obtaining pixels p1′, p0′ and q0′ in expression (33) with the pixel p1 on the horizontal boundary side. Therefore, the tap coefficient of the pixel p1 in the expression for obtaining pixel p1′ in expression (37) is changed from 2 in expression (33) to 5 (=2+1+2). In addition, the tap coefficient of the pixel p1 in the expression for obtaining pixel p0′ in expression (37) is changed from 1 in expression (33) to 3 (=1+1+1), and the tap coefficient of the pixel p1 in the expression for obtaining pixel q0′ in expression (37) is changed from 1 in expression (33) to 2 (=1+1).

[0548] In addition, the OF-2 symmetric filter of expression (37) is a filter obtained by replacing the pixels q2 and q3 in the expression for obtaining the pixels q0′ and q1′ in expression (33) with the pixel q1 on the horizontal boundary side. Therefore, the tap coefficient of the pixel q1 in the expression for obtaining the pixel q0′ in expression (37) is changed from 1 in expression (33) to 3 (=1+1+1). In addition, the tap coefficient of the pixel q1 in the expression for obtaining the pixel q1′ in expression (37) is changed from 1 in expression (33) to 3 (=1+1+1), and the tap coefficient of the pixel p1 in the expression for obtaining the pixel q0′ in expression (37) is changed from 2 in expression (33) to 5 (=2+1+2).

[0549] Therefore, in the case of adopting an OF-2 symmetric filter as the filter NC1 , the capacity of two pixel rows for the pixels p0 to p1 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the line buffer 330 .

[0550] Here, the pixels used when the OF-2 symmetric filter is adopted as the filter NC1 are pixels p0 to p1 in the block Bp and pixels q0 to q1 in the block Bq. These pixels are symmetric with respect to the horizontal boundary (the OF-2 symmetric filter is a symmetric filter).

[0551] <When a filter based on filter Y2 is used as filter NC1>

[0552] Fig.19 : is a diagram depicting filter NC1 and necessary pixels when a filter based on filter Y2 is adopted as filter NC1.

[0553] The filter NC1 based on the filter Y2 is a Y2 normal filter, a Y2-1 asymmetric filter or a Y2-1 symmetric filter.

[0554] In the case where a Y2 normal filter is adopted as the filter NC1, filter application determination is performed in a manner similar to the case of the Y1 normal filter, that is, in a manner similar to the luminance component application determination in Expression (20).

[0555] Therefore, the application determination pixels of the color difference component used in the filter application determination are 6 pixels, ie, pixels p0 to p2 and q0 to q2, as in the case of the Y1 normal filter.

[0556] Therefore, for the filter application determination in the case where the horizontal boundary is a CTU boundary, the capacity of three pixel rows for pixels p0 to p2 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the row buffer 330.

[0557] In the case where a Y2 normal filter is adopted as the filter NC1, during filter type determination, a determination conforming to a standard weak determination of determining whether to apply a weak filter to a luma component in HEVC is performed.

[0558] Here, in the standard weak determination, it is determined whether Expression (38) is satisfied, and if necessary, it is further determined whether Expression (39) and Expression (40) are satisfied.

[0559] |(9*(q0,i-p0,i)-3*(q1,i-p1,i)+8)>>4|<tc*10

[0560] …(38)

[0561] |p2,0-2*p1,0+p0,0|+|p2,3-2*p1,3+p0,3|<(beta+(beta>>1))>>3

[0562] …(39)

[0563] |q2,0-2*q1,0+q0,0|+|q2,3-2*q 1,3+q0,3|<(beta+(beta>>1))>>3

[0564] …(40)

[0565] In the standard weak determination, first, a weak on / off determination is performed for each row (column) in the blocks Bp and Bq to determine whether or not Expression (38) is satisfied. Then, in the case where there is a row satisfying Expression (38) as a result of the weak on / off determination, the first and fourth rows are used to perform p1 determination to determine whether or not Expression (39) is satisfied and q1 determination to determine whether or not Expression (40) is satisfied.

[0566] In the standard weak determination, in the case of the p1 determination satisfying the expression (39), the pixel pi in the row of the block Bp satisfying the weak on / off determination of the expression (38) is set as a pixel that can be a target pixel. Similarly, in the case of the q1 determination satisfying the expression (40), the pixel qi in the row of the block Bq satisfying the weak on / off determination of the expression (38) is set as a pixel that can be a target pixel.

[0567] In the filter type determination of the Y2 normal filter, a determination conforming to a standard weak determination of determining whether to apply a weak filter to a luma component in HEVC is performed.

[0568] That is, during the filter type determination of the Y2 normal filter, it is determined whether Expression (41) is satisfied, and if necessary, it is further determined whether Expression (39) and Expression (40) are satisfied.

[0569] |(9*(q0-p0)-3*(q1-p1)+8)>>4|<tc*10

[0570] …(41)

[0571] |p2-2*p1+p0|<(beta+(beta>>1))>>4

[0572] …(42)

[0573] |q2-2*q1+q0|<(beta+(beta>>1))>>4

[0574] …(43)

[0575] During the filter type determination of the Y2 normal filter, first, a weak on / off determination is performed for each of the two rows (columns) of pixels of the color difference components in the blocks Bp and Bq to determine whether or not Expression (41) is satisfied. Then, in the case where there is a row satisfying Expression (41) as a result of the weak on / off determination, a p1 determination is performed for one row (e.g., the first row) of pixels of the two rows of pixels of the color difference components in the blocks Bp and Bq to determine whether or not Expression (42) is satisfied, and a q1 determination is performed for determining whether or not Expression (43) is satisfied.

[0576] During the filter type determination of the Y2 normal filter, in the case of the determination of p1 satisfying the expression (42), the pixel pi in the row (column) of the block Bp satisfying the weak on / off determination of the expression (41) is set as a pixel that can be a target pixel. Similarly, in the case of the determination of q1 satisfying the expression (43), the pixel qi in the row of the block Bq satisfying the weak on / off determination of the expression (41) is set as a pixel that can be a target pixel.

[0577] In the filter NC2 based on the filter Y2, only the pixels set as pixels that can be the target pixels become the target pixels, and the filtered pixels are desired.

[0578] From Expression (41) to Expression (43), the type determination pixels of the color difference component used in the filter type determination of the Y2 normal filter are 6 pixels, that is, pixels p0 to p2 and q0 to q2.

[0579] Therefore, for filter type determination in the case where the horizontal boundary is a CTU boundary, the capacity of three pixel rows for pixels p0 to p2 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the row buffer 330 .

[0580] A weak filter used for the luma component in HEVC can be adopted as the Y2 normal filter. In this case, the Y2 normal filter is represented by Expression (44).

[0581] D=Clip3(-tC, tC, D), D=(9*(q0-p0)-3*(q1-p1)+8)>>4

[0582] p0′=Clip1C(p0+D)

[0583] q0′=Clip1C(q0-D)

[0584] Dp=Clip3(-(tC>>1), tC>>1, (((p2+pθ+1)>>1)-p1+D)>>1)

[0585] p1′=Clip1C(p1+Dp)

[0586] Dq=Clip3(-(tC>>1), tC>>1, (((q2+q0+1)>>1)-q1-D)>>1)

[0587] q1′=Clip1C(q1+Dq)

[0588] …(44)

[0589] Here, when BC is defined as the number of bits representing the color difference component, Clip1C(A) is set to Clip1C(A)=Clip(0, (1< <BC)-1,A)。

[0590] The filter constituent pixels of the color difference component used in the filtering process of the Y2 normal filter using expression (44) are 6 pixels, that is, pixels p0 to p2 and q0 to q2. In addition, the target pixels of the color difference component to be filtered are 4 pixels, that is, pixels p0 to p1 and q0 to q1.

[0591] Therefore, for the filtering processing of the Y2 normal filter when the horizontal boundary is a CTU boundary, the capacity of 3 pixel rows for pixels p0 to p2 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the row buffer 330.

[0592] Therefore, in the case where a Y2 normal filter is adopted as the filter NC1 , the capacity of three pixel rows for the pixels p0 to p2 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the line buffer 330 .

[0593] In the case where the Y2-1 asymmetric filter is adopted as the filter NC1, it is determined whether Expression (27) is satisfied during the filter application determination, as in the case of the Y1-2 asymmetric filter.

[0594] Therefore, the application determination pixels of the color difference component used in the filter application determination of the Y2-1 asymmetric filter are 5 pixels, ie, pixels p0 to p1 and q0 to q2, as in the case of the Y1-2 asymmetric filter.

[0595] Therefore, for the filter application determination in the case where the horizontal boundary is a CTU boundary, the capacity of 2 pixel rows for pixels p0 to p1 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the line buffer 330 .

[0596] In the case of adopting the Y2-1 asymmetric filter as the filter NC1, during the filter type determination, determine whether expressions (45) to (47) obtained by replacing the pixel p2 in expressions (41) to (43) of the filter type determination of the Y2 normal filter with the pixel p1 on the horizontal boundary side are satisfied.

[0597] |(9*(q0-p0)-3*(q1-p1)+8)>>4|<tc*10

[0598] …(45)

[0599] |p1-2*p1+p0|<(beta+(beta>>1))>>4=|p0-p1|<(beta+(beta>>1))>>4

[0600] …(46)

[0601] |q2-2*q1+q0|<(beta+(beta>>1))>>4

[0602] …(47)

[0603] Expression (45) indicates weak on / off determination. Expression (46) and Expression (47) indicate p1 determination and q1 determination, respectively.

[0604] The determination of the filter type of the Y2-1 asymmetric filter is similar to the determination of the filter type of the Y2 normal filter, except that expressions (45) to (47) are used instead of expressions (41) to (43). Therefore, the description of the determination of the filter type of the Y2-1 asymmetric filter is omitted.

[0605] From Expression (45) to Expression (47), the type determination pixels of the color difference component used in the filter type determination of the Y2-1 asymmetric filter are 5 pixels, that is, pixels p0 to p1 and q0 to q2.

[0606] Therefore, for filter type determination in the case where the horizontal boundary is a CTU boundary, the capacity of 2 pixel rows for pixels p0 to p1 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the row buffer 330 .

[0607] As the Y2-1 asymmetric filter, a filter represented by Expression (48) obtained by replacing the pixel p2 in Expression (44) for the Y2 normal filter with the pixel p1 on the horizontal boundary side can be adopted.

[0608] D=Clip3(-tC, tC, D), D=(9*(q0-p0)-3*(q1-p1)+8)>>4

[0609] p0′=Clip1C(p0+D)

[0610] q0′=Clp1C(q0-D)

[0611] Dp=Clip3(-(tC>>1), tC>>1, (((p1+p0+1)>>1)-p1+D)>>1)

[0612] p1′=Clip1C(p1+Dp)

[0613] Dq=Clip3(-(tC>>1), tC>>1, (((q2+qθ+1)>>1)-q1-D)>>1)

[0614] q1′=Clip1C(q1+Dq)

[0615] …(48)

[0616] The filter constituent pixels of the color difference component used in the filtering process of the Y2-1 asymmetric filter using expression (48) are 5 pixels, that is, pixels p0 to p1 and q0 to q2. In addition, the target pixels of the color difference component to be filtered are 4 pixels, that is, pixels p0 to p1 and q0 to q1.

[0617] Therefore, for filtering processing using the Y2-1 asymmetric filter when the horizontal boundary is a CTU boundary, the capacity of two pixel rows for pixels p0 to p1 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the row buffer 330.

[0618] Therefore, in the case where a Y2-1 asymmetric filter is adopted as the filter NC1, the capacity of two pixel rows for the pixels p0 to p1 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the line buffer 330.

[0619] Here, the pixels used in the case of adopting the Y2-1 asymmetric filter as the filter NC1 are the pixels p0 to p1 in the block Bp and the pixels q0 to q2 in the block Bq. These pixels are asymmetric with respect to the horizontal boundary.

[0620] In the case where a Y2-1 symmetric filter is adopted as the filter NC1, it is determined in the filter application determination whether Expression (30) is satisfied, as in the case of the Y1-2 symmetric filter.

[0621] Therefore, the application determination pixels of the color difference component used in the filter application determination of the Y2-1 symmetric filter are 4 pixels, ie, pixels p0 to p1 and q0 to q1, as in the case of the Y1-2 symmetric filter.

[0622] Therefore, for the filter application determination in the case where the horizontal boundary is a CTU boundary, the capacity of 2 pixel rows for pixels p0 to p1 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the line buffer 330 .

[0623] In the case of adopting a Y2-1 symmetric filter as filter NC1, during filter type determination, it is determined whether expressions (49) to (51) obtained by replacing pixel p2 in expressions (41) to (43) for filter type determination for the Y2 normal filter with pixel p1 on the horizontal boundary side and replacing pixel q2 with pixel q1 on the horizontal boundary side are satisfied.

[0624] |(9*(q0-pθ)-3*(q1-p1)+8)>>4|<tc*1θ

[0625] …(49)

[0626] |p1-2*p1+p0|<(beta+(beta>>1))>>4=|p0-p1|<(beta+(beta>>1))>>4

[0627] …(50)

[0628] |q1-2*q1+qθ|<(beta+(beta>>1))>>4=|q0-q1|<(beta+(beta>>1))>>4

[0629] …(51)

[0630] Expression (49) indicates weak on / off determination. Expressions (50) and (51) indicate p1 determination and q1 determination, respectively.

[0631] The filter type determination of the Y2-1 symmetric filter is similar to the filter type determination of the Y2 normal filter, except that expressions (49) to (51) are used instead of expressions (41) to (43). Therefore, the description of the filter type determination of the Y2-1 symmetric filter is omitted.

[0632] From Expression (49) to Expression (51), the type determination pixels of the color difference component used in the filter type determination of the Y2-1 symmetric filter are 4 pixels, that is, pixels p0 to p1 and q0 to q1.

[0633] Therefore, for filter type determination in the case where the horizontal boundary is a CTU boundary, the capacity of 2 pixel rows for pixels p0 to p1 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the row buffer 330 .

[0634] The filter represented by expression (52) can be used as a Y2-1 symmetric filter, where expression (52) is obtained by replacing pixel p2 in expression (44) for the Y2 normal filter with pixel p1 on the horizontal boundary side and replacing pixel q2 with pixel q1 on the horizontal boundary side.

[0635] D=Clip3(-tC, tC, D), D=(9*(q0-p0)-3*(q1-p1)+8)>>4

[0636] pθ′=Clp1C(p0+D)

[0637] q0′=Clp1C(q0-D)

[0638] Dp=Clip3(-(tC>>1), tC>>1, (((p1+p0+1)>>1)-p1+D)>>1)

[0639] p1′=Clip1C(p1+Dp)

[0640] Dq=Clip3(-(tC>>1), tC>>1, (((q1+q0+1)>>1)-q1-D)>>1)

[0641] q1′=Clip1C(q1+Dq)

[0642] …(52)

[0643] The filter constituent pixels of the color difference component used in the filtering process of the Y2-1 symmetric filter using expression (52) are 4 pixels, that is, pixels p0 to p1 and q0 to q1. In addition, the target pixels of the color difference component to be filtered are 4 pixels, that is, pixels p0 to p1 and q0 to q1.

[0644] Therefore, for filtering processing using a Y2-1 symmetric filter when the horizontal boundary is a CTU boundary, the capacity of two pixel rows for pixels p0 to p1 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the row buffer 330.

[0645] Therefore, in the case where a Y2-1 symmetric filter is adopted as the filter NC1, the capacity of two pixel rows for the pixels p0 to p1 in the block Bp on the upper side of the horizontal boundary is required as the storage capacity of the line buffer 330.

[0646] Here, the pixels used in the case of adopting the Y2-1 symmetric filter as the filter NC1 are the pixels p0 to p1 in the block Bp and the pixels q0 to q1 in the block Bq. These pixels are symmetric with respect to the horizontal boundary.

[0647] As explained so far, the present technology can provide various filters as DF.

[0648] <How to use filter NC1>

[0649] Fig. 20 is a diagram depicting an example of an application method for applying the filter NC1 to a decoded image.

[0650] Here, the term "filter characteristics" comprehensively defines filter characteristics such as filter strength, filter constituent pixels, filter coefficient values, filter tap lengths, or filter (symmetric / asymmetric) shapes. The term refers to filter characteristics caused by filter parameters used in filtering or coding parameters related to filter characteristics (e.g., quantization parameters). In addition, the expression "changing filter characteristics" refers to changing the filter characteristics themselves, and includes changing filter strength, filter constituent pixels, filter coefficient values, filter tap lengths, filter (symmetric / asymmetric) shapes, etc. In addition, the expression "changing filter characteristics" covers changing filter parameters or coding parameters related to filter characteristics (e.g., quantization parameters). In addition, the expression "reducing (reduction / reduction) filter characteristics" covers reducing filter characteristics, such as filter strength, filter constituent pixels, filter coefficient values, filter tap lengths, or filter symmetric / asymmetric shapes (in a functional manner, by considering implementation costs such as the capacity of a line buffer). In addition, the expression "reducing (reduction / reduce) filter characteristics" also covers changing filter parameters or encoding parameters related to filter characteristics (e.g., quantization parameters) (in a functional manner, by considering implementation costs such as the capacity of the line buffer). In addition, a filter with a reduced filter characteristic is called a reduction filter or a reduced filter.

[0651] Fig. 20 Depicted are filter NC1 applied to a CTU boundary, filter NC1 applied to an internal boundary, the difference in image quality between a portion of the CTU boundary and a portion of the internal boundary when filter NC1 is applied, and a storage capacity (line buffer size) required for the line buffer 330.

[0652] Here, Fig.17 The depicted Y1-1 asymmetric filter, Y1-1 symmetric filter, Y1-2 asymmetric filter, and Y1-2 symmetric filter each have fewer filter constituent pixels than the Y1 normal filter, and therefore, the Y1-1 asymmetric filter, Y1-1 symmetric filter, Y1-2 asymmetric filter, and Y1-2 symmetric filter are filters each having a reduced (reduced) filter characteristic (filter strength). Therefore, the Y1-1 asymmetric filter, Y1-1 symmetric filter, Y1-2 asymmetric filter, and Y1-2 symmetric filter can be regarded as reduced filters each having a reduced filter characteristic relative to the Y1 normal filter.

[0653] in addition, Fig.18The depicted OF-1 asymmetric filter, OF-1 symmetric filter, OF-2 asymmetric filter, and OF-2 symmetric filter each have fewer filter constituent pixels than the OF normal filter, and therefore, the OF-1 asymmetric filter, OF-1 symmetric filter, OF-2 asymmetric filter, and OF-2 symmetric filter are filters each having a reduced (reduced) filter characteristic (filter strength). Therefore, the OF-1 asymmetric filter, OF-1 symmetric filter, OF-2 asymmetric filter, and OF-2 symmetric filter can be regarded as reduced filters each having a reduced filter characteristic relative to the OF normal filter.

[0654] in addition, Fig.19 The depicted Y2-1 asymmetric filter and the Y2-1 symmetric filter each have fewer filter constituent pixels than the Y2 normal filter, and therefore, the Y2-1 asymmetric filter and the Y2-1 symmetric filter are filters each having a reduced (reduced) filter characteristic (filter strength). Therefore, the Y2-1 asymmetric filter and the Y2-1 symmetric filter can be regarded as reduced filters each having a reduced filter characteristic relative to the Y2 normal filter.

[0655] Assume that the Y1 normal filter, the OF normal filter, and the Y2 normal filter are defined as normal filters. The reduced filter has a lower filter strength than the normal filter, but has fewer filter constituent pixels (on the p side). Therefore, the storage capacity required for the line buffer 330 becomes smaller than that of the normal filter.

[0656] Meanwhile, in order to sufficiently remove block noise, it is required to apply the filter NC1 having a high filter strength (filter characteristic) to a block boundary between blocks of a large block size, that is, a CTU boundary or an internal boundary.

[0657] However, if a normal filter having a high filter strength is adopted as the filter NC1, the storage capacity required for the line buffer 330 becomes large at the CTU boundary because there are many filter constituent pixels in the normal filter (on the p-side).

[0658] Therefore, for the CTU boundary, a filter with fewer filter constituent pixels (on the p side) can be adopted as the filter NC1. In this case, the storage capacity required for the line buffer 330 can be suppressed. Fig. 20 In the third and subsequent rows in , a reduced filter is applied to the CTU boundary in order to suppress the storage capacity required for the row buffer 330.

[0659] On the other hand, applying the filter NC1 to the internal boundary does not affect the storage capacity required for the line buffer 330. Therefore, for the internal boundary, a normal filter having many filter constituent pixels but a high filter strength can be adopted as the filter NC1. In this case, block noise can be sufficiently eliminated.

[0660] It is to be noted that if a clipped filter and a normal filter are applied to a CTU boundary and an inner boundary, respectively, a difference in image quality between the CTU boundary and the inner boundary may occur due to a difference in filter strength between the clipped filter and the normal filter.

[0661] To this end, a filter similar to the filter used for the CTU boundary can be applied to the internal boundary. In this case, the generation of a difference in image quality between the CTU boundary and the internal boundary can be suppressed.

[0662] By the control unit 340 ( Fig.11 ) Control: For block boundaries, use (select) Figures 17 to 19 Which of the filters shown is used as filter NC1.

[0663] For example, in order to apply DF strongly evenly in one picture, DF with different filter designs may be applied to CTU boundaries and inner boundaries, that is, a clipped filter and a normal filter may be applied to CTU boundaries and inner boundaries, respectively.

[0664] In addition, in order to uniformly apply DF in one picture, DF with the same filter design can be applied to CTU boundaries and internal boundaries, that is, the reduced filter can be applied to CTU boundaries and internal boundaries.

[0665] Fig.21 is a diagram depicting another example of an application method for applying the filter NC1 to a decoded image.

[0666] For example, in Fig.21 In the first row of , the filter C1 ( Fig.14 ) is applied as filter NC1 to the p side of the CTU boundary, and a Y1 normal filter is applied to the q side. In addition, a Y1 normal filter is applied as filter NC1 to the p and q sides of the internal boundary.

[0667] As described so far, in the present technology, for pixels of the color difference component located around the block boundary in the decoded image, a Y1-1 asymmetric filter etc. (reduced second luminance filter) having a reduced filter characteristic relative to a strong filter etc. (second luminance filter) for the luminance component having a higher filter strength than a weak filter etc. (first luminance filter) for the luminance component, or a Y2-1 asymmetric filter etc. (reduced first luminance filter) having a reduced filter characteristic relative to the first luminance filter can be used as a filter NC1 (second chromatic aberration filter) having a higher filter strength than filter NC2 (first chromatic aberration filter).

[0668] Furthermore, in the present technology, the clipped second luminance filter may be a clipped second luminance vertical filter that performs the clipped second luminance filter in the vertical direction, and the second color difference filter may be a second color difference vertical filter that performs the second color difference filter in the vertical direction.

[0669] Furthermore, in the present technology, the trimmed second luminance vertical filter may be a filter obtained by changing a filter coefficient or a clipping parameter with respect to a filter coefficient or a clipping parameter in the second luminance filter.

[0670] Furthermore, in the present technology, the trimmed second luminance vertical filter may be an asymmetric filter obtained by trimming filter characteristics of a filter to be applied to pixels located on the upper side of a block boundary.

[0671] Furthermore, in the present technology, a strong filter for a luminance component conforming to the H.265 / HEVC standard may be used as the second luminance filter.

[0672] Furthermore, in the present technology, a thinned first luminance vertical filter that performs thinning in the vertical direction may be used as the thinned first luminance filter.

[0673] In addition, in the present technology, the control unit 340 may control the DF 300 (filter unit) so that the reduced second luminance vertical filter is applied as the second chrominance vertical filter to the block boundary of the coding tree block of the fixed size in sequence units.

[0674] Furthermore, in the present technology, the control section 340 may control the filtering section so that the reduced second luminance vertical filter is applied as the second color difference vertical filter to the block boundary of the blocks divided from the coding tree block.

[0675] In addition, in the present technology, the control section 340 may control the filtering section so that a second luminance vertical filter that performs a second luminance filter in the vertical direction is applied as a second color difference vertical filter to a block boundary of a block divided from the coding tree block.

[0676] <Description of Computer to Which This Technology Is Applied>

[0677] Next, the above-described series of processing can be executed by hardware or software. In the case where the series of processing is executed by software, a program constituting the software is installed in a general-purpose computer or the like.

[0678] Fig. 22 is a block diagram depicting a configuration example of one embodiment of a computer in which a program for executing the above-described series of processes is installed.

[0679] The program may be recorded in advance in the ROM 903 or the hard disk 905 as a recording medium included in the computer.

[0680] Alternatively, the program may be stored (recorded) in a removable recording medium 911 driven by the drive 909. The removable recording medium 911 may be provided in the form of so-called packaged software. Here, examples of the removable recording medium 911 include a floppy disk, a CD-ROM (Compact Disk Read Only Memory), an MO (Magneto-Optical) disk, a DVD (Digital Versatile Disk), a magnetic disk, and a semiconductor memory.

[0681] It is to be noted that the program may be downloaded to the computer via a communication network or a broadcasting network and installed in the internal hard disk 905, instead of being installed in the computer via the above-mentioned removable recording medium 911. That is, the program may be transmitted to the computer from a download site in a wireless manner via an artificial satellite used for digital satellite broadcasting, or may be transmitted to the computer in a wired manner via a network such as a LAN (Local Area Network) or the Internet.

[0682] The computer includes a CPU (Central Processing Unit) 902 . An input / output interface 910 is connected to the CPU 902 via a bus 901 .

[0683] Upon receiving an instruction via the input / output interface 910 based on an operation performed by a user on the input section 907, the CPU 902 executes a program stored in a ROM (Read Only Memory) 903 according to the instruction. Alternatively, the CPU 902 loads a program stored in a hard disk 905 into a RAM (Random Access Memory) 904 and executes the program.

[0684] Thus, the CPU 902 performs the processing according to the above flowchart or performs the processing to be performed by the configuration in the above block diagram. Then, if necessary, for example, the CPU 902 outputs the processing result from the output section 906 via the input / output interface 910, or transmits the processing result from the communication section 908, and further, for example, records the processing result in the hard disk 905.

[0685] Note that the input section 907 includes a keyboard, a mouse, a microphone, etc. Furthermore, the output section 906 includes an LCD (Liquid Crystal Display), a speaker, and the like.

[0686] Here, in this specification, the processing to be executed by a computer according to a program in this document does not necessarily have to be performed in a time series in the order described with reference to the flowchart. That is, the processing to be executed by a computer according to a program includes processing executed in parallel or individually (for example, parallel processing or processing using an object).

[0687] In addition, the program may be processed by one computer (processor), or may be processed in a distributed manner by a plurality of computers. In addition, the program may be transmitted to a remote computer and executed there.

[0688] In addition, in this specification, the term "system" refers to a collection of multiple constituent parts (devices, modules (components), etc.), and it does not matter whether all the constituent parts are included in the same housing. Therefore, a collection of multiple devices housed in different housings and connected via a network is a system, and further, a single device having multiple modules housed in a single housing is also a system.

[0689] <5. Conclusion>

[0690] As explained so far, the deblocking filter according to the embodiment of the present disclosure can be more appropriately applied to the color difference component in the decoded image.

[0691] For example, the present disclosure may include the following technical solutions:

[0692] Technical Solution 1. An image processing device, comprising:

[0693] a decoding unit that generates a decoded image by performing a decoding process on the bit stream; and

[0694] A filtering unit that applies a reduced second luminance filter or a reduced first luminance filter as a second chromatic aberration filter having a higher filter strength than the first chromatic aberration filter to pixels of a chromatic aberration component located around a block boundary in a decoded image that has been decoded by the decoding unit, wherein the reduced second luminance filter has a reduced filter characteristic relative to the second luminance filter having a higher filter strength than the first luminance filter, and the reduced first luminance filter has a reduced filter characteristic relative to the first luminance filter.

[0695] Technical solution 2. An image processing device according to technical solution 1, wherein:

[0696] The trimmed second luminance filter is a trimmed second luminance vertical filter that performs the trimmed second luminance filter in a vertical direction, and

[0697] The second color difference filter is a second color difference vertical filter that performs the second color difference filtering in a vertical direction.

[0698] Technical solution 3. An image processing device according to technical solution 2, wherein:

[0699] The clipped second luminance vertical filter is a filter in which filter coefficients or clipping parameters are changed relative to the second luminance filter.

[0700] Technical solution 4. An image processing device according to technical solution 2, wherein:

[0701] The clipped second luminance vertical filter is an asymmetric filter in which the filter characteristics of the filter to be applied to pixels located on the upper side of the block boundary are clipped.

[0702] Technical solution 5. An image processing device according to technical solution 2, wherein:

[0703] The clipped first luminance filter is a clipped first luminance vertical filter that performs the clipped first luminance filter in a vertical direction.

[0704] Technical Solution 6. The image processing device according to Technical Solution 2 further includes:

[0705] The control unit controls the filtering unit so that the reduced second luminance vertical filter is applied as the second chrominance vertical filter to a block boundary of a coding tree block of a fixed size in a sequence unit.

[0706] Technical solution 7. An image processing device according to technical solution 6, wherein:

[0707] The control section controls the filtering section so that the reduced second luminance vertical filter is applied as the second color difference vertical filter to a block boundary of a block divided from the coding tree block.

[0708] Technical solution 8. The image processing device according to technical solution 6, wherein:

[0709] The control section controls the filtering section so that a second luminance vertical filter in which the second luminance filter is performed in a vertical direction is applied as the second color difference vertical filter to a block boundary of a block divided from the coding tree block.

[0710] Technical solution 9. An image processing device according to technical solution 7, wherein:

[0711] The blocks are divided according to a quadtree block structure, a quadtree plus binary tree block structure, or a multi-type tree coding block structure.

[0712] Technical solution 10. The image processing device according to technical solution 1, wherein:

[0713] The second luminance filter is a strong filter for the luminance component compliant with the H.265 / HEVC standard.

[0714] Technical solution 11. The image processing device according to technical solution 1, wherein:

[0715] The second luminance filter is a filter obtained by changing filter characteristics of a strong filter of a luminance component conforming to the H.265 / HEVC standard.

[0716] Technical Solution 12. An image processing method, comprising:

[0717] generating a decoded image by performing a decoding process on the bit stream; and

[0718] A reduced second luminance filter or a reduced first luminance filter is applied as a second chromatic aberration filter having a higher filter strength than the first chromatic aberration filter to pixels of the chromatic aberration component located around a block boundary in the decoded image, the reduced second luminance filter having reduced filter characteristics relative to the second luminance filter having a higher filter strength than the first luminance filter, and the reduced first luminance filter having reduced filter characteristics relative to the first luminance filter.

[0719] Technical Solution 13. An image processing device, comprising:

[0720] a filtering section that applies a reduced second luminance filter or a reduced first luminance filter as a second color difference filter having a higher filter strength than a first color difference filter, to pixels of a color difference component located around a block boundary in a local decoded image obtained by a local decoding process during an encoding process of the image, the reduced second luminance filter having a reduced filter characteristic relative to a second luminance filter having a higher filter strength than the first luminance filter, and the reduced first luminance filter having a reduced filter characteristic relative to the first luminance filter; and

[0721] The encoding section performs encoding processing on the image by using the locally decoded image to which the second color difference filter has been applied by the filtering section.

[0722] Technical solution 14. An image processing method, comprising:

[0723] applying a reduced second luminance filter or a reduced first luminance filter as a second color difference filter having a higher filter strength than a first color difference filter, which has a reduced filter characteristic relative to a second luminance filter having a higher filter strength than the first luminance filter, to pixels of a color difference component located around a block boundary in a local decoded image obtained by a local decoding process during an encoding process of the image, the reduced second luminance filter having a reduced filter characteristic relative to the first luminance filter, and the reduced first luminance filter having a reduced filter characteristic relative to the first luminance filter; and

[0724] An encoding process is performed on the image by using the locally decoded image to which the second color difference filter has been applied.

[0725] The preferred embodiments of the present disclosure have been described in detail with reference to the accompanying drawings. However, the technical scope of the present disclosure is not limited to these embodiments. A person skilled in the art in the field related to the technical field of the present disclosure can obviously think of various changes or modifications within the technical concept recorded in the claims. It should naturally be understood that such changes or modifications are included in the technical scope of the present disclosure.

[0726] (Color difference related parameters)

[0727] For example, in the present embodiment, an example of using a flag indicating the presence / absence of a significant coefficient of a color difference component in each TU as a color difference related parameter has been described. However, the present technology is not limited to this example. For example, the transform coefficient for the color difference component itself may be included in the color difference related parameter. In this case, the boundary strength calculation unit 261 may calculate bS by determining the presence / absence of a significant coefficient of a color difference component in each TU based on the transform coefficient for the color difference component. In addition, with respect to the above-mentioned embodiment, Figure 4 An example is depicted in which the value of bS varies not only depending on whether the condition B1-Y, B1-U, or B1-V is satisfied, but also depending on whether the condition B2 is satisfied. Fig.14 As in the alternative example depicted in , for example, in order to suppress an increase in processing cost, the determination of whether the condition B2 is satisfied for both the color difference components U and V may be omitted.

[0728] (Threshold for block determination)

[0729] In the above-described embodiment, an example has been described in which the threshold used in the large block determination is 16. However, the present technology is not limited to this example. The threshold may be set to 8 or 32. In addition, in the case of the YUV444 format, a threshold equal to or greater than the threshold used in the YUV420 format may be used in the large block determination.

[0730] (Strong filter)

[0731] In the above-mentioned embodiment, an example of applying a strong filter represented by expressions (15) to (19) to a color difference component has been described. However, the strong filter applied in the present technology is not limited to this example. The strong filter applied to the color difference component only needs to be a filter with a higher filter strength than a weak filter. For example, in the present technology, a strong filter applied to the color difference component in NPL 1 (a strong filter applied to the luminance component in HEVC) can be applied to the color difference component.

[0732] (Application target of this technology)

[0733] The present technology is applicable to any image encoding / decoding scheme. That is, the specifications of various processes related to image encoding / decoding such as transformation (inverse transformation), quantization (inverse quantization), encoding (decoding) and prediction are defined as needed, and are not limited to the above-mentioned embodiments, as long as there is no contradiction with the above-mentioned present technology. In addition, part of these processes can be omitted, as long as there is no contradiction with the above-mentioned present technology.

[0734] (piece)

[0735] In addition, in this specification, the term "block" (not a block indicating a processing unit) used as a partial area or processing unit of an image (picture) in the description refers to any partial area in the picture unless otherwise mentioned, and the size, shape, and characteristics of the area are not limited to specific examples. For example, it is assumed that the "block" includes any partial area (processing unit) described in the above-mentioned references REF1 to REF3, such as TB (transform block), TU (transform unit), PB (prediction block), PU (prediction unit), SCU (minimum coding unit), CU (coding unit), LCU (maximum coding unit), CTB (coding tree block), CTU (coding tree unit), transform block, subblock, macroblock, tile, and slice.

[0736] (Processing Unit)

[0737] In the above description, the data units for setting various information or the data units in various processes are determined as needed, so the data units are not limited to the data units in the above implementations. For example, information or processing can be set for each TU (transform unit), TB (transform block), PU (prediction unit), PB (prediction block), CU (coding unit), LCU (maximum coding unit), sub-block, block, tile, slice, picture, sequence or component, or the data of its data unit can be used as a target. Needless to say, such a data unit can be set for each information or each process. The data units for all information or processes are not necessarily unified. It should be noted that the storage location of the information is determined as needed, so the information can be stored in the header, parameter set, etc. of the above-mentioned data unit. Moreover, the information can be stored in multiple locations.

[0738] In addition, in the above-mentioned embodiment, the deblocking filtering process of the color difference component is performed for every 2 lines. However, the present technology is not limited to this embodiment. For example, in the case of the YUV444 format, the deblocking filtering process of the color difference component may be performed for every 4 lines. In this case, the application necessity / unnecessity determination unit 265 may make a determination by referring to the first line and the third line during the determination of the above-mentioned condition C3.

[0739] (Control Information)

[0740] The control information about the present technology described above may be sent from the encoding side to the decoding side. For example, control information (e.g., enabled_flag) for controlling whether to allow (or prohibit) the application of the present technology described above may be sent. Alternatively, for example, control information indicating a target to which the present technology described above is applied (or a target to which the present technology described above is not applied) may be sent. For example, control information for specifying a block size (upper limit or lower limit, or both upper limit and lower limit), a frame, a component, a layer, etc. to which the present technology is applied (or to allow or prohibit application) may be sent.

[0741] (Block size information)

[0742] When specifying the size of a block to which the present technology is applied, the block size can be specified directly, or the block size can be specified indirectly. For example, the block size can be specified using identification information for identifying the size. Alternatively, for example, the block size can be specified based on a ratio to the size of a reference block (e.g., LCU or SCU) or a difference from the size of a reference block. For example, in the case where information for specifying the block size is sent as a syntax element or the like, information for indirectly specifying the size in the above manner can be used. Therefore, in some cases, the amount of information can be reduced, and the coding efficiency can be further improved. In addition, specifying such a block size covers the range of the specified block size (e.g., the allowable range of the specified block size).

[0743] (other)

[0744] It should be noted that the term "flag" in this specification refers to information for identifying multiple states, and includes not only information for identifying two states, i.e., true (1) or false (0), but also information for identifying three or more states. Therefore, the value that the "flag" can take can be one of the two values ​​1 / 0, or can be one of three or more values. That is, the number of bits constituting the "flag" is defined as needed, so the number of bits can be 1 or 2 or more. In addition, with respect to identification information (including flags), identification information can be included in the bit stream, or difference information about the identification information relative to specific reference information can be included in the bit stream. Therefore, the term "flag" or "identification information" in this specification includes not only information about the "flag" or "identification information", but also difference information relative to the reference information.

[0745] In addition, various information (e.g., metadata) related to the coded data (bitstream) can be sent or recorded in any form as long as the information is associated with the coded data. Here, the term "association" means, for example, that another data set is allowed to be used (linked) when processing one data set. That is, data sets associated with each other can be combined into one data set, or can be separate data sets. For example, information associated with the coded data (image) can be transmitted on a transmission path different from the transmission path of the coded data (image). In addition, for example, information associated with the coded data (image) can be recorded in a recording medium different from the recording medium of the coded data (image) (or in a recording area different from the recording area of ​​the coded data (image) in the same recording medium). It should be noted that "association" can be performed not on the entire data, but on a part of the data. For example, an image and information corresponding to the image can be associated with each other in any unit such as multiple frames, one frame, or a part of a frame.

[0746] It should be noted that the terms "combine", "multiplex", "add", "integrate", "include", "store", "put in", "introduce" and "insert" in this specification mean combining multiple items into one item, such as combining encoded data and metadata into one data set, and therefore, it means a method for the above-mentioned "association".

[0747] The present technology can be implemented as any configuration constituting a device or system, such as a processor as a system LSI (large scale integration) or the like, a module using multiple processors or the like, a unit using multiple processors or the like, or a set obtained by adding any other function to a unit (i.e., a partial configuration of a device).

[0748] It is to be noted that the embodiments according to the present technology are not limited to the above-described embodiments, and various changes can be made within the scope of the gist of the present technology.

[0749] For example, the present technology may be configured by cloud computing in which one function is shared and cooperatively processed by a plurality of devices through a network.

[0750] In addition, the steps that have been described with reference to the above-mentioned flowcharts may be executed by one device, or may be shared and executed by a plurality of devices.

[0751] Furthermore, in the case where a plurality of processes are included in one step, the plurality of processes included in one step may be executed by one device, or may be shared and executed by a plurality of devices.

[0752] In addition, the effects described in this specification are only examples and are not limited. Therefore, any other effects can be provided.

[0753] Reference numerals list

[0754] 10 Image encoding device, 16 Lossless encoding unit, 26 Deblocking filter (DF), 60 Image decoding device, 62 Lossless decoding unit, 261 Boundary strength calculation unit, 263 Determination unit, 265 Application necessity / unnecessity determination unit, 267 Filter strength determination unit, 269 Filter unit, 300 DF, 310 Determination unit, 311 Application necessity / unnecessity determination unit, 312 Filter strength determination unit, 320 Filter unit, 330 Line buffer, 340 Control unit, 901 Bus, 902 CPU, 903 ROM, 904 RAM, 905 Hard disk, 906 Output unit, 907 Input unit, 908 Communication unit, 909 Drive, 910 Input / output interface, 911 Removable recording medium

Claims

1. An image processing device, comprising: A decoding unit that generates a decoded image by performing a decoding process on the bit stream; as well as A filtering unit that applies a reduced second luminance filter or a reduced first luminance filter as a second chromatic aberration filter having a higher filter strength than the first chromatic aberration filter to pixels of a chromatic aberration component located around a block boundary in a decoded image that has been decoded by the decoding unit, wherein the reduced second luminance filter has a reduced filter characteristic relative to the second luminance filter having a higher filter strength than the first luminance filter, and the reduced first luminance filter has a reduced filter characteristic relative to the first luminance filter.

2. The image processing device according to claim 1, wherein: The trimmed second luminance filter is a trimmed second luminance vertical filter that performs the trimmed second luminance filter in a vertical direction, and The second color difference filter is a second color difference vertical filter that performs the second color difference filtering in a vertical direction.

3. The image processing device according to claim 2, wherein: The clipped second luminance vertical filter is a filter in which filter coefficients or clipping parameters are changed relative to the second luminance filter.

4. The image processing device according to claim 2, wherein: The clipped second luminance vertical filter is an asymmetric filter in which the filter characteristics of the filter to be applied to pixels located on the upper side of the block boundary are clipped.

5. The image processing device according to claim 2, wherein: The clipped first luminance filter is a clipped first luminance vertical filter that performs the clipped first luminance filter in a vertical direction.

6. The image processing apparatus according to claim 2, further comprising: The control unit controls the filtering unit so that the reduced second luminance vertical filter is applied as the second chrominance vertical filter to a block boundary of a coding tree block of a fixed size in a sequence unit.

7. The image processing device according to claim 6, wherein: The control section controls the filtering section so that the reduced second luminance vertical filter is applied as the second color difference vertical filter to a block boundary of a block divided from the coding tree block.

8. The image processing device according to claim 6, wherein: The control section controls the filtering section so that a second luminance vertical filter in which the second luminance filter is performed in a vertical direction is applied as the second color difference vertical filter to a block boundary of a block divided from the coding tree block.

9. The image processing apparatus according to claim 7, wherein: The blocks are divided according to a quadtree block structure, a quadtree plus binary tree block structure, or a multi-type tree coding block structure.

10. The image processing apparatus according to claim 1, wherein: The second luminance filter is a strong filter for the luminance component compliant with the H.265 / HEVC standard.

11. The image processing apparatus according to claim 1, wherein: The second luminance filter is a filter obtained by changing filter characteristics of a strong filter of a luminance component conforming to the H.265 / HEVC standard.

12. An image processing method, comprising: generating a decoded image by performing a decoding process on the bit stream; as well as A reduced second luminance filter or a reduced first luminance filter is applied as a second chromatic aberration filter having a higher filter strength than the first chromatic aberration filter to pixels of the chromatic aberration component located around a block boundary in the decoded image, the reduced second luminance filter having reduced filter characteristics relative to the second luminance filter having a higher filter strength than the first luminance filter, and the reduced first luminance filter having reduced filter characteristics relative to the first luminance filter.

13. An image processing device, comprising: a filtering section that applies a reduced second luminance filter or a reduced first luminance filter as a second color difference filter having a higher filter strength than a first color difference filter, to pixels of a color difference component located around a block boundary in a local decoded image obtained by a local decoding process during an encoding process of the image, the reduced second luminance filter having a reduced filter characteristic relative to a second luminance filter having a higher filter strength than the first luminance filter, and the reduced first luminance filter having a reduced filter characteristic relative to the first luminance filter; and The encoding section performs encoding processing on the image by using the locally decoded image to which the second color difference filter has been applied by the filtering section.

14. An image processing method, comprising: applying a reduced second luminance filter or a reduced first luminance filter as a second color difference filter having a higher filter strength than a first color difference filter, which has a reduced filter characteristic relative to a second luminance filter having a higher filter strength than the first luminance filter, to pixels of a color difference component located around a block boundary in a local decoded image obtained by a local decoding process during an encoding process of the image, the reduced second luminance filter having a reduced filter characteristic relative to the first luminance filter, and the reduced first luminance filter having a reduced filter characteristic relative to the first luminance filter; and An encoding process is performed on the image by using the locally decoded image to which the second color difference filter has been applied.