encoder: simplify VA context initialization process.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 4 Dec 2013 17:48:35 +0000 (18:48 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 4 Dec 2013 18:14:38 +0000 (19:14 +0100)
commitfd9c855f140af83f34081403c09d6bfac005ca78
tree9a0751a0a35b44a779f523229a1c0b74f4a09a9b
parentfdddf83c71a59b395afe60a0483d3bb3e3231a7b
encoder: simplify VA context initialization process.

Change get_context_info() into a set_context_info() function that
initializes common defaults into the base class, thus allowing the
subclasses to specialize the context info further on.

The set_context_info() hook is also the location where additional
context specific data could be initialized. At this point, we are
guaranteed to have valid video resolution size and framerate. i.e.
gst_vaapi_encoder_set_format() was called beforehand.
gst-libs/gst/vaapi/gstvaapiencoder.c
gst-libs/gst/vaapi/gstvaapiencoder_h264.c
gst-libs/gst/vaapi/gstvaapiencoder_mpeg2.c
gst-libs/gst/vaapi/gstvaapiencoder_priv.h