code: def setup_encoder(cinfo, cparameters, image):
      
      argtypes = [ctypes.POINTER(CompressionInfoType),
                  ctypes.POINTER(CompressionParametersType),
                  ctypes.POINTER(ImageType)]
      OPENJPEG.opj_setup_encoder.argtypes = argtypes
      OPENJPEG.opj_setup_encoder(cinfo, cparameters, image)
docs: Wrapper for openjpeg library function opj_setup_decoder.