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

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

Message

Show Liu May 26, 2020, 7:52 a.m. UTC
This patch is to render the YUV(NV formats family) frame by OpenGL shader.
I rework viewfinder class and give viewfinder handle abstract class as interface 
and make it able to handle viewfinder and viewfinderGL both.

I tested on rockpi4b with kernel 5.7rc4+imx219 camera module.

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

 src/qcam/fshader.h        |  86 ++++++++++
 src/qcam/main.cpp         |   2 +
 src/qcam/main_window.cpp  |  19 ++-
 src/qcam/main_window.h    |   3 +-
 src/qcam/meson.build      |   2 +
 src/qcam/viewfinder.cpp   |  18 +-
 src/qcam/viewfinder.h     |  23 ++-
 src/qcam/viewfinderGL.cpp | 346 ++++++++++++++++++++++++++++++++++++++
 src/qcam/viewfinderGL.h   | 102 +++++++++++
 9 files changed, 587 insertions(+), 14 deletions(-)
 create mode 100644 src/qcam/fshader.h
 create mode 100644 src/qcam/viewfinderGL.cpp
 create mode 100644 src/qcam/viewfinderGL.h

Comments

Show Liu May 26, 2020, 8:31 a.m. UTC | #1
Hi Laurent,

Sorry I forgot to have a brief description about what's the difference with
the v1.
Mainly,
1. To have a viewfinder handle interface to handle viewfinder and
viewfinderGL both.
2. able to select different NV formats family by the YUV format.
3. and some changes according to the v1's review comments.

BR,
Show

On Tue, May 26, 2020 at 3:52 PM Show Liu <show.liu@linaro.org> wrote:

> This patch is to render the YUV(NV formats family) frame by OpenGL shader.
> I rework viewfinder class and give viewfinder handle abstract class as
> interface
> and make it able to handle viewfinder and viewfinderGL both.
>
I tested on rockpi4b with kernel 5.7rc4+imx219 camera module.
>
> Show Liu (1):
>   qcam: Render YUV formats frame by OpenGL shader
>
>  src/qcam/fshader.h        |  86 ++++++++++
>  src/qcam/main.cpp         |   2 +
>  src/qcam/main_window.cpp  |  19 ++-
>  src/qcam/main_window.h    |   3 +-
>  src/qcam/meson.build      |   2 +
>  src/qcam/viewfinder.cpp   |  18 +-
>  src/qcam/viewfinder.h     |  23 ++-
>  src/qcam/viewfinderGL.cpp | 346 ++++++++++++++++++++++++++++++++++++++
>  src/qcam/viewfinderGL.h   | 102 +++++++++++
>  9 files changed, 587 insertions(+), 14 deletions(-)
>  create mode 100644 src/qcam/fshader.h
>  create mode 100644 src/qcam/viewfinderGL.cpp
>  create mode 100644 src/qcam/viewfinderGL.h
>
> --
> 2.20.1
>
>