hogg-0.4.1: Library and tools to manipulate the Ogg container format

Codec.Container.Ogg.Packet

Synopsis

Documentation

data OggSegment Source

Constructors

OggSegment 

Fields

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 -> OggPageSource

Create a page which contains only a single complete packet

uncutPacket :: ByteString -> OggTrack -> Granulepos -> OggPacketSource

Create a packet which spans a single page, ie. consists of only one segment

packetsToPages :: [OggPacket] -> [OggPage]Source

Pack packets into pages

pagesToPackets :: [OggPage] -> [OggPacket]Source

Pull the packets out of pages

packetToBS :: OggPacket -> ByteStringSource

Create a dump of a packet, as used by hogg dump