supplierdeeply

G16 Porting Thread - Test Versions Available

  • 215 Replies
  • 55433 Views
Re: G16 Porting Thread - Test Versions Available
« Reply #200 on: 24 / March / 2018, 18:43:46 »
Advertisements
The G16 has several aspect ratios, 4:3, 3:2, 16:9, and square.  So the grid would have to be matched to the correct one.  Now that I know it's 640 x 480 I will play around with that.
The shooting aspect ratio doesn't affect the UI resolution. So what matters is the pixel dimensions of the UI (640 x 480) and the physical aspect ratio of the screen (4:3, AFAIK)
Yeah, I notice that the CHDK display isn't affected by the Canon display.  I have mine set for square but with CHDK it's 4:3.  However, I notice that it's off-center; the screen displays right to the edge top and bottom and on the left, but on the right it doesn't quite go all the way.  So the G7 grids are off-center as well.

*

Offline reyalp

  • ******
  • 11591
Re: G16 Porting Thread - Test Versions Available
« Reply #201 on: 24 / March / 2018, 20:27:43 »
@reyalp as LDBenjamin has a G16 with a 1.01b firmware version, I think it's safe to add that to the autobuild too?
Enabled in trunk 5005
Don't forget what the H stands for.

*

Offline reyalp

  • ******
  • 11591
Re: G16 Porting Thread - Test Versions Available
« Reply #202 on: 24 / March / 2018, 20:35:08 »
Yeah, I notice that the CHDK display isn't affected by the Canon display.  I have mine set for square but with CHDK it's 4:3.  However, I notice that it's off-center; the screen displays right to the edge top and bottom and on the left, but on the right it doesn't quite go all the way.  So the G7 grids are off-center as well.
I'm not sure what you mean, a screenshot might help.

If you want a grid to line up with the live view when the camera is set to a different aspect ratio from the physical screen, you need to build in the offsets yourself. E.g. if you set it to 1:1, the part covered by the live image should be 480x480, so there must be (640 - 480)/2 = 80 pixels of space on each side.

The G7 X grids will not work on G16, because it has a different physical aspect ratio (3:2) and resolution (720x480).
Don't forget what the H stands for.

Re: G16 Porting Thread - Test Versions Available
« Reply #203 on: 24 / March / 2018, 20:38:33 »
However, I notice that it's off-center; the screen displays right to the edge top and bottom and on the left, but on the right it doesn't quite go all the way.  So the G7 grids are off-center as well.
Grid coordinates are in units of pixels from the upper left hand corner of the LCD.
Ported :   A1200    SD940   G10    Powershot N    G16


Re: G16 Porting Thread - Test Versions Available
« Reply #204 on: 24 / March / 2018, 20:57:44 »
Yeah, I notice that the CHDK display isn't affected by the Canon display.  I have mine set for square but with CHDK it's 4:3.  However, I notice that it's off-center; the screen displays right to the edge top and bottom and on the left, but on the right it doesn't quite go all the way.  So the G7 grids are off-center as well.
I'm not sure what you mean, a screenshot might help.

If you want a grid to line up with the live view when the camera is set to a different aspect ratio from the physical screen, you need to build in the offsets yourself. E.g. if you set it to 1:1, the part covered by the live image should be 480x480, so there must be (640 - 480)/2 = 80 pixels of space on each side.

The G7 X grids will not work on G16, because it has a different physical aspect ratio (3:2) and resolution (720x480).


Here you go.  Notice that the image does not go as far toward the right side as on the other sides.  You can also see the diagonal grid in the upper left.

*

Offline reyalp

  • ******
  • 11591
Re: G16 Porting Thread - Test Versions Available
« Reply #205 on: 24 / March / 2018, 21:32:15 »
Here you go.  Notice that the image does not go as far toward the right side as on the other sides.
If you mean the live image, that's just how LCD panel Canon used is built, nothing to do with CHDK. If you look closely you will most likely see there is a black border that isn't part of the actual display area that is wider on that side.
Don't forget what the H stands for.

Re: G16 Porting Thread - Test Versions Available
« Reply #206 on: 24 / March / 2018, 21:52:35 »
Here you go.  Notice that the image does not go as far toward the right side as on the other sides.
If you mean the live image, that's just how LCD panel Canon used is built, nothing to do with CHDK. If you look closely you will most likely see there is a black border that isn't part of the actual display area that is wider on that side.
You're right, I just checked with CHDK disabled, and there it is.  I can't believe I never noticed that before.


I will play around with the grids and see if I can't change them, but I don't really know what I'm doing.  Is there a tutorial for the language used to come up with those?

*

Offline reyalp

  • ******
  • 11591
Re: G16 Porting Thread - Test Versions Available
« Reply #207 on: 24 / March / 2018, 21:56:23 »
I will play around with the grids and see if I can't change them, but I don't really know what I'm doing.  Is there a tutorial for the language used to come up with those?
See http://chdk.wikia.com/wiki/Grids (warning: very old, but I don't think the syntax has changed)
Don't forget what the H stands for.


Re: G16 Porting Thread - Test Versions Available
« Reply #208 on: 24 / March / 2018, 22:08:34 »
I will play around with the grids and see if I can't change them, but I don't really know what I'm doing.  Is there a tutorial for the language used to come up with those?
See http://chdk.wikia.com/wiki/Grids (warning: very old, but I don't think the syntax has changed)
Thank you, so my display is x = 640, y = 480 in the lower right corner?  So to make a line, the first two numbers are one x, y position, the second two are the other x, y position, and it draws a line betwee the two.  OK, if that's it, I will see if I can modify the existing ones.

Re: G16 Porting Thread - Test Versions Available
« Reply #209 on: 25 / March / 2018, 10:46:28 »
Here you go.  Notice that the image does not go as far toward the right side as on the other sides.
If you mean the live image, that's just how LCD panel Canon used is built, nothing to do with CHDK. If you look closely you will most likely see there is a black border that isn't part of the actual display area that is wider on that side.
If anyone is interested, here is the "Diagonal Method" grid for a 640 x 480 display.  It lines up correctly on the G16.



@title  Diagonal Method
@line 0,0, 480,480, 26
@line 160,0, 640,480, 26
@line 480,0, 0,480, 26
@line 160,480, 640,0, 26

 

Related Topics