package ffmpeg-swscale

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Swscale.MakeSource

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

Parameters

module I : VideoData
module O : VideoData

Signature

Sourcetype t = (I.t, O.t) ctx
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 do the same as Swscale.create.

Sourceval convert : t -> I.t -> O.t

Swscale.convert ctx ivd scale and convert the ivd input video data to the output video data according to the ctx scaler context format.

Raise Error if the conversion failed.

OCaml

Innovation. Community. Security.