CHDK firmware hack discussion (8)

Started May 19, 2007 | Discussions
stebu
New MemberPosts: 12
Like?
An OOPS! function for Sokoban
In reply to Graystar, May 22, 2007

GrAnd (and anybody else interested)

I downloaded the src and gcc, works fine!

So as a first task I added an undo function to the Sokoban game. For me, it worked; it undoes the pushes, not the bare moves. The undo key is Display (on a710), which in some places has been used as the Back key.

Since this is my first go with the CHDK (and I haven't coded in C for 10 years) I ask GrAnd to include this change in a future release, thanx. The source code can be found at
(http: koti. welho.com/tstenbe3/gui_sokoban.c)(remove the spaces),
this was the only file I've touched.

Sorry to have removed your banner, GrAnd;-)
--
Stebu

Reply   Reply with quote   Complain
Slarty42
Contributing MemberPosts: 527
Like?
Re: A700 support someday ????
In reply to GrAnd, May 22, 2007

Hi Guys

I came upon this thread just minutes ago(I don't visit here to often), and being of a curious nature, I had to "hear all about it".

I fully realize my little A700 (Jan 06 and 8300+ images so far), is NOT in the list,but I thought I'd try anyways to see what the results were, and perhaps some other A700 owners might be interested .....The devil made me do it !!!!

Firstly I went to the FAQ link and discovered how to utilize the "ver.req" file and that works (thank-you). I just hold down the SET button first, and THEN the DISP button (only combination that works), and then I see the version...GM1.00B

I then downloaded all the A610 - 710 zips and copied the 2 files in each zip to card (erasing both after seeing results), then trying next zip and so on

Results of all zips I tried: turn camera on,...select playback, and after hitting menu, I see a new menu item now "Firm Update...." at bottom (different font/colours also).

If I select "update" and hit SET ,I see .....File update Error !

,but all camera's functions work as before and never "hangs" or any other problem.(all is well !!). To get my original menu back, I just remove DISKBOOT and PS.fir from SD card.

So now I know I can experiment with my camera, and not damage anthing. So I did learn something today !!!

I'm really envious of all you people who have the Axxx models that can use all these wonderfull new features now that I know all the benifits I'm missing, I can only hope some day to see the A700 included in the list.

my best regards; Terry

Reply   Reply with quote   Complain
szek
New MemberPosts: 21
Like?
Possibility of adding some manual settings to movie mode
In reply to GrAnd, May 23, 2007

Hi, would it be possible to override the video mode so that we could manually set shutter speed, aperture, iso, exposure compensation etc.
Any chances to unlock optical zoom and/or manual focus during movie shooting.
Any chances to get 640x480@60fps

Cheers and thanks for Your effort!

Reply   Reply with quote   Complain
ursamajorRO
Regular MemberPosts: 251
Like?
videoclip
In reply to szek, May 23, 2007

szek wrote:

Any chances to get 640x480@60fps

Maybe when will be available the support for a Hard Disk (instead the memory card) for our cameras :))
Do you realise how much space should take a videoclip at 640x480@60fps?

Reply   Reply with quote   Complain
Vit40
Regular MemberPosts: 269
Like?
Re: videoclip
In reply to ursamajorRO, May 23, 2007

VGA at 60 fps is not possible - sensor can return only 30 fps at this resolution

Reply   Reply with quote   Complain
harvester
Contributing MemberPosts: 693
Like?
Re: An OOPS! function for Sokoban
In reply to stebu, May 23, 2007

stebu wrote:

So as a first task I added an undo function to the Sokoban game.
For me, it worked; it undoes the pushes, not the bare moves. The
undo key is Display (on a710), which in some places has been used
as the Back key.

Cool, that's the right feature for me... I suck so much at Sokoban
How many moves can you undo? The last one, or more?

Reply   Reply with quote   Complain
stebu
New MemberPosts: 12
Like?
Re: An OOPS! function for Sokoban
In reply to harvester, May 23, 2007

harvester wrote:

Cool, that's the right feature for me... I suck so much at Sokoban
How many moves can you undo? The last one, or more?

Because I haven't found out the memory restrictions, I'm not sure what GrAnd will accept. I used 100 pushes, each push is stored as 5 integers.

Those 5 integers (160 bits) could easily be packed into one int (or less) if memory is tight.
--
Stebu

Reply   Reply with quote   Complain
microfunguy
Regular MemberPosts: 234
Like?
Re: videoclip
In reply to Vit40, May 23, 2007

sensor can return only 30 fps at this resolution

Does anyone know the sensors used by all the supported cameras and if PDF data sheets are available ?

I also want to check if all the supported cameras have orientation sensors as my calculations depend on whether the camera is held horizontally or vertically.

David

Reply   Reply with quote   Complain
harvester
Contributing MemberPosts: 693
Like?
Re: videoclip
In reply to microfunguy, May 23, 2007

microfunguy wrote:

Does anyone know the sensors used by all the supported cameras and
if PDF data sheets are available ?

I found this quite some time ago in this forum. Don't know if this is reliable info or not:

A610
sensor ICX455 1/1.8"
sensitivity 250 mV
saturation signal: 500 mV

A620
sensor ICX489 1/1.8"
sensitivity 168 mV
saturation signal: 385 mV

S2
sensor ICX495 1/2.5"
sensitivity 150 mV
saturation signal: 420 mV

S3IS perhaps ICX624 ?

Reply   Reply with quote   Complain
Vit40
Regular MemberPosts: 269
Like?
Re: videoclip
In reply to harvester, May 23, 2007

some info can be found here --> http://www.riddle.ru/?page=articles/ccd

No info about 10 Mpix sensor from Sony though (A640). It may be sensor produced by Sharp, but in manufacturer's data it's said to produce VGA with 25 fps, while in A640 and G7 it seems to be true 30fps (unlike in some other digicams pruduced by other manufacturers, where every 5th frame is simply repeated, so video is choppy), so I don't know

Reply   Reply with quote   Complain
Frank43
Senior MemberPosts: 1,912
Like?
Re: Possibility of adding some manual settings to movie mode
In reply to szek, May 23, 2007

szek wrote:

Hi, would it be possible to override the video mode so that we
could manually set shutter speed, aperture, iso, exposure
compensation etc.
Any chances to unlock optical zoom and/or manual focus during movie
shooting.

Which camera are you refering to?

The S3/S2 has exposure compensation, optical zoom and manual focus in movie mode.

Frank

Reply   Reply with quote   Complain
Frank43
Senior MemberPosts: 1,912
Like?
Re: An OOPS! function for Sokoban
In reply to stebu, May 23, 2007

Yes I would love to have an undo.

However if you undo the pushes but not the moves, could'nt the user cheat?

Frank

Reply   Reply with quote   Complain
szek
New MemberPosts: 21
Like?
Re: Possibility of adding some manual settings to movie mode
In reply to Frank43, May 23, 2007

Frank43 wrote:

Which camera are you refering to?

The S3/S2 has exposure compensation, optical zoom and manual focus
in movie mode.

Frank

Upss, sorry I forgot... Of course I was referring to those models that don't have these features (A6xx etc.). I believe that you can't change iso, shutter speed, aperture on S2/S3 too?

Reply   Reply with quote   Complain
szek
New MemberPosts: 21
Like?
Re: videoclip @60fps (not that crazy)
In reply to ursamajorRO, May 23, 2007

ursamajorRO wrote:

szek wrote:

Any chances to get 640x480@60fps

Maybe when will be available the support for a Hard Disk (instead
the memory card) for our cameras :))
Do you realise how much space should take a videoclip at
640x480@60fps?

That would be 2x bigger than 640x480@30 = 3960KB/sec. which means 8 min. on 2GB card - pretty reasonable IMO.

Reply   Reply with quote   Complain
GrAnd
Regular MemberPosts: 325
Like?
Re: Possibility of adding some manual settings to movie mode
In reply to szek, May 23, 2007

szek wrote:

I believe that you can't change iso, shutter speed, aperture on S2/S3 too?

I'm not sure regarding the ISO, but the Av is dynamically adjusted during video shooting. And the shutter speed is constant which depends on video mode.

Reply   Reply with quote   Complain
szek
New MemberPosts: 21
Like?
Re: videoclip
In reply to Vit40, May 23, 2007

Vit40 wrote:

some info can be found here -->
http://www.riddle.ru/?page=articles/ccd

No info about 10 Mpix sensor from Sony though (A640). It may be
sensor produced by Sharp, but in manufacturer's data it's said to
produce VGA with 25 fps, while in A640 and G7 it seems to be true
30fps (unlike in some other digicams pruduced by other
manufacturers, where every 5th frame is simply repeated, so video
is choppy), so I don't know

Probably that is the reason I find 30fps choppy on my A610 - that would make sense! So if 60fps is not possible then maybe reduction to 25fps would be reasonable then (paradoxically).

Reply   Reply with quote   Complain
harvester
Contributing MemberPosts: 693
Like?
Re: videoclip
In reply to szek, May 23, 2007

szek wrote:

Probably that is the reason I find 30fps choppy on my A610 - that
would make sense! So if 60fps is not possible then maybe reduction
to 25fps would be reasonable then (paradoxically).

I don't think the videos of my A610 are choppy. Maybe you need a faster SD card?

Reply   Reply with quote   Complain
szek
New MemberPosts: 21
Like?
But my initial point was about possibility of hacking that...
In reply to GrAnd, May 23, 2007

GrAnd wrote:

szek wrote:

I believe that you can't change iso, shutter speed, aperture on S2/S3 too?

I'm not sure regarding the ISO, but the Av is dynamically adjusted
during video shooting. And the shutter speed is constant which
depends on video mode.

But my initial point was about possibility of hacking that (so we could manually set them).

Reply   Reply with quote   Complain
Vit40
Regular MemberPosts: 269
Like?
Re: But my initial point was about possibility of hacking that...
In reply to szek, May 23, 2007

Nope. Shutter speed isn't constant, it can be 1/30 or shorter, depending on available light (evident if you examine .thm file, which is just a small jpg with full exif data)

Reply   Reply with quote   Complain
szek
New MemberPosts: 21
Like?
Re: videoclip
In reply to harvester, May 23, 2007

harvester wrote:

szek wrote:

Probably that is the reason I find 30fps choppy on my A610 - that
would make sense! So if 60fps is not possible then maybe reduction
to 25fps would be reasonable then (paradoxically).

I don't think the videos of my A610 are choppy. Maybe you need a
faster SD card?

No, my card is OK (Kingston HS) but compering those allegedly fake 30fps to 60 (@320x240) I see the difference in smoothness. I always had this thought and now it just started to make sense. That description 'every 5th frame is simply repeated' looks like it.

Reply   Reply with quote   Complain
Keyboard shortcuts:
FForum MMy threads