| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Codec.FFmpeg.Common
- 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, MonadError String m) => IO a -> 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 CInt Source #
codec_close :: AVCodecContext -> IO CInt 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 SwsContext Source #
sws_scale :: SwsContext -> Ptr (Ptr CUChar) -> Ptr CInt -> CInt -> CInt -> Ptr (Ptr CUChar) -> Ptr CInt -> IO CInt 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_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 Int Source #
Bytes-per-pixel for an AVPixelFormat