[libcamera-devel,v9,0/4] Add SDL Sink
mbox series

Message ID 20220520190106.425386-1-ecurtin@redhat.com
Headers show
Series
  • Add SDL Sink
Related show

Message

Eric Curtin May 20, 2022, 7:01 p.m. UTC
Changes in v9:
- Added some todo's
- Changed includes, options, etc. to be in alphabetical order
- Fixed meson build file to identify SDL and SDL_image dependancies
  correctly
- Some commit message changes
- chrono usage changes
- clear events on EventLoop::exit
- Function rename from addFDEvent -> addFdEvent
- SDLTexture::destroy() is now moved to destructor
- Removed sdl prefix from various variables
- Added SPDX and copyright
- Made ptr protected and added get
- A NULL to nullptr change

Eric Curtin (4):
  cam: event_loop: Rename addEvent to addFdEvent
  cam: event_loop: Add timer events to event loop
  cam: sdl_sink: Add SDL sink with initial YUYV support
  cam: sdl_sink: Add MJPG support to SDL sink

 src/cam/camera_session.cpp   |   8 ++
 src/cam/drm.cpp              |   4 +-
 src/cam/event_loop.cpp       |  31 +++++-
 src/cam/event_loop.h         |  11 +-
 src/cam/main.cpp             |   4 +
 src/cam/main.h               |   1 +
 src/cam/meson.build          |  21 ++++
 src/cam/sdl_sink.cpp         | 202 +++++++++++++++++++++++++++++++++++
 src/cam/sdl_sink.h           |  49 +++++++++
 src/cam/sdl_texture.cpp      |  37 +++++++
 src/cam/sdl_texture.h        |  29 +++++
 src/cam/sdl_texture_mjpg.cpp |  25 +++++
 src/cam/sdl_texture_mjpg.h   |  17 +++
 src/cam/sdl_texture_yuyv.cpp |  20 ++++
 src/cam/sdl_texture_yuyv.h   |  17 +++
 15 files changed, 469 insertions(+), 7 deletions(-)
 create mode 100644 src/cam/sdl_sink.cpp
 create mode 100644 src/cam/sdl_sink.h
 create mode 100644 src/cam/sdl_texture.cpp
 create mode 100644 src/cam/sdl_texture.h
 create mode 100644 src/cam/sdl_texture_mjpg.cpp
 create mode 100644 src/cam/sdl_texture_mjpg.h
 create mode 100644 src/cam/sdl_texture_yuyv.cpp
 create mode 100644 src/cam/sdl_texture_yuyv.h

Comments

Laurent Pinchart May 23, 2022, 10:17 a.m. UTC | #1
Hi Eric,

Series pushed, thank you.

On Fri, May 20, 2022 at 08:01:02PM +0100, Eric Curtin wrote:
> Changes in v9:
> - Added some todo's
> - Changed includes, options, etc. to be in alphabetical order
> - Fixed meson build file to identify SDL and SDL_image dependancies
>   correctly
> - Some commit message changes
> - chrono usage changes
> - clear events on EventLoop::exit
> - Function rename from addFDEvent -> addFdEvent
> - SDLTexture::destroy() is now moved to destructor
> - Removed sdl prefix from various variables
> - Added SPDX and copyright
> - Made ptr protected and added get
> - A NULL to nullptr change
> 
> Eric Curtin (4):
>   cam: event_loop: Rename addEvent to addFdEvent
>   cam: event_loop: Add timer events to event loop
>   cam: sdl_sink: Add SDL sink with initial YUYV support
>   cam: sdl_sink: Add MJPG support to SDL sink
> 
>  src/cam/camera_session.cpp   |   8 ++
>  src/cam/drm.cpp              |   4 +-
>  src/cam/event_loop.cpp       |  31 +++++-
>  src/cam/event_loop.h         |  11 +-
>  src/cam/main.cpp             |   4 +
>  src/cam/main.h               |   1 +
>  src/cam/meson.build          |  21 ++++
>  src/cam/sdl_sink.cpp         | 202 +++++++++++++++++++++++++++++++++++
>  src/cam/sdl_sink.h           |  49 +++++++++
>  src/cam/sdl_texture.cpp      |  37 +++++++
>  src/cam/sdl_texture.h        |  29 +++++
>  src/cam/sdl_texture_mjpg.cpp |  25 +++++
>  src/cam/sdl_texture_mjpg.h   |  17 +++
>  src/cam/sdl_texture_yuyv.cpp |  20 ++++
>  src/cam/sdl_texture_yuyv.h   |  17 +++
>  15 files changed, 469 insertions(+), 7 deletions(-)
>  create mode 100644 src/cam/sdl_sink.cpp
>  create mode 100644 src/cam/sdl_sink.h
>  create mode 100644 src/cam/sdl_texture.cpp
>  create mode 100644 src/cam/sdl_texture.h
>  create mode 100644 src/cam/sdl_texture_mjpg.cpp
>  create mode 100644 src/cam/sdl_texture_mjpg.h
>  create mode 100644 src/cam/sdl_texture_yuyv.cpp
>  create mode 100644 src/cam/sdl_texture_yuyv.h