resizing NV12 format image using Nearest Neighbor Interpolation and Bilinear interpolation algorithms