`
`1. (Original) 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 deblockingfiltering, 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 samplesin a vertical direction or a
`
`horizontal direction from a current location, performsa first determination of determining only
`
`whetherthe 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 processis to be
`
`performed;
`
`whenit 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;
`
`whenit is determined that the location displaced by four samplesis not a
`
`TU boundary in the first determination, performs a second determination of determining whether
`
`a location displaced by eight samplesin the vertical direction or the horizontal direction from the
`
`current location is a TU boundary;
`
`
`
`whenit 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
`
`whenit is determined that the location displaced by eight samplesis not a
`
`TU boundary in the second determination, sets the maximum filter length to a third value larger
`
`than the first value and the secondvalue.
`
`2-4. (Cancelled)
`
`5. (Original) A decoder 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 deblockingfiltering, 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 samplesin a vertical direction or a
`
`horizontal direction from a current location, performsa first determination of determining only
`
`whetherthe 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 processis to be
`
`performed;
`
`
`
`whenit is determined that the location displaced by four samples is a TU
`
`boundary in the first determination, sets a maximum filter lengthto a first value;
`
`whenit is determined that the location displaced by four samplesis not a
`
`TU boundary in the first determination, performs a second determination of determining whether
`
`a location displaced by eight samplesin the vertical direction or the horizontal direction from the
`
`current location is a TU boundary;
`
`whenit 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
`
`whenit is determined that the location displaced by eight samplesis not a
`
`TU boundary in the second determination, sets the maximum filter length to a third value larger
`
`than the first value and the secondvalue.
`
`6-10. (Cancelled)
`
`