mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
misc: Add back original licenses. (#2298)
misc: Add back original licenses.
This commit is contained in:
parent
5df4e84699
commit
b7800f1c8b
67
src/drivers/display/LICENSE
Normal file
67
src/drivers/display/LICENSE
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
SOFTWARE PACKAGE LICENSE AGREEMENT
|
||||||
|
|
||||||
|
Under STMicroelectronics’ intellectual property rights and subject to applicable licensing terms for any third-party software
|
||||||
|
incorporated in this software package and applicable Open Source Terms (as defined here below), the redistribution,
|
||||||
|
reproduction and use in source and binary forms of the software package or any part thereof, with or without modification, are
|
||||||
|
permitted provided that the following conditions are met:
|
||||||
|
|
||||||
|
1. Redistribution of source code (modified or not) must retain any copyright notice, this list of conditions and the following
|
||||||
|
disclaimer.
|
||||||
|
|
||||||
|
2. Redistributions in binary form, except as embedded into microcontroller or microprocessor device manufactured by or for
|
||||||
|
STMicroelectronics or a software update for such device, must reproduce the above copyright notice, this list of conditions
|
||||||
|
and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
3. Neither the name of STMicroelectronics nor the names of other contributors to this software package may be used to
|
||||||
|
endorse or promote products derived from this software package or part thereof without specific written permission.
|
||||||
|
|
||||||
|
4. This software package or any part thereof, including modifications and/or derivative works of this software package, must
|
||||||
|
be used and execute solely and exclusively on or in combination with a microcontroller or a microprocessor devices
|
||||||
|
manufactured by or for STMicroelectronics.
|
||||||
|
|
||||||
|
5. No use, reproduction or redistribution of this software package partially or totally may be done in any manner that would
|
||||||
|
subject this software package to any Open Source Terms (as defined below).
|
||||||
|
|
||||||
|
6. Some portion of the software package may contain software subject to Open Source Terms (as defined below) applicable
|
||||||
|
for each such portion (“Open Source Software”), as further specified in the software package. Such Open Source Software
|
||||||
|
is supplied under the applicable Open Source Terms and is not subject to the terms and conditions of license hereunder.
|
||||||
|
“Open Source Terms” shall mean any open source license which requires as part of distribution of software that the source
|
||||||
|
code of such software is distributed therewith or otherwise made available, or open source license that substantially
|
||||||
|
complies with the Open Source definition specified at www.opensource.org and any other comparable open source license
|
||||||
|
such as for example GNU General Public License (GPL), Eclipse Public License (EPL), Apache Software License, BSD
|
||||||
|
license and MIT license.
|
||||||
|
|
||||||
|
7. This software package may also include third party software as expressly specified in the software package subject to
|
||||||
|
specific license terms from such third parties. Such third party software is supplied under such specific license terms and is
|
||||||
|
not subject to the terms and conditions of license hereunder. By installing copying, downloading, accessing or otherwise
|
||||||
|
using this software package, the recipient agrees to be bound by such license terms with regard to such third party
|
||||||
|
software.
|
||||||
|
|
||||||
|
8. STMicroelectronics has no obligation to provide any maintenance, support or updates for the software package.
|
||||||
|
|
||||||
|
9. The software package is and will remain the exclusive property of STMicroelectronics and its licensors. The recipient will
|
||||||
|
not take any action that jeopardizes STMicroelectronics and its licensors' proprietary rights or acquire any rights in the
|
||||||
|
software package, except the limited rights specified hereunder.
|
||||||
|
|
||||||
|
10. The recipient shall comply with all applicable laws and regulations affecting the use of the software package or any part
|
||||||
|
thereof including any applicable export control law or regulation.
|
||||||
|
|
||||||
|
11. Redistribution and use of this software package partially or any part thereof other than as permitted under this license is
|
||||||
|
void and will automatically terminate your rights under this license.
|
||||||
|
|
||||||
|
THIS SOFTWARE PACKAGE IS PROVIDED BY STMICROELECTRONICS AND CONTRIBUTORS "AS IS" AND ANY
|
||||||
|
EXPRESS, IMPLIED OR STATUTORY WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT OF THIRD PARTY
|
||||||
|
INTELLECTUAL PROPERTY RIGHTS ARE DISCLAIMED TO THE FULLEST EXTENT PERMITTED BY LAW. IN NO EVENT
|
||||||
|
|
||||||
|
SHALL STMICROELECTRONICS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||||
|
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
||||||
|
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
||||||
|
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||||
|
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE PACKAGE, EVEN IF ADVISED OF THE
|
||||||
|
POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
EXCEPT AS EXPRESSLY PERMITTED HEREUNDER AND SUBJECT TO THE APPLICABLE LICENSING TERMS FOR ANY
|
||||||
|
THIRD-PARTY SOFTWARE INCORPORATED IN THE SOFTWARE PACKAGE AND OPEN SOURCE TERMS AS
|
||||||
|
APPLICABLE, NO LICENSE OR OTHER RIGHTS, WHETHER EXPRESS OR IMPLIED, ARE GRANTED UNDER ANY
|
||||||
|
PATENT OR OTHER INTELLECTUAL PROPERTY RIGHTS OF STMICROELECTRONICS OR ANY THIRD PARTY.
|
||||||
@ -1,14 +1,24 @@
|
|||||||
/*
|
/**
|
||||||
* This file is part of the OpenMV project.
|
******************************************************************************
|
||||||
*
|
* @file stm32100e_eval_cec.h
|
||||||
* Copyright (c) 2009 STMicroelectronics
|
* @author MCD Application Team
|
||||||
* Copyright (c) 2023 Ibrahim Abdelkader <iabdalkader@openmv.io>
|
* @version V4.5.0
|
||||||
* Copyright (c) 2023 Kwabena W. Agyeman <kwagyeman@openmv.io>
|
* @date 07-March-2011
|
||||||
*
|
* @brief This file contains all the functions prototypes for the stm32100e_eval_cec
|
||||||
* This work is licensed under the MIT license, see the file LICENSE for details.
|
* firmware driver.
|
||||||
*
|
******************************************************************************
|
||||||
* CEC driver.
|
* @attention
|
||||||
*/
|
*
|
||||||
|
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
|
||||||
|
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
|
||||||
|
* TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
|
||||||
|
* DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
|
||||||
|
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
|
||||||
|
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
|
||||||
|
*
|
||||||
|
* <h2><center>© COPYRIGHT 2011 STMicroelectronics</center></h2>
|
||||||
|
******************************************************************************
|
||||||
|
*/
|
||||||
#ifndef __PY_LCD_CEC_H__
|
#ifndef __PY_LCD_CEC_H__
|
||||||
#define __PY_LCD_CEC_H__
|
#define __PY_LCD_CEC_H__
|
||||||
int cec_init(void);
|
int cec_init(void);
|
||||||
|
|||||||
@ -1,14 +1,23 @@
|
|||||||
/*
|
/**
|
||||||
* This file is part of the OpenMV project.
|
******************************************************************************
|
||||||
*
|
* @file stm32100e_eval_cec.c
|
||||||
* Copyright (c) 2009 STMicroelectronics
|
* @author MCD Application Team
|
||||||
* Copyright (c) 2023 Ibrahim Abdelkader <iabdalkader@openmv.io>
|
* @version V4.5.0
|
||||||
* Copyright (c) 2023 Kwabena W. Agyeman <kwagyeman@openmv.io>
|
* @date 07-March-2011
|
||||||
*
|
* @brief This file provides all the STM32100E-EVAL HDMI-CEC firmware functions.
|
||||||
* This work is licensed under the MIT license, see the file LICENSE for details.
|
******************************************************************************
|
||||||
*
|
* @attention
|
||||||
* CEC driver.
|
*
|
||||||
*/
|
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
|
||||||
|
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
|
||||||
|
* TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
|
||||||
|
* DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
|
||||||
|
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
|
||||||
|
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
|
||||||
|
*
|
||||||
|
* <h2><center>© COPYRIGHT 2011 STMicroelectronics</center></h2>
|
||||||
|
******************************************************************************
|
||||||
|
*/
|
||||||
#include "omv_boardconfig.h"
|
#include "omv_boardconfig.h"
|
||||||
|
|
||||||
#if OMV_DISPLAY_CEC_ENABLE
|
#if OMV_DISPLAY_CEC_ENABLE
|
||||||
|
|||||||
@ -1,13 +1,13 @@
|
|||||||
/*
|
// Read an INI file into easy-to-access name/value pairs.
|
||||||
* This file is part of the OpenMV project.
|
|
||||||
*
|
// SPDX-License-Identifier: BSD-3-Clause
|
||||||
* Copyright (c) 2013-2021 Ibrahim Abdelkader <iabdalkader@openmv.io>
|
|
||||||
* Copyright (c) 2013-2021 Kwabena W. Agyeman <kwagyeman@openmv.io>
|
// Copyright (C) 2009-2020, Ben Hoyt
|
||||||
*
|
|
||||||
* This work is licensed under the MIT license, see the file LICENSE for details.
|
// inih and INIReader are released under the New BSD license (see LICENSE.txt).
|
||||||
*
|
// Go to the project home page for more info:
|
||||||
* Initialization file parser.
|
//
|
||||||
*/
|
// https://github.com/benhoyt/inih
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|||||||
@ -1,15 +1,13 @@
|
|||||||
/*
|
// Read an INI file into easy-to-access name/value pairs.
|
||||||
* This file is part of the OpenMV project.
|
|
||||||
*
|
// SPDX-License-Identifier: BSD-3-Clause
|
||||||
* Copyright (c) 2013-2021 Ibrahim Abdelkader <iabdalkader@openmv.io>
|
|
||||||
* Copyright (c) 2013-2021 Kwabena W. Agyeman <kwagyeman@openmv.io>
|
// Copyright (C) 2009-2020, Ben Hoyt
|
||||||
*
|
|
||||||
* This work is licensed under the MIT license, see the file LICENSE for details.
|
// inih and INIReader are released under the New BSD license (see LICENSE.txt).
|
||||||
*
|
// Go to the project home page for more info:
|
||||||
* Initialization file parser.
|
//
|
||||||
* inih library is released under the New BSD license (see LICENSE.txt).
|
// https://github.com/benhoyt/inih
|
||||||
* For more details see the following: https://github.com/benhoyt/inih
|
|
||||||
*/
|
|
||||||
#ifndef __INI_H__
|
#ifndef __INI_H__
|
||||||
#define __INI_H__
|
#define __INI_H__
|
||||||
|
|
||||||
|
|||||||
@ -1,24 +1,4 @@
|
|||||||
/*
|
|
||||||
* This file is part of the OpenMV project.
|
|
||||||
*
|
|
||||||
* Copyright (c) 2013-2021 Ibrahim Abdelkader <iabdalkader@openmv.io>
|
|
||||||
* Copyright (c) 2013-2021 Kwabena W. Agyeman <kwagyeman@openmv.io>
|
|
||||||
*
|
|
||||||
* This work is licensed under the MIT license, see the file LICENSE for details.
|
|
||||||
*
|
|
||||||
* AprilTags library.
|
|
||||||
*/
|
|
||||||
#include <float.h>
|
|
||||||
#include <stdarg.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include "imlib.h"
|
|
||||||
|
|
||||||
// *INDENT-OFF*
|
// *INDENT-OFF*
|
||||||
// Enable new code optimizations
|
|
||||||
#define OPTIMIZED
|
|
||||||
|
|
||||||
#pragma GCC diagnostic push
|
|
||||||
#pragma GCC diagnostic ignored "-Wunused-variable"
|
|
||||||
|
|
||||||
/* Copyright (C) 2013-2016, The Regents of The University of Michigan.
|
/* Copyright (C) 2013-2016, The Regents of The University of Michigan.
|
||||||
All rights reserved.
|
All rights reserved.
|
||||||
@ -51,6 +31,17 @@ The views and conclusions contained in the software and documentation are those
|
|||||||
of the authors and should not be interpreted as representing official policies,
|
of the authors and should not be interpreted as representing official policies,
|
||||||
either expressed or implied, of the Regents of The University of Michigan.
|
either expressed or implied, of the Regents of The University of Michigan.
|
||||||
*/
|
*/
|
||||||
|
#include <float.h>
|
||||||
|
#include <stdarg.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include "imlib.h"
|
||||||
|
|
||||||
|
// Enable new code optimizations
|
||||||
|
#define OPTIMIZED
|
||||||
|
|
||||||
|
#pragma GCC diagnostic push
|
||||||
|
#pragma GCC diagnostic ignored "-Wunused-variable"
|
||||||
|
|
||||||
#define fprintf(format, ...)
|
#define fprintf(format, ...)
|
||||||
#define free(ptr) ({ umm_free(ptr); })
|
#define free(ptr) ({ umm_free(ptr); })
|
||||||
#define malloc(size) ({ void *_r = umm_malloc(size); if(!_r) umm_alloc_fail(); _r; })
|
#define malloc(size) ({ void *_r = umm_malloc(size); if(!_r) umm_alloc_fail(); _r; })
|
||||||
|
|||||||
@ -1,16 +1,3 @@
|
|||||||
/*
|
|
||||||
* This file is part of the OpenMV project.
|
|
||||||
*
|
|
||||||
* Copyright (c) 2013-2021 Ibrahim Abdelkader <iabdalkader@openmv.io>
|
|
||||||
* Copyright (c) 2013-2021 Kwabena W. Agyeman <kwagyeman@openmv.io>
|
|
||||||
*
|
|
||||||
* This work is licensed under the MIT license, see the file LICENSE for details.
|
|
||||||
*
|
|
||||||
* Contrast Limited Adaptive Histogram Equalization.
|
|
||||||
*/
|
|
||||||
#include "imlib.h"
|
|
||||||
#define BYTE_IMAGE
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ANSI C code from the article
|
* ANSI C code from the article
|
||||||
* "Contrast Limited Adaptive Histogram Equalization"
|
* "Contrast Limited Adaptive Histogram Equalization"
|
||||||
@ -36,6 +23,8 @@
|
|||||||
* Author: Karel Zuiderveld, Computer Vision Research Group,
|
* Author: Karel Zuiderveld, Computer Vision Research Group,
|
||||||
* Utrecht, The Netherlands (karel@cv.ruu.nl)
|
* Utrecht, The Netherlands (karel@cv.ruu.nl)
|
||||||
*/
|
*/
|
||||||
|
#include "imlib.h"
|
||||||
|
#define BYTE_IMAGE
|
||||||
|
|
||||||
#ifdef BYTE_IMAGE
|
#ifdef BYTE_IMAGE
|
||||||
typedef unsigned char kz_pixel_t; /* for 8 bit-per-pixel images */
|
typedef unsigned char kz_pixel_t; /* for 8 bit-per-pixel images */
|
||||||
|
|||||||
@ -1,13 +1,41 @@
|
|||||||
/*
|
// *INDENT-OFF*
|
||||||
* This file is part of the OpenMV project.
|
|
||||||
*
|
/* Copyright 2005-2016 Mike Laughton, Vadim A. Misbakh-Soloviov and others.
|
||||||
* Copyright (c) 2013-2021 Ibrahim Abdelkader <iabdalkader@openmv.io>
|
All rights reserved.
|
||||||
* Copyright (c) 2013-2021 Kwabena W. Agyeman <kwagyeman@openmv.io>
|
|
||||||
*
|
Redistribution and use in source and binary forms, with or without modification,
|
||||||
* This work is licensed under the MIT license, see the file LICENSE for details.
|
are permitted provided that the following conditions are met:
|
||||||
*
|
|
||||||
* Data Matrix Encoding/Decoding Library.
|
1. Redistributions of source code must retain the above copyright notice,
|
||||||
*/
|
this list of conditions and the following disclaimer.
|
||||||
|
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||||
|
this list of conditions and the following disclaimer in the documentation
|
||||||
|
and/or other materials provided with the distribution.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||||
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||||
|
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||||
|
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||||
|
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||||
|
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||||
|
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
|
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
|
The views and conclusions contained in the software and documentation are those
|
||||||
|
of the authors and should not be interpreted as representing official policies,
|
||||||
|
either expressed or implied, of the libdmtx project.
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
ALTERNATE TERMS
|
||||||
|
|
||||||
|
Redistributions in binary form, with or without modification, are permitted
|
||||||
|
without including the above copyright notice, list of conditions, and disclaimer
|
||||||
|
if express written permission has been obtained from Dragonfly Logic, Inc.
|
||||||
|
*/
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include "imlib.h"
|
#include "imlib.h"
|
||||||
@ -53,7 +81,6 @@
|
|||||||
#define acos(x) acosf(x)
|
#define acos(x) acosf(x)
|
||||||
#define asin(x) asinf(x)
|
#define asin(x) asinf(x)
|
||||||
|
|
||||||
// *INDENT-OFF*
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
//////// "dmtx.h"
|
//////// "dmtx.h"
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|||||||
@ -1,12 +1,14 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of the OpenMV project.
|
* This file is part of the OpenMV project.
|
||||||
*
|
*
|
||||||
* Copyright (c) 2013-2021 Ibrahim Abdelkader <iabdalkader@openmv.io>
|
* Copyright (c) 1995-2020 Larry Bank bitbank@pobox.com
|
||||||
* Copyright (c) 2013-2021 Kwabena W. Agyeman <kwagyeman@openmv.io>
|
* Copyright (c) 1995-2020 BitBank Software, Inc. All Rights Reserved.
|
||||||
|
* Copyright (c) 2020-2024 Ibrahim Abdelkader <iabdalkader@openmv.io>
|
||||||
|
* Copyright (c) 2020-2024 Kwabena W. Agyeman <kwagyeman@openmv.io>
|
||||||
*
|
*
|
||||||
* This work is licensed under the MIT license, see the file LICENSE for details.
|
* This work is licensed under the MIT license, see the file LICENSE for details.
|
||||||
*
|
*
|
||||||
* Baseline JPEG decoder.
|
* JPEG decoder.
|
||||||
*/
|
*/
|
||||||
#include "imlib.h"
|
#include "imlib.h"
|
||||||
|
|
||||||
|
|||||||
@ -30,7 +30,7 @@
|
|||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include "imlib.h"
|
#include "imlib.h"
|
||||||
|
|
||||||
#ifdef IMLIB_ENABLE_FIND_LINE_SEGMENTS
|
#if defined(IMLIB_ENABLE_FIND_LINE_SEGMENTS) && (!defined(OMV_NO_GPL))
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wunused-function"
|
#pragma GCC diagnostic ignored "-Wunused-function"
|
||||||
#pragma GCC diagnostic ignored "-Wunused-variable"
|
#pragma GCC diagnostic ignored "-Wunused-variable"
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* This file is part of the OpenMV project.
|
* This file is part of the OpenMV project.
|
||||||
*
|
*
|
||||||
|
* Copyright (C) 2010-2012 Daniel Beer <dlbeer@gmail.com>
|
||||||
* Copyright (c) 2013-2021 Ibrahim Abdelkader <iabdalkader@openmv.io>
|
* Copyright (c) 2013-2021 Ibrahim Abdelkader <iabdalkader@openmv.io>
|
||||||
* Copyright (c) 2013-2021 Kwabena W. Agyeman <kwagyeman@openmv.io>
|
* Copyright (c) 2013-2021 Kwabena W. Agyeman <kwagyeman@openmv.io>
|
||||||
*
|
*
|
||||||
|
|||||||
@ -1,16 +1,28 @@
|
|||||||
/*
|
/*------------------------------------------------------------------------
|
||||||
* This file is part of the OpenMV project.
|
* Copyright 2008-2010 (c) Jeff Brown <spadix@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* Copyright (c) 2013-2021 Ibrahim Abdelkader <iabdalkader@openmv.io>
|
* This file is part of the ZBar Bar Code Reader.
|
||||||
* Copyright (c) 2013-2021 Kwabena W. Agyeman <kwagyeman@openmv.io>
|
|
||||||
*
|
*
|
||||||
* This work is licensed under the MIT license, see the file LICENSE for details.
|
* The ZBar Bar Code Reader is free software; you can redistribute it
|
||||||
|
* and/or modify it under the terms of the GNU Lesser Public License as
|
||||||
|
* published by the Free Software Foundation; either version 2.1 of
|
||||||
|
* the License, or (at your option) any later version.
|
||||||
*
|
*
|
||||||
* This file is part of the ZBar Bar Code Reader library.
|
* The ZBar Bar Code Reader 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 Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Lesser Public License
|
||||||
|
* along with the ZBar Bar Code Reader; if not, write to the Free
|
||||||
|
* Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
||||||
|
* Boston, MA 02110-1301 USA
|
||||||
|
*
|
||||||
|
* http://sourceforge.net/projects/zbar
|
||||||
|
*------------------------------------------------------------------------*/
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
#include "imlib.h"
|
#include "imlib.h"
|
||||||
#ifdef IMLIB_ENABLE_BARCODES
|
#if defined(IMLIB_ENABLE_BARCODES) && (!defined(OMV_NO_GPL))
|
||||||
#pragma GCC diagnostic push
|
#pragma GCC diagnostic push
|
||||||
#pragma GCC diagnostic ignored "-Wunused-variable"
|
#pragma GCC diagnostic ignored "-Wunused-variable"
|
||||||
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
|
||||||
|
|||||||
@ -4774,7 +4774,7 @@ static mp_obj_t py_image_find_lines(uint n_args, const mp_obj_t *args, mp_map_t
|
|||||||
static MP_DEFINE_CONST_FUN_OBJ_KW(py_image_find_lines_obj, 1, py_image_find_lines);
|
static MP_DEFINE_CONST_FUN_OBJ_KW(py_image_find_lines_obj, 1, py_image_find_lines);
|
||||||
#endif // IMLIB_ENABLE_FIND_LINES
|
#endif // IMLIB_ENABLE_FIND_LINES
|
||||||
|
|
||||||
#ifdef IMLIB_ENABLE_FIND_LINE_SEGMENTS
|
#if defined(IMLIB_ENABLE_FIND_LINE_SEGMENTS) && (!defined(OMV_NO_GPL))
|
||||||
static mp_obj_t py_image_find_line_segments(uint n_args, const mp_obj_t *args, mp_map_t *kw_args) {
|
static mp_obj_t py_image_find_line_segments(uint n_args, const mp_obj_t *args, mp_map_t *kw_args) {
|
||||||
image_t *arg_img = py_image_cobj(args[0]);
|
image_t *arg_img = py_image_cobj(args[0]);
|
||||||
|
|
||||||
@ -5812,7 +5812,7 @@ static mp_obj_t py_image_find_datamatrices(uint n_args, const mp_obj_t *args, mp
|
|||||||
static MP_DEFINE_CONST_FUN_OBJ_KW(py_image_find_datamatrices_obj, 1, py_image_find_datamatrices);
|
static MP_DEFINE_CONST_FUN_OBJ_KW(py_image_find_datamatrices_obj, 1, py_image_find_datamatrices);
|
||||||
#endif // IMLIB_ENABLE_DATAMATRICES
|
#endif // IMLIB_ENABLE_DATAMATRICES
|
||||||
|
|
||||||
#ifdef IMLIB_ENABLE_BARCODES
|
#if defined(IMLIB_ENABLE_BARCODES) && (!defined(OMV_NO_GPL))
|
||||||
// BarCode Object //
|
// BarCode Object //
|
||||||
#define py_barcode_obj_size 8
|
#define py_barcode_obj_size 8
|
||||||
typedef struct py_barcode_obj {
|
typedef struct py_barcode_obj {
|
||||||
@ -6741,7 +6741,7 @@ static const mp_rom_map_elem_t locals_dict_table[] = {
|
|||||||
#else
|
#else
|
||||||
{MP_ROM_QSTR(MP_QSTR_find_lines), MP_ROM_PTR(&py_func_unavailable_obj)},
|
{MP_ROM_QSTR(MP_QSTR_find_lines), MP_ROM_PTR(&py_func_unavailable_obj)},
|
||||||
#endif
|
#endif
|
||||||
#ifdef IMLIB_ENABLE_FIND_LINE_SEGMENTS
|
#if defined(IMLIB_ENABLE_FIND_LINE_SEGMENTS) && (!defined(OMV_NO_GPL))
|
||||||
{MP_ROM_QSTR(MP_QSTR_find_line_segments), MP_ROM_PTR(&py_image_find_line_segments_obj)},
|
{MP_ROM_QSTR(MP_QSTR_find_line_segments), MP_ROM_PTR(&py_image_find_line_segments_obj)},
|
||||||
#else
|
#else
|
||||||
{MP_ROM_QSTR(MP_QSTR_find_line_segments), MP_ROM_PTR(&py_func_unavailable_obj)},
|
{MP_ROM_QSTR(MP_QSTR_find_line_segments), MP_ROM_PTR(&py_func_unavailable_obj)},
|
||||||
@ -6771,7 +6771,7 @@ static const mp_rom_map_elem_t locals_dict_table[] = {
|
|||||||
#else
|
#else
|
||||||
{MP_ROM_QSTR(MP_QSTR_find_datamatrices), MP_ROM_PTR(&py_func_unavailable_obj)},
|
{MP_ROM_QSTR(MP_QSTR_find_datamatrices), MP_ROM_PTR(&py_func_unavailable_obj)},
|
||||||
#endif
|
#endif
|
||||||
#ifdef IMLIB_ENABLE_BARCODES
|
#if defined(IMLIB_ENABLE_BARCODES) && (!defined(OMV_NO_GPL))
|
||||||
{MP_ROM_QSTR(MP_QSTR_find_barcodes), MP_ROM_PTR(&py_image_find_barcodes_obj)},
|
{MP_ROM_QSTR(MP_QSTR_find_barcodes), MP_ROM_PTR(&py_image_find_barcodes_obj)},
|
||||||
#else
|
#else
|
||||||
{MP_ROM_QSTR(MP_QSTR_find_barcodes), MP_ROM_PTR(&py_func_unavailable_obj)},
|
{MP_ROM_QSTR(MP_QSTR_find_barcodes), MP_ROM_PTR(&py_func_unavailable_obj)},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user