SX10 - Extended TV - page 3 - General Discussion and Assistance - CHDK Forum  

SX10 - Extended TV

  • 30 Replies
  • 16592 Views
*

Offline sparky72

  • *
  • 7
  • A650is SX-10is
Re: SX10 - Extended TV
« Reply #20 on: 30 / October / 2009, 17:16:32 »
Advertisements
Hello !

Thanks for your very quick reply!
That was what I just want to know, very helpful tips, now I try to "play" with whims compiler...
Maybe I'm goin to ask for some more Help.
Thanks a lot for your help and for providing that marvelous "thing" that CHDK is...

Kind regards

Giorgio

*

Offline sparky72

  • *
  • 7
  • A650is SX-10is
Re: SX10 - Extended TV
« Reply #21 on: 04 / November / 2009, 02:34:56 »
Hello,

As soon as I've had some spare time I 've tryed it...
Now I' ve the TV override working, but in my opinion it can't go more than 1/10000....
Anyway, that's much better than 1/3200!!
I've noticed that in the new releases in the autobuild server this fix is not implemented yet, will be inthe future??


Kind regards

Giorgio

*

Offline reyalp

  • ******
  • 14120
Re: SX10 - Extended TV
« Reply #22 on: 04 / November / 2009, 03:07:43 »
I've noticed that in the new releases in the autobuild server this fix is not implemented yet, will be inthe future??
Yes, I actually started looking at that tonight. However, I'm a bit wary of putting it in the way it is, because it affects all cameras (well, all that implement extended tv), all the time.

It should be OK I guess, because only changes the value if the incoming value is different from the propcase, but I'd be a lot happier if it only got invoked when overrides were specifically requested by the user or script. Unfortunately, we can't determine the second one with existing variables, because the script override is cleared before that point.

I'm currently undecided as to whether to check it in as is. Feedback from people who have used builds with this in place on different cameras, with and without overrides would be appreciated. I'm not worried about how much override you get, I'm only concerned that it works correctly on all cameras when you aren't using an override.
Don't forget what the H stands for.

*

Offline sparky72

  • *
  • 7
  • A650is SX-10is
Re: SX10 - Extended TV
« Reply #23 on: 04 / November / 2009, 04:44:01 »
..Ok Reyalp, I've understand now.
Considering that is a function that is not of current use, we can survive with a patch.
 I can test it on two different types (A650,SX10), and give some feedback.
Anyway as soon as I 've more spare time (maybe in december...) I will try to learn something more about CHDK editing..

Thanks a lot.

P.S. Sorry for my poor english..


Re: SX10 - Extended TV
« Reply #24 on: 04 / November / 2009, 08:23:50 »
I've noticed that in the new releases in the autobuild server this fix is not implemented yet, will be inthe future??
Yes, I actually started looking at that tonight. However, I'm a bit wary of putting it in the way it is, because it affects all cameras (well, all that implement extended tv), all the time.

It should be OK I guess, because only changes the value if the incoming value is different from the propcase, but I'd be a lot happier if it only got invoked when overrides were specifically requested by the user or script. Unfortunately, we can't determine the second one with existing variables, because the script override is cleared before that point.

I'm currently undecided as to whether to check it in as is. Feedback from people who have used builds with this in place on different cameras, with and without overrides would be appreciated. I'm not worried about how much override you get, I'm only concerned that it works correctly on all cameras when you aren't using an override.
I would think it shouldn't cause any problems with any other cameras.  As you said, it only kicks in when the TV setting comes up different than that set, so on cameras where things are working fine, it would be ignored.

But, if wanted, I suppose a conditional compile option could be inserted to implement it only on the cameras desired.
For now, I know that it affects the SX10 and likely the SX1 as it has a similar build.  People would need to confirm what other cameras need it.

If you'd like, I can try to make a new patch with a conditional build.

Re: SX10 - Extended TV
« Reply #25 on: 04 / November / 2009, 14:31:55 »
I would think it shouldn't cause any problems with any other cameras.  As you said, it only kicks in when the TV setting comes up different than that set, so on cameras where things are working fine, it would be ignored.

But, if wanted, I suppose a conditional compile option could be inserted to implement it only on the cameras desired.
For now, I know that it affects the SX10 and likely the SX1 as it has a similar build.  People would need to confirm what other cameras need it.

If you'd like, I can try to make a new patch with a conditional build.

It can be added as a conditional build as follows:
Code: [Select]
int  apex2us(int apex_tv){
#if CAM_EXT_TV_RANGE || CAM_EXT_TV_RANGE_HS
 #if CAM_EXT_TV_RANGE_HS
  short tv;
  tv = shooting_get_tv96();
  if (tv<-576 || tv!=apex_tv) return 1000000.0*pow(2.0, -tv/96.0);
 #else
  if (apex_tv<-576) return 1000000.0*pow(2.0, -apex_tv/96.0);
 #endif
 else return _apex2us(apex_tv);
#else
 return 0;
#endif
}

This would require [include\camera.h] to be modified with appropriate declarations of CAM_EXT_TV_RANGE_HS
As well, [platform\generic\main.c]  could also be modified:
Code: [Select]
        #if CAM_EXT_TV_RANGE || CAM_EXT_TV_RANGE_HS
if (my_ncmp(name, "tExpDrvTas", 10) == 0){
    *entry = (long)exp_drv_task;
}
        #endif
However, at the moment the CAM_EXT_TV_RANGE_HS is not exclusive of CAM_EXT_TV_RANGE so this would not be explicitly necessary other than for being thorough and complete.

*

Offline reyalp

  • ******
  • 14120
Re: SX10 - Extended TV
« Reply #26 on: 04 / November / 2009, 16:14:15 »

I would think it shouldn't cause any problems with any other cameras.  As you said, it only kicks in when the TV setting comes up different than that set, so on cameras where things are working fine, it would be ignored.
Assuming that the propcase read by shooting_get_tv96() contains the correct value at that point, and that it is safe to call that function there. These are both probably true, but the more I thought about it last night, the less I liked it.  I'm probably just being paranoid ;)

If a few people with different model cameras can confirm that it doesn't cause any ill effects, with or without using overrides in various shooting modes (canon manual, canon auto) that's probably good enough.

Just FYI, you're suggestion with expdrivtask would not work. It doesn't account for dryos cameras (which hook in platform/<camera>/sub/<version>/boot.c, and in any case the necessary code only exists in those cameras with EXT_TV_RANGE. If someone were going to implement exp_drv_task up to that point, it would be silly not to include EXT_TV_RANGE.

My preferred approach would be to decide this at run time. If no overrides or script overrides are engaged, use the stock apex2us. That way, if something was broken, it wouldn't affect normal camera operation. But as I said earlier, there's no easy way to see if script override was used at that point. This could be added, but I'm not sure it's worth it.
Don't forget what the H stands for.

Re: SX10 - Extended TV
« Reply #27 on: 04 / November / 2009, 16:49:16 »
Assuming that the propcase read by shooting_get_tv96() contains the correct value at that point, and that it is safe to call that function there. These are both probably true, but the more I thought about it last night, the less I liked it.  I'm probably just being paranoid ;)

My preferred approach would be to decide this at run time. If no overrides or script overrides are engaged, use the stock apex2us. That way, if something was broken, it wouldn't affect normal camera operation. But as I said earlier, there's no easy way to see if script override was used at that point. This could be added, but I'm not sure it's worth it.

It is probably safe to assume that if no overrides are selected, that both the value passed into the function (apex_tv) and shooting_get_tv96() propcase should be equal and that the normal function would be selected.  In fact, I would a ssume that even if a Tv override is selected, but it is within the allowable range of the camera, it will kick in the normal function at this point.


*

Offline sparky72

  • *
  • 7
  • A650is SX-10is
Re: SX10 - Extended TV
« Reply #28 on: 10 / December / 2009, 05:44:41 »
Hello,
after some time I'm back...
I've noticed that the patch is not working with the latest build, there is a way to fix it?

Kind regards

Giorgio

Re: SX10 - Extended TV
« Reply #29 on: 10 / December / 2009, 09:00:17 »
Hello,
after some time I'm back...
I've noticed that the patch is not working with the latest build, there is a way to fix it?

Kind regards

Giorgio

Try this one.  The other one was doing some stuff that it shouldn't that I've fixed now.

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal