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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers svg.h Source File

svg.h

00001 /*------------------------------------------------------------------------
00002  *  Copyright 2009 (c) Jeff Brown <spadix@users.sourceforge.net>
00003  *
00004  *  This file is part of the ZBar Bar Code Reader.
00005  *
00006  *  The ZBar Bar Code Reader is free software; you can redistribute it
00007  *  and/or modify it under the terms of the GNU Lesser Public License as
00008  *  published by the Free Software Foundation; either version 2.1 of
00009  *  the License, or (at your option) any later version.
00010  *
00011  *  The ZBar Bar Code Reader is distributed in the hope that it will be
00012  *  useful, but WITHOUT ANY WARRANTY; without even the implied warranty
00013  *  of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU Lesser Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU Lesser Public License
00017  *  along with the ZBar Bar Code Reader; if not, write to the Free
00018  *  Software Foundation, Inc., 51 Franklin St, Fifth Floor,
00019  *  Boston, MA  02110-1301  USA
00020  *
00021  *  http://sourceforge.net/projects/zbar
00022  *------------------------------------------------------------------------*/
00023 #ifndef _SVG_H_
00024 #define _SVG_H_
00025 
00026 #ifdef DEBUG_SVG
00027 
00028 typedef enum { SVG_REL, SVG_ABS } svg_absrel_t;
00029 
00030 void svg_open(const char *name, double x, double y, double w, double h);
00031 void svg_close(void);
00032 
00033 void svg_commentf(const char *format, ...);
00034 void svg_image(const char *name, double width, double height);
00035 
00036 void svg_group_start(const char *cls, double rotate,
00037                      double scalex, double scaley,
00038                      double x, double y);
00039 void svg_group_end(void);
00040 
00041 void svg_path_start(const char *cls, double scale, double x, double y);
00042 void svg_path_end(void);
00043 void svg_path_close(void);
00044 void svg_path_moveto(svg_absrel_t abs, double x, double y);
00045 void svg_path_lineto(svg_absrel_t abs, double x, double y);
00046 
00047 #else
00048 
00049 # define svg_open(...)
00050 # define svg_close(...)
00051 
00052 # define svg_image(...)
00053 
00054 # define svg_group_start(...)
00055 # define svg_group_end(...)
00056 
00057 # define svg_path_start(...)
00058 # define svg_path_end(...)
00059 # define svg_path_moveto(...)
00060 # define svg_path_lineto(...)
00061 # define svg_path_close(...)
00062 
00063 #endif
00064 
00065 #endif
00066