vtenc: Add FieldDetail properties for interlaced input
authorNirbheek Chauhan <nirbheek@centricular.com>
Tue, 19 Oct 2021 20:49:33 +0000 (02:19 +0530)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 1 Nov 2021 09:24:52 +0000 (09:24 +0000)
commitfed69c48b60cceef50e8be452f1184886f3471ac
tree2ba2a73665fa127b1ae517e97e27cf82c01e4c75
parent29a32703a5cd27dc78670ef4dbbb4b160e64a963
vtenc: Add FieldDetail properties for interlaced input

Standard interlace handling:
* If we have interlace-mode=interleaved and the field order, we just
  set it when creating the session
* If we have interlace-mode=(interleaved|mixed) and no field order, we
  set the field order on the first buffer

The encoder session does not support changing the FieldDetail after it
has started encoding frames, so we cannot support mixed streams
correctly.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1214>
subprojects/gst-plugins-bad/sys/applemedia/vtenc.c
subprojects/gst-plugins-bad/sys/applemedia/vtenc.h