Sterownik kamery - CamDriver
#1 OFFLINE
Posted 15 January 2012 - 12:02
Jaki jest program do tworzenie Camdriver'ów?
#2 OFFLINE
Posted 15 January 2012 - 12:14
co do głównego pytania, nie mam odpowiedzi. każdy ma swój ulubiony sterownik. Tobie się może podobać jakiś tam, a innym nie.
#3 OFFLINE
Posted 16 January 2012 - 20:04
#4 OFFLINE
Posted 16 January 2012 - 21:04
#5 OFFLINE
Posted 16 January 2012 - 21:26
// ------------------------------------------------
// Property 6 : Zoom [A, 28, A]
// ------------------------------------------------
// 10 : *1.0 zoom
// 11 : *1.1 zoom
// ...
// 80 : *8.0 zoom
// EZOOM_MAG :
// *1.0 zoom - 0x0100 = 1 * 256
// ...
// *4.0 zoom - 0x0400 = 4 * 256
// (REG: EZOOM_MAG)
seq_set_prop_6 =
$s2 %0 // R2 = R0
$"CAM0: P6 Zoom %2"
$<2 8 // R2 = R2 * 256
$/2 0A // R2 = R2 / 10
// Fetch MSB
$m1 2 // R1 = R2
$/1 FF // R1 = R1 / 0xff
// Fetch LSB
$cg2 FF $-2 FF $cl $cx // If (R2 > 0xff) {R2 = R2-0xff}
$cg2 FF $-2 FF $cl $cx
$cg2 FF $-2 FF $cl $cx
$cg2 FF $-2 FF $cl $cx
$"CAM0_DEBUG: P6 end - Set %1 %2"
#SET_REG_16(00, 32, $w1, $w2)
;
seq_get_prop_6 =
#READ_REG_16(00, 32, $r2 4 5)
$m0 4 // R0 = R4 (LSB)
$m1 5 // R1 = R5 (MSB)
$<1 8 // R1 = R1<<8
$+0 r1 // R0 = R0 + R1
$*0 0A // R0 = R0 * 10
$>0 8 // R0 = R0 / 256
$s1 00 $s2 00 $s3 00
$"CAM0: P6 - Get zoom %0"
Camdriver1:
// --- Zoom property 6 ---------------------------
//
// 10 (0xa) => 1.0 x zoom
// 20 (0x14) => 2.0 x zoom
//------------------------------------------------
seq_set_prop_6_a=
12 40 $f
11 03 $f
37 04 $f
82 03 $f
64 21 $f
5e 10 $f
16 07 $f
17 69 $f
18 a4 $f
19 06 $f
1a 7b $f
c8 02 $f
c9 80 $f
ca 00 $f
cb f0 $f
cc 00 $f
cd b0 $f
ce 00 $f
cf 90 $f
;
seq_set_prop_6_14=
12 00 $f
11 01 $f
37 0c $f
82 03 $f
64 11 $f
5e 00 $f
09 00 $f
16 03 $f
17 f5 $f
18 A4 $f
19 6c $f
1a F6 $f
c8 01 $f
c9 60 $f
ca 01 $f
cb 20 $f
cc 00 $f
cd B0 $f
ce 00 $f
cf 90 $f
;
Edited by Kornelw1995, 16 January 2012 - 21:37.
#6 OFFLINE
Posted 16 January 2012 - 22:34
Nawinięto z Xperii Neo V