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
.
One or both of hscale
and vscale
can be NULL to only perform scaling in
one dimension or do a copy without scaling.
x
and y
are the coordinates in the destination image to process.
a vertical #GstVideoScaler
a #GstVideoFormat for srcs
and dest
source pixels
source pixels stride
destination pixels
destination pixels stride
the horizontal destination offset
the vertical destination offset
the number of output pixels to scale
the number of output lines to scale
Free a previously allocated #GstVideoScaler scale
.
For a given pixel at out_offset,
get the first required input pixel at
in_offset
and the n_taps
filter coefficients.
Note that for interlaced content, in_offset
needs to be incremented with
2 to get the next input line.
an output offset
Get the maximum number of taps for scale
.
Horizontally scale the pixels in src
to dest,
starting from dest_offset
for width
samples.
a #GstVideoFormat for src
and dest
source pixels
destination pixels
the horizontal destination offset
the number of pixels to scale
Vertically combine width
pixels in the lines in src_lines
to dest
.
dest
is the location of the target line at dest_offset
and
srcs
are the input lines for dest_offset
.
a #GstVideoFormat for srcs
and dest
source pixels lines
destination pixels
the vertical destination offset
the number of pixels to scale
#GstVideoScaler is a utility object for rescaling and resampling video frames using various interpolation / sampling methods.