rsecc.h 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * qrencode - QR Code encoder
  3. *
  4. * Reed solomon error correction code encoder specialized for QR code.
  5. * This code is rewritten by Kentaro Fukuchi, referring to the FEC library
  6. * developed by Phil Karn (KA9Q).
  7. *
  8. * Copyright (C) 2002, 2003, 2004, 2006 Phil Karn, KA9Q
  9. * Copyright (C) 2014-2017 Kentaro Fukuchi <kentaro@fukuchi.org>
  10. *
  11. * This library is free software; you can redistribute it and/or
  12. * modify it under the terms of the GNU Lesser General Public
  13. * License as published by the Free Software Foundation; either
  14. * version 2.1 of the License, or any later version.
  15. *
  16. * This library is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  19. * Lesser General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU Lesser General Public
  22. * License along with this library; if not, write to the Free Software
  23. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  24. */
  25. #ifndef RSECC_H
  26. #define RSECC_H
  27. extern int RSECC_encode(size_t data_length, size_t ecc_length, const unsigned char *data, unsigned char *ecc);
  28. #endif /* RSECC_H */