va_trace: allow surface trace to dump part of surface content
va_trace: allow surface trace to dump part of surface content

To debug/isolate video record quality issue (blocky/corruption, etc),
we always need to dump the YUV image from camera. LibVA has such
functionality, but due to storage bandwidth issue (~10M Byte/second),
it is hard to write 1080P 30fps YUV data to disk (~88M Byte/second).
Now refine the functionality to only dump part of the image, and
won't need to modify the code in the default build.

The method is:
edit /etc/libva.conf to include bellow (all export them):
	LIBVA_TRACE_SURFACE=/data/enc-XXX.yuv
	LIBVA_TRACE_GEOMETRY=320x240+20+20

It will only save 320x240 from (20,20) of the source surface to file
/data/enc-XXX.yuv.

Signed-off-by: Austin Yuan <f447c34e4ebcef84a81b40a8d4dbc448a14e5570@intel.com>

android-ia/hardware_intel_libva,halleyzhao/libva-fdo,CyanogenMod/android_hardware_intel_libva,halleyzhao/libva-fdo,android-ia/hardware_intel_libva,CyanogenMod/android_hardware_intel_libva,CyanogenMod/android_hardware_intel_libva,android-ia/hardware_intel_libva,halleyzhao/libva-fdo