def create_decompress(codec_format):
OPENJP2.opj_create_decompress.argtypes = [CODEC_FORMAT_TYPE]<EOL>OPENJP2.opj_create_decompress.restype = CODEC_TYPE<EOL>codec = OPENJP2.opj_create_decompress(codec_format)<EOL>return codec<EOL>
Creates a J2K/JP2 decompress structure.

    Wraps the openjp2 library function opj_create_decompress.

    Parameters
    ----------
    codec_format : int
        Specifies codec to select.  Should be one of CODEC_J2K or CODEC_JP2.

    Returns
    -------
    codec : Reference to CODEC_TYPE instance.