Esato

Forum > Sony Ericsson / Sony > Software, Firmware and Drivers > Modded Camera Driver for k800i/k810i

Visitors browsing this topic: 2
Add to Bookmarks
Previous  123 ... 949596 ... 229230231  Next
Author Modded Camera Driver for k800i/k810i
genus
K800 Black
Joined: Apr 13, 2007
Posts: 385
From: Malaysia
PM
Posted: 2007-11-03 12:02
Reply with quoteEdit/Delete This PostPrint this post
Another thing is, the maximum k800i jpeg compression is 95%...i think

So, i think put back the 90% compression will be better.
genus
K800 Black
Joined: Apr 13, 2007
Posts: 385
From: Malaysia
PM
Posted: 2007-11-03 12:16
Reply with quoteEdit/Delete This PostPrint this post

On 2007-11-03 10:56:31, Raiderski wrote:
ONLY FOR MODDERS!

to implement EM first of all you have to find shutter speed register. my type is:
#SET_REG(36,xx) // AE_MSHUT_SHORT
#SET_REG(37,xx) // AE_MSHUT_LONG

especially reg 37 (dunno why 2 regs are needed). i'm pretty sure that this is shutter speed because xx = 0E is described as 1/250s and xx = 1D as 1/8s (look at table below)

understand below values as 1/x sec:

00 = auto, 01 = 6400, 02 = 5000, 03 = 3200, 04 = 2500, 05 = 2000, 06 = 1600, 07 = 1250, 08 = 1000
09 = 800, 0A = 640, 0B = 500, 0C = 400, 0D = 320, 0E = 250, 0F = 200, 10 = 160, 11 = 125, 12 = 100
13 = 80, 14 = 60, 15 = 50, 16 = 40, 17 = 30, 18 = 25, 19 = 20, 1A = 15, 1B = 13, 1C = 10
1D = 8
1E = 6
1F = 5
20 = 4
21 = 3
22 = 2.5
23 = 2
24 = 1.66(6)
25 = 1.33(3)
26 = 1
27 = 0.75
28 = 0.5


to test reg 37 you can create simple temporary supermode layer:
1. create (before seq_set_prop_6)
SM_TEST= $-4 0a #SET_REG(37,$w4);

2. modify
seq_set_prop_6 = $s4 %0 #SM_TEST;

don't test with flash, use normal scene

everytime when zoom keys will be used you will change reg 37 value (zoom is turned off). correspodning values should be:
1.0x = auto shutter
1.1x = 1/6400s
1.2x = 1/5000s
1.3x = 1/3200s
...

don't go over 1/0.5s




It seem nothing happen...i put before seq_set_prop_6
SM_TEST= $-4 0a #SET_REG(37,$w4);

Then modify
seq_set_prop_6 = $s4 %0 #SM_TEST;

on phone, no flash, zoom in n out, then take photo, nothing change..


How about we try 39 or 38 reg?


[ This Message was edited by: genus on 2007-11-03 11:20 ]
Raiderski
C901 Black
Joined: Jul 03, 2006
Posts: > 500
From: Poland, Hell, Mountains
PM, WWW
Posted: 2007-11-03 12:18
Reply with quoteEdit/Delete This PostPrint this post

Another thing is, the maximum k800i jpeg compression is 95%...i think
So, i think put back the 90% compression will be better.


if you have any doubts use exif reader to know everything about your jpegs
http://www.impulseadventure.com/photo/jpeg-snoop.html

92-93% quality is the best decision
number1
P1
Joined: Sep 12, 2007
Posts: > 500
From: UK,kent,Sittingbourne
PM
Posted: 2007-11-03 12:52
Reply with quoteEdit/Delete This PostPrint this post
so u think the shutter speed it #SET_REG(37,00); i'll do a simple test by fixing the shutter speed on portrait mode, and checking the exif
Raiderski
C901 Black
Joined: Jul 03, 2006
Posts: > 500
From: Poland, Hell, Mountains
PM, WWW
Posted: 2007-11-03 12:54
Reply with quoteEdit/Delete This PostPrint this post
reg 37 probably can have issue: can be used only with flash
number1
P1
Joined: Sep 12, 2007
Posts: > 500
From: UK,kent,Sittingbourne
PM
Posted: 2007-11-03 13:51
Reply with quoteEdit/Delete This PostPrint this post

On 2007-11-03 12:54:41, Raiderski wrote:
reg 37 probably can have issue: can be used only with flash



yep it's only flash shutter speed, making a supermode k800i camdriver isn't gonna be easy the camdriver is pretty limited
Raiderski
C901 Black
Joined: Jul 03, 2006
Posts: > 500
From: Poland, Hell, Mountains
PM, WWW
Posted: 2007-11-03 13:58
Reply with quoteEdit/Delete This PostPrint this post
which values you used with #COM_EVENT(04,xx)? 01 too?
number1
P1
Joined: Sep 12, 2007
Posts: > 500
From: UK,kent,Sittingbourne
PM
Posted: 2007-11-03 14:08
Reply with quoteEdit/Delete This PostPrint this post

On 2007-11-03 13:58:26, Raiderski wrote:
which values you used with #COM_EVENT(04,xx)? 01 too?



i've tryed #COM_EVENT(04,0E) = 1/250, i was getting 1/8 depending on lighting so #COM_EVENT(04, doesn't work it should give a fixed 1/250
genus
K800 Black
Joined: Apr 13, 2007
Posts: 385
From: Malaysia
PM
Posted: 2007-11-03 14:11
Reply with quoteEdit/Delete This PostPrint this post
I use this:

// start Ehanced Mode from Raiderski

EM_RATIO_NORMAL= $s0 40;
EM_RATIO_NIGHT= $s0 3d;

EM_SET=$p1 05
#EM_IN_QUALITY
$c1 00
#READ_REG(23,$r2 1 1)
$m0 1 $/0 28
$c0 00
$m0 1 $/0 03
$c0 00
$cl
$p0 07
$c0 01 #EM_RATIO_NIGHT
$cl #EM_RATIO_NORMAL
$cx
$-0 r1
#COMMAND(04,$w0)
$cx
$cx
$cx;

EM_UNSET=#COM_EVENT(04,00);

// end Ehanced Mode from Raiderski

but didnt work of tk any effect
SEKseries
K810 Blue
Joined: Sep 06, 2007
Posts: 46
From: Malaysia
PM
Posted: 2007-11-03 14:13
Reply with quoteEdit/Delete This PostPrint this post

On 2007-11-03 12:16:25, genus wrote:

On 2007-11-03 10:56:31, Raiderski wrote:
ONLY FOR MODDERS!

to implement EM first of all you have to find shutter speed register. my type is:
#SET_REG(36,xx) // AE_MSHUT_SHORT
#SET_REG(37,xx) // AE_MSHUT_LONG

especially reg 37 (dunno why 2 regs are needed). i'm pretty sure that this is shutter speed because xx = 0E is described as 1/250s and xx = 1D as 1/8s (look at table below)

understand below values as 1/x sec:

00 = auto, 01 = 6400, 02 = 5000, 03 = 3200, 04 = 2500, 05 = 2000, 06 = 1600, 07 = 1250, 08 = 1000
09 = 800, 0A = 640, 0B = 500, 0C = 400, 0D = 320, 0E = 250, 0F = 200, 10 = 160, 11 = 125, 12 = 100
13 = 80, 14 = 60, 15 = 50, 16 = 40, 17 = 30, 18 = 25, 19 = 20, 1A = 15, 1B = 13, 1C = 10
1D = 8
1E = 6
1F = 5
20 = 4
21 = 3
22 = 2.5
23 = 2
24 = 1.66(6)
25 = 1.33(3)
26 = 1
27 = 0.75
28 = 0.5


to test reg 37 you can create simple temporary supermode layer:
1. create (before seq_set_prop_6)
SM_TEST= $-4 0a #SET_REG(37,$w4);

2. modify
seq_set_prop_6 = $s4 %0 #SM_TEST;

don't test with flash, use normal scene

everytime when zoom keys will be used you will change reg 37 value (zoom is turned off). correspodning values should be:
1.0x = auto shutter
1.1x = 1/6400s
1.2x = 1/5000s
1.3x = 1/3200s
...

don't go over 1/0.5s




It seem nothing happen...i put before seq_set_prop_6
SM_TEST= $-4 0a #SET_REG(37,$w4);

Then modify
seq_set_prop_6 = $s4 %0 #SM_TEST;

on phone, no flash, zoom in n out, then take photo, nothing change..


How about we try 39 or 38 reg?


[ This Message was edited by: genus on 2007-11-03 11:20 ]


@Raiderski
Since the K810i/K800i have 16X zoom,the Hex value input ranged from 04 --->40 ,your code only minus reg 4 by 0A,that y nothing happened.
Can you provide us another set of code to test this parameter ???
Thanks in advanced.

[ This Message was edited by: SEKseries on 2007-11-03 13:17 ]
number1
P1
Joined: Sep 12, 2007
Posts: > 500
From: UK,kent,Sittingbourne
PM
Posted: 2007-11-03 14:20
Reply with quoteEdit/Delete This PostPrint this post

On 2007-11-03 14:11:31, genus wrote:
I use this:

// start Ehanced Mode from Raiderski

EM_RATIO_NORMAL= $s0 40;
EM_RATIO_NIGHT= $s0 3d;

EM_SET=$p1 05
#EM_IN_QUALITY
$c1 00
#READ_REG(23,$r2 1 1)
$m0 1 $/0 28
$c0 00
$m0 1 $/0 03
$c0 00
$cl
$p0 07
$c0 01 #EM_RATIO_NIGHT
$cl #EM_RATIO_NORMAL
$cx
$-0 r1
#COMMAND(04,$w0)
$cx
$cx
$cx;

EM_UNSET=#COM_EVENT(04,00);

// end Ehanced Mode from Raiderski

but didnt work of tk any effect


only reason it doesn't work is because
#COMMAND(04,$w0) isn't the k800i shutter speed
SEKseries
K810 Blue
Joined: Sep 06, 2007
Posts: 46
From: Malaysia
PM
Posted: 2007-11-03 14:24
Reply with quoteEdit/Delete This PostPrint this post

On 2007-11-03 14:20:40, number1 wrote:

On 2007-11-03 14:11:31, genus wrote:
I use this:

// start Ehanced Mode from Raiderski

EM_RATIO_NORMAL= $s0 40;
EM_RATIO_NIGHT= $s0 3d;

EM_SET=$p1 05
#EM_IN_QUALITY
$c1 00
#READ_REG(23,$r2 1 1)
$m0 1 $/0 28
$c0 00
$m0 1 $/0 03
$c0 00
$cl
$p0 07
$c0 01 #EM_RATIO_NIGHT
$cl #EM_RATIO_NORMAL
$cx
$-0 r1
#COMMAND(04,$w0)
$cx
$cx
$cx;

EM_UNSET=#COM_EVENT(04,00);

// end Ehanced Mode from Raiderski

but didnt work of tk any effect


only reason it doesn't work is because
#COMMAND(04,$w0) isn't the k800i shutter speed


Or maybe the codes problem n not the wrong parameter......

@All modders
Can anyone explain the code for EM Mode, how it run and wat it does......

_________________


[ This Message was edited by: SEKseries on 2007-11-03 13:25 ]
SEKseries
K810 Blue
Joined: Sep 06, 2007
Posts: 46
From: Malaysia
PM
Posted: 2007-11-03 14:28
Reply with quoteEdit/Delete This PostPrint this post

On 2007-11-03 10:52:14, genus wrote:

On 2007-11-03 04:38:19, SEKseries wrote:

i could do more if i knew the command event for the k800i's shutter speed, but i don't and it's not #COM_EVENT(04,


i'm new here,but i had discover the camdriver0.dat for long time,i wonder the #SET_REG(37 do anything to exposure time or shutter speed......

hope this can help u......



This is for the flash on exposure time, not for normal scene or any things.


@genus
Are u sure???Show some proof......
genus
K800 Black
Joined: Apr 13, 2007
Posts: 385
From: Malaysia
PM
Posted: 2007-11-03 14:41
Reply with quoteEdit/Delete This PostPrint this post
i alrdy post the picture, for the changing setting of iso together with this value, this give change in exposure time when flash on. It is simple only, as you can see, it alrdy mention it is for flash:

// Xenon Flash initialization <=== this line!!!!

and also it is use for R5 & R6
as in ******Check if flash needed, property 23*******

this R5 & R6 can be transfer from nuightportrait mode to other mode for use, as now i use it in document mode. The reason why nightportrait is warm in color when flash on is due to the sensor scene setting #COM_EVENT(51,03), which it will not warm in color if you change it to 00 that is same sensor with auto mode.

[ This Message was edited by: genus on 2007-11-03 13:45 ]

[ This Message was edited by: genus on 2007-11-03 13:47 ]
Raiderski
C901 Black
Joined: Jul 03, 2006
Posts: > 500
From: Poland, Hell, Mountains
PM, WWW
Posted: 2007-11-03 14:51
Reply with quoteEdit/Delete This PostPrint this post

Since the K810i/K800i have 16X zoom,the Hex value input ranged from 04 --->40 ,your code only minus reg 4 by 0A,that y nothing happened.


input is still in old style 0a = 1.0x, 0b = 1.1x, 0c = 1.2x, ...
values 40 - 4 are output values (calculated zoom) for reg 61

we need only input values, besides we have to know that this trick is working on K800 (we want to see this). my propositions is to replace earlier SM_TEST code into this:

SM_TEST=$-4 0a #COM_EVENT(55,$w4);

in this case you should be able to control contrast in realtime. is this working?


genus
this must be a bit changed for K800:

EM_SET=#READ_REG(28,$r2 1 1)
$m0 1 $/0 28
$c0 00
$m0 1 $/0 03
$c0 00
$cl
$s0 3d
$cx
$-0 r1
#COM_EVENT(04,$w0)
$cx;

EM_UNSET=#COM_EVENT(04,00);

1.
seq_ss_take=#EM_SET
#CAPTURE_EVENT;

2.
seq_ss_stop=#EM_UNSET;

the best place to test this is a half dark room
yeah... we are blind in shutter matter so why not to try every possible chance
Access the forum with a mobile phone via esato.mobi
Previous  123 ... 949596 ... 229230231  Next
Goto page:
Lock this Topic Move this Topic Delete this Topic