A590IS porting... - page 86 - DryOS Development - CHDK Forum supplierdeeply

A590IS porting...

  • 968 Replies
  • 413687 Views
*

Offline dvip

  • ****
  • 451
Re: A590IS porting...
« Reply #850 on: 16 / September / 2011, 23:17:24 »
Advertisements
With the A590IS (a590-101b-0.9.9-1341-full.zip) If you set:

Override Subj. Dist. V [1]
Value Factor (mm) [1]

and half-press the cam sometimes crashes.



*

Offline dvip

  • ****
  • 451
Wrong raw orientation
« Reply #851 on: 03 / October / 2011, 23:05:14 »

Another possible bug:

From time to time the cam takes an image with the wrong orientation.
The jpg is fine but not the raw file.
So I get a raw file with the wrong orientation. :(


 

Re: A590IS porting...
« Reply #852 on: 03 / October / 2011, 23:40:07 »
From time to time the cam takes an image with the wrong orientation.
The jpg is fine but not the raw file. So I get a raw file with the wrong orientation. :(
I don't think RAW files have any orientation.  They are just a dump of the camera's sensor buffer. There is no information stored with the RAW file to indicate anything about the camera's orientation.  So if you turn the camera 90 degrees,  the image in the RAW file will look like its 90 deg turned.   

Just like an old film camera would. 

I suspect that even the Canon  jpg's are not oriented in the camera - the camera simply records the camera's orientation in the EXIF header and lets your PC software sort it out.

« Last Edit: 03 / October / 2011, 23:45:12 by waterwingz »
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline dvip

  • ****
  • 451
Re: A590IS porting...
« Reply #853 on: 04 / October / 2011, 09:37:53 »
I know it is odd, waterwingz. But that's what I get sometimes.
And it has happened more than once.
I have opened the raw file with Rawtherapee, Ufraw and  IrfanView and the same problem there with raw files. I have both the raw and the jpg file if you want them to see for yourself. The image was taken as it is in the jpg but the raw has the wrong orientation.

In the jpg's Exif I have:

Orientation - Top left

raw/jpg files:

http://www.box.net/shared/qyy8uncisi7gci9db3p8



« Last Edit: 04 / October / 2011, 12:18:38 by dvip »


*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: A590IS porting...
« Reply #854 on: 05 / October / 2011, 03:32:13 »
I know it is odd, waterwingz. But that's what I get sometimes.
And it has happened more than once.
I have opened the raw file with Rawtherapee, Ufraw and  IrfanView and the same problem there with raw files. I have both the raw and the jpg file if you want them to see for yourself. The image was taken as it is in the jpg but the raw has the wrong orientation.

In the jpg's Exif I have:

Orientation - Top left

raw/jpg files:

http://www.box.net/shared/qyy8uncisi7gci9db3p8


Your sample raw file is actually saved in DNG format (even though it has a .CRW file extension), so you have the option for CHDK to save DNG files set.
There is an option in CHDK to change the raw file extension - if you set it to .DNG it will be less confusing.

Anyway CHDK gets the orientation sensor value from the camera and saves it to the DNG header - in the case of your sample the orientation is set to 8 (270 degrees).

Unless your orientation sensor is broken, the only thing I can think of is you lowered your hand very quickly after taking the shot thus putting the camera in a vertical orientation? It takes a little bit of time after you press the shutter before CHDK generates the DNG file header.

Phil.
CHDK ports:
  sx30is (1.00c, 1.00h, 1.00l, 1.00n & 1.00p)
  g12 (1.00c, 1.00e, 1.00f & 1.00g)
  sx130is (1.01d & 1.01f)
  ixus310hs (1.00a & 1.01a)
  sx40hs (1.00d, 1.00g & 1.00i)
  g1x (1.00e, 1.00f & 1.00g)
  g5x (1.00c, 1.01a, 1.01b)
  g7x2 (1.01a, 1.01b, 1.10b)

*

Offline dvip

  • ****
  • 451
Re: A590IS porting...
« Reply #855 on: 05 / October / 2011, 09:25:22 »
>Unless your orientation sensor is broken, the only thing I can
>think of is you lowered your hand very quickly after taking the
>shot thus putting the camera in a vertical orientation? It takes a
>little bit of time after you press the shutter before CHDK
>generates the DNG file header.

Thanks for the tips, Phil.
Yes, the raw file is a DNG.
The cam or chdk has been doing this for about a year now
and it is hard to test because it doesn't happen all the time.
At one point I got 4 images like this in a row and
it seems to happen when taking several pictures.

The worse part is that I can't check the image at site
since the JPG looks just fine on the cam's LCD screen but the DNG is wrong.


*

Offline dvip

  • ****
  • 451
Re: A590IS porting...
« Reply #856 on: 23 / November / 2011, 00:05:59 »
Hi Phil,
Yep, this happens when lowering the hand, I tested it today, but it never did this with older chdk versions (from a year ago or so).
Any way to fix this?


*

Offline dvip

  • ****
  • 451
Re: A590IS porting...
« Reply #857 on: 24 / November / 2011, 11:21:56 »
Is there any way to download the zip file in this posting:

http://chdk.setepontos.com/index.php?topic=2361.msg42494#msg42494

CHDK-a590-101b-0.9.8.zip

I like this one beacause it trims the DNG borders.

Or better yet, an updated version that does the same with the latest chdk.

« Last Edit: 05 / December / 2011, 17:03:45 by dvip »


*

Offline dvip

  • ****
  • 451
Re: A590IS porting...
« Reply #858 on: 22 / January / 2012, 00:20:44 »
I tested:

#define CAM_EV_IN_VIDEO             1 

with a590-101b-1.0.0-1597-full.zip and it works  :).
I find it useful since the A590IS tends to overexpose.
Shouldn't it be enable?

But noticed that I have a red hot pixel in my videos :( Anyway to fix that?



*

Offline rudi

  • ***
  • 129
  • A590IS_101B, SX260HS_100B
Re: A590IS porting...
« Reply #859 on: 04 / February / 2012, 17:03:13 »
Hi,

here is my investigation for bitmap overlay palette on A590-101b.
CHDKcam from ewavr use overlay palette on ram address 0x3D518, but newer cams use only alpha value 0x3 or 0x0. I found in ROM routine on 0xFFCCB53C a conversion part for overlay palette to RAM address 0x763C.

RAM dump on 0x3D518 (rec mode)
Code: [Select]
         A  Y  U  V
0x3D518: 00 00 00 00
0x3D51C: FF E0 00 00
0x3D520: FF 4D F6 4A
0x3D524: FF 9F 00 00
0x3D528: 7F 00 00 00
0x3D52C: FF 7B B4 B1
0x3D530: FF C0 94 0F
0x3D534: 7F 60 7B E2
0x3D538: 80 10 00 00
0x3D53C: 7F 28 00 00
0x3D540: FF 7A 00 00
0x3D544: FF 4D F6 4A
0x3D548: FF FF AA 19
0x3D54C: FF 80 5D B4
0x3D550: FF 97 E9 64
0x3D554: FF 00 00 00

RAM dump on convert address 0x763C
Code: [Select]
        V  U  Y  A
0x763C: 00 00 FF 00
0x7640: 00 00 E0 03
0x7644: 5C F8 4D 03
0x7648: 00 00 9F 03
0x764C: 00 00 00 00
0x7650: 9E BE 7B 03
0x7654: 12 A2 C0 03
0x7658: DB 6B 60 00
0x765C: 00 00 10 00
0x7660: 00 00 28 00
0x7664: 00 00 7A 03
0x7668: 5C F8 4D 03
0x766C: 1F B5 FF 03
0x7670: A1 51 80 03
0x7674: 7D EC 97 03
0x7678: 00 00 00 03

Routine on 0xFFCCB53C can used to set a new palette. Attached is a example to change the white overlay color to orange (!!only for A590-101b). The orange color is cleared on each palette change eg. switch play/rec mode or show canon menu.

rudi

 

Related Topics


SimplePortal 2.3.6 © 2008-2014, SimplePortal