Scaler
Object Hierarchy:
Description:
[ CCode ( has_type_id = false ) ]
[ Compact ]
[ GIR ( name = "VideoScaler" ) ]
public class Scaler
Scaler is a utility object for rescaling and resampling video frames using various interpolation / sampling
methods.
Content:
Methods:
- public void @2d (Scaler vscale, Format format, void* src, int src_stride, void* dest, int dest_stride, uint x, uint y, uint width, uint height)
Scale a rectangle of pixels in src with src_stride
to dest with dest_stride using the horizontal scaler hscaler and the vertical scaler
vscale.
- public void free ()
Free a previously allocated Scaler
this.
- public double get_coeff (uint out_offset, out uint in_offset, out uint n_taps)
For a given pixel at out_offset, get the first required
input pixel at in_offset and the return.length filter coefficients.
- public uint get_max_taps ()
Get the maximum number of taps for this
.
- public void horizontal (Format format, void* src, void* dest, uint dest_offset, uint width)
Horizontally scale the pixels in src to dest
, starting from dest_offset for width samples.
- public void vertical (Format format, void* src_lines, void* dest, uint dest_offset, uint width)
Vertically combine width pixels in the lines in
src_lines to dest.