BRT Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the Bridgetek Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ Bridgetek Support

Please refer to our website for detailed information on all our products - Bridgetek - Bridging Technology

Author Topic: Drawing color issues  (Read 292 times)

jctibor

  • Newbie
  • *
  • Posts: 4
    • View Profile
Drawing color issues
« on: September 06, 2024, 12:32:07 PM »

Hello BRT comminity,

first of all. let me introduce myself, i am embedded developer of power inverters etc, i am really newbee in diplays developlment. So i am not able to describe this issue, i think that is has some exact describtion. Therefore it is hard to solve this issue. I will show you on the pictures:




  • How is this issue called in display terminology?
  • How to solve this issue?

This my first example project, this issue comes when i rotate the display view and i solve it by changing PCLK freq (probably was walkaround). In second ones, it doesnt works. Cau you help me please?

My HW:
Riverdi RVT101HVBNWC00-B with EVE4(BT817Q)
Riverdi STM32 dev. board

Lib:
EVE asset builder SDK (from sample app)

Best regards

« Last Edit: September 06, 2024, 12:57:19 PM by jctibor »
Logged

BRT Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 776
    • View Profile
Re: Drawing color issues
« Reply #1 on: September 11, 2024, 03:10:39 PM »

Hello,

Welcome to the BRT Community,

Could you advise which display settings you use with your display?

Also, could you advise which conversion settings you use in the EVE Asset Builder and which command you use to set up and play your video,

Best Regards, BRT Community

Logged

jctibor

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Drawing color issues
« Reply #2 on: September 12, 2024, 08:27:46 AM »

Hello,

thank you for reply. i am not sure if it is related with EAB video settings, because as you can see, this effect is also apparent on touch screen calibration dots, which are not user accessible and are (i assume) built in in eve chip.

(video settings in attachement, it is sample shot on EAB examples)

This is code for playing video, it is borrowed from https://github.com/Bridgetek/EveApps/blob/master/SampleApp/Video/Src/Video.c
Code: [Select]
void SAMAPP_Video_fromFlashFullScreen()
{
#if defined(EVE_FLASH_AVAILABLE) && defined(FT81X_ENABLE)// FT81X only
    const uint32_t flashSource = 260288;

    if (!FlashHelper_SwitchFullMode(s_pHalContext))
    {
        APP_ERR("SwitchFullMode failed");
        return;
    }
    Draw_Text(s_pHalContext, "Example for: Video display from Flash - full screen ");

    SAMAPP_INFO_START;
    EVE_CoCmd_flashSource(s_pHalContext, flashSource);
    EVE_CoCmd_playVideo(s_pHalContext, OPT_FULLSCREEN | OPT_FLASH | OPT_SOUND | OPT_NOTEAR);

    EVE_Cmd_waitFlush(s_pHalContext); //Video plays after this
    EVE_CoCmd_nop(s_pHalContext);
    EVE_Cmd_waitFlush(s_pHalContext);
    SAMAPP_DELAY_NEXT;
#endif
}

The display settings are as follows:
Code: [Select]
else if (display == EVE_DISPLAY_WXGA_1280x800_65Hz && freq == 72000000)
{
/*
BT817 known values:
REG_FREQUENCY: 72MHz
Resolution: 1280x800
Refresh rate: 65Hz
*/
#if EVE_HARDCODED_DISPLAY_TIMINGS
if (supportedResolution)
{
config->Width = 1280;
config->Height = 800;
config->HCycle = 1411;
config->HOffset = 120;
config->HSync0 = 0;
config->HSync1 = 100;
config->VCycle = 815;
config->VOffset = 14;
config->VSync0 = 0;
config->VSync1 = 10;
config->PCLK = 1;
config->PCLKFreq = 0x8a1;
}
#endif
config->CSpread = 0;
config->Dither = 0;
config->PCLKPol = 0;
config->OutBitsR = 0;
config->OutBitsG = 0;
config->OutBitsB = 0;
}

PCLKFreq may not be the original value, because as i mentioned in the original post, first time i observe this issue, it helps changing this freq.

If you need more info, please let me know.
Did you ever seen this phenomena on BT817?
Thank you very much.
Regards,
Jiri
« Last Edit: September 12, 2024, 08:30:45 AM by jctibor »
Logged

jctibor

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Drawing color issues
« Reply #3 on: September 12, 2024, 09:42:38 AM »

I SOLVE IT !!

It was caused by "config->PCLKPol = 0;" .. changing it to config->PCLKPol = 1;, it dissappear.

Thank you!
Logged

BRT Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 776
    • View Profile
Re: Drawing color issues
« Reply #4 on: September 16, 2024, 11:44:22 AM »

Hi,

Thanks for letting us know and great to hear that you have resolved the issue,

Best Regards, BRT Community
Logged