gst: encode: add property help functions for encoder properties.
authorHe Junyan <junyan.he@hotmail.com>
Tue, 20 Aug 2019 14:16:35 +0000 (22:16 +0800)
committerHe Junyan <junyan.he@hotmail.com>
Fri, 30 Aug 2019 13:06:47 +0000 (21:06 +0800)
commit05643dadb5c8c45e347a162c5cdc6f1c8d2d1cb8
tree4807d07fa6cf9257066857cdfc7c044ef0538e6a
parentbc2f8fd19e924aa0e193708307326acd037691ce
gst: encode: add property help functions for encoder properties.

The encoder is a true gstobject now and all the properties are using
gobject's properties mechanism. Add help functions to handle the properties
between encode and encoder class.
The basic idea is mapping the same property between encoder and encode. All
the encoder's properties will have the same name, the same type in encode.
The set/get property function just forward the property setting/getting to
the encoder using the same property name and value. Because the encoder is
created on needed, we need to cache the property setting in encode.
gst/vaapi/gstvaapiencode.c
gst/vaapi/gstvaapiencode.h