ffmpeg-light-0.2.0.1: Minimal bindings to the FFmpeg library.

Safe HaskellNone

Codec.FFmpeg.Juicy

Description

Convert between FFmpeg frames and JuicyPixels images.

Synopsis

Documentation

toJuicyT :: AVFrame -> MaybeT IO DynamicImageSource

Convert an AVFrame to a DynamicImage with the result in the MaybeT transformer.

 toJuicyT = MaybeT . toJuicy

saveJuicy :: FilePath -> AVFrame -> IO ()Source

Save an AVFrame to a PNG file on disk assuming the frame could be converted to a DynamicImage using toJuicy.