codecs: Baseclass for stateless encoders
I'm slowly looking at d3d12 encoding API (kind of stateless encoding API, like VA), and some code in va encoders such as reconstructed/reference picture management code can be reused for the other APIs, maybe for Vulkan encoding as well in the future