diff options
author | Barnabás Pőcze <barnabas.pocze@ideasonboard.com> | 2025-04-25 12:35:15 +0200 |
---|---|---|
committer | Barnabás Pőcze <barnabas.pocze@ideasonboard.com> | 2025-05-15 17:41:36 +0200 |
commit | 41b0997114c1e1c09d001cb6241d5ce861e21e61 (patch) | |
tree | f4a95d8934b58c2af5d49c28bbd99c48c33e40a3 | |
parent | 02f60006cf903cbe74c95ba0b612c5cc11045787 (diff) |
apps: cam: sdl_texture: Drop `&rect_` from `SDL_Update{NV,}Texture()` call
If the entire texture is to be updated, there is no need to specify
the target area explicitly.
Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r-- | src/apps/cam/sdl_texture_yuv.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/apps/cam/sdl_texture_yuv.cpp b/src/apps/cam/sdl_texture_yuv.cpp index 80a5ec05..7e2ce3f4 100644 --- a/src/apps/cam/sdl_texture_yuv.cpp +++ b/src/apps/cam/sdl_texture_yuv.cpp @@ -17,7 +17,7 @@ SDLTextureNV12::SDLTextureNV12(const SDL_Rect &rect, unsigned int stride) void SDLTextureNV12::update(libcamera::Span<const libcamera::Span<const uint8_t>> data) { - SDL_UpdateNVTexture(ptr_, &rect_, data[0].data(), stride_, + SDL_UpdateNVTexture(ptr_, nullptr, data[0].data(), stride_, data[1].data(), stride_); } #endif @@ -29,5 +29,5 @@ SDLTextureYUYV::SDLTextureYUYV(const SDL_Rect &rect, unsigned int stride) void SDLTextureYUYV::update(libcamera::Span<const libcamera::Span<const uint8_t>> data) { - SDL_UpdateTexture(ptr_, &rect_, data[0].data(), stride_); + SDL_UpdateTexture(ptr_, nullptr, data[0].data(), stride_); } |