Safe Haskell | None |
---|
- open_codec :: AVCodecContext -> AVCodec -> Ptr AVDictionary -> IO CInt
- av_frame_alloc :: IO AVFrame
- av_frame_get_buffer :: AVFrame -> CInt -> IO CInt
- av_frame_free :: Ptr AVFrame -> IO ()
- codec_close :: AVCodecContext -> IO CInt
- init_packet :: AVPacket -> IO ()
- free_packet :: AVPacket -> IO ()
- av_malloc :: CSize -> IO (Ptr ())
- av_free :: Ptr () -> IO ()
- sws_getCachedContext :: SwsContext -> CInt -> CInt -> AVPixelFormat -> CInt -> CInt -> AVPixelFormat -> SwsAlgorithm -> Ptr () -> Ptr () -> Ptr CDouble -> IO SwsContext
- sws_scale :: SwsContext -> Ptr (Ptr CUChar) -> Ptr CInt -> CInt -> CInt -> Ptr (Ptr CUChar) -> Ptr CInt -> IO CInt
- wrapIOError :: (MonadIO m, Error e, MonadError e m) => IO a -> m a
- errMsg :: (Error e, MonadError e m) => String -> m a
- frame_alloc_check :: IO AVFrame
- frame_get_buffer_check :: AVFrame -> CInt -> IO ()
- avPixelStride :: AVPixelFormat -> Maybe Int
Documentation
open_codec :: AVCodecContext -> AVCodec -> Ptr AVDictionary -> IO CIntSource
av_frame_free :: Ptr AVFrame -> IO ()Source
init_packet :: AVPacket -> IO ()Source
free_packet :: AVPacket -> IO ()Source
sws_getCachedContext :: SwsContext -> CInt -> CInt -> AVPixelFormat -> CInt -> CInt -> AVPixelFormat -> SwsAlgorithm -> Ptr () -> Ptr () -> Ptr CDouble -> IO SwsContextSource
sws_scale :: SwsContext -> Ptr (Ptr CUChar) -> Ptr CInt -> CInt -> CInt -> Ptr (Ptr CUChar) -> Ptr CInt -> IO CIntSource
Utility functions
wrapIOError :: (MonadIO m, Error e, MonadError e m) => IO a -> m aSource
Catch an IOException from an IO action and re-throw it in a wrapping monad transformer.
Wrappers that may throw IOException
s.
frame_alloc_check :: IO AVFrameSource
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.
avPixelStride :: AVPixelFormat -> Maybe IntSource
Bytes-per-pixel for an AVPixelFormat