Hoogle Search

Within LTS Haskell 24.41 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. unpackPixel :: PackeablePixel a => PackedRepresentation a -> a

    JuicyPixels Codec.Picture.Types

    Inverse transformation, to speed up reading

  2. unsafePixelAt :: Pixel a => Vector (PixelBaseComponent a) -> Int -> a

    JuicyPixels Codec.Picture.Types

    Unsafe version of pixelAt, read a pixel at the given index without bound checking (if possible). The index is expressed in number (PixelBaseComponent a)

  3. unsafeReadPixel :: (Pixel a, PrimMonad m) => STVector (PrimState m) (PixelBaseComponent a) -> Int -> m a

    JuicyPixels Codec.Picture.Types

    Unsafe version of readPixel, read a pixel at the given position without bound checking (if possible). The index is expressed in number (PixelBaseComponent a)

  4. unsafeWritePixel :: (Pixel a, PrimMonad m) => STVector (PrimState m) (PixelBaseComponent a) -> Int -> a -> m ()

    JuicyPixels Codec.Picture.Types

    Unsafe version of writePixel, write a pixel at the given position without bound checking. This can be _really_ unsafe. The index is expressed in number (PixelBaseComponent a)

  5. unsafeWritePixelBetweenAt :: (PrimMonad m, Pixel px, PackeablePixel px, Storable (PackedRepresentation px)) => MutableImage (PrimState m) px -> px -> Int -> Int -> m ()

    JuicyPixels Codec.Picture.Types

    Fill a packeable pixel between two bounds.

  6. writePackedPixelAt :: (Pixel px, PackeablePixel px, Storable (PackedRepresentation px), PrimMonad m) => MutableImage (PrimState m) px -> Int -> px -> m ()

    JuicyPixels Codec.Picture.Types

    Write a packeable pixel into an image. equivalent to unsafeWritePixel.

  7. writePixel :: (Pixel a, PrimMonad m) => MutableImage (PrimState m) a -> Int -> Int -> a -> m ()

    JuicyPixels Codec.Picture.Types

    Write a pixel in a mutable image at position x y

  8. zipPixelComponent3 :: Storable (PixelBaseComponent px) => (PixelBaseComponent px -> PixelBaseComponent px -> PixelBaseComponent px -> PixelBaseComponent px) -> Image px -> Image px -> Image px -> Image px

    JuicyPixels Codec.Picture.Types

    Combine, pixel by pixel and component by component the values of 3 different images. Usage example:

    averageBrightNess c1 c2 c3 = clamp $ toInt c1 + toInt c2 + toInt c3
    where clamp = fromIntegral . min 0 . max 255
    toInt :: a -> Int
    toInt = fromIntegral
    ziPixelComponent3 averageBrightNess img1 img2 img3
    

  9. KeySizeFixed :: Int -> KeySizeSpecifier

    cryptonite Crypto.Cipher.Types

    a specific size

  10. hashFinalizePrefix :: (HashAlgorithmPrefix a, ByteArrayAccess ba) => Context a -> ba -> Int -> Digest a

    cryptonite Crypto.Hash

    Update the context with the first N bytes of a bytestring and return the digest. The code path is independent from N but much slower than a normal hashUpdate. The function can be called for the last bytes of a message, in order to exclude a variable padding, without leaking the padding length. The begining of the message, never impacted by the padding, should preferably go through hashUpdate for better performance.

Page 110 of many | Previous | Next