surface: add simple surface info accessors as helper macros.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 8 Jul 2013 09:43:27 +0000 (11:43 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 8 Jul 2013 16:52:56 +0000 (18:52 +0200)
commit99dfd44f3308de2588ca4c26cb59b868907082d6
tree68ab0d9331f71307aab3134b5771ebd8bddb20b2
parente66e72e7e3d714309db64727eb1cc1f8b337c5a1
surface: add simple surface info accessors as helper macros.

Add helper macros to retrieve the VA surface information like size
(width, height) or chroma type. This is a micro-optimization to avoid
useless function calls and NULL pointer re-checks in internal routines.
gst-libs/gst/vaapi/gstvaapisurface.c
gst-libs/gst/vaapi/gstvaapisurface_priv.h
gst-libs/gst/vaapi/gstvaapisurfaceproxy.c
gst-libs/gst/vaapi/gstvaapiwindow.c