Patent ID: 7394855

Claim:
A method for concealing errors in an intra-frame of a compressed video, comprising: decoding the intra-frame to a plurality of macroblocks, each macroblock including a plurality of pixels arranged in a rectangular array; locating a lost macroblock during the decoding; concealing pixels along an outer boundary of the lost macroblock from nearest candidate pixels along outer boundaries of macroblocks immediately adjacent to the lost macroblock; and concealing all other pixels in the lost macroblock from nearest candidate pixels selected from previously concealed pixels in the lost macroblock; and further comprising: sorting the candidate pixels C i in an ascending order in terms of intensity values of the candidate pixels; determining a median value of the ordered candidate pixels; determining a difference Diff i between the intensity value of the i th candidate pixel and the median intensity value; determining a distance Dist i between the i th candidate pixel and the current pixel; determining an evaluation score S i for the i th candidate pixel as sum of Diff i and Dist i ; if the evaluation score S i is greater than a threshold T, then rejecting the i th candidate pixel; and linearly interpolating remaining candidate pixels and assigning an interpolated value to the current pixel p according to p = ( ∑ i ⁢ C i Dist i ) / ( ∑ i ⁢ 1 Dist i ) .