Implement sws_getCachedContext() in swscale emulation