add image pool
encode: release derived image of input surface after data uploading

driver does strict check on buffer owership upon vaBeginPicture() now.
add buffer export support
make sure raw copy works
add egl help and simple test
add egl/gles2 to decode test
adding egl for v4l2 decode
p
raw copy still ok
shows image, but only 'g' is valid