omxvideoenc: Add long-term-ref support to ZYNQ_USCALE_PLUS encoder
authorVarunkumar Allagadapa <varunkum@xilinx.com>
Mon, 6 Aug 2018 20:02:41 +0000 (13:02 -0700)
committerStéphane Cerveau <scerveau@collabora.com>
Thu, 9 Jan 2020 10:44:55 +0000 (11:44 +0100)
commitbfd8306ef69c909c9b6b335a308525a9bab2bc48
tree054a3e2202567ac9cb3c5b74e29637b01e66eb10
parentf1353ae41d9f222dbf15408985f8f349eeac8465
omxvideoenc: Add long-term-ref support to ZYNQ_USCALE_PLUS encoder

Custom API that upstream elements can use to notify encoders about
marking longterm ref. pictures or using longterm ref. pictures in
encoding process.

This patch adds below properties:

long-term-ref: Enable/Disable dynamically marking long-term
reference pictures in encoding process

long-term-freq: Periodicity of long-term reference picture
marking in encoding process.

If a picture is marked as long-term reference picture then it remains
in the DPB list for ever unless it overrides with new long-term pitcure with
same index. Encoder can use this long-term picture as refence for
encoding.

This feature is mostly useful to avoid visual artifacts propagation in streaming use cases
when packet loss happens. Instead of requesting for IDR, client can request for use long-term
reference picture for encoding.
omx/gstomxvideoenc.c
omx/gstomxvideoenc.h