Commit Graph

9186 Commits

Author SHA1 Message Date
Marcus Meissner
fc169a8090 added M531 id
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15148 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-08-18 10:47:27 +00:00
Marcus Meissner
80f20b79f6 2.5.5.1 development
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15142 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-08-17 17:36:04 +00:00
Marcus Meissner
199e98c0a5 2.5.5 release
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15141 67ed7778-7388-44ab-90cf-0a291f65f57c
libgphoto2-2_5_5-release
2014-08-17 17:33:06 +00:00
Marcus Meissner
4659b3eb0d updated for some translations
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15138 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-08-17 15:54:16 +00:00
Marcus Meissner
5f6e75501c raw numbers dont need translation. typo in Water
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15137 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-08-17 15:47:32 +00:00
Marcus Meissner
12083f28e1 liveviewmoviemode?
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15136 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-08-17 15:11:54 +00:00
Marcus Meissner
f35e180e96 removed dup of Jolla Sailfish
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15133 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-08-16 14:47:31 +00:00
Marcus Meissner
ec81dd9f57 merged from todays libmtp
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15132 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-08-16 14:28:03 +00:00
Marcus Meissner
9cc0776093 added datetime test
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15131 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-08-16 13:45:52 +00:00
Marcus Meissner
7bbda70c0e restore behaviour of gp_port_info_list_append, as other components
assume it and the return value is the index.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15130 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-08-16 13:27:29 +00:00
Marcus Meissner
56c12ac178 gp_port_set_settings might result in "unsupported", which is not an
error.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15129 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-08-16 13:26:34 +00:00
Marcus Meissner
d7b8d924f8 some fixes, added datetime
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15127 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-08-16 11:40:34 +00:00
Marcus Meissner
6446e8c612 if a DeviceProperytChanged event arrives, invalidate this properties
cache


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15126 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-08-16 11:15:17 +00:00
Marcus Meissner
9a5d754339 fnumber -> f-number, test datetime
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15125 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-08-16 11:12:38 +00:00
Marcus Meissner
2bd5c199db fixed memory leak in error case (Coverity)
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15124 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-08-16 08:52:07 +00:00
Marcus Meissner
9eabcf8039 avoid leaking props (Coverity)
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15123 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-08-16 08:50:11 +00:00
Marcus Meissner
12008e8d0e added sony dsc-hx5v
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15122 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-08-16 07:34:21 +00:00
Marcus Meissner
c52872311b added Sony DSC-HX5V ID
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15121 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-08-16 07:29:50 +00:00
Marcus Meissner
d9be48489c added powershot a2500 data
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15120 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-08-11 06:58:59 +00:00
Marcus Meissner
7fd5d2a281 added canon powershot a2500
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15119 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-08-11 06:54:50 +00:00
Marcus Meissner
b33df116ca added powershot s120
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15118 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-08-01 06:29:19 +00:00
Marcus Meissner
c680e89df8 also return type 9 from canon preview, which is some
form of MPEG/AV stream


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15117 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-07-27 21:16:34 +00:00
Marcus Meissner
39a50823bc filter out x-systemd.automount
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15116 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-07-27 20:26:36 +00:00
Marcus Meissner
b7b57e79e2 wait for some more events
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15115 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-07-27 18:38:23 +00:00
Marcus Meissner
ca35809e34 drain all ptp events from the queue before capture starts,
this avoids accumulation and increasing delays between capture


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15114 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-07-26 15:34:45 +00:00
Marcus Meissner
d75f10e2a9 unbreak EOS1000D
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15113 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-07-26 15:24:46 +00:00
Marcus Meissner
d1ace6215d From: Axel Waggershauser <awagger@web.de>
reformat the arrays to line up in columns


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15112 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-07-26 07:43:11 +00:00
Marcus Meissner
4a695258cf From: Axel Waggershauser <awagger@web.de>
b) a patch that adds a 'clear halt and retry' behaviour to the write
path in an analogous way to the already existing read path. this patch
removes the error (that got nicely logged with the first patch ;))



git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15111 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-07-23 21:24:13 +00:00
Marcus Meissner
995eb6d917 From: Axel Waggershauser <awagger@web.de>
rewrote the ptp_opensession error retry code
changed some more error logging handling

detailed:

a) yet another logging/cleanup patch improving the code and error log
readability in this specific situation:

* extend translate_ptp_results to better handle PTP_ERROR_IO
* log the failure of ptp_opensession
* make the ptp_opensession error handling code clearer
* don't report a 'ptp_port' error inside the CHECK_INIT macro
  when gp_camera_init fails in gphoto-camera.c. There is no
  port error string mechanism involved and the original error has
  been reported already from inside camera_init
* don't report the source location when logging the error string
  inside gp_context_error(). interesting would be the original
  source location but that is not available there.
* remove one of two different strings conveying the same
  information: 'No additional information available.' and
  'No error description available'
* improve logging in existing CHECK_RESULT_OPEN_CLOSE macro




git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15110 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-07-23 21:15:48 +00:00
Marcus Meissner
9e91489b70 2.5.4.3 temp snapshot
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15109 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-07-22 21:59:49 +00:00
Marcus Meissner
68cbb6517b From: Axel Waggershauser <awagger@web.de>
do not report progress on unknown sized files (larger than 4GB)


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15108 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-07-22 21:40:07 +00:00
Marcus Meissner
126b55c7b8 From: Axel Waggershauser <awagger@web.de>
I had something 'prepared' for this situation, here you go.. ;)

The patch does not, however, actually remove the GP_LOG_VERBOSE enum,
since that would change the interface for all clients, which might not
be worth it. If you don't think that is a problem, please remove it...



git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15107 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-07-22 21:22:56 +00:00
Marcus Meissner
54d08ad20c From: Axel Waggershauser <awagger@web.de>
here are the logging cleanup patches for the remaining libgphoto_port
backend libs, that I announced earlier.

14 and 15 are equivalent to 3,4,5 as before.

16 removes 4 left instances of _(...) macro usage in log messages.



git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15106 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-07-22 21:12:25 +00:00
Marcus Meissner
03710f7ef9 added missing free of propertydesc and propval at end
of generic property setter, reported by Axel Waggershauser


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15105 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-07-22 21:09:54 +00:00
Marcus Meissner
4c8aad8d62 From: Axel Waggershauser <awagger@web.de>
I added a LOG_ON_PTP_E mechanism similar to the LOG_ON_LIBUSB_E one.
This further increases consistency in error reporting in places where
the C_PTP_... macros could not be used. I used the macro mainly where
there have been existing checks for != PTP_RC_OK. There might be a lot
other, yet unchecked places, where this macro could be useful.

I also tuned some of the error/debug messages with the same goal (like
replacing '%x' with '%04x' in the C_PTP_ macros) or adding the
ptp_strerror where appropriate.

Please note, that both the 'inline' and the 'static' keyword in front
of the log_on_ptp_error_helper() function definition are of use here,
to make the compiler not warn about unused functions or functions
without prototype.



git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15104 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-07-22 21:08:27 +00:00
Marcus Meissner
b06e5d1216 From: Axel Waggershauser <awagger@web.de>
1) introduce C_PARAMS and C_PARAMS_MSG along the lines of C_MEM

2) replace CHECK_NULL with C_PARAMS

3) replace the pattern

    if ( something ) return GP_ERROR_BAD_PARAMETERS;

with

    C_PARAMS ( !something );

I went over the whole patch again to check that each 'something'
condition is really inverted, so I dare to suggest you don't have to
do that again ;).

4) replaced CHECK_LIST and CHECK_INDEX_RANGE with simple one-line
C_PARAMS(...) expressions

5) a couple of hunks look like this

-      if (!inet_aton (buffer, &inp)) {
-          fprintf(stderr,"failed to scan for addr in %s\n", buffer);
-          return GP_ERROR_BAD_PARAMETERS;
-      }
+     C_PARAMS_MSG (inet_aton (buffer, &inp),

so some 'lost' error messages get now properly piped into the gp_log
mechanism.



git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15103 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-07-22 21:00:32 +00:00
Hans de Goede
6c5db352a6 Add st2205 lookup tables to st2205 camlib
A gphoto user has contacted me about getting what appears to be a new
version of a st2205 picture frame working with gphoto. The st2205 frames
use a rather funky image compression which involves 2 lookup tables:

1) lookup table with 8 byte patterns, a check is done if color
gradients in these blocks are close to a set of fixed patterns, if
they are they the block gets encoded in as a base color + gradient
pattern number

2) These devices do a number of transition effects, these effects
are part of the encoding, the transitions are mainly done to
hide the slowness of the device and the 8x8 blocks are stored
in transition order, so the first block to be shown is the first
one in the data stream, second block to be shown second, etc. This
means we need to know the location where each block will end up
on the screen to compress / decompress. There are a number of
fixed tables for this (1 set of tables per supported resution,
with 1 table per effect number).

So far we've been reading these tables from the firmware image
which can be accessed through the same interface as the picture
memory on these devices. But this new device does not have these
tables in its memory in any recognizable form.

This commits adds the necessary tables directly to the st2205 camlib,
to enable support for this new type of st2205 picture frames.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15102 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-07-22 11:20:36 +00:00
Marcus Meissner
128f727d76 removed now superflous check
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15101 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-07-22 06:31:35 +00:00
Marcus Meissner
63c99943a0 handle "no camera" case
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15100 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-07-22 06:30:49 +00:00
Marcus Meissner
2853095fb4 debug newobject
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15099 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-07-21 21:08:25 +00:00
Marcus Meissner
b0d404cae5 From: Axel Waggershauser <awagger@web.de>
3) use the fact that realloc() is defined to simply malloc if the
first param is NULL, no need to manually distinguish between first and
later allocations.



git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15098 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-07-21 20:44:18 +00:00
Marcus Meissner
b04b755500 From: Axel Waggershauser <awagger@web.de>
2) don't check the pointer for NULL before calling free(), because
free() checks it again.



git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15097 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-07-21 20:41:28 +00:00
Marcus Meissner
0f3f6485c8 From: Axel Waggershauser <awagger@web.de>
here is a patch for (mostly) consistent usage of a generalized C_MEM
macro for checking the return values of memory allocating functions,
i.e. malloc, calloc, realloc and strdup. It is the C_MEM from
libusb1.c, moved to gphoto2-port-log.h.



git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15096 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-07-21 20:39:48 +00:00
Marcus Meissner
9cf5eebe23 From: Axel Waggershauser <awagger@web.de>
adjust log_on_libusb_error_helper macro call
to log the location better


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15095 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-07-21 20:08:57 +00:00
Marcus Meissner
cfa06c0fe8 sync error codes with upstream libusb
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15094 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-07-21 10:45:55 +00:00
Marcus Meissner
3bd671729f AC_CHECK_LIB does not need to "lib" prefix
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15093 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-07-21 09:24:12 +00:00
Marcus Meissner
ed04b2a783 if we do not have libusb_strerror, implement it ourselves
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15092 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-07-20 21:12:21 +00:00
Marcus Meissner
543f536273 From: Axel Waggershauser <awagger@web.de>
CHECK -> C_GP, added some more checks


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15091 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-07-20 21:06:56 +00:00
Marcus Meissner
84cca908a1 From: Axel Waggershauser <awagger@web.de>
replace libusb1 error handling with macro code, handle
more errors in generic wrapper


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15090 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-07-20 21:05:58 +00:00
Marcus Meissner
384eeb0ad7 check for presence of libusb_strerror in libusb-1.0
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@15089 67ed7778-7388-44ab-90cf-0a291f65f57c
2014-07-20 21:04:45 +00:00