SD940 (IXUS120) porting thread - page 32 - DryOS Development - CHDK Forum  

SD940 (IXUS120) porting thread

  • 542 Replies
  • 202757 Views
*

Offline fe50

  • ******
  • 3147
  • IXUS50 & 860, SX10 Star WARs-Star RAWs
    • fe50
Re: SD940 (IXUS120) porting thread
« Reply #310 on: 18 / February / 2011, 01:08:06 »
Advertisements
Any idea how fast vid_get_viewport_live_fb() should be ?
IMO you should get something around 80-120ms when working with two raw buffer addresses (SD870 sample), most cameras are in this range (e.g. my SD400, SD870 & SX10). Using only one buffer address slows done MD speed...

See also reyalP's changelog for the D10...

The camera's settings may also influence the response time; use M mode, continuos AF off, face detection etc. off, fix ISO...

Re: SD940 (IXUS120) porting thread
« Reply #311 on: 19 / February / 2011, 20:16:17 »
IMO you should get something around 80-120ms when working with two raw buffer addresses
If I read the code from the SD870 and D10 correctly, there are three possible buffer address returned by *vid_get_viewport_live_fb() - not two ?

Also, in my port vid_get_viewport_fb() returns the same address as vid_get_viewport_live_fb()'s first buffer. Does that seem right ?

EDIT :  I guess what I should have asked for is a link or short explanation of the different buffers that CHDK hooks into ??

« Last Edit: 19 / February / 2011, 21:20:48 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline reyalp

  • ******
  • 14082
Re: SD940 (IXUS120) porting thread
« Reply #312 on: 19 / February / 2011, 22:35:39 »
IMO you should get something around 80-120ms when working with two raw buffer addresses
If I read the code from the SD870 and D10 correctly, there are three possible buffer address returned by *vid_get_viewport_live_fb() - not two ?
Yes.
Quote
Also, in my port vid_get_viewport_fb() returns the same address as vid_get_viewport_live_fb()'s first buffer. Does that seem right ?
Yes, one of the buffers should be the same.
Quote
EDIT :  I guess what I should have asked for is a link or short explanation of the different buffers that CHDK hooks into ??
I don't think such a thing exists. It would be good to have.

edit:
I actually started writing a page about frame buffers a long time ago. I've posted my work-in-progress here: http://chdk.wikia.com/wiki/Frame_buffers
Don't think it will help you, but maybe someone wants to add too it ;)
« Last Edit: 19 / February / 2011, 22:58:57 by reyalp »
Don't forget what the H stands for.

Re: SD940 (IXUS120) porting thread
« Reply #313 on: 20 / February / 2011, 09:28:26 »
Yes, one of the buffers should be the same.
Thanks - I think I've got vid_get_viewport_live_fb() solved then.  I'll update the two firmware beta files on this thread and submit a patch file for the trunk.

I actually started writing a page about frame buffers a long time ago. I've posted my work-in-progress here: http://chdk.wikia.com/wiki/Frame_buffers
Don't think it will help you, but maybe someone wants to add too it ;)
Thanks ! That was actually helpful - even in its current state. Did you link it to the "For Developers" wiki page ?


Ported :   A1200    SD940   G10    Powershot N    G16


Re: SD940 (IXUS120) porting thread
« Reply #314 on: 20 / February / 2011, 09:46:54 »
Any distinctive text strings or unusual assembler code ?
I looked at four different DigicIV cameras and was able to convince myself that I had found the same routine in all four - but they were all different code (register usage, additional subroutines in places) so it was just reading the general flow.  One of the two necessary variables (pointer to the viewport base address?)  is used in four places while other (the index value) shows up 65 times in the code.  Not much help I'm afraid.

In my ports, I try to put some clues / reminders of how I found in the comments.
I've started documenting the ROM address (for stubs_min.S and lib.c) where I've found things in the dump for my camera.  At least that way somebody can compare my camera's code to their camera to try and find something similar in their camera.



« Last Edit: 20 / February / 2011, 10:16:26 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: SD940 (IXUS120) porting thread
« Reply #315 on: 20 / February / 2011, 11:03:04 »
Patch file to integrate vid_get_viewport_live_fb() fix into trunk 1066 attached here.

Edit :  Also finally fixed up RefreshPhysicalScreen() , removing the hacked version we have been using for the last 8 months.
« Last Edit: 20 / February / 2011, 13:44:15 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

Re: SD940 (IXUS120) porting thread
« Reply #316 on: 25 / February / 2011, 06:54:37 »
CHDK Porting for the IXUS120-SD940 Update

@1.03C owners :
Main trunk has the latest updates as of today!

@1.02C owners :
I've been doing my best to update the 1.02C version at the same time as changes made in the 1.03C version.  I can test the 1.03C version myself and I'm really really careful translating the changes to the 1.02c version.  But would somebody please confirm that the latest 1.02C version works ?  Especially :

1) do the <ALT> mode menus draw correctly when you change from a long menu to a shorter menu ?
2) do the Motion Detection (MD) scripts work ?

1.03B owners :
Still working on that.  Its moving ahead - you are not forgotten.

1.01a owners :
So far one person has expressed interest.  Anybody else out there?  And can you help with the porting?

Thanks to all for your patience.
Ported :   A1200    SD940   G10    Powershot N    G16

Re: SD940 (IXUS120) porting thread
« Reply #317 on: 26 / February / 2011, 09:47:03 »
CHDK Porting for the IXUS120-SD940 Update

1.03B owners :
Still working on that.  Its moving ahead - you are not forgotten.


Optimism up!... Thank you!  :)


*

Offline mir

  • *
  • 1
Re: SD940 (IXUS120) porting thread
« Reply #318 on: 03 / March / 2011, 07:56:10 »
Hey!
Many thanks to you and the chdk community for this great work!

I have an ixus 120 IS, version 1.02c. Up to now, everything works fine. :) If I can help, I test some functions and give feedback.

I think a little problem is the new directory naming strategy for the jpg files. (e.g. when I use raw_merge_end in a script, a directory "100CANON" is created, which is the old name.)

1) do the <ALT> mode menus draw correctly when you change from a long menu to a shorter menu ?
This works for me.
When I'm in record mode, the menu sometimes gets invisible. I think this is normal, isn't it?

2) do the Motion Detection (MD) scripts work ?
Sometimes it takes a picture, sometimes not. I'll test it later in detail...

Thanks again and regards

Re: SD940 (IXUS120) alpha version for firmware 1.03B now available
« Reply #319 on: 03 / March / 2011, 11:07:52 »
Early Alpha release of 1.03B firmware by Rulen .   Logo displays and menus work.  Other features not enabled just yet.

ixus120_sd940-103b-0.9.9-1067-full.zip - 0.51MB

EDIT :  link deleted as Beta version is now available
« Last Edit: 13 / March / 2011, 14:54:18 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

 

Related Topics