Safe Haskell | None |
---|
Convert between FFmpeg frames and JuicyPixels images.
- toJuicyT :: AVFrame -> MaybeT IO DynamicImage
- toJuicy :: AVFrame -> IO (Maybe DynamicImage)
- saveJuicy :: FilePath -> AVFrame -> IO ()
- class JuicyPixelFormat a where
- juicyPixelFormat :: proxy a -> AVPixelFormat
Documentation
toJuicyT :: AVFrame -> MaybeT IO DynamicImageSource
Convert an AVFrame
to a DynamicImage
with the result in the
MaybeT
transformer.
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
.
class JuicyPixelFormat a whereSource
Mapping of JuicyPixels
pixel types to FFmpeg pixel formats.
juicyPixelFormat :: proxy a -> AVPixelFormatSource