Skip to contentSkip to conversation

tests/testdisplay.c: Add a option '-r'.

PATCH Applied Yi Sun 2 participants 3 messages Jul 26, 2012 Library code

lore
Share & tools
lore

Yi Sun

author
#0 lore raw

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
index 34db126..2101f6a 100644
@@ -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
new file mode 100644
index 0000000000000000000000000000000000000000..5928d5ca109b7db33640851ceb352f9da742ff7b
GIT binary patch
tests/testdisplay.c +90 -3

161 lines not on this page · raw message

Signature · 1 line
1.7.6.4
#1 lore raw
Quoted 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.

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
author
#2 lore raw

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

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