heif_track_encode_end_of_sequence

Function heif_track_encode_end_of_sequence 

Source
pub unsafe extern "C" fn heif_track_encode_end_of_sequence(
    arg1: *mut heif_track,
    encoder: *mut heif_encoder,
) -> heif_error
Expand description

When all sequence frames have been sent, you can to call this function to let the library know that no more frames will follow. This is strongly recommended, but optional for backwards compatibility. If you do not end the sequence explicitly with this function, it will be closed automatically when the HEIF file is written. Using this function has the advantage that you can free the {@link heif_encoder} afterwards (with {@link heif_encoder_release}). If you do not use call function, you have to keep the {@link heif_encoder} alive until the HEIF file is written.