Skip to main content

t42_encode_init

Function t42_encode_init 

Source
pub unsafe extern "C" fn t42_encode_init(
    s: *mut t42_encode_state_t,
    image_width: u32,
    image_length: u32,
    handler: t4_row_read_handler_t,
    user_data: *mut c_void,
) -> *mut t42_encode_state_t
Expand description

\brief Prepare to encode an image in T.42 format. \param s The T.42 context. \param image_width Image width, in pixels. \param image_length Image length, in pixels. \param handler A callback routine to handle encoded image rows. \param user_data An opaque pointer passed to handler. \return A pointer to the context, or NULL if there was a problem.