Skip to content

v4l2transform: add property to configure crop/compose

HuQian requested to merge HuQian/gstreamer:dev-selection into main

add property selection-targets to configure compose or crop of v4l2 transform

` GstV4l2Transform:selection-targets: According to v4l2 spec, we can do cropping or composing on capture/output https://docs.kernel.org/6.1/userspace-api/media/v4l/selection-api.html

so, here we export a property named selection-targets, and this property is boxed type here is a example to set compose for capture v4l2convert selection-targets="cid,compose-capture-x=100, compose-capture-y=100 compose-capture-w=300,compose-capture-h=200"

contains following sub-properties:

  1. properties to set compose for capture

compose-capture-x

compose-capture-y

compose-capture-w

compose-capture-h

  1. properties to set crop for capture

crop-capture-x

crop-capture-y

crop-capture-w

crop-capture-h

3)properties to set crop for output

crop-output-x

crop-output-y

crop-output-w

crop-output-h `

Edited by HuQian

Merge request reports