[libcamera-devel,0/4] cam: Add support for NV12 in the SDL sink
mbox series

Message ID 20220807021718.9789-1-laurent.pinchart@ideasonboard.com
Headers show
Series
  • cam: Add support for NV12 in the SDL sink
Related show

Message

Laurent Pinchart Aug. 7, 2022, 2:17 a.m. UTC
Hello,

This series adds NV12 support to the SDL sink in the cam application.
There's not much to say here apart from the fact I've successfully
tested this on a RK3399 board. Please see individual patches for
details.

Laurent Pinchart (4):
  cam: sdl_texture_yuyv: Make line stride configurable
  cam: Rename sdl_texture_yuyv.{cpp,h} to sdl_texture_yuv.{cpp,h}
  cam: sdl_sink: Support multi-planar formats
  cam: sdl_sink: Add NV12 texture support

 src/cam/meson.build          |  2 +-
 src/cam/sdl_sink.cpp         | 28 ++++++++++++++++++----------
 src/cam/sdl_texture.h        |  4 +++-
 src/cam/sdl_texture_mjpg.cpp |  4 ++--
 src/cam/sdl_texture_mjpg.h   |  2 +-
 src/cam/sdl_texture_yuv.cpp  | 31 +++++++++++++++++++++++++++++++
 src/cam/sdl_texture_yuv.h    | 24 ++++++++++++++++++++++++
 src/cam/sdl_texture_yuyv.cpp | 20 --------------------
 src/cam/sdl_texture_yuyv.h   | 17 -----------------
 9 files changed, 80 insertions(+), 52 deletions(-)
 create mode 100644 src/cam/sdl_texture_yuv.cpp
 create mode 100644 src/cam/sdl_texture_yuv.h
 delete mode 100644 src/cam/sdl_texture_yuyv.cpp
 delete mode 100644 src/cam/sdl_texture_yuyv.h


base-commit: 26c82ce13697e1af5950f4935ecff83c6453f351

Comments

Kieran Bingham Aug. 8, 2022, 9:43 a.m. UTC | #1
Quoting Laurent Pinchart via libcamera-devel (2022-08-07 03:17:14)
> Hello,
> 
> This series adds NV12 support to the SDL sink in the cam application.
> There's not much to say here apart from the fact I've successfully
> tested this on a RK3399 board. Please see individual patches for
> details.
> 

For IPU3 (SGo2)

Tested-by: Kieran Bingham <kieran.bingham@ideasonboard.com>

> Laurent Pinchart (4):
>   cam: sdl_texture_yuyv: Make line stride configurable
>   cam: Rename sdl_texture_yuyv.{cpp,h} to sdl_texture_yuv.{cpp,h}
>   cam: sdl_sink: Support multi-planar formats
>   cam: sdl_sink: Add NV12 texture support
> 
>  src/cam/meson.build          |  2 +-
>  src/cam/sdl_sink.cpp         | 28 ++++++++++++++++++----------
>  src/cam/sdl_texture.h        |  4 +++-
>  src/cam/sdl_texture_mjpg.cpp |  4 ++--
>  src/cam/sdl_texture_mjpg.h   |  2 +-
>  src/cam/sdl_texture_yuv.cpp  | 31 +++++++++++++++++++++++++++++++
>  src/cam/sdl_texture_yuv.h    | 24 ++++++++++++++++++++++++
>  src/cam/sdl_texture_yuyv.cpp | 20 --------------------
>  src/cam/sdl_texture_yuyv.h   | 17 -----------------
>  9 files changed, 80 insertions(+), 52 deletions(-)
>  create mode 100644 src/cam/sdl_texture_yuv.cpp
>  create mode 100644 src/cam/sdl_texture_yuv.h
>  delete mode 100644 src/cam/sdl_texture_yuyv.cpp
>  delete mode 100644 src/cam/sdl_texture_yuyv.h
> 
> 
> base-commit: 26c82ce13697e1af5950f4935ecff83c6453f351
> -- 
> Regards,
> 
> Laurent Pinchart
>