summaryrefslogtreecommitdiff
path: root/camlibs/sq905
Commit message (Collapse)AuthorAgeFilesLines
* try to fix codeql integer expansion warningMarcus Meissner2022-11-211-2/+2
|
* camlib build var cleanupHans Ulrich Niedermann2022-09-011-8/+22
| | | | | | | | | | | | | | | Consistently use the same notation and formatting for all camlib Makefile-files, which uses * common $(camlib_cflags) * common $(camlib_cppflags) * common $(camlib_dependencies) * common $(camlib_ldflags) * common $(camlib_libadd) and then groups additional related definitions together, making it obvious when e.g. bar_la_LIBADD adds FOO_LIBS but bar_la_CPPFLAGS forgot to add FOO_CFLAGS.
* Avoid accidental include file name collisionsHans Ulrich Niedermann2021-10-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are five libgphoto2 internal *.h include files inside the source tree's `libgphoto2/` folder. Internal means they are part of the libgphoto2 implementation, and are not part of the public libgphoto2 API or ABI. These files have names which are so generic that it is difficult to see from a `#include` statement that the included file is actually part of libgphoto2: bayer-types.h bayer.h exif.h gamma.h jpeg.h While building, an additional file is created inside the `libgphoto2/` folder with a name which does hint to its relationship with libgphoto2: gphoto2-endian.h To reduce the probability of accidental conflicts with include files which might also be called the same very generic name, this changes the use of these include files to a preprocessor directive like #include "libgphoto2/bayer.h> instead of #include "bayer.h" To enforce the need for the "libgphoto2/" part in the #include preprocessor directive, this also removes the respective `-I` arguments for the `libgphoto2` subdir (both in source tree and in build tree) from `*_CPPFLAGS`. This change was inspired by `libgphoto2/` and `camlibs/stv0680/` containing very different include files both called `bayer.h`.
* Use consistently named non-reserved CPP macros for header filesHans Ulrich Niedermann2021-10-051-3/+4
| | | | | | | | | | | | | | | | | | | | | | | C preprocessor macros beginning/ending with underscores are reserved for system use as well as macros containing a double underscore anywhere, so application software macros are supposed to be named differently. For a header file gphoto2-abilities-list.h, this consistently uses a macro name LIBGPHOTO2_GPHOTO2_ABILITIES_LIST_H for the usual #ifndef LIBGPHOTO2_GPHOTO2_ABILITIES_LIST_H #define LIBGPHOTO2_GPHOTO2_ABILITIES_LIST_H ... content of the header file ... #endif /* !defined(LIBGPHOTO2_GPHOTO2_ABILITIES_LIST_H) */ Found using "clang -Weverything". This should work, unless when run with an ancient C preprocessor which might only the first 8 or 10 characters to distinguish macro names and ignores the remainder of the name.
* Remove remnants of OS/2 supportHans Ulrich Niedermann2021-09-082-6/+0
| | | | | | | | Remove remnants of OS/2 support, which has been broken at least since commit 9831fa553c from 2006-10, but more probably even since after gphoto2 2.1.0 which was some time in 2002. Closes: https://github.com/gphoto/libgphoto2/issues/710
* Fix sq905 camlib compilation warnings.Siim Meerits2020-08-031-1/+1
| | | | Adds missing .idProduct field initialization value.
* Remove trailing whitespace from all *.h and *.c files.Siim Meerits2020-07-274-84/+84
|
* Fix typos throughout the codebaseSijawusz Pur Rahnama2020-05-251-1/+1
|
* avoid div by zero (AFL)Marcus Meissner2019-04-281-0/+4
|
* BSD_SOURCE -> DEFAULT_SPURCEMarcus Meissner2018-06-201-1/+1
|
* Help editors treat as Makefiles all our Makefile-files filesHans Ulrich Niedermann2016-10-281-0/+2
|
* free rawdata in one exit paht (Coverity)Marcus Meissner2014-01-061-2/+5
| | | | | | | avoid freeing a pointer into the frame_data git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14662 67ed7778-7388-44ab-90cf-0a291f65f57c
* avoid leaking catalog (Coverity)Marcus Meissner2014-01-061-0/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14659 67ed7778-7388-44ab-90cf-0a291f65f57c
* free rawdataMarcus Meissner2014-01-051-0/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14642 67ed7778-7388-44ab-90cf-0a291f65f57c
* do not realloc if not neededMarcus Meissner2014-01-051-3/+5
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14641 67ed7778-7388-44ab-90cf-0a291f65f57c
* updated fsf addressMarcus Meissner2014-01-011-2/+2
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14608 67ed7778-7388-44ab-90cf-0a291f65f57c
* renamed NT130aMarcus Meissner2013-12-011-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14589 67ed7778-7388-44ab-90cf-0a291f65f57c
* added #define _BSD_SOURCE for ansi like buildsMarcus Meissner2013-02-201-0/+2
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14248 67ed7778-7388-44ab-90cf-0a291f65f57c
* camlibs/sq905: New camera found, addedTheodore Kilgore2010-02-193-144/+194
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@12713 67ed7778-7388-44ab-90cf-0a291f65f57c
* free temp_line arrayMarcus Meissner2009-09-231-1/+2
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@12450 67ed7778-7388-44ab-90cf-0a291f65f57c
* Batch commit from weekend work:Marcus Meissner2009-02-161-4/+0
| | | | | | | | | | | | | | - removed "type" from CameraFile handling: - all put_file functions and hooks get "type" as argument now - added type to the set_file_info_noop call - started removal of "name" from CameraFile - generate new filename from original filename + camerafile type + mimetype - new gp_camera_autodetect() helper function - adapted all drivers. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11818 67ed7778-7388-44ab-90cf-0a291f65f57c
* disable more info.name handlingMarcus Meissner2009-01-101-12/+2
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11684 67ed7778-7388-44ab-90cf-0a291f65f57c
* added ChangeLog and other not yet distributed filesMarcus Meissner2008-10-191-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11448 67ed7778-7388-44ab-90cf-0a291f65f57c
* more gone .cvsignore filesMarcus Meissner2008-09-261-6/+0
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11350 67ed7778-7388-44ab-90cf-0a291f65f57c
* camlibs/sq905: Raw files now each have the corresponding catalog entry as a ↵Theodore Kilgore2008-05-292-2/+7
| | | | | | footer. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11155 67ed7778-7388-44ab-90cf-0a291f65f57c
* camlibs/sq905: gp_ahd_decode replaces by gp_bayer_decodeTheodore Kilgore2008-05-282-1/+4
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11154 67ed7778-7388-44ab-90cf-0a291f65f57c
* Several cameras added to the respective lists in camlibs/digigr8, sonix, and ↵Theodore Kilgore2007-10-172-1/+5
| | | | | | sq905 git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10792 67ed7778-7388-44ab-90cf-0a291f65f57c
* fixed signedness compile warnings in camlibs/aox and camlibs/sq905Theodore Kilgore2007-06-244-15/+20
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10402 67ed7778-7388-44ab-90cf-0a291f65f57c
* made 1 function staticMarcus Meissner2007-05-162-3/+4
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10231 67ed7778-7388-44ab-90cf-0a291f65f57c
* fixed some free() calls and some memory leaks (CID 40) (CID 39) (CIDMarcus Meissner2007-05-102-8/+12
| | | | | | | 38) git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10162 67ed7778-7388-44ab-90cf-0a291f65f57c
* Oops. Left a // comment in camlibs/sq905Theodore Kilgore2007-03-101-4/+0
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10043 67ed7778-7388-44ab-90cf-0a291f65f57c
* sq905 decompression algorithm doneTheodore Kilgore2007-03-096-426/+226
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10042 67ed7778-7388-44ab-90cf-0a291f65f57c
* 2.3.1.0.trunk, non-recursive camlibs buildHans Ulrich Niedermann2006-12-262-10/+9
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9736 67ed7778-7388-44ab-90cf-0a291f65f57c
* made some stuff staticMarcus Meissner2006-11-191-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9432 67ed7778-7388-44ab-90cf-0a291f65f57c
* camlib README files: rename, ship in dist tarball, install as docHans Ulrich Niedermann2006-10-072-0/+3
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9296 67ed7778-7388-44ab-90cf-0a291f65f57c
* Consistently use #include <gphoto2/gphoto2-foo.h> everywhere.Hans Ulrich Niedermann2006-09-284-7/+7
| | | | | | | | | | This moves the header files to a new subdirectory gphoto2 in both libgphoto2 and libphoto2_port/libgphoto2. All references are adapted appropriately. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9221 67ed7778-7388-44ab-90cf-0a291f65f57c
* converted to fsfuncs.Marcus Meissner2006-03-311-6/+8
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@8698 67ed7778-7388-44ab-90cf-0a291f65f57c
* * library.c: Shark 2-in-1 MiniHubert Figuiere2006-01-042-28/+19
| | | | | | | Request Ultra Slim git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@8403 67ed7778-7388-44ab-90cf-0a291f65f57c
* add *.sym file to _DEPENDENCIESHans Ulrich Niedermann2006-01-031-0/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@8401 67ed7778-7388-44ab-90cf-0a291f65f57c
* library.c: raw photo download routine segfault fixed.Theodore Kilgore2005-12-132-3/+11
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@8312 67ed7778-7388-44ab-90cf-0a291f65f57c
* * library.c: Several improvements for SQ_MODEL_POCK_CAMTheodore Kilgore2005-07-114-25/+30
| | | | | | | | | * postprocess.c: Several improvements for SQ_MODEL_POCK_CAM * sq905.c: Several improvements for SQ_MODEL_POCK_CAM, thanks to Julius Schwartzenberg <julius@zgod.cjb.net> for exhaustive testing! git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@8174 67ed7778-7388-44ab-90cf-0a291f65f57c
* build camlibs as libtool modules with simple names and symbol listHans Ulrich Niedermann2005-06-111-4/+5
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@8065 67ed7778-7388-44ab-90cf-0a291f65f57c
* * library.c: bug in compressed photo routine fixed, found by Cedric CellTheodore Kilgore2005-05-182-2/+9
| | | | | | | ier. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@8009 67ed7778-7388-44ab-90cf-0a291f65f57c
* fixed some typos in ChangeLogTheodore Kilgore2005-04-171-5/+11
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7867 67ed7778-7388-44ab-90cf-0a291f65f57c
* fix sq_decompress() to handle Magpix B350Theodore Kilgore2005-04-165-49/+77
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7857 67ed7778-7388-44ab-90cf-0a291f65f57c
* remove redundant INCLUDE = definitions from Makefile.amHans Ulrich Niedermann2005-04-141-8/+0
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7830 67ed7778-7388-44ab-90cf-0a291f65f57c
* postprocess.c: small oops repaired in sq_decompress()Theodore Kilgore2005-04-121-1/+7
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7801 67ed7778-7388-44ab-90cf-0a291f65f57c
* small oops repaired in sq_decompress()Theodore Kilgore2005-04-121-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7800 67ed7778-7388-44ab-90cf-0a291f65f57c
* improvements for compressed modeTheodore Kilgore2005-04-034-139/+248
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7717 67ed7778-7388-44ab-90cf-0a291f65f57c
* added two cameras in library.c; code cleanup in postprocess.cTheodore Kilgore2005-01-171-1/+9
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7522 67ed7778-7388-44ab-90cf-0a291f65f57c