Copyright | © 2017 Mark Karpov |
---|---|
License | BSD 3 clause |
Maintainer | Mark Karpov <markkarpov@openmailbox.org> |
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
Juicy-Pixels-powered helpers to read/write images to FLAC metadata blocks. For maximal player support, use PNG or JPEG (we don't provide helpers for other formats at the time anyway).
- retrieveImage :: PictureType -> FlacMeta (Either String DynamicImage)
- writeJpegPicture :: PictureType -> Word8 -> Image PixelYCbCr8 -> FlacMeta ()
- writePngPicture :: PictureType -> Image PixelRGB8 -> FlacMeta ()
Documentation
retrieveImage :: PictureType -> FlacMeta (Either String DynamicImage) Source #
Read specific picture from FLAC metadata as DynamicImage
.
:: PictureType | Type of picture we're writing |
-> Word8 | Quality factor, see |
-> Image PixelYCbCr8 | The picture to write |
-> FlacMeta () |
Write the given image into FLAC metadata block corresponding to
specific PictureType
.
:: PictureType | Type of picture we're writing |
-> Image PixelRGB8 | The picture to write |
-> FlacMeta () |
Write the given image into FLAC metadata block corresponding to
specific PictureType
.