Avutil.Videotype planes = (data * int) arrayval create_frame : int -> int -> Pixel_format.t -> video frameAvutil.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_height frame returns the frame height
val frame_get_pixel_format : video frame -> Pixel_format.tAvutil.Video.frame_get_pixel_format frame returns frame's pixel format.
Avutil.Video.frame_get_pixel_aspect frame returns the frame's pixel aspect.
val frame_get_color_space : video frame -> Color_space.tAvutil.Video.frame_get_color_space frame returns frame's color space
val frame_get_color_range : video frame -> Color_range.tAvutil.Video.frame_get_color_range frame returns frame's color range
val frame_get_color_primaries : video frame -> Color_primaries.tval frame_get_color_trc : video frame -> Color_trc.tval frame_get_chroma_location : video frame -> Chroma_location.t