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

Codec.FFmpeg.Common

Synopsis

Documentation

av_free :: Ptr () -> IO () Source #

Utility functions

wrapIOError :: (MonadIO m, MonadError String m) => IO a -> m a Source #

Catch an IOException from an IO action and re-throw it in a wrapping monad transformer.

Wrappers that may throw IOExceptions.

frame_alloc_check :: IO AVFrame Source #

Allocate an AVFrame and set its fields to default values.

frame_get_buffer_check :: AVFrame -> CInt -> IO () Source #

Allocate new buffer(s) for audio or video data with the required alignment. Note, for video frames, pixel format, width, and height must be set before calling this function. For audio frames, sample format, nb_samples, and channel_layout must be set.

lineSizeAlign :: CInt -> CInt Source #

Return line size alignment.

frameLineSize :: AVFrame -> IO (Maybe CInt) Source #

Retun AVFrames line size.

frameLineSizeT :: AVFrame -> MaybeT IO CInt Source #

Transformer version of frameLineSize.

Wrappers for copying AVFrames image to buffer.

frameBufferSize :: AVFrame -> IO (Maybe CInt) Source #

Return size of buffer for AVFrames image.

frameCopyToBuffer :: AVFrame -> Ptr CUChar -> IO (Maybe CInt) Source #

Copy AVFrames image to buffer. It is assumed that size of buffer is equal to

bufSize <- fromJust <$> frameBufferSize frame.

FFmpeg Errors