def destroy_codec(codec):
OPENJP2.opj_destroy_codec.argtypes = [CODEC_TYPE]<EOL>OPENJP2.opj_destroy_codec.restype = ctypes.c_void_p<EOL>OPENJP2.opj_destroy_codec(codec)<EOL>
Destroy a decompressor handle.

    Wraps the openjp2 library function opj_destroy_codec.

    Parameters
    ----------
    codec : CODEC_TYPE
        Decompressor handle to destroy.