TX1 Porting Completed - page 2 - General Discussion and Assistance - CHDK Forum

TX1 Porting Completed

  • 91 Replies
  • 36381 Views
*

Offline GrAnd

  • ****
  • 916
  • [A610, S3IS]
    • CHDK
Re: TX1 Porting Completed
« Reply #10 on: 22 / April / 2008, 08:02:12 »
Advertisements
Thanks.
CHDK Developer.

Re: TX1 Porting Completed
« Reply #11 on: 22 / April / 2008, 08:35:28 »
Just one other thing  .....

In the core code, wherever 'screen_width' is used it has to be replaced with 'screen_width-120' .

I tried simply replacing the definition of it in gui_draw.c but that caused certain displays to move up two lines.
For now, I have manually changed occurences of it.

I am just looking at zebra mode as that is not correct, maybe viewport_height needs changing (viewport_width is never used).



David

*

Offline GrAnd

  • ****
  • 916
  • [A610, S3IS]
    • CHDK
Re: TX1 Porting Completed
« Reply #12 on: 22 / April / 2008, 11:52:42 »
Hm... It does not compile with trunk version.
CHDK Developer.

Re: TX1 Porting Completed
« Reply #13 on: 22 / April / 2008, 12:28:37 »
Hm... It does not compile with trunk version.


What does it complain of ?

I do not really understand the top-level Makefile.

Do you need anything from my 'Tools' folder ?

Re: TX1 Porting Completed
« Reply #14 on: 22 / April / 2008, 12:34:14 »
In capt_seq.c,  I still jump to 'tv_override'  rather than the exposure parameters function (which I do not use).

Re: TX1 Porting Completed
« Reply #15 on: 22 / April / 2008, 12:39:38 »
Also,   SDM uses the original definition of get_usb_power() , not the later Fingalo version.

*

Offline GrAnd

  • ****
  • 916
  • [A610, S3IS]
    • CHDK
Re: TX1 Porting Completed
« Reply #16 on: 22 / April / 2008, 13:01:11 »
What does it complain of ?

It wants the "SHORTCUT_MF_TOGGLE" to be defined in gui.c:1573
CHDK Developer.

Re: TX1 Porting Completed
« Reply #17 on: 22 / April / 2008, 13:25:04 »
It wants the "SHORTCUT_MF_TOGGLE" to be defined in gui.c:1573

That does not affect my build but in camera.h for the TX1 you should add :

#undef  CAM_HAS_ERASE_BUTTON

*

Offline GrAnd

  • ****
  • 916
  • [A610, S3IS]
    • CHDK
Re: TX1 Porting Completed
« Reply #18 on: 22 / April / 2008, 13:42:25 »
In the core code, wherever 'screen_width' is used it has to be replaced with 'screen_width-120' .

I tried simply replacing the definition of it in gui_draw.c but that caused certain displays to move up two lines.
For now, I have manually changed occurrences of it.

Hmm... Why do you suggest decreasing 'screen_width' by 120 everywhere if you increased that value by 120 in vid_get_bitmap_width() function? I do not understand.
CHDK Developer.

Re: TX1 Porting Completed
« Reply #19 on: 22 / April / 2008, 14:00:31 »
Why do you suggest decreasing 'screen_width' by 120 everywhere if you increased that value by 120 in vid_get_bitmap_width()

i will have to check my emails, but the bitmap width and height obtained from the BIN dump are 480 x 271 (yes, 271).

We could not get the camera to boot if it was 360x240.

When it would boot, the SDM splashscreen was 'interlaced' and in three vertical columns.
That was solved by subtracting 120 from the 480 screen_width before doing any operations (such as screen_width>>1).

I am not sure when when the code requires 480 and when it requires 360.

In particular, the zebra is incorrect, I am looking at that now.

Anyway, as long as it compiles someone can test what the various displays look like.


David

 

Related Topics


SimplePortal © 2008-2014, SimplePortal