[libcamera-devel,v3,0/1] qcam: Render YUV formats frame by OpenGL shader
mbox series

Message ID 20200624073705.14737-1-show.liu@linaro.org
Headers show
Series
  • qcam: Render YUV formats frame by OpenGL shader
Related show

Message

Show Liu June 24, 2020, 7:37 a.m. UTC
Hi,

  I would like to share my work for qcam utility. 
This patch is to render the NV family YUV formats by OpenGL shader.
It's mainly improve the format convert performence and use the GPU to do the rendering stuff when the camera stream format is NV family YUV frame.
I refine the fragment shader and got better pixel color than previous I posted.
I tested on ROCK PI 4B with imx219 camera module and Manjaro distribution with 5.7.0 kernel.
To enable GPU support on Rock Pi 4B, Kernel enable Panfrost support and require masa 20.2.0 installed.


Show Liu (1):
  qcam: Render YUV formats frame by OpenGL shader

 src/qcam/main.cpp         |   2 +
 src/qcam/main_window.cpp  |  19 ++-
 src/qcam/main_window.h    |   3 +-
 src/qcam/meson.build      |   2 +
 src/qcam/shader.h         | 104 ++++++++++++
 src/qcam/viewfinder.cpp   |  18 +-
 src/qcam/viewfinder.h     |  23 ++-
 src/qcam/viewfinderGL.cpp | 335 ++++++++++++++++++++++++++++++++++++++
 src/qcam/viewfinderGL.h   | 101 ++++++++++++
 9 files changed, 593 insertions(+), 14 deletions(-)
 create mode 100644 src/qcam/shader.h
 create mode 100644 src/qcam/viewfinderGL.cpp
 create mode 100644 src/qcam/viewfinderGL.h