package ffmpeg-avutil
Install
dune-project
Dependency
Authors
Maintainers
Sources
md5=d3d6db317b8be680de45073c93853177
sha512=bba0d883770911ab54ada967e7bb2d606cdec4a01d9af66f546bd997465316abebf8a99e9a29fffd90cd44fffa0fb632ef386a8ffd31340cfb4f4d23fb6e4d79
doc/ffmpeg-avutil/Avutil/Video/index.html
Module Avutil.Video
Source
Avutil.Video.create_frame w h pf
create a video frame with w
width, h
height and pf
pixel format. Raises Error if the allocation failed.
Avutil.Video.frame_get_linesize vf n
return the line size of the n
plane of the vf
video frame. Raises Error if n
is out of boundaries.
Avutil.Video.frame_visit ~make_writable:wrt f vf
call the f
function with planes wrapping the vf
video frame data. The make_writable:wrt
parameter must be set to true if the f
function writes in the planes. Access to the frame through the planes is safe as long as it occurs in the f
function and the frame is not sent to an encoder. The same frame is returned for convenience. Raises Error if the make frame writable operation failed.
Avutil.Video.frame_get_width frame
returns the frame width
Avutil.Video.frame_get_height frame
returns the frame height
Avutil.Video.frame_get_pixel_format frame
returns frame's pixel format.