summaryrefslogtreecommitdiff
path: root/camlibs/stv0680
Commit message (Collapse)AuthorAgeFilesLines
* camlib build var cleanupHans Ulrich Niedermann2022-09-011-16/+27
| | | | | | | | | | | | | | | 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.
* Factor out i18n stuff into separate i18n.h filesHans Ulrich Niedermann2021-10-252-26/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Factor out the i18n definitions into i18n.h include files: One include file each for libgphoto2 and for libgphoto2_port. This removes the complete #ifdef ENABLE_NLS # include <libintl.h> # undef _ # define _(String) dgettext (GETTEXT_PACKAGE, String) # ifdef gettext_noop # define N_(String) gettext_noop (String) # else # define N_(String) (String) # endif #else # define _(String) (String) # define N_(String) (String) #endif block (which in some occasions defines even more macros) and replaces it with a single line #include "libgphoto2/i18n.h" for camlibs and libgphoto2 itself and with #include "libgphoto2_port/i18n.h" for iolibs and libgphoto2_port itself. This gives us two central locations to change the defintions.
* Rename bayer.[ch] to stv0680-bayer.[ch]Hans Ulrich Niedermann2021-10-114-3/+3
| | | | | | | | To make it obvious that this is specific to the stv0680 camlib, rename its bayer.[ch] source files to stv0680-bayer.[ch]. This is not strictly necessary, but should help when someone new to it reads the stv0680 source.
* Avoid accidental include file name collisionsHans Ulrich Niedermann2021-10-113-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`.
* utf-8: Convert ISO-8859 text to UTF-8Hans Ulrich Niedermann2021-10-094-7/+7
| | | | | | | Convert the easy ISO-8859 text to UTF-8. The difficult ISO-8859 text will will be eliminated by future commits.
* Use a single definition of BayerTile enumHans Ulrich Niedermann2021-10-072-13/+3
| | | | | | | Use a single definition of BayerTile enum inside a new include file bayer-types.h instead of (conditionally!) duplicating the definition from libgphoto2/bayer.h to camlibs/stv680-demosaic-sharpen.h.
* fix build after bayer.h changeMarcus Meissner2021-10-061-1/+1
|
* Use consistently named non-reserved CPP macros for header filesHans Ulrich Niedermann2021-10-056-18/+24
| | | | | | | | | | | | | | | | | | | | | | | 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.
* enhance on previous fix, change some internal fnctions to be unsigned and ↵Marcus Meissner2020-08-273-9/+6
| | | | params to be unsigned
* Fix stv0680 camlib compilation warnings.Siim Meerits2020-08-271-1/+1
| | | | Resolves a signed-unsigned comparison issue by casting 'for' loop comparison argument to unsigned. This does not change behavior, but clears compiler warning.
* Fixed a switch fall through bug.Siim Meerits2020-08-031-0/+1
|
* Remove trailing whitespace from all *.h and *.c files.Siim Meerits2020-07-278-47/+47
|
* Fix typos throughout the codebaseSijawusz Pur Rahnama2020-05-251-1/+1
|
* Help editors treat as Makefiles all our Makefile-files filesHans Ulrich Niedermann2016-10-281-0/+2
|
* fixed memory leaks and checked some mallocs (Coverity)Marcus Meissner2014-06-301-1/+9
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15045 67ed7778-7388-44ab-90cf-0a291f65f57c
* fixed memory leaks in error exits (Coverity)Marcus Meissner2014-06-301-2/+10
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15044 67ed7778-7388-44ab-90cf-0a291f65f57c
* removed copyright umlauts and replaced other umlautsMarcus Meissner2014-06-279-9/+9
| | | | | | | by international spelling git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15027 67ed7778-7388-44ab-90cf-0a291f65f57c
* From: "Daniel P. Berrange" <dan@berrange.com>Marcus Meissner2014-04-111-1/+1
| | | | | | | | | Fixes to misc functions to address char * vs unsigned char * sign mis-matches, by adding casts to silence the compiler. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14902 67ed7778-7388-44ab-90cf-0a291f65f57c
* From: "Daniel P. Berrange" <dan@berrange.com>Marcus Meissner2014-04-111-3/+3
| | | | | | | | | | Many calls of gp_file_* functions are passing a 'unsigned char *' rather than the 'char *' they expect. Add explicit casts to silence the compiler. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14900 67ed7778-7388-44ab-90cf-0a291f65f57c
* iFrom: "Daniel P. Berrange" <dan@berrange.com>Marcus Meissner2014-04-111-9/+9
| | | | | | | | | | Many calls of gp_port_* functions are passing a 'unsigned char *' rather than the 'char *' they expect. Add explicit casts to silence the compiler. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14899 67ed7778-7388-44ab-90cf-0a291f65f57c
* updated fsf addressMarcus Meissner2014-01-019-18/+27
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14608 67ed7778-7388-44ab-90cf-0a291f65f57c
* free raw in error exitMarcus Meissner2013-05-011-1/+3
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14385 67ed7778-7388-44ab-90cf-0a291f65f57c
* Minor portability improvementsDan Fandrich2010-09-151-0/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@13312 67ed7778-7388-44ab-90cf-0a291f65f57c
* Batch commit from weekend work:Marcus Meissner2009-02-161-3/+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
* replaced with correct binary, removed svn:eol-style propMarcus Meissner2008-11-181-0/+0
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11541 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-7/+0
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11350 67ed7778-7388-44ab-90cf-0a291f65f57c
* added storage information functionMarcus Meissner2008-09-214-1/+63
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@11336 67ed7778-7388-44ab-90cf-0a291f65f57c
* proofreadMarcus Meissner2007-08-111-2/+2
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10575 67ed7778-7388-44ab-90cf-0a291f65f57c
* added some missing frees (CID 59)Marcus Meissner2007-05-081-2/+9
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10132 67ed7778-7388-44ab-90cf-0a291f65f57c
* 2.3.1.0.trunk, non-recursive camlibs buildHans Ulrich Niedermann2006-12-262-13/+17
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9736 67ed7778-7388-44ab-90cf-0a291f65f57c
* added constMarcus Meissner2006-11-201-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9442 67ed7778-7388-44ab-90cf-0a291f65f57c
* data made const staticMarcus Meissner2006-11-191-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9435 67ed7778-7388-44ab-90cf-0a291f65f57c
* made some functions staticMarcus Meissner2006-11-193-8/+6
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9434 67ed7778-7388-44ab-90cf-0a291f65f57c
* Remove all OS/2 specific build files.Hans Ulrich Niedermann2006-10-063-28/+1
| | | | | | | | | | | | | | | | | * These files have not been updated for years. * They probably don't work any more. * OS/2 files are missing for most of the system. * gphoto2-port-portability-os2.h has been integrated into gphoto2-port-portability.h (I wanted to get rid of the longest filename) * usb-os2.c is still there in libgphoto2_port/usb. * If someone wants to revive the OS/2 port, they are welcome to start based on the stuff removed or from scratch. * Perhaps it might be easier to just use the present GNU make/libtool build chain than fabricating something with nmake. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9280 67ed7778-7388-44ab-90cf-0a291f65f57c
* Consistently use #include <gphoto2/gphoto2-foo.h> everywhere.Hans Ulrich Niedermann2006-09-283-6/+6
| | | | | | | | | | 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
* https://launchpad.net/products/libgphoto/+bug/61163Hubert Figuiere2006-09-201-1/+1
| | | | | | | Fix typos. Original patch do not apply cleanly git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9198 67ed7778-7388-44ab-90cf-0a291f65f57c
* Use gp_fs_set_funcs() and static function table.Marcus Meissner2006-03-191-7/+8
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@8627 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
* namespace cleanup still going on:Hans Ulrich Niedermann2005-06-111-1/+0
| | | | | | | | | | | | | | | | | - Add comments to Makefile.am about the different symbol names and their purposes, so that the rationale behind the *.sym contents may be found easily. - Remove libgphoto2/pattrec.[ch] - the only user was camlibs/konica/qm150.c and it hasn't been using it probably for years. - Rename all formerly exported symbols not starting with gp_* to gpi_* or gpe_* and try to export only those which are absolutely required by the camlibs. This still leaves a number of internal symbols exported, but at least their number is a lot lower than it was before. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@8073 67ed7778-7388-44ab-90cf-0a291f65f57c
* build camlibs as libtool modules with simple names and symbol listHans Ulrich Niedermann2005-06-111-7/+8
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@8065 67ed7778-7388-44ab-90cf-0a291f65f57c
* remove redundant INCLUDE = definitions from Makefile.amHans Ulrich Niedermann2005-04-141-6/+0
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7830 67ed7778-7388-44ab-90cf-0a291f65f57c
* * stv0680.c: compile error fixedMarcus Meissner2005-02-041-1/+1
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7572 67ed7778-7388-44ab-90cf-0a291f65f57c
* added creative go miniMarcus Meissner2005-02-012-0/+6
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7564 67ed7778-7388-44ab-90cf-0a291f65f57c
* * stv0680.c: Added DigitalDream l'espion XSHubert Figuiere2004-09-042-0/+6
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7316 67ed7778-7388-44ab-90cf-0a291f65f57c
* * added 2 new modelsMarcus Meissner2004-01-212-0/+8
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@7084 67ed7778-7388-44ab-90cf-0a291f65f57c
* Drop EOL blanks, // comments, and corrects some warningsArnaud Launay2003-09-163-97/+97
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@6761 67ed7778-7388-44ab-90cf-0a291f65f57c
* * stv0680.c: removed comments for cameras now supported by pdc640Marcus Meissner2003-04-181-7/+0
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@6339 67ed7778-7388-44ab-90cf-0a291f65f57c
* * stv0680.c: USB mode is production quality level, serial stillMarcus Meissner2003-02-282-1/+6
| | | | | | | unclear. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@6276 67ed7778-7388-44ab-90cf-0a291f65f57c
* * stv0680.c: removed comments within commentsMarcus Meissner2003-02-071-12/+5
| | | | git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@6185 67ed7778-7388-44ab-90cf-0a291f65f57c