Replace codec_get_cx_data with lower level interface.
Simplify even more => get rid of vpx_codec_ctx_t