1. A method of encoding a video frame, comprising: selecting at least three points within the video frame, each point of the at least three points adjacent to a respective corner of a current block to be encoded, the current block being one of a plurality of blocks of the video frame; for each point of the at least three points, performing a motion search for a template block centered about the point within a reference frame to find a template reference block, the template reference block having a center point forming an anchor point pair with the point of the at least three points; using coordinates of the anchor point pairs, generating affine coefficients for an affine transformation; using the affine transformation, generating a prediction block for the current block; and encoding, using a processor, the current block within an encoded bitstream using the prediction block.