Skip to content

avfvideosrc: Allow specifying crop coordinates during screen capture

Makes use of existing AVFoundation API to add cropping capabilities directly in avfvideosrc.

Made to mimic similar existing functionalities like cropping in d3d11screencapturesrc - if crop width/height is 0, assume maximum possible length etc. By default CGRect used here has its origin in the bottom left corner, so I flipped the Y coordinate to make it less confusing to use.

Merge request reports