ffmpeg-light-0.13.0: Minimal bindings to the FFmpeg library.
Safe HaskellNone
LanguageHaskell2010

Codec.FFmpeg.Types

Synopsis

Documentation

class HasPtr a where Source #

Methods

getPtr :: a -> Ptr () Source #

Instances

Instances details
HasPtr AVPacket Source # 
Instance details

Defined in Codec.FFmpeg.Types

Methods

getPtr :: AVPacket -> Ptr () Source #

HasPtr AVIOContext Source # 
Instance details

Defined in Codec.FFmpeg.Types

Methods

getPtr :: AVIOContext -> Ptr () Source #

HasPtr AVClass Source # 
Instance details

Defined in Codec.FFmpeg.Types

Methods

getPtr :: AVClass -> Ptr () Source #

HasPtr AVInputFormat Source # 
Instance details

Defined in Codec.FFmpeg.Types

Methods

getPtr :: AVInputFormat -> Ptr () Source #

HasPtr AVOutputFormat Source # 
Instance details

Defined in Codec.FFmpeg.Types

Methods

getPtr :: AVOutputFormat -> Ptr () Source #

HasPtr SwsContext Source # 
Instance details

Defined in Codec.FFmpeg.Types

Methods

getPtr :: SwsContext -> Ptr () Source #

HasPtr AVPicture Source # 
Instance details

Defined in Codec.FFmpeg.Types

Methods

getPtr :: AVPicture -> Ptr () Source #

HasPtr AVFrame Source # 
Instance details

Defined in Codec.FFmpeg.Types

Methods

getPtr :: AVFrame -> Ptr () Source #

HasPtr AVDictionary Source # 
Instance details

Defined in Codec.FFmpeg.Types

Methods

getPtr :: AVDictionary -> Ptr () Source #

HasPtr AVCodec Source # 
Instance details

Defined in Codec.FFmpeg.Types

Methods

getPtr :: AVCodec -> Ptr () Source #

HasPtr AVStream Source # 
Instance details

Defined in Codec.FFmpeg.Types

Methods

getPtr :: AVStream -> Ptr () Source #

HasPtr AVCodecContext Source # 
Instance details

Defined in Codec.FFmpeg.Types

Methods

getPtr :: AVCodecContext -> Ptr () Source #

HasPtr AVFormatContext Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasPtr (Ptr ()) Source # 
Instance details

Defined in Codec.FFmpeg.Types

Methods

getPtr :: Ptr () -> Ptr () Source #

newtype AVFormatContext Source #

Constructors

AVFormatContext (Ptr ()) 

Instances

Instances details
Storable AVFormatContext Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasVideoCodecID AVFormatContext Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasInputFormat AVFormatContext Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasIOContext AVFormatContext Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasOutputFormat AVFormatContext Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasStreams AVFormatContext Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasNumStreams AVFormatContext Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasPtr AVFormatContext Source # 
Instance details

Defined in Codec.FFmpeg.Types

newtype AVCodecContext Source #

Constructors

AVCodecContext (Ptr ()) 

Instances

Instances details
Storable AVCodecContext Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasRawAspectRatio AVCodecContext Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasTicksPerFrame AVCodecContext Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasPrivData AVCodecContext Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasCodecID AVCodecContext Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasCodecFlags AVCodecContext Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasPixelFormat AVCodecContext Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasGopSize AVCodecContext Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasTimeBase AVCodecContext Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasHeight AVCodecContext Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasWidth AVCodecContext Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasBitRate AVCodecContext Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasPtr AVCodecContext Source # 
Instance details

Defined in Codec.FFmpeg.Types

Methods

getPtr :: AVCodecContext -> Ptr () Source #

class HasBitRate t where Source #

Methods

getBitRate :: t -> IO CInt Source #

setBitRate :: t -> CInt -> IO () Source #

hasBitRate :: t -> Ptr CInt Source #

class HasWidth t where Source #

Methods

getWidth :: t -> IO CInt Source #

setWidth :: t -> CInt -> IO () Source #

hasWidth :: t -> Ptr CInt Source #

Instances

Instances details
HasWidth AVFrame Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasWidth AVCodecContext Source # 
Instance details

Defined in Codec.FFmpeg.Types

class HasHeight t where Source #

Methods

getHeight :: t -> IO CInt Source #

setHeight :: t -> CInt -> IO () Source #

hasHeight :: t -> Ptr CInt Source #

class HasGopSize t where Source #

Methods

getGopSize :: t -> IO CInt Source #

setGopSize :: t -> CInt -> IO () Source #

hasGopSize :: t -> Ptr CInt Source #

class HasPrivData t where Source #

Methods

getPrivData :: t -> IO (Ptr ()) Source #

setPrivData :: t -> Ptr () -> IO () Source #

hasPrivData :: t -> Ptr (Ptr ()) Source #

Instances

Instances details
HasPrivData AVCodecContext Source # 
Instance details

Defined in Codec.FFmpeg.Types

guessAspectRatio :: HasRawAspectRatio a => a -> IO AVRational Source #

When unspecified, the most likely pixel shape is a square

newtype AVStream Source #

Constructors

AVStream (Ptr ()) 

Instances

Instances details
Storable AVStream Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasStreamIndex AVStream Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasCodecContext AVStream Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasId AVStream Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasTimeBase AVStream Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasPtr AVStream Source # 
Instance details

Defined in Codec.FFmpeg.Types

Methods

getPtr :: AVStream -> Ptr () Source #

Monad m => MonadReader AVStream (AvStreamT m) Source # 
Instance details

Defined in Codec.FFmpeg.Probe

Methods

ask :: AvStreamT m AVStream #

local :: (AVStream -> AVStream) -> AvStreamT m a -> AvStreamT m a #

reader :: (AVStream -> a) -> AvStreamT m a #

class HasId t where Source #

Methods

getId :: t -> IO CInt Source #

setId :: t -> CInt -> IO () Source #

hasId :: t -> Ptr CInt Source #

Instances

Instances details
HasId AVStream Source # 
Instance details

Defined in Codec.FFmpeg.Types

newtype AVCodec Source #

Constructors

AVCodec (Ptr ()) 

class HasLongName t where Source #

Instances

Instances details
HasLongName AVCodec Source # 
Instance details

Defined in Codec.FFmpeg.Types

class HasName t where Source #

Methods

getName :: t -> IO CString Source #

setName :: t -> CString -> IO () Source #

hasName :: t -> Ptr CString Source #

Instances

Instances details
HasName AVCodec Source # 
Instance details

Defined in Codec.FFmpeg.Types

newtype AVFrame Source #

Constructors

AVFrame (Ptr ()) 

Instances

Instances details
Storable AVFrame Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasData AVFrame Source # 
Instance details

Defined in Codec.FFmpeg.Types

Methods

getData :: AVFrame -> IO (Ptr ()) Source #

setData :: AVFrame -> Ptr () -> IO () Source #

hasData :: AVFrame -> Ptr (Ptr ()) Source #

HasLineSize AVFrame Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasPktPts AVFrame Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasPts AVFrame Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasPixelFormat AVFrame Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasHeight AVFrame Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasWidth AVFrame Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasPtr AVFrame Source # 
Instance details

Defined in Codec.FFmpeg.Types

Methods

getPtr :: AVFrame -> Ptr () Source #

SwsCompatible AVFrame Source # 
Instance details

Defined in Codec.FFmpeg.Scaler

Methods

swsPlanes :: AVFrame -> (Ptr (Ptr CUChar) -> IO r) -> IO r Source #

swsStrides :: AVFrame -> (Ptr CInt -> IO r) -> IO r Source #

sliceHeight :: AVFrame -> (CInt -> IO r) -> IO r Source #

class HasPts t where Source #

Methods

getPts :: t -> IO CLong Source #

setPts :: t -> CLong -> IO () Source #

hasPts :: t -> Ptr CLong Source #

Instances

Instances details
HasPts AVPacket Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasPts AVFrame Source # 
Instance details

Defined in Codec.FFmpeg.Types

class HasPktPts t where Source #

Methods

getPktPts :: t -> IO CLong Source #

setPktPts :: t -> CLong -> IO () Source #

hasPktPts :: t -> Ptr CLong Source #

Instances

Instances details
HasPktPts AVFrame Source # 
Instance details

Defined in Codec.FFmpeg.Types

class HasLineSize t where Source #

Methods

getLineSize :: t -> IO CInt Source #

setLineSize :: t -> CInt -> IO () Source #

hasLineSize :: t -> Ptr CInt Source #

Instances

Instances details
HasLineSize AVFrame Source # 
Instance details

Defined in Codec.FFmpeg.Types

newtype AVPicture Source #

Constructors

AVPicture (Ptr ()) 

Instances

Instances details
Storable AVPicture Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasData AVPicture Source # 
Instance details

Defined in Codec.FFmpeg.Types

Methods

getData :: AVPicture -> IO (Ptr ()) Source #

setData :: AVPicture -> Ptr () -> IO () Source #

hasData :: AVPicture -> Ptr (Ptr ()) Source #

HasPtr AVPicture Source # 
Instance details

Defined in Codec.FFmpeg.Types

Methods

getPtr :: AVPicture -> Ptr () Source #

newtype SwsContext Source #

Constructors

SwsContext (Ptr ()) 

Instances

Instances details
Storable SwsContext Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasPtr SwsContext Source # 
Instance details

Defined in Codec.FFmpeg.Types

Methods

getPtr :: SwsContext -> Ptr () Source #

newtype AVClass Source #

Constructors

AVClass (Ptr ()) 

Instances

Instances details
Storable AVClass Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasPtr AVClass Source # 
Instance details

Defined in Codec.FFmpeg.Types

Methods

getPtr :: AVClass -> Ptr () Source #

newtype AVIOContext Source #

Constructors

AVIOContext (Ptr ()) 

newtype AVPacket Source #

Constructors

AVPacket (Ptr ()) 

Instances

Instances details
Storable AVPacket Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasDts AVPacket Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasPacketFlags AVPacket Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasSize AVPacket Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasData AVPacket Source # 
Instance details

Defined in Codec.FFmpeg.Types

Methods

getData :: AVPacket -> IO (Ptr ()) Source #

setData :: AVPacket -> Ptr () -> IO () Source #

hasData :: AVPacket -> Ptr (Ptr ()) Source #

HasPts AVPacket Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasStreamIndex AVPacket Source # 
Instance details

Defined in Codec.FFmpeg.Types

HasPtr AVPacket Source # 
Instance details

Defined in Codec.FFmpeg.Types

Methods

getPtr :: AVPacket -> Ptr () Source #

class HasData t where Source #

Methods

getData :: t -> IO (Ptr ()) Source #

setData :: t -> Ptr () -> IO () Source #

hasData :: t -> Ptr (Ptr ()) Source #

Instances

Instances details
HasData AVPacket Source # 
Instance details

Defined in Codec.FFmpeg.Types

Methods

getData :: AVPacket -> IO (Ptr ()) Source #

setData :: AVPacket -> Ptr () -> IO () Source #

hasData :: AVPacket -> Ptr (Ptr ()) Source #

HasData AVPicture Source # 
Instance details

Defined in Codec.FFmpeg.Types

Methods

getData :: AVPicture -> IO (Ptr ()) Source #

setData :: AVPicture -> Ptr () -> IO () Source #

hasData :: AVPicture -> Ptr (Ptr ()) Source #

HasData AVFrame Source # 
Instance details

Defined in Codec.FFmpeg.Types

Methods

getData :: AVFrame -> IO (Ptr ()) Source #

setData :: AVFrame -> Ptr () -> IO () Source #

hasData :: AVFrame -> Ptr (Ptr ()) Source #

class HasSize t where Source #

Methods

getSize :: t -> IO CInt Source #

setSize :: t -> CInt -> IO () Source #

hasSize :: t -> Ptr CInt Source #

Instances

Instances details
HasSize AVPacket Source # 
Instance details

Defined in Codec.FFmpeg.Types

class HasDts t where Source #

Methods

getDts :: t -> IO CLong Source #

setDts :: t -> CLong -> IO () Source #

hasDts :: t -> Ptr CLong Source #

Instances

Instances details
HasDts AVPacket Source # 
Instance details

Defined in Codec.FFmpeg.Types

packetSize :: Int Source #

sizeof the AVPacket structure in bytes.

Types with Haskell equivalents

nonZeroAVRational :: AVRational -> Maybe AVRational Source #

FFmpeg often uses 0 to mean "unknown"; use Nothing instead.

av_rescale_q :: CLong -> AVRational -> AVRational -> CLong Source #

Rescale an integer from one time base to another.

data InputSource Source #

The input source can be a file or a camera. When using Camera, frequently in the form Camera "0:0" defaultCameraConfig, the first input video device enumerated by libavdevice is selected.