Remove code that isn't compiled because of preprocessor directives.
Double check that you are only allowing VPX_DL_REALTIME
Simplify => Get rid of all formats except I420.
Get rid of unused vpx_img_wrap and typedef for vpx_image_t
Get rid of img_alloc_helper and rename it to vpx_img_alloc