A decoding method, comprising: in response to determining that a current pixel point in a current block satisfies an enable condition of an enhanced refinement mode, determining a gradient value of the current pixel point based on an original pixel value of the current pixel point and an original pixel value of a surrounding pixel point of the current pixel point; based on the gradient value of the current pixel point and the original pixel value of the current pixel point, determining a refined pixel value of the current pixel point; wherein determining that the current pixel point in the current block satisfies the enable condition of the enhanced refinement mode comprises: in response to determining that a boundary strength of a to-be-filtered boundary corresponding to the current pixel point in the current block satisfies the enable condition of the enhanced refinement mode, determining that the current pixel point satisfies the enable condition of the enhanced refinement mode; characterized in that based on the gradient value of the current pixel point and the original pixel value of the current pixel point, determining the refined pixel value of the current pixel point comprises: based on the gradient value of the current pixel point, the original pixel value of the current pixel point, a first refinement threshold, a second refinement threshold, a first refinement offset value and a second refinement offset value, determining the refined pixel value of the current pixel point; and in that in response to determining that the gradient value of the current pixel point is greater than the first refinement threshold, the refined pixel value of the current pixel point is determined based on the original pixel value of the current pixel point and the first refinement offset value; in response to determining that the gradient value of the current pixel point is less than the second refinement threshold, the refined pixel value of the current pixel point is determined based on the original pixel value of the current pixel point and the second refinement offset value; wherein the first refinement threshold is greater than the second refinement threshold, and the first refinement threshold and the second refinement threshold are opposite numbers to each other. in response to determining that a current pixel point in a current block satisfies an enable condition of an enhanced refinement mode, determining a gradient value of the current pixel point based on an original pixel value of the current pixel point and an original pixel value of a surrounding pixel point of the current pixel point; based on the gradient value of the current pixel point and the original pixel value of the current pixel point, determining a refined pixel value of the current pixel point; wherein determining that the current pixel point in the current block satisfies the enable condition of the enhanced refinement mode comprises: in response to determining that a boundary strength of a to-be-filtered boundary corresponding to the current pixel point in the current block satisfies the enable condition of the enhanced refinement mode, determining that the current pixel point satisfies the enable condition of the enhanced refinement mode; based on the gradient value of the current pixel point, the original pixel value of the current pixel point, a first refinement threshold, a second refinement threshold, a first refinement offset value and a second refinement offset value, determining the refined pixel value of the current pixel point; and in that in response to determining that the gradient value of the current pixel point is greater than the first refinement threshold, the refined pixel value of the current pixel point is determined based on the original pixel value of the current pixel point and the first refinement offset value; in response to determining that the gradient value of the current pixel point is less than the second refinement threshold, the refined pixel value of the current pixel point is determined based on the original pixel value of the current pixel point and the second refinement offset value; wherein the first refinement threshold is greater than the second refinement threshold, and the first refinement threshold and the second refinement threshold are opposite numbers to each other.