Skip to content

Commit

Permalink
Update license
Browse files Browse the repository at this point in the history
* Switch to MIT
* Add license notice to source files
  • Loading branch information
iabdalkader committed Sep 20, 2014
1 parent a8146ea commit 65cd8a1
Show file tree
Hide file tree
Showing 83 changed files with 705 additions and 94 deletions.
24 changes: 21 additions & 3 deletions LICENSE
@@ -1,3 +1,21 @@
Copyright (c) 2013 Ibrahim Abd Elkader <i.abdalkader@gmail.com>
This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 License.
To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/
The MIT License (MIT)

Copyright (c) 2014 Ibrahim Abdelkader <i.abdalkader@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE
10 changes: 7 additions & 3 deletions src/omv/array.c
@@ -1,6 +1,10 @@
/**
* Copyright (c) 2013 Ibrahim Abd Elkader <i.abdalkader@gmail.com>
* See the file COPYING for copying permission.
/*
* This file is part of the OpenMV project.
* Copyright (c) 2013/2014 Ibrahim Abdelkader <i.abdalkader@gmail.com>
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* Dynamic array.
*
*/
#include <stdlib.h>
#include <string.h>
Expand Down
12 changes: 8 additions & 4 deletions src/omv/array.h
@@ -1,6 +1,10 @@
/**
* Copyright (c) 2013 Ibrahim Abd Elkader <i.abdalkader@gmail.com>
* See the file COPYING for copying permission.
/*
* This file is part of the OpenMV project.
* Copyright (c) 2013/2014 Ibrahim Abdelkader <i.abdalkader@gmail.com>
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* Dynamic array.
*
*/
#ifndef __ARRAY_H__
#define __ARRAY_H__
Expand All @@ -18,4 +22,4 @@ void *array_pop_back(struct array *array);
void array_sort(struct array *array, array_comp);
void array_erase(struct array *array, int index);
void array_resize(struct array *array, int index);
#endif//__ARRAY_H__
#endif //__ARRAY_H__
9 changes: 9 additions & 0 deletions src/omv/framebuffer.h
@@ -1,3 +1,11 @@
/*
* This file is part of the OpenMV project.
* Copyright (c) 2013/2014 Ibrahim Abdelkader <i.abdalkader@gmail.com>
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* Global framebuffer pointer.
*
*/
#ifndef __FRAMEBUFFER_H__
#define __FRAMEBUFFER_H__
#include "mutex.h"
Expand All @@ -9,5 +17,6 @@ static struct framebuffer {
int ready;
mutex_t lock;
uint8_t pixels[];
// Note all instances of fb point to the same memory address.
}*fb = (struct framebuffer *) &_fb_base;
#endif /* __FRAMEBUFFER_H__ */
8 changes: 8 additions & 0 deletions src/omv/img/blob.c
@@ -1,3 +1,11 @@
/*
* This file is part of the OpenMV project.
* Copyright (c) 2013/2014 Ibrahim Abdelkader <i.abdalkader@gmail.com>
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* Blob count.
*
*/
#include "xalloc.h"
#include "imlib.h"
#include <arm_math.h>
Expand Down
8 changes: 8 additions & 0 deletions src/omv/img/fmath.c
@@ -1,3 +1,11 @@
/*
* This file is part of the OpenMV project.
* Copyright (c) 2013/2014 Ibrahim Abdelkader <i.abdalkader@gmail.com>
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* Fast approximate math functions.
*
*/
#include "mdefs.h"
#include "fmath.h"

Expand Down
10 changes: 9 additions & 1 deletion src/omv/img/fmath.h
@@ -1,3 +1,11 @@
/*
* This file is part of the OpenMV project.
* Copyright (c) 2013/2014 Ibrahim Abdelkader <i.abdalkader@gmail.com>
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* Fast approximate math functions.
*
*/
#ifndef __FMATH_H__
#define __FMATH_H__
#include <stdint.h>
Expand All @@ -12,4 +20,4 @@ float fast_cbrtf(float d);
float fast_fabsf(float d);
float fast_log(float x);
float fast_log2(float x);
#endif /* __FMATH_H__ */
#endif // __FMATH_H__
48 changes: 26 additions & 22 deletions src/omv/img/font.c
@@ -1,25 +1,29 @@
/*******************************************************************************
* name: Font
* family: Ubuntu
* size: 8
* style: Normal
* included characters: !"#$%&'()*+,-./0123456789:;<=>?\x0040ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
* antialiasing: yes
* type: monospaced
* encoding: ASMO-708
* unicode bom: no
*
* preset name: Monochrome
* data block size: 8 bit(s), uint8_t
* RLE compression enabled: no
* conversion type: Monochrome, Diffuse Dither 128
* bits per pixel: 1
*
* preprocess:
* main scan direction: top_to_bottom
* line scan direction: forward
* inverse: yes
*******************************************************************************/
/*
* This file is part of the OpenMV project.
* Copyright (c) 2013/2014 Ibrahim Abdelkader <i.abdalkader@gmail.com>
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* Font data.
*
* Size: 8 Style: Normal
* Included characters:
* !"#$%&'()*+,-./0123456789:;<=>?\x0040ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~
* Antialiasing: yes
* Type: monospaced
* Encoding: ASMO-708
* Unicode bom: no
*
* Preset name: Monochrome
* Data block size: 8 bit(s), uint8_t
* RLE compression enabled: no
* Conversion type: Monochrome, Diffuse Dither 128
* Bits per pixel: 1
*
* Preprocess:
* main scan direction: top_to_bottom
* line scan direction: forward
* inverse: yes
*/
#include <stdint.h>
#include "font.h"

Expand Down
10 changes: 9 additions & 1 deletion src/omv/img/font.h
@@ -1,3 +1,11 @@
/*
* This file is part of the OpenMV project.
* Copyright (c) 2013/2014 Ibrahim Abdelkader <i.abdalkader@gmail.com>
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* Font data.
*
*/
#ifndef __FONT_H__
#define __FONT_H__
typedef struct {
Expand All @@ -6,4 +14,4 @@ typedef struct {
uint8_t data[10];
} glyph_t;
extern const glyph_t font[95];
#endif //__FONT_H__
#endif // __FONT_H__
5 changes: 2 additions & 3 deletions src/omv/img/haar.c
@@ -1,8 +1,7 @@
/*
* This file is part of the OpenMV project.
* Copyright (c) 2013 Ibrahim Abd Elkader <i.abdalkader@gmail.com>
* This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/
* Copyright (c) 2013/2014 Ibrahim Abdelkader <i.abdalkader@gmail.com>
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* Viola-Jones face detector implementation.
* Original Author: Francesco Comaschi (f.comaschi@tue.nl)
Expand Down
8 changes: 8 additions & 0 deletions src/omv/img/imlib.c
@@ -1,3 +1,11 @@
/*
* This file is part of the OpenMV project.
* Copyright (c) 2013/2014 Ibrahim Abdelkader <i.abdalkader@gmail.com>
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* Image library.
*
*/
#include <stdlib.h>
#include <string.h>
#include <arm_math.h>
Expand Down
8 changes: 8 additions & 0 deletions src/omv/img/imlib.h
@@ -1,3 +1,11 @@
/*
* This file is part of the OpenMV project.
* Copyright (c) 2013/2014 Ibrahim Abdelkader <i.abdalkader@gmail.com>
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* Image library.
*
*/
#ifndef __IMLIB_H__
#define __IMLIB_H__
#include <stdint.h>
Expand Down
8 changes: 8 additions & 0 deletions src/omv/img/integral.c
@@ -1,3 +1,11 @@
/*
* This file is part of the OpenMV project.
* Copyright (c) 2013/2014 Ibrahim Abdelkader <i.abdalkader@gmail.com>
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* Integral image.
*
*/
#include <stdlib.h>
#include <string.h>
#include <arm_math.h>
Expand Down
10 changes: 4 additions & 6 deletions src/omv/img/jpeg.c
@@ -1,13 +1,11 @@
/*
* This file is part of the OpenMV project.
* Copyright (c) 2013 Ibrahim Abd Elkader <i.abdalkader@gmail.com>
* This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/
* Copyright (c) 2013/2014 Ibrahim Abdelkader <i.abdalkader@gmail.com>
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* Public domain Minimalistic JPEG baseline encoder
* Minimalistic JPEG baseline encoder.
*
* */

*/
#include "ff.h"
#include "std.h"
#include "xalloc.h"
Expand Down
8 changes: 8 additions & 0 deletions src/omv/img/kmeans.c
@@ -1,3 +1,11 @@
/*
* This file is part of the OpenMV project.
* Copyright (c) 2013/2014 Ibrahim Abdelkader <i.abdalkader@gmail.com>
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* Kmeans clustering.
*
*/
#include <float.h>
#include <limits.h>
#include <arm_math.h>
Expand Down
15 changes: 7 additions & 8 deletions src/omv/img/lbp.c
@@ -1,12 +1,11 @@
/*
* This file is part of the OpenMV project.
* Copyright (c) 2013 Ibrahim Abd Elkader <i.abdalkader@gmail.com>
* This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 License.
* To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/
*
* LBPu2⁄8,2 Operator.
*
*/
* This file is part of the OpenMV project.
* Copyright (c) 2013/2014 Ibrahim Abdelkader <i.abdalkader@gmail.com>
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* LBPu2⁄8,2 Operator.
*
*/
#include "imlib.h"
#include "xalloc.h"

Expand Down
8 changes: 8 additions & 0 deletions src/omv/img/median.c
@@ -1,3 +1,11 @@
/*
* This file is part of the OpenMV project.
* Copyright (c) 2013/2014 Ibrahim Abdelkader <i.abdalkader@gmail.com>
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* O(N) median filter with histograms.
*
*/
#include "xalloc.h"
#include "imlib.h"
#include <arm_math.h>
Expand Down
8 changes: 8 additions & 0 deletions src/omv/img/point.c
@@ -1,3 +1,11 @@
/*
* This file is part of the OpenMV project.
* Copyright (c) 2013/2014 Ibrahim Abdelkader <i.abdalkader@gmail.com>
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* X,Y Point.
*
*/
#include <float.h>
#include <limits.h>
#include <arm_math.h>
Expand Down
8 changes: 8 additions & 0 deletions src/omv/img/ppm.c
@@ -1,3 +1,11 @@
/*
* This file is part of the OpenMV project.
* Copyright (c) 2013/2014 Ibrahim Abdelkader <i.abdalkader@gmail.com>
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* PPM/PGM reader/writer.
*
*/
#include <ff.h>
#include <stdio.h>
#include "xalloc.h"
Expand Down
8 changes: 8 additions & 0 deletions src/omv/img/rectangle.c
@@ -1,3 +1,11 @@
/*
* This file is part of the OpenMV project.
* Copyright (c) 2013/2014 Ibrahim Abdelkader <i.abdalkader@gmail.com>
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* Rectangle functions.
*
*/
#include <float.h>
#include <limits.h>
#include <arm_math.h>
Expand Down
8 changes: 8 additions & 0 deletions src/omv/img/template.c
@@ -1,3 +1,11 @@
/*
* This file is part of the OpenMV project.
* Copyright (c) 2013/2014 Ibrahim Abdelkader <i.abdalkader@gmail.com>
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* Template matching with NCC (Normalized Cross Correlation).
*
*/
#include "xalloc.h"
#include "imlib.h"
#include <arm_math.h>
Expand Down
8 changes: 8 additions & 0 deletions src/omv/main.c
@@ -1,3 +1,11 @@
/*
* This file is part of the OpenMV project.
* Copyright (c) 2013/2014 Ibrahim Abdelkader <i.abdalkader@gmail.com>
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* main function.
*
*/
#include <stdio.h>
#include <string.h>
#include <stm32f4xx_hal.h>
Expand Down
8 changes: 8 additions & 0 deletions src/omv/mdefs.h
@@ -1,3 +1,11 @@
/*
* This file is part of the OpenMV project.
* Copyright (c) 2013/2014 Ibrahim Abdelkader <i.abdalkader@gmail.com>
* This work is licensed under the MIT license, see the file LICENSE for details.
*
* Misc macros.
*
*/
#ifndef ALWAYS_INLINE
#define ALWAYS_INLINE inline __attribute__((always_inline))
#endif
Expand Down

0 comments on commit 65cd8a1

Please sign in to comment.