VideoScaler

#GstVideoScaler is a utility object for rescaling and resampling video frames using various interpolation / sampling methods.

Members

Functions

_2d
void _2d(gstvideo.video_scaler.VideoScaler vscale, gstvideo.types.VideoFormat format, void* src, int srcStride, void* dest, int destStride, 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.

getCoeff
const(double)* getCoeff(uint outOffset, uint inOffset, uint nTaps)

For a given pixel at out_offset, get the first required input pixel at in_offset and the n_taps filter coefficients.

getMaxTaps
uint getMaxTaps()

Get the maximum number of taps for scale.

horizontal
void horizontal(gstvideo.types.VideoFormat format, void* src, void* dest, uint destOffset, uint width)

Horizontally scale the pixels in src to dest, starting from dest_offset for width samples.