Camera State - Canon Camera Hackers Manual

Camera hackers manual berthold daum
Table of Contents

Advertisement

124
C H A P T E R 5
Scripting
c = get_jpg_count
c = get_jpg_count()
Estimates the number of JPG images that still can be stored on the memory card.
c = get_raw_count
c = get_raw_count()
Estimates the number of RAW images that still can be stored on the memory card.
set_raw_develop("filename")
Develops the specified RAW file into JPEG on the next shot (section 4.5.5). If the pa-
rameter is omitted or nil, the pending development task is canceled. Development
will be performed under the camera settings at the time of development.
set_curve_state(n)
Sets the development curve state for post-processing (section 4.3.8): 0 = None,
1 = Custom, 2 = +1EV, 3 = +2EV, 4 = AutoDR.
raw_merge_start(operation)
Starts a merging process for RAW files (section 4.5.6). Operation: 0 = sum, 1 = average.
The following raw_merge_add() commands will contribute to the result.
raw_merge_add("filename")
Adds a single picture to a merged RAW image. Typically, this technique is used to re-
duce noise by averaging multiple shots (section 4.5.6).
raw_merge_end()
Completes the merge operation.

5.5.10 Camera state

x = get_platform_id
x = get_platform_id()
Returns a numeric value identifying the camera model.
b = get_buildinfo()
Returns a table with information about the CHDK build. Table fields can be addressed
with the following keys: platform, platsub, version, build_number, build_date,
build_time.
x = autostarted
x = autostarted()
Assigns a value of 1 resp. true to variable x if the script was started using the Auto-
start function (section 5.1).
uBasic
Lua
uBasic
Lua
(Lua only)
(Lua only)
(Lua only)
(Lua only)
(LUA only)
uBasic
Lua
(Lua only)
uBasic
Lua

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Powershot sx10 is

Table of Contents