SX50 HS porting thread - page 23 - DryOS Development - CHDK Forum  

SX50 HS porting thread

  • 350 Replies
  • 146434 Views
*

Offline yukia10

  • *
  • 32
  • SX50_100c
Re: SX50 HS porting thread
« Reply #220 on: 31 / March / 2013, 16:50:54 »
Advertisements
Thanks, reyalp.

Just FYI, to get correct colors in the UI overlay (=bitmap), you will need to use the latest svn version of chdkptp.
I will prepare the build environment for chdkptp sometime in the future.

Quote
You might want to compare the viewport* function code with sx40, that should be similar to sx50 and a fairly correct/complete implementation.
I think the initial code is from sx40 but the code from sx260 seems to work well.

Quote
If the camera supports different aspect ratios, you should check each one.
It was OK except the aspect ratio of 5:4.
« Last Edit: 01 / April / 2013, 09:08:28 by yukia10 »

*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: SX50 HS porting thread
« Reply #221 on: 31 / March / 2013, 18:45:31 »
I only have an upper half of Viewfinder with chdkptp-r311.
I could get a whole Viewfinder with chdkptp-r311 using the following code in lib.c (same as SX260HS):

Code: [Select]
int vid_get_viewport_display_xoffset_proper()   { return vid_get_viewport_display_xoffset() * 2; }
int vid_get_viewport_display_yoffset_proper()   { return vid_get_viewport_display_yoffset() * 2; }
int vid_get_viewport_width_proper()             { return vid_get_viewport_width() * 2; }
int vid_get_viewport_height_proper()            { return vid_get_viewport_height() * 2; }
int vid_get_viewport_fullscreen_height()        { return 480; }
I feel this is somewhat inconsistent with setting viewport_yscale to 1, but it seems OK so far.

Based on the specs the yscale value should be 2 and the above settings should be used - the original port values look to have been copied from a mix of places and is basically wrong.

The G1X is probably the closest port to the SX50 for this stuff - it also includes all the same aspect ratio modes including 5:4.

CHDK works with virtual viewport & bitmap dimenstions of 360 x 240 (480 x 240 for cameras with widescreen LCD).

The viewport & bitmap width, height, xoffset and yoffset functions work in this space.

The yscale and _proper versions of the functions are used to convert to the actual physical dimensions of the viewport and bitmap.

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 yukia10

  • *
  • 32
  • SX50_100c
Re: SX50 HS porting thread
« Reply #222 on: 01 / April / 2013, 09:30:46 »
Thanks, Phil.

The G1X is probably the closest port to the SX50 for this stuff - it also includes all the same aspect ratio modes including 5:4.

The lib.c based on G1X works fine without a flashing histogram (yscale is 2).
All aspect ratios are OK on chdkptp.
Could anyone test an attached lib.c on firmware 1.00b?
« Last Edit: 01 / April / 2013, 09:45:35 by yukia10 »

*

Offline lapser

  • *****
  • 1093
Re: SX50 HS porting thread
« Reply #223 on: 01 / April / 2013, 11:30:39 »
Could anyone test an attached lib.c on firmware 1.00b?
Histogram is normal now, and PTP live view works correctly. Looks like this one is fixed. Many thanks.
EOS-M3_120f / SX50_100b / SX260_101a / G1X_100g / D20_100b
https://www.youtube.com/user/DrLapser/videos


*

Offline dvip

  • ****
  • 451
Re: SX50 HS porting thread
« Reply #224 on: 01 / April / 2013, 13:36:30 »
@Phil, is this G1X code also needed for SX40HS' histogram?
I wonder if there are some G1X/SX50HS updates that apply to the SX40HS.


*

Offline philmoz

  • *****
  • 3450
    • Photos
Re: SX50 HS porting thread
« Reply #225 on: 01 / April / 2013, 14:54:29 »
@Phil, is this G1X code also needed for SX40HS' histogram?
I wonder if there are some G1X/SX50HS updates that apply to the SX40HS.



Not that I am aware of.

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)

Re: SX50 HS porting thread
« Reply #226 on: 01 / April / 2013, 18:51:33 »
Updated the latest beta versions to include yukia10 's recent changes. 

Latest custom builds (v3) here >

link > sx50hs firmware 1.00B

link > sx50hs firmware 1.00C

Note : SD Card Lock Method only for booting.
Ported :   A1200    SD940   G10    Powershot N    G16

*

Offline Hmm

  • *
  • 20
Re: SX50 HS porting thread
« Reply #227 on: 03 / April / 2013, 02:13:51 »
Wow! I am so impressed with all the work you all are doing!!! Keep up the fantastic work, it's all appreciated.

Just a quick question, and I apologize for threadcrapping. Once the official version will be released, will there be a readme file or some other file that shows what the additions or improvements are?  I took a quick peak on the SX40 and I couldnt find an FAQ or readme file for the features for that build.


*

Offline lapser

  • *****
  • 1093
Re: SX50 HS porting thread
« Reply #228 on: 03 / April / 2013, 02:41:07 »
Once the official version will be released, will there be a readme file or some other file that shows what the additions or improvements are?
https://trac.assembla.com/chdk/timeline
This link shows the various patches that have been applied to CHDK in general. Most of the work of porting a new camera is trying to get existing CHDK features to work, not really adding new features.

I guess the question is what else needs to be done or tested on the SX50?

EOS-M3_120f / SX50_100b / SX260_101a / G1X_100g / D20_100b
https://www.youtube.com/user/DrLapser/videos

*

Offline Hmm

  • *
  • 20
Re: SX50 HS porting thread
« Reply #229 on: 03 / April / 2013, 21:28:05 »
Thanks Lapster for setting me straight. I guess my thinking is that any feature not currently included in the stock SX50 firmware is a new feature, lol.

I wait anxiously for the final result. For me, one big feature of the CHDK is extending the longer shutter speeds to 64 seconds.

 

Related Topics