~/talk

Beautiful & Blazing-Fast Graphics with Qt

Talkat Qt Developer Days 2008 · 2008-10-14..10-15· [creative-coding]
speakerdeck:ariya
slides:none on file

Shows concrete recipes that convert static screenshots into glossy, perspective-reflected previews using QImage::mirror, QLinearGradient, setOpacity and QTransform for perspective; implements blur by direct pixel convolution and accelerates pixel loops with QImage::bits/scanLine and by transposing data to exploit CPU cache (transpose scanlines). Recommends ARGB32 premultiplied to avoid per-pixel multiplies, lazy loading + pre-rendered “surface” reflections to cut runtime work, a cheat scaling (fast then smooth) that is ~15× faster, and OpenGL via QGLWidget/GraphicsView; profiles with valgrind/callgrind or Shark.

AI-written summary · about

  1. 0:00Intro
  2. 0:14Ariya Hidayat
  3. 0:48Agenda
  4. 1:48In A Simpler Term...
  5. 2:13By Examples
  6. 2:32Blazing Fast. How?
  7. 2:46Avoid Slow Operations
  8. 3:06Don't Assume. Measure!
  9. 3:51Composing Screenshots
  10. 9:18More Natural Look
  11. 10:19Translucent Reflection
  12. 10:49QTransform: For Scaling
  13. 11:11QTransform: For Rotation
  14. 11:25QTransform: For Perspective Transformation
  15. 12:08Works (Almost) Everywhere
  16. 12:33Blurred Reflection
  17. 13:26Pixel Manipulation: QImage
  18. 14:49Faster: Skip setPixell & pixell
  19. 18:42Pixel Shifting
  20. 20:28Which Image Format?
  21. 22:40Alpha-Blending
  22. 23:48Careful with Depth
  23. 26:27Ray Casting
  24. 31:01DIY (Do It Yourself)
  25. 33:25Cache Friendly
  26. 36:13QPainter Composition Mode
  27. 37:07More Interesting Composition Modes
  28. 37:35Composition Mode: Multiply
  29. 38:02Composition Mode: Screen
  30. 39:03Bloom Effect
  31. 41:55From Colorful Image...
  32. 42:36Tint Effect
  33. 43:33Grayscale Effect
  34. 44:35About Color: HSL vs HSV
  35. 46:12HSV to HSL Conversion
  36. 47:57Widgets on Graphics View with OpenGL
  37. 48:53Avoid Path Operations
  38. 50:43Approximate It!
  39. 52:31Beware of Mouse Events
  40. 53:17Moving Items
  41. 54:13Avoid Anti-aliased Painting
  42. 55:02Thumbnail Preview
  43. 55:22Image Scaling
  44. 55:39800% Zoomed
  45. 56:04Let's Cheat
  46. 56:16Qt::Cheat Transformation
  47. 56:51Useful Widget Attributes
  48. 57:18Try to Minimize Overdraw
  49. 58:06Use Qt Falcon!
  50. 58:26OpenGL for Mortals
  51. 58:54Other Goodies
  52. 59:46Summary
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.