h264dec: revert the above commit

the previous patch doesn't work for v4l2 wrapper;
since v4l2 wrapper try to use the frame resolution before
the surface has a valid frame.
decode: differentiate frame size and surface size in VideoConfigBuffer & VideoFormatInfo
v4l2: fix some regression in encode input buffer change

set encode input buffer recyclable after encode
always set buf.type etc before DQBUF
configure: check minium version vaapi support