Implemented auto deinterlace mode.
The detection is based on the progressive/interlaced flags transported at the codec level. As such, it is not really reliable (for 25fps at least). As soon as a picture is detected as interlaced, the configured deinterlace mode is applied. After 30s of progressive video, the filter is removed. The hysteresis helps with unreliable interlaced flags.
Showing with 58 additions and 8 deletions