VideoScaler._2d

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.

class VideoScaler
void
_2d

Parameters

vscale gstvideo.video_scaler.VideoScaler

a vertical #GstVideoScaler

format gstvideo.types.VideoFormat

a #GstVideoFormat for srcs and dest

src void*

source pixels

srcStride int

source pixels stride

dest void*

destination pixels

destStride int

destination pixels stride

x uint

the horizontal destination offset

y uint

the vertical destination offset

width uint

the number of output pixels to scale

height uint

the number of output lines to scale