IXUS 105 / SD1300 IS porting thread - page 77 - DryOS Development - CHDK Forum supplierdeeply

IXUS 105 / SD1300 IS porting thread

  • 763 Replies
  • 127234 Views
*

Offline koshy

  • *****
  • 979
Re: IXUS 105 / SD1300 IS porting thread
« Reply #760 on: 15 / November / 2019, 12:28:20 »
Advertisements
Quote
One more thing, I figured I have a red, let's enable a zebra... Zebra floods half the screen with rubbish when it kicks in, can we fix that?
Try removing these lines from platform/ixus105_sd1300/lib.c:
Code: [Select]
// Y multiplier for cameras with 480 pixel high viewports (CHDK code assumes 240)
int vid_get_viewport_yscale() {
return 2;
}
Did that, problem unchanged.

*

Offline srsa_4c

  • ******
  • 4031
Re: IXUS 105 / SD1300 IS porting thread
« Reply #761 on: 15 / November / 2019, 13:33:50 »
Did that, problem unchanged.
Adding that function to the a3200 port breaks zebra, exactly like on your picture. Make clean, rebuild and make sure you update diskboot/ps.fi2 on the card.

*

Offline koshy

  • *****
  • 979
Re: IXUS 105 / SD1300 IS porting thread
« Reply #762 on: 15 / November / 2019, 19:02:18 »
Did that, problem unchanged.
Adding that function to the a3200 port breaks zebra, exactly like on your picture. Make clean, rebuild and make sure you update diskboot/ps.fi2 on the card.
Ok, I was pretty sure I had done it as needed but still; stuff happens. So I downloaded a fresh trunk, built it, copied it on a fresh SD card, it did not have my palette alterations, I put those in and removed this from lib.c cleaned, rebuilt, updated card, platte fixed again, zebra still broken...

*

Offline koshy

  • *****
  • 979
Re: IXUS 105 / SD1300 IS porting thread
« Reply #763 on: 15 / November / 2019, 19:22:07 »
Replacing the viewport width height functions that are currently

Code: [Select]
int vid_get_viewport_width()
{
    if ((mode_get() & MODE_MASK) == MODE_PLAY)
    {
        return 360;
    }
    extern int _GetVRAMHPixelsSize();
    return _GetVRAMHPixelsSize() >> 1;
}

long vid_get_viewport_height()
{
    if ((mode_get() & MODE_MASK) == MODE_PLAY)
    {
        return 240;
    }
    extern int _GetVRAMVPixelsSize();
    return _GetVRAMVPixelsSize() >> 1;
}

with fixed values as used in the i100 port fixes zebra.

Code: [Select]
int vid_get_viewport_width()
{
return 360;
}

long vid_get_viewport_height()
{
    return 240;
}

Adverse effects? Anything specific to test?

Note: what srsa_4c indicted to remove stayed out.
« Last Edit: 15 / November / 2019, 19:30:13 by koshy »


 

Related Topics