docs: def end_decompress(codec, stream):
      """End of decompressing the current image.
  
      Wraps the openjp2 library function opj_end_decompress.
  
      Parameters
      ----------
      codec : CODEC_TYPE
          Compressor handle.
      stream : STREAM_TYPE_P
          Output stream buffer.
  
      Raises
      ------
      RuntimeError
          If the OpenJPEG library routine opj_end_decompress fails.
      """
      OPENJP2.opj_end_decompress.argtypes = [CODEC_TYPE, STREAM_TYPE_P]
      OPENJP2.opj_end_decompress.restype = check_error
      OPENJP2.opj_end_decompress(codec, stream)