Provided are decoding methods and decoders for calculating comb filter
error and performing comb filter calculation used for decoding video
signals. In one aspect, a method of calculating comb filter error used
for decoding a video signal comprises storing a plurality of consecutive
video lines of the video signal, the plurality of consecutive video lines
including a first video line, a second video line appearing immediately
before the first video line, and a third video line appearing immediately
before the second video line; receiving a current video line of the video
signal, wherein the current video line appears immediately after the
first video line; obtaining a first difference between the current video
line and the second video line; obtaining a second difference between the
first video line and the third video line; and filtering the video signal
for separating components in the video signal, based on the differences.