ZBar bar code reader . http://zbar.sourceforge.net/ ZBar is licensed under the GNU LGPL 2.1 to enable development of both open source and commercial projects.

Dependents:   GR-PEACH_Camera_in_barcode levkov_ov7670

LICENSE

The ZBar Bar Code Reader is Copyright (C) 2007-2009 Jeff Brown <spadix@users.sourceforge.net> The QR Code reader is Copyright (C) 1999-2009 Timothy B. Terriberry <tterribe@xiph.org>

You can redistribute this library and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

ISAAC is based on the public domain implementation by Robert J. Jenkins Jr., and is itself public domain.

Portions of the bit stream reader are copyright (C) The Xiph.Org Foundation 1994-2008, and are licensed under a BSD-style license.

The Reed-Solomon decoder is derived from an implementation (C) 1991-1995 Henry Minsky (hqm@ua.com, hqm@ai.mit.edu), and is licensed under the LGPL with permission.

Committer:
RyoheiHagimoto
Date:
Tue Apr 19 02:19:39 2016 +0000
Revision:
1:500d42699c34
Parent:
0:56c5742b9e2b
Add copying.txt and license.txt

Who changed what in which revision?

UserRevisionLine numberNew contents of line
RyoheiHagimoto 0:56c5742b9e2b 1 /*Written by Timothy B. Terriberry (tterribe@xiph.org) 1999-2009 public domain.
RyoheiHagimoto 0:56c5742b9e2b 2 Based on the public domain implementation by Robert J. Jenkins Jr.*/
RyoheiHagimoto 0:56c5742b9e2b 3 #if !defined(_isaac_H)
RyoheiHagimoto 0:56c5742b9e2b 4 # define _isaac_H (1)
RyoheiHagimoto 0:56c5742b9e2b 5
RyoheiHagimoto 0:56c5742b9e2b 6
RyoheiHagimoto 0:56c5742b9e2b 7
RyoheiHagimoto 0:56c5742b9e2b 8 typedef struct isaac_ctx isaac_ctx;
RyoheiHagimoto 0:56c5742b9e2b 9
RyoheiHagimoto 0:56c5742b9e2b 10
RyoheiHagimoto 0:56c5742b9e2b 11
RyoheiHagimoto 0:56c5742b9e2b 12 #define ISAAC_SZ_LOG (8)
RyoheiHagimoto 0:56c5742b9e2b 13 #define ISAAC_SZ (1<<ISAAC_SZ_LOG)
RyoheiHagimoto 0:56c5742b9e2b 14 #define ISAAC_SEED_SZ_MAX (ISAAC_SZ<<2)
RyoheiHagimoto 0:56c5742b9e2b 15
RyoheiHagimoto 0:56c5742b9e2b 16
RyoheiHagimoto 0:56c5742b9e2b 17
RyoheiHagimoto 0:56c5742b9e2b 18 /*ISAAC is the most advanced of a series of Pseudo-Random Number Generators
RyoheiHagimoto 0:56c5742b9e2b 19 designed by Robert J. Jenkins Jr. in 1996.
RyoheiHagimoto 0:56c5742b9e2b 20 http://www.burtleburtle.net/bob/rand/isaac.html
RyoheiHagimoto 0:56c5742b9e2b 21 To quote:
RyoheiHagimoto 0:56c5742b9e2b 22 No efficient method is known for deducing their internal states.
RyoheiHagimoto 0:56c5742b9e2b 23 ISAAC requires an amortized 18.75 instructions to produce a 32-bit value.
RyoheiHagimoto 0:56c5742b9e2b 24 There are no cycles in ISAAC shorter than 2**40 values.
RyoheiHagimoto 0:56c5742b9e2b 25 The expected cycle length is 2**8295 values.*/
RyoheiHagimoto 0:56c5742b9e2b 26 struct isaac_ctx{
RyoheiHagimoto 0:56c5742b9e2b 27 unsigned n;
RyoheiHagimoto 0:56c5742b9e2b 28 unsigned r[ISAAC_SZ];
RyoheiHagimoto 0:56c5742b9e2b 29 unsigned m[ISAAC_SZ];
RyoheiHagimoto 0:56c5742b9e2b 30 unsigned a;
RyoheiHagimoto 0:56c5742b9e2b 31 unsigned b;
RyoheiHagimoto 0:56c5742b9e2b 32 unsigned c;
RyoheiHagimoto 0:56c5742b9e2b 33 };
RyoheiHagimoto 0:56c5742b9e2b 34
RyoheiHagimoto 0:56c5742b9e2b 35
RyoheiHagimoto 0:56c5742b9e2b 36 void isaac_init(isaac_ctx *_ctx,const void *_seed,int _nseed);
RyoheiHagimoto 0:56c5742b9e2b 37
RyoheiHagimoto 0:56c5742b9e2b 38 unsigned isaac_next_uint32(isaac_ctx *_ctx);
RyoheiHagimoto 0:56c5742b9e2b 39 unsigned isaac_next_uint(isaac_ctx *_ctx,unsigned _n);
RyoheiHagimoto 0:56c5742b9e2b 40
RyoheiHagimoto 0:56c5742b9e2b 41 #endif
RyoheiHagimoto 0:56c5742b9e2b 42