libs: encoder: h265: add refs property
authorHyunjun Ko <zzoon@igalia.com>
Wed, 13 Sep 2017 02:37:33 +0000 (11:37 +0900)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 13 Sep 2017 08:36:34 +0000 (10:36 +0200)
commit3dbf44037307916afd0193e705a9300bf0b9d7e5
tree35fde5c1cb9f3574065c513de118aa18928f2953
parentf14563759aa89e6521b2911bcf30ec8ade40e3dd
libs: encoder: h265: add refs property

Users can provide the number of reference frame by this property,
which is exaclty same as h264.

The value of the property will be considered as the number of
reference picture list0 and will add 1 reference frame more to the
reference picture list1 internally if b-frame encoding.

If the value provided is bigger than the number of refrence frames
supported in the driver, it will be lowered.

The maximum value is aligned to the value of the driver supported now.

https://bugzilla.gnome.org/show_bug.cgi?id=783804
gst-libs/gst/vaapi/gstvaapiencoder_h265.c
gst-libs/gst/vaapi/gstvaapiencoder_h265.h