This file is indexed.

/usr/share/doc/libghc-juicypixels-doc/html/Codec-Picture-Tga.html is in libghc-juicypixels-doc 3.2.8-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

1
2
3
4
5
6
7
8
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Codec.Picture.Tga</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Codec-Picture-Tga.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Codec-Picture-Tga.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">JuicyPixels-3.2.8: Picture loading/serialization (in png, jpeg, bitmap, gif, tga, tiff and radiance)</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">Codec.Picture.Tga</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Module implementing function to read and write
 Targa (*.tga) files.</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><a href="#v:decodeTga">decodeTga</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> <a href="Codec-Picture-Types.html#t:DynamicImage">DynamicImage</a></li><li class="src short"><a href="#v:decodeTgaWithMetadata">decodeTgaWithMetadata</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> (<a href="Codec-Picture-Types.html#t:DynamicImage">DynamicImage</a>, <a href="Codec-Picture-Metadata.html#t:Metadatas">Metadatas</a>)</li><li class="src short"><a href="#v:decodeTgaWithPaletteAndMetadata">decodeTgaWithPaletteAndMetadata</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> (<a href="Codec-Picture-Types.html#t:PalettedImage">PalettedImage</a>, <a href="Codec-Picture-Metadata.html#t:Metadatas">Metadatas</a>)</li><li class="src short"><span class="keyword">class</span> <a href="#t:TgaSaveable">TgaSaveable</a> a</li><li class="src short"><a href="#v:encodeTga">encodeTga</a> :: <a href="Codec-Picture-Tga.html#t:TgaSaveable">TgaSaveable</a> px =&gt; <a href="Codec-Picture-Types.html#t:Image">Image</a> px -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a></li><li class="src short"><a href="#v:writeTga">writeTga</a> :: <a href="Codec-Picture-Tga.html#t:TgaSaveable">TgaSaveable</a> pixel =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="Codec-Picture-Types.html#t:Image">Image</a> pixel -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> ()</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a id="v:decodeTga" class="def">decodeTga</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> <a href="Codec-Picture-Types.html#t:DynamicImage">DynamicImage</a> <a href="src/Codec-Picture-Tga.html#decodeTga" class="link">Source</a> <a href="#v:decodeTga" class="selflink">#</a></p><div class="doc"><p>Transform a raw tga image to an image, without modifying
 the underlying pixel type.</p><p>This function can output the following images:</p><ul><li><code><a href="Codec-Picture-Types.html#v:ImageY8">ImageY8</a></code></li><li><code><a href="Codec-Picture-Types.html#v:ImageRGB8">ImageRGB8</a></code></li><li><code><a href="Codec-Picture-Types.html#v:ImageRGBA8">ImageRGBA8</a></code></li></ul></div></div><div class="top"><p class="src"><a id="v:decodeTgaWithMetadata" class="def">decodeTgaWithMetadata</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> (<a href="Codec-Picture-Types.html#t:DynamicImage">DynamicImage</a>, <a href="Codec-Picture-Metadata.html#t:Metadatas">Metadatas</a>) <a href="src/Codec-Picture-Tga.html#decodeTgaWithMetadata" class="link">Source</a> <a href="#v:decodeTgaWithMetadata" class="selflink">#</a></p><div class="doc"><p>Equivalent to decodeTga but also provide metadata</p></div></div><div class="top"><p class="src"><a id="v:decodeTgaWithPaletteAndMetadata" class="def">decodeTgaWithPaletteAndMetadata</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Either.html#t:Either">Either</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> (<a href="Codec-Picture-Types.html#t:PalettedImage">PalettedImage</a>, <a href="Codec-Picture-Metadata.html#t:Metadatas">Metadatas</a>) <a href="src/Codec-Picture-Tga.html#decodeTgaWithPaletteAndMetadata" class="link">Source</a> <a href="#v:decodeTgaWithPaletteAndMetadata" class="selflink">#</a></p><div class="doc"><p>Equivalent to decodeTga but with metdata and palette if any</p></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a id="t:TgaSaveable" class="def">TgaSaveable</a> a <a href="src/Codec-Picture-Tga.html#TgaSaveable" class="link">Source</a> <a href="#t:TgaSaveable" class="selflink">#</a></p><div class="doc"><p>This typeclass determine if a pixel can be saved in the
 TGA format.</p></div><div class="subs minimal"><p class="caption">Minimal complete definition</p><p class="src">tgaDataOfImage, tgaPixelDepthOfImage, tgaTypeOfImage</p></div><div class="subs instances"><p id="control.i:TgaSaveable" class="caption collapser" onclick="toggleSection('i:TgaSaveable')">Instances</p><div id="section.i:TgaSaveable" class="show"><table><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TgaSaveable:TgaSaveable:1" class="instance expander" onclick="toggleSection('i:ic:TgaSaveable:TgaSaveable:1')"></span> <a href="Codec-Picture-Tga.html#t:TgaSaveable">TgaSaveable</a> <a href="Codec-Picture-Types.html#t:PixelRGBA8">PixelRGBA8</a></span> <a href="src/Codec-Picture-Tga.html#line-486" class="link">Source</a> <a href="#t:TgaSaveable" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:TgaSaveable:TgaSaveable:1" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tgaDataOfImage">tgaDataOfImage</a> :: <a href="Codec-Picture-Types.html#t:Image">Image</a> <a href="Codec-Picture-Types.html#t:PixelRGBA8">PixelRGBA8</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a></p><p class="src"><a href="#v:tgaPixelDepthOfImage">tgaPixelDepthOfImage</a> :: <a href="Codec-Picture-Types.html#t:Image">Image</a> <a href="Codec-Picture-Types.html#t:PixelRGBA8">PixelRGBA8</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Word.html#t:Word8">Word8</a></p><p class="src"><a href="#v:tgaTypeOfImage">tgaTypeOfImage</a> :: <a href="Codec-Picture-Types.html#t:Image">Image</a> <a href="Codec-Picture-Types.html#t:PixelRGBA8">PixelRGBA8</a> -&gt; TgaImageType</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TgaSaveable:TgaSaveable:2" class="instance expander" onclick="toggleSection('i:ic:TgaSaveable:TgaSaveable:2')"></span> <a href="Codec-Picture-Tga.html#t:TgaSaveable">TgaSaveable</a> <a href="Codec-Picture-Types.html#t:PixelRGB8">PixelRGB8</a></span> <a href="src/Codec-Picture-Tga.html#line-479" class="link">Source</a> <a href="#t:TgaSaveable" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:TgaSaveable:TgaSaveable:2" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tgaDataOfImage">tgaDataOfImage</a> :: <a href="Codec-Picture-Types.html#t:Image">Image</a> <a href="Codec-Picture-Types.html#t:PixelRGB8">PixelRGB8</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a></p><p class="src"><a href="#v:tgaPixelDepthOfImage">tgaPixelDepthOfImage</a> :: <a href="Codec-Picture-Types.html#t:Image">Image</a> <a href="Codec-Picture-Types.html#t:PixelRGB8">PixelRGB8</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Word.html#t:Word8">Word8</a></p><p class="src"><a href="#v:tgaTypeOfImage">tgaTypeOfImage</a> :: <a href="Codec-Picture-Types.html#t:Image">Image</a> <a href="Codec-Picture-Types.html#t:PixelRGB8">PixelRGB8</a> -&gt; TgaImageType</p></div></div></td></tr><tr><td class="src clearfix"><span class="inst-left"><span id="control.i:ic:TgaSaveable:TgaSaveable:3" class="instance expander" onclick="toggleSection('i:ic:TgaSaveable:TgaSaveable:3')"></span> <a href="Codec-Picture-Tga.html#t:TgaSaveable">TgaSaveable</a> <a href="Codec-Picture-Types.html#t:Pixel8">Pixel8</a></span> <a href="src/Codec-Picture-Tga.html#line-474" class="link">Source</a> <a href="#t:TgaSaveable" class="selflink">#</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div id="section.i:ic:TgaSaveable:TgaSaveable:3" class="inst-details hide"><div class="subs methods"><p class="caption">Methods</p><p class="src"><a href="#v:tgaDataOfImage">tgaDataOfImage</a> :: <a href="Codec-Picture-Types.html#t:Image">Image</a> <a href="Codec-Picture-Types.html#t:Pixel8">Pixel8</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString.html#t:ByteString">ByteString</a></p><p class="src"><a href="#v:tgaPixelDepthOfImage">tgaPixelDepthOfImage</a> :: <a href="Codec-Picture-Types.html#t:Image">Image</a> <a href="Codec-Picture-Types.html#t:Pixel8">Pixel8</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Word.html#t:Word8">Word8</a></p><p class="src"><a href="#v:tgaTypeOfImage">tgaTypeOfImage</a> :: <a href="Codec-Picture-Types.html#t:Image">Image</a> <a href="Codec-Picture-Types.html#t:Pixel8">Pixel8</a> -&gt; TgaImageType</p></div></div></td></tr></table></div></div></div><div class="top"><p class="src"><a id="v:encodeTga" class="def">encodeTga</a> :: <a href="Codec-Picture-Tga.html#t:TgaSaveable">TgaSaveable</a> px =&gt; <a href="Codec-Picture-Types.html#t:Image">Image</a> px -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/bytestring-0.10.8.1/Data-ByteString-Lazy.html#t:ByteString">ByteString</a> <a href="src/Codec-Picture-Tga.html#encodeTga" class="link">Source</a> <a href="#v:encodeTga" class="selflink">#</a></p><div class="doc"><p>Transform a compatible image to a raw bytestring
 representing a Targa file.</p></div></div><div class="top"><p class="src"><a id="v:writeTga" class="def">writeTga</a> :: <a href="Codec-Picture-Tga.html#t:TgaSaveable">TgaSaveable</a> pixel =&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:FilePath">FilePath</a> -&gt; <a href="Codec-Picture-Types.html#t:Image">Image</a> pixel -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/System-IO.html#t:IO">IO</a> () <a href="src/Codec-Picture-Tga.html#writeTga" class="link">Source</a> <a href="#v:writeTga" class="selflink">#</a></p><div class="doc"><p>Helper function to directly write an image a tga on disk.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.2</p></div></body></html>