1. A method comprising: calculating a luminance gradient of a block of pixels in four directions; determining an edge direction of the block based on the calculating; and selecting subpixels of the block of pixels based on the edge direction of the block.