code: def set_default_encoder_parameters():
      
      ARGTYPES = [ctypes.POINTER(CompressionParametersType)]
      OPENJP2.opj_set_default_encoder_parameters.argtypes = ARGTYPES
      OPENJP2.opj_set_default_encoder_parameters.restype = ctypes.c_void_p
  
      cparams = CompressionParametersType()
      OPENJP2.opj_set_default_encoder_parameters(ctypes.byref(cparams))
      return cparams
docs: Wraps openjp2 library function opj_set_default_encoder_parameters.
  
      Sets encoding parameters to default values.  That means
  
          lossless
          1 tile
          size of precinct : 2^15 x 2^15 (means 1 precinct)
          size of code-block : 64 x 64
          number of resolutions: 6
          no SOP marker in the codestream
          no EPH marker in the codestream
          no sub-sampling in x or y direction
          no mode switch activated
          progression order: LRCP
          no index file
          no ROI upshifted
          no offset of the origin of the image
          no offset of the origin of the tiles
          reversible DWT 5-3
  
      The signature for this function differs from its C library counterpart, as
      the the C function pass-by-reference parameter becomes the Python return
      value.
  
      Returns
      -------
      cparameters : CompressionParametersType
          Compression parameters.