AnsweredAssumed Answered

IMX6 Overlay display pictures make screen flicker

Question asked by Shawn Bee on May 15, 2017

I executed a Qt5 Application on fb0, and I wanted to display many pictures one by one on middle of screen,

So I set

fb_var.xres = 608;
fb_var.yres = 336;

retval = ioctl(fd, FBIOPUT_VSCREENINFO, &fb_var);

pos.x = 200;
pos.y = 200;
retval = ioctl(fd, MXCFB_SET_OVERLAY_POS, &pos);

gbl_alpha.enable = 1;
gbl_alpha.alpha = 0xff;
ioctl(fd, MXCFB_SET_GBL_ALPHA, &gbl_alpha);

 

Two situation will make screen flicker :

1.  Open overlay and close overlay frequently, the Screen will flicker

2.  Open overlay and close overlay, Open CSI0 Video and close video(fb.flags = V4L2_FBUF_FLAG_OVERLAY;), repeat ... the Screen will flicker

 

Could you plz tell me how to solve this problem ?

 

Platform info as below:

 

Base on IMX6QD fsl-L3.14.28_1.0.0-ga Code

MACHINE=imx6qsabresd source fsl-setup-release.sh –b build-fb-qt –e fb

bitbake fsl-image-qt5


local.conf:

MACHINE ??= 'imx6qsabresd'
DISTRO ?= 'poky'
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES = "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS = "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
ABORT,${TMPDIR},100M,1K \
ABORT,${DL_DIR},100M,1K \
ABORT,${SSTATE_DIR},100M,1K"
PACKAGECONFIG_append_pn-qemu-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
ASSUME_PROVIDED += "libsdl-native"
CONF_VERSION = "1"
BB_NUMBER_THREADS = '8'
PARALLEL_MAKE = '-j 8'
DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = "1"
PREFERRED_PROVIDER_virtual/mesa = ""
DISTRO_FEATURES_remove = "x11 wayland directfb "

 

 

Here is the TestCase and TestCode, it easy to reproducing

Original Attachment has been moved to: TestCase.tar.bz2

Outcomes