vaapipostproc: reset deinterlacer state when there is a discontinuity.
authorZhao, Halley <halley.zhao@intel.com>
Thu, 12 Dec 2013 02:01:13 +0000 (10:01 +0800)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 18 Jun 2014 15:24:48 +0000 (17:24 +0200)
commitfaefd62e9be3e36cc0465f5e66e1711d7b5d7a03
tree79511450d7c6358a3c3cf12e24291567a022768a
parentb3401dbb294eac4bd91d8d92c1f1ecafe72d8c59
vaapipostproc: reset deinterlacer state when there is a discontinuity.

Reset deinterlacer state, i.e. past reference frames used for advanced
deinterlacing, when there is some discontinuity detected in the course
of processing source buffers.

This fixes support for advanced deinterlacing when a seek occurred.

https://bugzilla.gnome.org/show_bug.cgi?id=720375

[fixed type of pts_diff variable, fetch previous buffer PTS from the
 history buffer, reduce heuristic for detecting discontinuity]
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
gst/vaapi/gstvaapipostproc.c