How shoud I use Enhancer software's VA library together with avcodec2 library ? I was following the examples. Do I really need to create 4 different buffers ? I noticed avcodec library supports VAAPI. AVCodecContext has hwaccel_context which seems to be null so I'll have to alloc memory for it by myself and use it as struct vaapi_context. But which function should I call that avcodec would fill up that struct vaapi_context (some of the fields have to be filled by the user and some of them should be filled by avcodec). Also vaapi_context has slice params and slice data fields but not picture params or iq matrix. Where should I find those two from ?
Trying to decode some video I usually get ring 3 being busy and GPU being busy messages when calling vaPutSurface. Or vaRenderPicture fails with some settings.