codecs: h264decoder: Add support for interlaced stream
authorSeungha Yang <seungha@centricular.com>
Mon, 9 Nov 2020 16:28:03 +0000 (01:28 +0900)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Fri, 13 Nov 2020 15:25:43 +0000 (15:25 +0000)
commit0b9f975b3648ef91a21ace8c0185a56e91ffa0c0
treeb1752ebbb2d6939a28835032e298dfabaec13abf
parent52a88640762ccc2950ca896b5da6a646bb1c0293
codecs: h264decoder: Add support for interlaced stream

Initial support for interlaced stream. Subclass should implement
new_field_picture() vfunc. Otherwise, baseclass will assume that
subclass doesn't support interlaced stream.

Restrictions:
* Reference picture modification process for interlaced stream
  is not implemented yet
* PAFF (Picture Adaptive Frame Field) is not properly implemented.
* Field display ordering (e.g., top-field-first) decision should
  be enhanced via picture timing SEI parsing
* Gap in field picture should be handled

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1534>
gst-libs/gst/codecs/gsth264decoder.c
gst-libs/gst/codecs/gsth264picture.c
gst-libs/gst/codecs/gsth264picture.h