Encoder, decoder, encoding method, and decoding method
View Patent ↗An encoding method includes: changing values of luma pixels in a first block and a second block to filter a first boundary between the first block and the second block, using clipping such that change amounts of the respective values are within respective luma clip widths, the luma pixels in the first block and the second block being arranged along a first line across the first boundary; and changing values of chroma pixels in a third block and a fourth block to filter a second boundary between the third block and the fourth block, using clipping such that change amounts of the respective values are within respective chroma clip widths, the chroma pixels in the third block and the fourth block being arranged along a second line across the second boundary. The luma clip widths applied to the luma pixels are selected to be asymmetrical relative to the first boundary.
1 . A decoding method comprising:
determining whether to filter a first boundary between a first block and a second block adjacent to the first block;
changing values of luma pixels in the first block and the second block to filter the first boundary between the first block and the second block, using clipping such that change amounts of the respective values are within respective luma clip widths, the luma pixels in the first block and the second block being arranged along a first line across the first boundary; and
changing values of chroma pixels in a third block and a fourth block to filter a second boundary between the third block and the fourth block, using clipping such that change amounts of the respective values are within respective chroma clip widths, the chroma pixels in the third block and the fourth block being arranged along a second line across the second boundary,
wherein the luma clip widths applied to the luma pixels arranged along the first line are selected to be asymmetrical with respect to the first boundary, and
wherein the chroma clip widths applied to the chroma pixels arranged along the second line are selected to be symmetrical with respect to the second boundary.
2 . An encoding method comprising:
determining whether to filter a first boundary between a first block and a second block adjacent to the first block;
changing values of luma pixels in the first block and the second block to filter the first boundary between the first block and the second block, using clipping such that change amounts of the respective values are within respective luma clip widths, the luma pixels in the first block and the second block being arranged along a first line across the first boundary; and
changing values of chroma pixels in a third block and a fourth block to filter a second boundary between the third block and the fourth block, using clipping such that change amounts of the respective values are within respective chroma clip widths, the chroma pixels in the third block and the fourth block being arranged along a second line across the second boundary,
wherein the luma clip widths applied to the luma pixels arranged along the first line are selected to be asymmetrical with respect to the first boundary, and
wherein the chroma clip widths applied to the chroma pixels arranged along the second line are selected to be symmetrical with respect to the second boundary.
3 . A method of transmitting a bitstream, the method comprising:
generating the bitstream by an encoding method, the encoding method including:
determining whether to filter a first boundary between a first block and a second block adjacent to the first block;
changing values of luma pixels in the first block and the second block to filter the first boundary between the first block and the second block, using clipping such that change amounts of the respective values are within respective luma clip widths, the luma pixels in the first block and the second block being arranged along a first line across the first boundary; and
changing values of chroma pixels in a third block and a fourth block to filter a second boundary between the third block and the fourth block, using clipping such that change amounts of the respective values are within respective chroma clip widths, the chroma pixels in the third block and the fourth block being arranged along a second line across the second boundary,
wherein the luma clip widths applied to the luma pixels arranged along the first line are selected to be asymmetrical with respect to the first boundary, and
wherein the chroma clip widths applied to the chroma pixels arranged along the second line are selected to be symmetrical with respect to the second boundary; and
transmitting the bitstream.