Added license. LGPL3 was chosen to be compatible at most with the Cairograhics library with which this code obviously is used in conjunction.

This commit is contained in:
rahra 2018-12-11 11:26:25 +01:00
parent 69a2b78514
commit 6c6b9108aa
3 changed files with 60 additions and 7 deletions

View file

@ -46,3 +46,18 @@ following statement:
gcc -Wall -o cairo_jpg -DCAIRO_JPEG_MAIN `pkg-config cairo libjpeg --cflags --libs` cairo_jpg.c gcc -Wall -o cairo_jpg -DCAIRO_JPEG_MAIN `pkg-config cairo libjpeg --cflags --libs` cairo_jpg.c
``` ```
## License
Cairo_JPG is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Cairo_JPG 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 General Public License
along with Cairo_JPG. If not, see <https://www.gnu.org/licenses/>.

View file

@ -1,4 +1,23 @@
/*! This file contains two functions for reading and writing JPEG files from /* Copyright 2018 Bernhard R. Fischer, 4096R/8E24F29D <bf@abenteuerland.at>
*
* This file is part of Cairo_JPG.
*
* Cairo_JPG is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Cairo_JPG 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 General Public License
* along with Cairo_JPG. If not, see <https://www.gnu.org/licenses/>.
*/
/*! \file cairo_jpg.c
* This file contains two functions for reading and writing JPEG files from
* and to Cairo image surfaces. It uses the functions from the libjpeg. * and to Cairo image surfaces. It uses the functions from the libjpeg.
* Most of the code is directly derived from the online example at * Most of the code is directly derived from the online example at
* http://libjpeg-turbo.virtualgl.org/Documentation/Documentation * http://libjpeg-turbo.virtualgl.org/Documentation/Documentation
@ -16,8 +35,8 @@
* gcc -std=c99 -Wall -o cairo_jpg -DCAIRO_JPEG_MAIN `pkg-config cairo libjpeg --cflags --libs` cairo_jpg.c * gcc -std=c99 -Wall -o cairo_jpg -DCAIRO_JPEG_MAIN `pkg-config cairo libjpeg --cflags --libs` cairo_jpg.c
* *
* @author Bernhard R. Fischer, 4096R/8E24F29D bf@abenteuerland.at * @author Bernhard R. Fischer, 4096R/8E24F29D bf@abenteuerland.at
* @version 2018/08/27 * @version 2018/12/11
* @license This code is free software. Do whatever you like to do with it. * @license LGPL3.
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H

View file

@ -1,12 +1,31 @@
/* Copyright 2018 Bernhard R. Fischer, 4096R/8E24F29D <bf@abenteuerland.at>
*
* This file is part of Cairo_JPG.
*
* Cairo_JPG is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Cairo_JPG 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 General Public License
* along with Cairo_JPG. If not, see <https://www.gnu.org/licenses/>.
*/
#ifndef CAIRO_JPEG_H #ifndef CAIRO_JPEG_H
#define CAIRO_JPEG_H #define CAIRO_JPEG_H
/*! This file contains all prototypes for the Cairo-JPEG functions implemented /*! \file cairo_jpg.h
* This file contains all prototypes for the Cairo-JPEG functions implemented
* in cairo_jpg.c. See there for the function documentation. * in cairo_jpg.c. See there for the function documentation.
* *
* @author Bernhard R. Fischer, 2048R/5C5FFD47 bf@abenteuerland.at * @author Bernhard R. Fischer, 4096R/8E24F29D <bf@abenteuerland.at>
* @version 2016/01/01 r1922 * @version 2018/12/11
* @license This code is free software. Do whatever you like to do with it. * @license LGPL3
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H