ffmpeg-light-0.2: Minimal bindings to the FFmpeg library.
Codec.FFmpeg.Juicy
Description
Convert between FFmpeg frames and JuicyPixels images.
Synopsis
toJuicyT :: AVFrame -> MaybeT IO DynamicImageSource
Convert an AVFrame to a DynamicImage with the result in the MaybeT transformer.
AVFrame
DynamicImage
MaybeT
toJuicyT = MaybeT . toJuicy
toJuicy :: AVFrame -> IO (Maybe DynamicImage)Source
Convert an AVFrame to a DynamicImage.
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.
toJuicy