A method in video coding and decoding, for calculating pixel values for interpolated 1/2 and 1/4 pixel positions located between integer pixel positions (A, E, Y, U) in a video picture, wherein pixel values for a set of interpolated 1/2 pixel positions being horizontally or vertically lined up with integer pixel positions (c, o, w, k) are calculated by applying a first discrete filter on associated horizontally or vertically lined up integer pixel positions, and a pixel value for each of the interpolated 1/4 pixel positions being horizontally or vertically lined up with integer pixel positions (b, d, j, t, x, v, p, f) is calculated by applying a second discrete filter on a nearby integer pixel position and a nearby interpolated 1/2 pixel position in a horizontal line or a vertical line on which the pixel position to be calculated is located, wherein the method comprises: calculating a pixel value for a first interpolated 1/2 pixel position (m) not being horizontally or vertically lined up with integer pixel positions by applying said second discrete filter on a second and a third pixel position (E, U), said second and third pixel positions being integer pixel positions, wherein said second and third pixel positions are localized on each respective side of, and with same distance relative to, said first interpolated 1/2 pixel position (m), and localized on the same line with said first interpolated 1/2 pixel position, and calculating a pixel value for each of the interpolated 1/4 pixel positions not being horizontally or vertically lined up with integer pixel positions (g, h, i, n, s, r, q, l) by applying said second discrete filter on two nearest ones of the integer pixel positions (A, E, Y, U) and the interpolated 1/2 pixel positions being horizontally or vertically lined up with integer pixel positions (c, o, w, k), such that the two positions are on the same inclined line as the pixel position to be calculated, wherein for a first set of said 1/4 pixel positions (g, i, s, q), the two nearest positions are both interpolated 1/2 pixel positions (c, o, w, k) and wherein for a second set of said 1/4 pixel positions (h, n, r, 1) the two nearest positions comprise one integer pixel position (A, E, Y, U) and one interpolated 1/2 pixel position (c, o, w, k); wherein a pixel value for each of the interpolated 1/4 pixel positions is calculated independently of said first interpolated 1/2 pixel position (m). calculating a pixel value for a first interpolated 1/2 pixel position (m) not being horizontally or vertically lined up with integer pixel positions by applying said second discrete filter on a second and a third pixel position (E, U), said second and third pixel positions being integer pixel positions, wherein said second and third pixel positions are localized on each respective side of, and with same distance relative to, said first interpolated 1/2 pixel position (m), and localized on the same line with said first interpolated 1/2 pixel position, and calculating a pixel value for each of the interpolated 1/4 pixel positions not being horizontally or vertically lined up with integer pixel positions (g, h, i, n, s, r, q, l) by applying said second discrete filter on two nearest ones of the integer pixel positions (A, E, Y, U) and the interpolated 1/2 pixel positions being horizontally or vertically lined up with integer pixel positions (c, o, w, k), such that the two positions are on the same inclined line as the pixel position to be calculated, wherein for a first set of said 1/4 pixel positions (g, i, s, q), the two nearest positions are both interpolated 1/2 pixel positions (c, o, w, k) and wherein for a second set of said 1/4 pixel positions (h, n, r, 1) the two nearest positions comprise one integer pixel position (A, E, Y, U) and one interpolated 1/2 pixel position (c, o, w, k); wherein a pixel value for each of the interpolated 1/4 pixel positions is calculated independently of said first interpolated 1/2 pixel position (m).