package gavl

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
exception Invalid_frame
exception Invalid_conversion
exception Not_implemented
type interlace_mode =
  1. | No_interlace
  2. | Top_first
  3. | Bottom_first
  4. | Mixed
type pixel_format =
  1. | Gray_8
  2. | Gray_16
  3. | Gray_float
  4. | Graya_16
  5. | Graya_32
  6. | Graya_float
  7. | Rgb_15
  8. | Bgr_15
  9. | Rgb_16
  10. | Bgr_16
  11. | Rgb_24
  12. | Bgr_24
  13. | Rgb_32
  14. | Bgr_32
  15. | Rgba_32
  16. | Rgb_48
  17. | Rgba_64
  18. | Rgb_float
  19. | Rgba_float
  20. | Yuy2
  21. | Yuvy
  22. | Yuva_32
  23. | Yuva_64
  24. | Yuv_float
  25. | Yuva_float
  26. | Yuv_420_p
  27. | Yuv_422_p
  28. | Yuv_444_p
  29. | Yuv_411_p
  30. | Yuv_410_p
  31. | Yuvj_420_p
  32. | Yuvj_422_p
  33. | Yuvj_444_p
  34. | Yuv_444_p_16
  35. | Yuv_422_p_16
type framerate_mode =
  1. | Constant
  2. | Variable
  3. | Still
type chroma_placement =
  1. | Default
  2. | Mpeg2
  3. | Dvpal
type format = {
  1. frame_width : int;
  2. frame_height : int;
  3. image_width : int;
  4. image_height : int;
  5. pixel_width : int;
  6. pixel_height : int;
  7. pixelformat : pixel_format;
  8. frame_duration : int;
  9. timescale : int;
  10. framerate_mode : framerate_mode;
  11. chroma_placement : chroma_placement;
  12. interlace_mode : interlace_mode;
}
type plane = (int, Stdlib.Bigarray.int8_unsigned_elt, Stdlib.Bigarray.c_layout) Stdlib.Bigarray.Array1.t
type frame = {
  1. planes : (plane * int) array;
  2. timestamp : Stdlib.Int64.t;
  3. duration : Stdlib.Int64.t;
  4. frame_interlace_mode : interlace_mode;
}
val new_frame : format -> frame
val clear_frame : format -> frame -> unit
type t
val create_converter : format -> format -> t
val init : t -> format -> format -> unit
val get_formats : t -> format * format
val get_quality : t -> int
val set_quality : t -> int -> unit
type int_rect = int * int * int * int
type float_rect = float * float * float * float
val get_rect : t -> float_rect * int_rect
val set_rect : t -> float_rect -> int_rect -> unit
type conversion_flags = [
  1. | `Convolve_chroma
  2. | `Convolve_normalize
  3. | `Force_deinterlace
  4. | `Resample_chroma
]
val set_flags : t -> conversion_flags list -> unit
val get_flags : t -> conversion_flags list
type scale_mode =
  1. | Auto
  2. | Nearest
  3. | Bilinear
  4. | Quadratic
  5. | Cubic_bspline
  6. | Cubic_mitchell
  7. | Cubic_catmull
  8. | Scale_sinc_lanczos
val set_scale_mode : t -> scale_mode -> unit
val get_scale_mode : t -> scale_mode
val reinit : t -> unit
val convert : t -> frame -> frame -> unit