Image encoding method/device, image decoding method/device and recording medium having bitstream stored thereon
View Patent ↗The present invention provides an image encoding method and an image decoding method. The image decoding method, according to the present invention, comprises the steps of: decoding information associated with a clipping range of a current block; and performing sample adaptive offset (SAO) filtering on the basis of the information associated with the clipping range, wherein the information associated with the clipping range may include information on the maximum and minimum values of a pixel value included in the current block.
1. An image decoding method, comprising:
decoding band index information of a current block;
performing first filtering on pixels in the current block, based on the band index information; and
performing in-loop filtering in the current block after the first filtering,
wherein the in-loop filtering includes a sample adaptive offset (SAO) mode,
wherein N bands are generated by dividing a range of pixels according to a bit depth,
wherein the band index information comprises first band index information indicating a band including a maximum value of the pixels among the N bands and second band index information indicating a band including a minimum value of the pixels among the N bands,
wherein the sample adaptive offset (SAO) mode includes an edge offset mode and a band offset mode, and
wherein the method further comprises, decoding SAO mode information indicating whether to which one of the edge offset mode and the band offset mode is performed.
2. The method of claim 1 , wherein the SAO mode information indicating whether SAO non-operation mode is applied for the current block.
3. The method of claim 2 , wherein the SAO mode information includes luma SAO mode information, and
wherein the luma SAO mode information is information on whether any one mode of the edge offset mode, the band offset mode and the SAO non-operation mode is to be performed for luma component of the current block.
4. The method of claim 2 , wherein the SAO mode information includes chroma SAO mode information, and
wherein the chroma SAO mode information is information on whether any one mode of the edge offset mode, the band offset mode and the SAO non-operation mode is to be performed for chroma component of the current block.
5. The method of claim 1 , the method further comprises decoding SAO merge information indicating whether SAO information of the left coding block and the top coding block is used or not,
wherein the left coding block is a neighboring block adjacent to the current block in a left side and the top coding block is a neighboring block adjacent to the current block in a above side.
6. An image encoding method, comprising:
determining at least one band of a current block;
performing first filtering on pixels in the current block, based on the at least one band;
performing in-loop filtering in the current block after the first filtering,
wherein the in-loop filtering includes a sample adaptive offset (SAO) mode, and encoding band index information related to the at least one band,
wherein N bands are generated by dividing a range of pixels according to a bit depth,
wherein the band index information comprises first band index information indicating a band including a maximum value of the pixels among the N bands and second band index information indicating a band including a minimum value of the pixels among the N bands,
wherein the sample adaptive offset (SAO) mode includes an edge offset mode and a band offset mode, and
wherein the method further comprises, encoding SAO mode information indicating whether to which one of the edge offset mode and the band offset mode is performed.
7. The method of claim 6 , wherein the SAO mode information indicating whether SAO non-operation mode is applied or not for the current block.
8. The method of claim 7 , wherein the SAO mode information includes luma SAO mode information, and
wherein the luma SAO mode information is information on whether any one mode of the edge offset mode, the band offset mode and the SAO non-operation mode is to be performed for luma component of the current block.
9. The method of claim 7 , wherein the SAO mode information includes chroma SAO mode information, and
wherein the chroma SAO mode information is information on whether any one mode of the edge offset mode, the band offset mode and the SAO non-operation mode is to be performed for chroma component of the current block.
10. The method of claim 6 , the method further comprises encoding SAO merge information indicating whether SAO information of the left coding block and the top coding block is used or not,
wherein the left coding block is a neighboring block adjacent to the current block in a left side and the top coding block is a neighboring block adjacent to the current block in a above side.
11. A non-transitory computer-readable recording medium storing a bitstream generated by an image encoding method, the method comprising:
determining at least one band of a current block;
performing first filtering on pixels in the current block based on the at least one band;
performing in-loop filtering in the current block after the first filtering, wherein the in-loop filtering includes a sample adaptive offset (SAO) mode; and
encoding band index information related to the at least one band,
wherein N bands are generated by dividing a range of pixels according to a bit depth,
wherein the band index information comprises first band index information indicating a band including a maximum value of the pixels among the N bands and second band index information indicating a band including a minimum value of the pixels among the N bands,
wherein the sample adaptive offset (SAO) mode includes an edge offset mode and a band offset mode, and
wherein the method further comprises, encoding SAO mode information indicating whether to which one of the edge offset mode and the band offset mode is performed.