Will Override Shutter/ISO or Aperture ever be enabled in Movie Mode? - page 3 - Feature Requests - CHDK Forum
supplierdeeply

Will Override Shutter/ISO or Aperture ever be enabled in Movie Mode?

  • 43 Replies
  • 29596 Views
*

Offline wap4

  • **
  • 95
  • A720IS
Re: Will Override Shutter/ISO or Aperture ever be enabled in Movie Mode?
« Reply #20 on: 11 / June / 2008, 12:18:55 »
Advertisements
and movie_state variable decribed here - http://chdk.setepontos.com/index.php/topic,952.0.html

But how do I get the movie state address for A720?

Edit: Extremely sorry, I have not read the entire thread, it is mentioned later.   
« Last Edit: 11 / June / 2008, 12:22:41 by wap4 »

*

Offline wap4

  • **
  • 95
  • A720IS
Re: Will Override Shutter/ISO or Aperture ever be enabled in Movie Mode?
« Reply #21 on: 12 / June / 2008, 11:15:06 »
void no_gui_kbd_process(){
 short ev=0;
 if (movie_state==4){
  if (kbd_is_key_clicked(KEY_SET)) ExpCtrlTool_StartConti();  // resume autoexposure
  if (kbd_is_key_clicked(KEY_LEFT))  {ExpCtrlTool_StopConti(); ev=GetCurrentAvValue()-32 ; MoveIrisToAv(&ev); }
  if (kbd_is_key_clicked(KEY_RIGHT)) {ExpCtrlTool_StopConti(); ev=GetCurrentAvValue()+32 ; MoveIrisToAv(&ev); }
 }
}

But the above exposure related functions are not in the IDA-labels of A720IS, nor defined in stubs.s files (except GetCurrentAvValue). Can you tell the actual name/addresses of the other functions for A720?
« Last Edit: 12 / June / 2008, 11:29:49 by wap4 »

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Will Override Shutter/ISO or Aperture ever be enabled in Movie Mode?
« Reply #22 on: 12 / June / 2008, 11:47:32 »
But the above exposure related functions are not in the IDA-labels of A720IS

"ExpCtrlTool.StartConti", "ExpCtrlTool.StopConti"  strings are present in dump.
entry points:
ROM:FFC8DA00 ExpCtrlTool.StopConti (nuousAE)
ROM:FFC8D9C4 ExpCtrlTool.StartConti (nuousAE)
ROM:FFDA4718 MoveIrisToAv

P.S. Sometimes operations with iris:
 ExpCtrlTool_StopConti(); ev=GetCurrentAvValue()+-32 ; MoveIrisToAv(&ev);
crashes my A710. Sleep() before any operation cannot help  :(

*

Offline wap4

  • **
  • 95
  • A720IS
Re: Will Override Shutter/ISO or Aperture ever be enabled in Movie Mode?
« Reply #23 on: 13 / June / 2008, 02:55:39 »
What a great disappointment!
I included no_gui_kbd_process in dgmod.c, made changes to dgmod.h ,added correct addresses to stubs_entry2.s, called no_gui_kbd_process from core/kbd.c. But when I press key_left to lock exposure, the camera crashes every time!
I excluded the functions moveiristoav,getcurrentavvalue and tried again by calling only ExpCtrlTool_StopConti but had no luck :(
« Last Edit: 13 / June / 2008, 02:57:51 by wap4 »


*

Offline vit40

  • ****
  • 276
Re: Will Override Shutter/ISO or Aperture ever be enabled in Movie Mode?
« Reply #24 on: 13 / June / 2008, 10:27:05 »
will try to test this on a620. quick info on how did you find this in ida?

Hmm... For A620 this procedure has slightly different format. Try a620-af_test.zip - 0.22MB, without any warranties (at first set key for AF in video menu).

Ewavr,

this seems to be working fine on my A620. Only problem is that, during AF, camera opens iris (I suppose nothing can be done about it), so movie is overexposed for the moment. But since I'm using my camera mostly in low light conditions (various dance events), where maximum aperture is used whole of the time, this is not a problem for me. Also, keys for AF (set or shutter) are good choice. Image distance shown in OSD is also updated during refocusing, as it should

Thanks for this version. I hope this feature will be available for other cameras in the future

Vit
« Last Edit: 13 / June / 2008, 10:28:37 by vit40 »

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Will Override Shutter/ISO or Aperture ever be enabled in Movie Mode?
« Reply #25 on: 13 / June / 2008, 18:55:42 »
@wap4
You are not forgotten about wrappers?

@vit40
Thanks for testing, now I can go forward.

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: Will Override Shutter/ISO or Aperture ever be enabled in Movie Mode?
« Reply #26 on: 15 / June / 2008, 16:21:07 »
will try to test this on a620. quick info on how did you find this in ida?

Hmm... For A620 this procedure has slightly different format. Try a620-af_test.zip - 0.22MB, without any warranties (at first set key for AF in video menu).

sorry, couldnt test your build, as the display only showed gibberish, as you can see on the attached picture. i deleted chdk.cfg and all CHDK folders to make sure that it wasnt my config or something else. i dont know whats the cause of this, maybe you have a cyrillic build? i dont know.
even the CHDK info screen looked like this, no letters from my alphabet :(
maybe you can fix it so i can test the build. you gotta be quick though, as i'm on vacation on tuesday :)
keep up the good work!

p.s.: your testbuild has been downloaded 4 times from zshare, i wonder why nobody else complained about the "Buggy font interface".

*

Offline wap4

  • **
  • 95
  • A720IS
Re: Will Override Shutter/ISO or Aperture ever be enabled in Movie Mode?
« Reply #27 on: 16 / June / 2008, 02:51:53 »
@wap4
You are not forgotten about wrappers?

@ewavr
I didn't include anything in wrappers.c but basically I mimiced by way DataGhost added the _PostledMessage function.
Here's what I did (much simplified):
1. Add "NHSTUB(AELock, 0xFFC8DA00)" in stubs_entry_2.s
2. Included 'no_gui_kbd_process' & 'movie_state()' in dgmod.c like this:-

int movie_state(){
return *((int*)0x5570);
}

void no_gui_kbd_process(){
 short ev=0;
 if (movie_state()==4){
  if (kbd_is_key_clicked(KEY_LEFT)) _AELock();
}

Then I made changes to dgmod.h(& probably also to lolevel.h), included dgmod.h to kbd.c & called no_gui_kbd_process from there.
 
One request, can you upload a testbuild for A720?
« Last Edit: 16 / June / 2008, 03:01:29 by wap4 »


*

Offline vit40

  • ****
  • 276
Re: Will Override Shutter/ISO or Aperture ever be enabled in Movie Mode?
« Reply #28 on: 16 / June / 2008, 17:01:13 »
will try to test this on a620. quick info on how did you find this in ida?

Hmm... For A620 this procedure has slightly different format. Try a620-af_test.zip - 0.22MB, without any warranties (at first set key for AF in video menu).

sorry, couldnt test your build, as the display only showed gibberish, as you can see on the attached picture. i deleted chdk.cfg and all CHDK folders to make sure that it wasnt my config or something else. i dont know whats the cause of this, maybe you have a cyrillic build? i dont know.
even the CHDK info screen looked like this, no letters from my alphabet :(
maybe you can fix it so i can test the build. you gotta be quick though, as i'm on vacation on tuesday :)
keep up the good work!

p.s.: your testbuild has been downloaded 4 times from zshare, i wonder why nobody else complained about the "Buggy font interface".

Hm, I tried again, this time several clips (last time it was quite short test) and again, didn't find any problems. It's english build, I'm using no language file and no extra fonts, and also, I left cfg file from last build #51

Noticed another good thing - this feature works also in MF mode, so you can start with preset subject distance (good in low light) and correct it during movie recording with set/shutter button if necessary. Great

Vit

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: Will Override Shutter/ISO or Aperture ever be enabled in Movie Mode?
« Reply #29 on: 17 / June / 2008, 02:44:44 »
i assume you have an a620? hm, this is odd.

 

Related Topics