摘要 |
In the process of interpolation of video and/or audio digital data S<SUB>n</SUB>, an interpolated value is chosen depending on whether or not an edge is detected. The edge detection is performed as follows. Let L=|S<SUB>2n</SUB>-S<SUB>2n-2</SUB>|, C=|S<SUB>2n+2</SUB>-S<SUB>2n</SUB>|, and R=|S<SUB>2n+4</SUB>-S<SUB>2n+2</SUB>|. An edge is detected when R>9(C+L) or L>9(C+R). A predictor P<SUB>2n+1</SUB>=K<SUB>1</SUB>S<SUB>2n</SUB>+K<SUB>2</SUB>S<SUB>2n+2 </SUB>provides the interpolated value for S<SUB>2n+1 </SUB>when an edge is detected, where K<SUB>1</SUB>=k<SUB>L</SUB>/(k<SUB>L</SUB>+k<SUB>R</SUB>), K<SUB>2</SUB>=k<SUB>R</SUB>/(k<SUB>L</SUB>+k<SUB>R</SUB>), where k<SUB>L</SUB>=1/(1+L), k<SUB>R</SUB>=1/(1+R) or k<SUB>L</SUB>=d<SUB>2n+1,2n+2</SUB>/(1+L) and k<SUB>R</SUB>=d<SUB>2n,2n+1</SUB>/(1+R). A different predictor (e.g. a cubic predictor) is used when no edge is detected. Other embodiments are also provided. |