decode: differentiate frame size and surface size in VideoConfigBuffer & VideoFormatInfo
encode: set encode input buffer recyclable after encode