Canon Camera Hackers Manual page 164

Camera hackers manual berthold daum
Table of Contents

Advertisement

met = parseTime(
string.sub(line, a, e - 1))
a = e + 1
e = string.find(line, " ", a)
if e then
local t =
string.sub(line, a, e - 1)
disp = parseDisp(t)
if not disp then
n = tonumber(t)
end
if disp or (not n) then
return focus,met,1,0,0,disp
end
a = e + 1
e = string.find(line, " ", a)
local i1i2 =
string.sub(line, a, e - 1)
local p = string.find(i1i2,"%-")
if p then
i1 = parseTime(
string.sub(i1i2, 1, p - 1))
i2 = parseTime(string.
sub(i1i2, p + 1, #i1i2))
else
i1 = parseTime(i1i2)
i2 = i1
end
a = e + 1
e = string.find(line, " ", a)
end
if e then
disp = parseDisp(
string.sub(line, a, e - 1))
end
return focus, met, n, i1, i2, disp
end
5.7 Example scripts
155

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Powershot sx10 is

Table of Contents