Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- 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
- av_image_get_buffer_size :: AVPixelFormat -> CInt -> CInt -> CInt -> IO CInt
- av_image_copy_to_buffer :: Ptr CUChar -> CInt -> Ptr (Ptr CUChar) -> Ptr CInt -> AVPixelFormat -> CInt -> CInt -> 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
- lineSizeAlign :: CInt -> CInt
- frameLineSize :: AVFrame -> IO (Maybe CInt)
- frameLineSizeT :: AVFrame -> MaybeT IO CInt
- frameAlign :: AVFrame -> IO (Maybe CInt)
- frameAlignT :: AVFrame -> MaybeT IO CInt
- frameBufferSize :: AVFrame -> IO (Maybe CInt)
- frameBufferSizeT :: AVFrame -> MaybeT IO CInt
- frameCopyToBuffer :: AVFrame -> Ptr CUChar -> IO (Maybe CInt)
- frameCopyToBufferT :: AVFrame -> Ptr CUChar -> MaybeT IO CInt
- av_strerror :: CInt -> Ptr CChar -> CSize -> IO CInt
- stringError :: CInt -> IO String
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 #
av_image_get_buffer_size :: AVPixelFormat -> CInt -> CInt -> CInt -> IO CInt Source #
av_image_copy_to_buffer :: Ptr CUChar -> CInt -> Ptr (Ptr CUChar) -> Ptr CInt -> AVPixelFormat -> CInt -> CInt -> 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 IOException
s.
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
lineSizeAlign :: CInt -> CInt Source #
Return line size alignment.
frameLineSizeT :: AVFrame -> MaybeT IO CInt Source #
Transformer version of frameLineSize
.
Wrappers for copying AVFrame
s image to buffer.
frameBufferSizeT :: AVFrame -> MaybeT IO CInt Source #
Transformer version of frameBufferSize
.
frameCopyToBuffer :: AVFrame -> Ptr CUChar -> IO (Maybe CInt) Source #
Copy AVFrame
s image to buffer.
It is assumed that size of buffer is equal to
bufSize <- fromJust <$> frameBufferSize frame.
frameCopyToBufferT :: AVFrame -> Ptr CUChar -> MaybeT IO CInt Source #
Transformer version of frameCopyToBuffer
.