hogg-0.3.0: Library and tools to manipulate the Ogg container formatContentsIndex
Codec.Container.Ogg.ContentType
Synopsis
data ContentType = ContentType {
label :: String
mime :: [String]
identifyP :: (ByteString -> Bool)
headers :: Int
preroll :: Int
granulerateF :: (Maybe (ByteString -> Granulerate))
granuleshiftF :: (Maybe (ByteString -> Int))
metadata :: (ByteString -> MessageHeaders)
}
knownContentTypes :: [String]
identify :: ByteString -> Maybe ContentType
granulerate :: ContentType -> ByteString -> Maybe Granulerate
granuleshift :: ContentType -> ByteString -> Maybe Int
parseType :: String -> Maybe ContentType
class ContentTyped a where
contentTypeIs :: ContentType -> a -> Bool
contentTypeOf :: a -> Maybe ContentType
contentTypeIs :: ContentTyped a => ContentType -> a -> Bool
contentTypeOf :: ContentTyped a => a -> Maybe ContentType
contentTypeEq :: (ContentTyped a, ContentTyped b) => a -> b -> Bool
demuxByContentType :: ContentTyped a => [a] -> [[a]]
skeleton :: ContentType
Documentation
data ContentType
Data: ContentType
Constructors
ContentType
label :: String
mime :: [String]
identifyP :: (ByteString -> Bool)
headers :: Int
preroll :: Int
granulerateF :: (Maybe (ByteString -> Granulerate))
granuleshiftF :: (Maybe (ByteString -> Int))
metadata :: (ByteString -> MessageHeaders)
show/hide Instances
A list of content type labels (eg. Vorbis, Theora) known by HOgg
knownContentTypes :: [String]
identify :: ByteString -> Maybe ContentType
granulerate :: ContentType -> ByteString -> Maybe Granulerate
granuleshift :: ContentType -> ByteString -> Maybe Int
parseType :: String -> Maybe ContentType
class ContentTyped a where
Typeclass: ContentTyped
Methods
contentTypeIs :: ContentType -> a -> Bool
contentTypeOf :: a -> Maybe ContentType
show/hide Instances
contentTypeIs :: ContentTyped a => ContentType -> a -> Bool
contentTypeOf :: ContentTyped a => a -> Maybe ContentType
contentTypeEq :: (ContentTyped a, ContentTyped b) => a -> b -> Bool
demuxByContentType :: ContentTyped a => [a] -> [[a]]
Group a list of ContentTyped items by their Content-Type
skeleton :: ContentType
Produced by Haddock version 0.8