Skip to content
  • Jan Schmidt's avatar
    video-converter: Skip input lines where possible. · cb9799e9
    Jan Schmidt authored and GStreamer Marge Bot's avatar GStreamer Marge Bot committed
    There is a case where there are no lines in the temp cache, and
    it's possible to skip straight to the request line and not generate
    intermediate ones. This is really only beneficial when doing
    nearest-neighbour downscaling, as other methods generally require
    all input lines sequentially to generate the output. In that case,
    this change has no effect and all lines are generated and cached
    as before.
    
    As a side effect however, this fixes corruption when downscaling
    using nearest-neighbour, as interactions with the pass_alloc flag
    and reuse of temporary lines causes the unecessarily-generated
    cache lines to overwrite the final output.
    
    Part-of: <gstreamer/gst-plugins-base!919>
    cb9799e9