Function x264_encoder_encode

Source
pub unsafe fn x264_encoder_encode(
    arg1: *mut X264T,
    pp_nal: *mut *mut X264NalT,
    pi_nal: *mut c_int,
    pic_in: *mut X264PictureT,
    pic_out: *mut X264PictureT,
) -> c_int
Expand description

encode one picture.

*pi_nal is the number of NAL units outputted in pp_nal. returns the number of bytes in the returned NALs. returns negative on error and zero if no NAL units returned. the payloads of all output NALs are guaranteed to be sequential in memory.