Function basis_universal::transcoding::transcoder_init[][src]

pub fn transcoder_init()

The underlying C++ library requires that transcoder_init() has been called before a .basis file can be encoded. This function allows a user to do this early in the application explicitly. It is protected by a lock and AtomicBool flag so it is safe and cheap to call multiple times, and correctly handles multiple threads trying to initialize at the same time.