CPC H04N 19/80 (2014.11) [H04N 19/176 (2014.11); H04N 19/86 (2014.11)] | 2 Claims |
1. An encoder comprising:
circuitry; and
memory coupled to the circuitry, wherein
in operation, the circuitry:
performs, on each of sub-block boundaries per CU, a determination process for performing deblocking filtering, the sub-block boundaries being located at intervals of eight samples in a current CU to be processed, the CU being included in a generated reconstructed picture;
in the determination process:
for a location displaced by four samples in a vertical direction or a horizontal direction from a current location, performs a first determination of determining only whether the location displaced by four samples is a TU boundary, the current location being a sample location of a current sub-block boundary on which the determination process is to be performed;
when it is determined that the location displaced by four samples is a TU boundary in the first determination, sets a maximum filter length to a first value;
when it is determined that the location displaced by four samples is not a TU boundary in the first determination, performs a second determination of determining whether a location displaced by eight samples in the vertical direction or the horizontal direction from the current location is a TU boundary;
when it is determined that the location displaced by eight samples is a TU boundary in the second determination, sets the maximum filter length to a second value larger than the first value; and
when it is determined that the location displaced by eight samples is not a TU boundary in the second determination, sets the maximum filter length to a third value larger than the first value and the second value.
|