Function videostream_sys::vsl_encode_frame
source · pub unsafe extern "C" fn vsl_encode_frame(
encoder: *mut VSLEncoder,
source: *mut VSLFrame,
destination: *mut VSLFrame,
cropRegion: *const VSLRect,
keyframe: *mut c_int
) -> c_intExpand description
@brief Encode frame @param encoder VSLEncoder instance @param source VSLFrame source @param destination VSLFrame destination @param cropRegion (optional) VSLRect that defines the crop region, NULL when destination and source sizes match @param keyframe (optional) VSL sets this to 1 if the encoded frame is a keyframe, otherwise 0. User can set to NULL to ignore param. @retval 0 on success @retval -1 on falure (check errno for details)
For Hantro VC8000e encoder initialization is performed when this function is called for a first time For Hantro VC8000e encoder source width, height and fourcc; destination width, height and fourcc; cropRegion parameters must match for all function calls throughout the lifetime of the encoder instance