Skip to content

Export feature and large ellipses support

Geert Uytterhoeven linux-fbdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest17 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17Add support for exporting virtual test imagesexport.c fb.c include/export.h +4 more+233 -90 replies
2/17tests: Print test description in debug modetests.c+1 -10 replies
3/17Test002: Fix test descriptiontests/test002.c+1 -10 replies
4/17drawops: Extract do_circle()drawops/generic.c+18 -330 replies
5/17drawops: Use "y == 0" in draw_ellipse_points()drawops/generic.c+1 -10 replies
6/17drawops: Remove always-false check in generic_fill_ellipse()drawops/generic.c+0 -20 replies
7/17drawops: Refactor generic_draw_ellipse()drawops/generic.c+12 -50 replies
8/17drawops: Return early in generic_{draw,fill}_ellipse()drawops/generic.c+162 -1620 replies
9/17drawops: Extract do_ellipse()drawops/generic.c+28 -1040 replies
10/17drawops: Make de in do_circle() unsigneddrawops/generic.c+1 -10 replies
11/17drawops: Make dT1 and dS1 in do_ellipse() unsigneddrawops/generic.c+4 -40 replies
12/17drawops: Fix crash when drawing large ellipsesdrawops/generic.c include/types.h+116 -143 replies
13/17tests: Clear frame buffer before each testinclude/fb.h tests.c+3 -00 replies
14/17Make variables that are never negative unsignedconsole.c fb.c pixmap.c +6 more+11 -110 replies
15/17test013: Fix off-by-one error in maximum circle calculationtests/test013.c+2 -20 replies
16/17visops: Mark fall-through switch casevisops/pseudocolor.c+1 -00 replies
17/17util: Use __attribute__include/util.h+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH fbtest 00/17] Export feature and large ellipses support

Hi all,

Recently, I ran into a segmentation fault when running test002 ("Draw a grid and some ellipses") on a system with a display resolution of 2560x1440. This turned out to be due to a 32-bit overflow in the ellipse drawing routines.

This patch series:
- Adds support for operating on a virtual buffer in RAM instead of on a real frame buffer device, and exporting the result as a PPM image, which is useful for e.g. testing drawing algorithms on screen sizes not supported by your hardware,
- Fixes the drawing of ellipses on large displays,
- Contains some small fixe and improvements.

I intend to apply these to
https://git.kernel.org/pub/scm/linux/kernel/git/geert/fbtest.git/.

Thanks for your comments!

Geert Uytterhoeven (17):
Add support for exporting virtual test images
tests: Print test description in debug mode
Test002: Fix test description
drawops: Extract do_circle()
drawops: Use "y == 0" in draw_ellipse_points()
drawops: Remove always-false check in generic_fill_ellipse()
drawops: Refactor generic_draw_ellipse()
drawops: Return early in generic_{draw,fill}_ellipse()
drawops: Extract do_ellipse()
drawops: Make de in do_circle() unsigned
drawops: Make dT1 and dS1 in do_ellipse() unsigned
drawops: Fix crash when drawing large ellipses
tests: Clear frame buffer before each test
Make variables that are never negative unsigned
test013: Fix off-by-one error in maximum circle calculation
visops: Mark fall-through switch case
util: Use __attribute__

 console.c            |   2 +-
 drawops/generic.c    | 427 ++++++++++++++++++++++---------------------
 export.c             | 176 ++++++++++++++++++
 fb.c                 |  11 +-
 include/export.h     |  14 ++
 include/fb.h         |   1 +
 include/types.h      |   3 +
 include/util.h       |   3 +-
 main.c               |  33 +++-
 pixmap.c             |   6 +-
 tests.c              |   7 +-
 tests/test002.c      |   2 +-
 tests/test004.c      |   2 +-
 tests/test006.c      |   2 +-
 tests/test007.c      |   2 +-
 tests/test009.c      |   2 +-
 tests/test010.c      |   2 +-
 tests/test013.c      |   4 +-
 util.c               |   6 +
 visops/pseudocolor.c |   1 +
 visual.c             |   2 +-
 21 files changed, 476 insertions(+), 232 deletions(-)
 create mode 100644 export.c
 create mode 100644 include/export.h
Signature · 12 lines
2.34.1

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds