Skip to main content

moq_encode_video_frame

Function moq_encode_video_frame 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn moq_encode_video_frame( producer: u32, frame: *const moq_video_encoder_frame, ) -> i32
Expand description

Encode and publish one raw frame.

frame->data is borrowed for the duration of the call and must be exactly one picture in the pixel format and at the resolution declared by moq_video_encoder_input. A backend that pipelines publishes an earlier frame’s output here, so a call that emits nothing is normal rather than an error.

§Safety