• Urvang Joshi's avatar
    WebP encoder: use WebPAnimEncoder API when available. · 02cf59f3
    Urvang Joshi authored
    WebPAnimEncoder API is a combination of encoder (WebPEncoder) and muxer
    (WebPMux). It performs several optimizations to make it more efficient
    than the combination of WebPEncode() and native ffmpeg muxer.
    
    When WebPAnimEncoder API is used:
    - In the encoder layer: we use WebPAnimEncoderAdd() instead of
      WebPEncode().
    - The muxer layer: works like a raw muxer.
    
    On the other hand, when WebPAnimEncoder API isn't available, the old code is
    used as it is:
    - In the codec layer: WebPEncode is used to encode each frame
    - In the muxer layer:  ffmpeg muxer is used
    Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
    02cf59f3
allcodecs.c 28.6 KB