500d development - page 205 - DSLR Hack development - CHDK Forum

500d development

  • 2487 Replies
  • 809098 Views
*

Offline Gary

  • *
  • 43
Re: 500d development
« Reply #2040 on: 08 / December / 2011, 12:18:26 »
Advertisements
https://bitbucket.org/hudson/magic-lantern/raw/b98d038b4b09/src/422-jpg.py
and
https://bitbucket.org/hudson/magic-lantern/raw/tip/src/422-jpg.py
are the same file!

I did a byte by byte diff, after cutting and pasting from the browser.
So they are exactly the same.

Neither one of them is capable of converting a 422 file
where the file size does not match the W x H x 2 as is often the case. 

Does this python script work with Hires 5x5 images?
« Last Edit: 08 / December / 2011, 12:28:46 by Gary »

Re: 500d development
« Reply #2041 on: 08 / December / 2011, 12:20:48 »
Well, I might have used an old revision by mistake. They are identical, really.
« Last Edit: 08 / December / 2011, 12:24:17 by kyselejsyrecek »
Canon EOS 500D, EF-S 17-85mm f/4-5.6 IS USM

Re: 500d development
« Reply #2042 on: 08 / December / 2011, 12:48:44 »
Yes, the script does convert all images, but the only ones that are useable are 928x616 and 1576x1048 and only silent picture scans and single silent picture, non of the hi-res are useable or the low res ones if you try capturing at 5x or 10x, they all convert but are scrambled images, it doesnt seem to be a highres issue, since you get the same scrambled image zooming and the hires shots zoom in to create the image it seems its just while zoomed it gets scrambled, if that was fixed then all images would look fine. 8/

*

Offline Gary

  • *
  • 43
Re: 500d development
« Reply #2043 on: 08 / December / 2011, 12:59:28 »
What do you mean hi-res is not usable?  They do not look like normal pictures?  Oh you mean 5x5.  Some of the 1576x1048 HD do work for me!  What does 5x5 look like for you?  Can you post one?  Or is it just looking like noise?  A broken TV?  There is no need to post that.

Do you get purple and image shifts sometimes with 1576x1048?

I have an old version of this script that works for 5x and 10x. 

I think the filesize matches one of the if cases in the python code, but the resolution is wrong.  In other words the buffer is saved in ML with a different resolution, but the file size is not adjusted to match the actual resolution of the image.  That is why these modes look scrambled.

« Last Edit: 08 / December / 2011, 13:04:58 by Gary »


Re: 500d development
« Reply #2044 on: 08 / December / 2011, 13:09:21 »
What do you mean hi-res is not usable?  They do not look like normal pictures?  Oh you mean 5x5.  Some of the 1576x1048 HD do work for me!  What does 5x5 look like for you?  Can you post one?  Or is it just looking like noise?  A broken TV?  There is no need to post that.

Do you get purple and image shifts sometimes with 1576x1048?

I have an old version of this script that works for 5x and 10x. 

I think the filesize matches one of the if cases in the python code, but the resolution is wrong.  In other words the buffer is saved in ML with a different resolution, but the file size is not adjusted to match the actual resolution of the image.  That is why these modes look scrambled.


2x2 to 5x5 are are scrambled like a broken tv, you can tell the image is there is all scrambled like a tvs horizontal hold is out of wack. these modes use zoom to create there images, and hd works fine but if you zoom they get scrambled, so basicaly anything that does not use zoom works and shows a normal image, anything thats zoomed or uses zoom is horizontal hold out of wack image.

And yes, sometimes you get image shifts because the picture is taken in the middle of a scan so you get the split image effect.

*

Offline Gary

  • *
  • 43
Re: 500d development
« Reply #2045 on: 08 / December / 2011, 13:20:26 »
According to Alex these horizontal lines occur in Burst mode only.  I'm talking about where half the picture is purple and it's shifted nearly 500 pixels to the right in Single mode.  You won't notice this if you only take a few pictures, one at a time.  You will see it when you take 100's.

Hires 5x5 works for me except these 3 major issues:
1) Each of the 25 images are shifted by a few pixels so they don't line up perfectly
2) Horizontal lines in each
3) Sometimes one of the images is brighter than the rest

I understand that not using a tripod would cause all of these.
But I am using a very sturdy tripod with no wind or tree movement (inside).
« Last Edit: 08 / December / 2011, 13:28:46 by Gary »

Re: 500d development
« Reply #2046 on: 08 / December / 2011, 13:30:02 »
According to Alex these horizontal lines occur in Burst mode only.  I'm talking about where half the picture is purple and it's shifted nearly 500 pixels to the right in Single mode.  You won't notice this if you only take a few pictures, one at a time.  You will see it when you take 100's.

Hires 5x5 works for me except these 3 major issues:
1) Each of the 25 images are shifted by a few pixels so they don't line up perfectly
2) Horizontal lines in each
3) Sometimes one of the images is brighter than the rest

I understand that not using a tripod would cause all of these.
But I am using a very sturdy tripod with no wind or tree movement (inside).

where did u get the script that shows 5x5 un scrambled?

*

Offline a1ex

  • *****
  • 671
  • ML dev
Re: 500d development
« Reply #2047 on: 08 / December / 2011, 13:48:55 »
To avoid the shifting, adjust line 78.

To get constant brightness, turn on ExpSim. ML should do this by itself... in theory.

In the near future I'll add some headers to silent pictures, to declare their size and other parameters there. So the converter will be pretty generic, not camera-specific.


*

Offline Gary

  • *
  • 43
Re: 500d development
« Reply #2048 on: 08 / December / 2011, 15:31:15 »
I am trying to adjust line 78 but there is missing image information.  In other words when using cx,cy= -60, -40 there are black lines between the individual panes of the window.  Note the minus signs.  This way lines line up the way they should.  But instead of each zoom image overlapping, there is missing data between them.  Columns 2,3,4,5 have a different spacing then between 1,2.  The same with the rows.  Between 1,2 the correct parameter is about +60 (overlapping).  Between the rest -60, displaying the black lines of missing data.  There is a black space around the top and left of the final JPG, about 30 pixels.  I'd like to work with you on this.  Can you change the ML code to fix the spacing between each individual 25 images?

*

Offline a1ex

  • *****
  • 671
  • ML dev
Re: 500d development
« Reply #2049 on: 08 / December / 2011, 15:40:53 »
First I need to know if a simple silent pic taken in x5 mode works properly.

It's declared as 944x632 in vram.c (add this resolution to the convertor).

 

Related Topics