Skip to content

h265decoder,nvh265sldec: Add support for delayed output and various enhancement

Seungha Yang requested to merge seungha.yang/gstreamer:h265-render-delay into main
    nvh265sldec: Add support for delayed output

    Delay 4 frames in case of non-live to improve throughput
    h265decoder: Add support for delayed output

    Functionally identical to the other decoder baseclasses.
    Delayed output can improve throughput depending on decoding APIs.
    h265decoder: Update documentation

    Sync up with other baseclasses
    h265decoder: Drain decoder on new_sequence()

    Holding previously decoded but not outputted pictures even after
    new_sequence is not a safe approach in various aspect.
    However, we cannot drain out DPB on new_sequence() unconditionally,
    because there is a case where decoder should drop decoded pictures
    if NoOutputOfPriorPicsFlag is set.

    To detect NoOutputOfPriorPicsFlag before the new_sequence() call,
    this patch splits decoding process into two path, one for nal unit parsing
    in order to detect NoOutputOfPriorPicsFlag and then each nal unit
    will be decoded.
    h265decoder: Remove unused pts variable

    We can know timestamp from associated GstVideoCodecFrame

Merge request reports