CHDK mod with timestamp feature - page 7 - CHDK Releases - CHDK Forum

CHDK mod with timestamp feature

  • 71 Replies
  • 41821 Views
*

Offline pethead

  • *
  • 42
  • Canon S5 IS
    • Canon S5 IS Community
Re: CHDK mod with timestamp feature
« Reply #60 on: 14 / November / 2008, 10:02:45 »
Advertisements
updated to 565, resolved conflicts and created patch

« Last Edit: 14 / November / 2008, 10:06:09 by pethead »
canons5is.clan.su Allbest+ with timestamp features

*

Offline PhyrePhoX

  • *****
  • 2254
  • make RAW not WAR
    • PhyreWorX
Re: CHDK mod with timestamp feature
« Reply #61 on: 14 / November / 2008, 14:21:08 »
this looks more like something we can work with, thanks!
however here is my plan: i'm gonna wait until ewavr includes his dng support into the svn. then we can see if your mod still works or not (probably not without heavy modifications!). then, when it works, i'm gonna include it in the trunk - but as an OPT_TIMESTAMP module, which will be commented out at default. After all, this mod is stealing/adding alot of binary space. but with the mod in the svn people can check it out much easier (for example with whims chdk shell) so that one day it can be optimized and enabled at default. what do you think?

*

Offline Hacki

  • ****
  • 359
  • EOS 80D
Re: CHDK mod with timestamp feature
« Reply #62 on: 14 / November / 2008, 14:28:18 »
Quote
[..] however here is my plan: i'm gonna wait until ewavr includes his dng support into the svn. then we can see if your mod still works or not (probably not without heavy modifications!) [..] 

Works flawlessy here. I have both patches in my working copy, and they work just fine together. The timestamp gets written to the RAW buffer (At least i assume that is what's happening..) before the DNG is created, therefore the timestamp is even on the resulting RAW file!   8)

*

Offline Hacki

  • ****
  • 359
  • EOS 80D
Re: CHDK mod with timestamp feature
« Reply #63 on: 14 / November / 2008, 19:43:35 »
Am i doing something wrong, or is the latest patch incomplete? It appears to me as if the changes for conf.c or gui_lang.h are missing from that patchfile..


*

Offline Hacki

  • ****
  • 359
  • EOS 80D
Re: CHDK mod with timestamp feature
« Reply #64 on: 16 / November / 2008, 08:22:25 »
Is it a bug or a feature?

Whenever the camera gets tilted enough that its orientation sensor thinks the image is in upright format, the timestamp doesnt get printed on the bottom, but on the side which is supposed to be bottom.

With a real upright format image, that would be just fine, but pointing the camera straight up or down can confuse the orientation sensor (Thats the reason why i disabled the "Auto rotate" feature, but the timestamp still gets printed on the wrong side).

Is it possible to disable that, fix it somehow?

Example image attached. (Pleurotus ostreatus mycelium growing on cardboard, in case someone wonders .. )

Re: CHDK mod with timestamp feature
« Reply #65 on: 13 / December / 2008, 06:07:24 »
updated to 565, resolved conflicts and created patch

Hi  pethead!

A friend of mine is trying to rotate a raw image 180 degrees (for the A620).

Like you, he has made a little programme to generate a raw file and can specify brightness (0 to 1023) of a group of eight pixels (10 bytes) for the odd lines and another group of eight for the even lines.

I assume the first line is R G G B R G G B .........
and second is   G B R G G B R G

I tried to generate a pure red image with this sequence of pixels for the odd rows :-

1023 0 0 0 1023 0 0 0

and this for the even rows :-

0 0 1023 0 0 0 1023 0

The result is bright yellow.

Also, maybe the minimum value should be 32 ?

If the first pixel of the odd rows is red 1023, I assume byte 0 = 192 and byte 1 = 255.

I also assume my friends code is correct.

Could you advise how to rotate the image ?


Thanks.


David

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: CHDK mod with timestamp feature
« Reply #66 on: 13 / December / 2008, 06:18:46 »
I assume the first line is R G G B R G G B .........
and second is   G B R G G B R G

For most cameras
First line R G R G
Second G B G B

And for other matrix (a720 , s5, sx100 etc)
First G B G B
Second R G R G

Re: CHDK mod with timestamp feature
« Reply #67 on: 13 / December / 2008, 06:40:02 »
For most cameras
First line R G R G
Second G B G B
And for other matrix (a720 , s5, sx100 etc)
First G B G B
Second R G R G

Thanks, I will try that.


David


Re: CHDK mod with timestamp feature
« Reply #68 on: 13 / December / 2008, 08:33:07 »
First line R G R G
Second G B G B

Strangely, that works for pure red and pure blue but not pure green.

For pure green, Picasa displays image as pure black if second rows are  :-

G (1023) B (0) G (1023) B (0) G (1023) B (0) G(1023) B (0)

It displays pure green if second rows are :-

G (1023) B (0) G (1023) B (0) G (1023) B (0) G (0) B (0)


Very strange.


Bit patterns seem to be OK.

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: CHDK mod with timestamp feature
« Reply #69 on: 13 / December / 2008, 08:55:19 »
Very strange.

Maybe this is RAW converter (dcraw?) behavior. Try open this RAW in other converter (not dcraw based): ACR (after conversion to DNG) or "develop" it in camera.

p.s. Black level is 31, not 0.
p.p.s Maybe green pixel on both rows must be set:
first : R(31) G(1023) R(31) G(1023) ....
second: G(1023) B(31) G(1023) B(31) ....
« Last Edit: 13 / December / 2008, 09:02:46 by ewavr »

 

Related Topics