#[unsafe(no_mangle)]pub unsafe extern "C" fn moq_encode_video_frame(
producer: u32,
frame: *const moq_video_encoder_frame,
) -> i32Expand 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
framemust point to a validmoq_video_encoder_frame.frame->datamust point toframe->data_sizebytes.