tests/testdisplay.c: Add a option '-r'.
PATCH 1/1 tests/testdisplay.c: Add a option '-r'.
With the option '-r', the testdisplay could paint a 2-D bar code(QR bar code) on the screen. The word "pass" is hiden in the bar code image.
Further more, with this option, testdisplay will wait until a system signal 'SIGUSR1' coming after each mode setting. This function is for another program to control testdisplay.
lib/drmtest.c +1 -0
@@ -774,5 +774,6 @@ void kmstest_dump_mode(drmModeModeInfo *mode) mode->flags, mode->type, mode->clock); +fflush (stdout); }
tests/pass.png new file binary +0 -0
tests/testdisplay.c +90 -3
161 lines not on this page · raw message
Signature · 1 line
1.7.6.4
Daniel Vetter
AppliedQuoted 4 lines · Yi Sun
With the option '-r', the testdisplay could paint a 2-D bar code(QR bar code) on the screen. The word "pass" is hiden in the bar code image.
Further more, with this option, testdisplay will wait until a system signal 'SIGUSR1' coming after each mode setting. This function is for another program to control testdisplay.Signed-off-by Yi Sun <[email protected]>
Applied, thanks for the patch. Note that your patch introduce a warning (missing static on a function definition), I've fixed that up. -Daniel
Signature · 3 lines
Daniel Vetter Mail: [email protected] Mobile: +41 (0)79 365 57 48
Okay, thank you Daniel.
Thanks
--Yi Sun
Quoted 23 lines
-----Original Message-----
From: Daniel Vetter [mailto:[email protected]] On Behalf Of Daniel Vetter
Sent: Thursday, July 26, 2012 9:02 PM
To: Sun, Yi
Cc: [email protected]; Jin, Gordon; [email protected]
Subject: Re: [PATCH]tests/testdisplay.c: Add a option '-r'.Quoted 1 line · Yi Sun
With the option '-r', the testdisplay could paint a 2-D bar code(QR bar code)
on the screen. The word "pass" is hiden in the bar code image.
Quoted 1 line
Further more, with this option, testdisplay will wait until a system signal
'SIGUSR1' coming after each mode setting. This function is for another program to control testdisplay.
Quoted 2 lines
Signed-off-by Yi Sun <[email protected]>Applied, thanks for the patch. Note that your patch introduce a warning (missing static on a function definition), I've fixed that up. -Daniel
--
Daniel Vetter
Mail: [email protected]
Mobile: +41 (0)79 365 57 48