plugins: base: manage pad-specific data in a single struct
authorU. Artie Eoff <ullysses.a.eoff@intel.com>
Tue, 12 Nov 2019 20:21:52 +0000 (12:21 -0800)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 11 Dec 2019 21:27:48 +0000 (21:27 +0000)
commitca2942176b5632e07eebac23336954f9aaf1cb26
tree147d75006ca6e6602a3cb184d23a47b772fe7486
parentb384593d3d7a6ac5e300768340ecd4def6ed7d51
plugins: base: manage pad-specific data in a single struct

Define a struct (GstVaapiPadPrivate) to encapsulate the
pad-specific data (i.e. buffer pool, allocator, info,
caps, etc.).

Add an interface to retrieve the data struct for a given
pad.

Finally, update the base plugin to use the data struct
throughout the implementation.

This will enable us to easily extend the base plugin in the
future to allow for N-to-1 pad subclasses (e.g. overlay/
composite).
gst/vaapi/gstvaapipluginbase.c
gst/vaapi/gstvaapipluginbase.h