msdk: encoder: h265: generalize the behavior of "i-frames" property
authorSreerenj Balachandran <sreerenj.balachandran@intel.com>
Wed, 14 Feb 2018 14:29:57 +0000 (14:29 +0000)
committerSreerenj Balachandran <sreerenj.balachandran@intel.com>
Tue, 20 Feb 2018 21:39:02 +0000 (12:39 -0900)
commita165a1a1a9c9aaad6dcd178a75086864ec438a8f
tree74402c5480bf0883f45b47e85cd1c82938653911
parentfa0911c3f69de258d10c104991c7bad597ef83a8
msdk: encoder: h265: generalize the behavior of "i-frames" property

We have the property "i-frames" to set the IDR interval in a
gop. Unfortunately MSDK HEVC encoder behaves bit differently
for IdrInterval field, IdrInteval == 1 indicate every
I-frame should be an IDR (which is IdrInterval == 0 for other codecs),
IdrInteval == 2 means every other I-frame is an IDR
(which is IdrInterval == 1 for other codecs) etc.
So we generalize the behaviour of property "i-frames" by
incrementing the value by one in each case (only for HEVC).

https://bugzilla.gnome.org/show_bug.cgi?id=791637
sys/msdk/gstmsdkh265enc.c