 | hogg-0.2.0: Library and tools to manipulate the Ogg container format | Contents | Index |
|
| Codec.Container.Ogg.Packet |
|
|
|
| Synopsis |
|
|
|
| Documentation |
|
| data OggPacket |
| Constructors | | OggPacket | | | packetData :: !ByteString | | | packetTrack :: !OggTrack | | | packetGranulepos :: !Granulepos | | | packetBOS :: !Bool | | | packetEOS :: !Bool | | | packetSegments :: !(Maybe [OggSegment]) | |
|
| Instances | |
|
|
| data OggSegment |
| Constructors | | OggSegment | | | segmentLength :: !Int | | | segmentPageIx :: !Int | page index (NOT seqno) of this segment
| | segmentEndsPage :: !Bool | whether or not the segment ends a page
|
|
|
|
|
| uncutPage :: ByteString -> OggTrack -> Granulepos -> OggPage |
| Create a page which contains only a single complete packet
|
|
| uncutPacket :: ByteString -> OggTrack -> Granulepos -> OggPacket |
| Create a packet which spans a single page, ie. consists of only
one segment
|
|
| packetsToPages :: [OggPacket] -> [OggPage] |
| Pack packets into pages
|
|
| pagesToPackets :: [OggPage] -> [OggPacket] |
| Pull the packets out of pages
|
|
| packetToBS :: OggPacket -> ByteString |
| Create a dump of a packet, as used by hogg dump
|
|
| Produced by Haddock version 0.8 |