package ffmpeg-avutil

  1. Overview
  2. Docs
Bindings for the ffmpeg avutil libraries

Install

Dune Dependency

Authors

Maintainers

Sources

v1.1.11.tar.gz
md5=543fd7ecba7eece376d0a84d11355f61
sha512=2fe1c166e6554c497bb15d7a12af812e81f488fe0b4e2874794aa3dab87248a5592a0db7bd63ff548bdd30f5bba9ae4a95462e15d3f3513afe3d5d58c352e940

doc/ffmpeg-avutil/Avutil/Video/index.html

Module Avutil.VideoSource

Sourcetype planes = (data * int) array
Sourceval create_frame : int -> int -> Pixel_format.t -> video frame

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.

Sourceval frame_get_linesize : video frame -> int -> int

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.

Sourceval frame_visit : make_writable:bool -> (planes -> unit) -> video frame -> video frame

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.

Sourceval frame_get_width : video frame -> int

Avutil.Video.frame_get_width frame returns the frame width

Sourceval frame_get_height : video frame -> int

Avutil.Video.frame_get_height frame returns the frame height

Sourceval frame_get_pixel_format : video frame -> Pixel_format.t

Avutil.Video.frame_get_pixel_format frame returns frame's pixel format.

Sourceval frame_get_pixel_aspect : video frame -> rational option

Avutil.Video.frame_get_pixel_aspect frame returns the frame's pixel aspect.

OCaml

Innovation. Community. Security.