ScaleCropVideoProcessor

class ScaleCropVideoProcessor(var targetWidth: Int, var targetHeight: Int) : ChainVideoProcessor

A video processor that scales down and crops to match the target dimensions and aspect ratio.

If the frames are smaller than the target dimensions, upscaling will not occur, instead only cropping to match the aspect ratio.

Constructors

Link copied to clipboard
constructor(targetWidth: Int, targetHeight: Int)

Properties

Link copied to clipboard
var childVideoProcessor: VideoProcessor?

The next link in the chain to feed frames to.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var videoSink: VideoSink?

The video sink where frames that have been completely processed are sent.

Functions

Link copied to clipboard
open override fun onCapturerStarted(started: Boolean)
Link copied to clipboard
open override fun onCapturerStopped()
Link copied to clipboard
open override fun onFrameCaptured(frame: VideoFrame)
open fun onFrameCaptured(p0: VideoFrame, p1: VideoProcessor.FrameAdaptationParameters)
Link copied to clipboard
override fun setSink(videoSink: VideoSink?)