A configurable H.265-compatible motion estimation accelerator architecture suitable for realtime 4K video encoding