[libcamera-devel] [PATCH v3 0/1] qcam: Render YUV formats frame by OpenGL shader
Show Liu
show.liu at linaro.org
Wed Jun 24 09:37:04 CEST 2020
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
--
2.20.1
More information about the libcamera-devel
mailing list