package ffmpeg-swscale

  1. Overview
  2. Docs
Bindings for the ffmpeg swscale library

Install

Dune Dependency

Authors

Maintainers

Sources

v1.2.1.tar.gz
md5=0246dce16d3fd1ad00b8ab8cb562e2c0
sha512=c72adb6ba5651e47c343d28b6be7759a5958ea1ea712ce98d3d4b86de35370f79e8c4833aa35b0633907d813abc080f6472186ad433ff5b8eeb31d5b5e012913

doc/ffmpeg-swscale/Swscale/index.html

Module SwscaleSource

This module perform image scaling and color space/pixel format conversion operations.

Sourceval version : unit -> int
Sourceval configuration : unit -> string
Sourceval license : unit -> string
Sourcetype pixel_format = Avutil.Pixel_format.t
Sourcetype flag =
  1. | Fast_bilinear
  2. | Bilinear
  3. | Bicubic
  4. | Print_info
Sourcetype t
Sourceval create : flag list -> int -> int -> pixel_format -> int -> int -> pixel_format -> t

Swscale.create flags in_w in_h in_pf out_w out_h out_pf create a Swscale.t scale context with the flags flag list defining the conversion type, the in_w width, in_h height and in_pf pixel format for input format and out_w width, out_h height and out_pf pixel format for output format.

Sourcetype planes = (Avutil.data * int) array
Sourceval scale : t -> planes -> int -> int -> planes -> int -> unit

Swscale.scale ctx in_planes y h out_planes off scale the h rows of in_planes strarting from the row y to the off row of the out_planes output.

Sourcemodule type VideoData = sig ... end

Video data modules for Swscale module input and output parameterization.

Sourcetype ('i, 'o) ctx
Sourcemodule Make (I : VideoData) (O : VideoData) : sig ... end

Functor building an implementation of the swscale structure with parameterized input an output video data types

Sourcemodule BigArray : sig ... end

Unsigned 8 bit bigarray split by planes.

Sourcemodule PackedBigArray : sig ... end

Unsigned 8 bit bigarray in a single packed array..

Sourcemodule Frame : sig ... end

Video frame.

Sourcemodule Bytes : sig ... end

Bytes array.

OCaml

Innovation. Community. Security.