Files
libgphoto2/examples
axxel f41df32817 fix white-space and indentation inconsistencies (second round)
This is basically a continuation of the work from #1002 but her for the
camlibs directory. The purpose was to replace spaces as a means for
indentation with tab characters.

Note: there are some files which are still offending the general
rule but are (mostly) consistent within themselves. I let them be for
the moment. Fixing them would basically replace the whole file.

Also: there are still a ton of whitespace related inconsistencies like
"x=10" vs "x = 10" or "func(10)" vs "func (10)".

This is a whitespace only change (if you include newlines as whitespace).
2024-09-15 10:53:41 +02:00
..
2024-09-05 14:55:44 +02:00
2014-12-06 11:42:00 +00:00

Sample snippets for programmatic camera usage.

This directory contains sample snippets for your C/C++ program accessing
cameras for various purposes.

Files with helper routines:
	autodetect.c: Auto detecting multiple cameras and initializing
	              specific cameras.

	config.c: Querying and setting configuration values.

	context.c: Handling of GPContext for error reporting and so on.

	samples.h: Header file for above helper files.

Files with samples:
	sample-autodetect.c: Simple camera autodetection and simple API
			     calls.

	sample-multi-detect.c: Same as above, but autodetect and use all
	                       cameras.

	sample-owner.c:	Gets or Sets the Camera Owner. Demonstrates string
			variable configuration handling.

	sample-capture.c: Minimalistic remote capture sample.

	sample-trigger-capture.c: New capture trigger and then loop example.

	lunkwill-canon-capture.c: A simple capture program that captures
	                          a single image, retrieves it to disk,
				  and removes it from the camera.
				  (Despite the Canon comments this likely
				   works on all capture cameras.)

	preview.c: A sample preview loop, it will get 100 previews in
			1 row as fast as possible. 


If you find a common thing to do missing, please report them (or do them
yourselves and send patches).

Please do not keep good sample code for yourself.

Marcus Meissner <marcus@jet.franken.de>