Realm

oa::video::threshold

Threshold a frame’s luma plane; chroma planes are copied unchanged. value >= threshold maps to high, otherwise low. Errors Returns an error for a non-device-planar frame or a runtime recording failure.

FnRust public API

Function Documentation

pub fn threshold( frame: &VideoFrame, threshold: u8, low: u8, high: u8 ) -> Result<VideoFrame>
Threshold a frame’s luma plane; chroma planes are copied unchanged. value >= threshold maps to high, otherwise low. Errors Returns an error for a non-device-planar frame or a runtime recording failure.