From 1590e9b2b8c1b8b120a9b0dd6a53f4ef1298b2a0 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 8 Aug 2022 18:35:43 +0300 Subject: cam: sdl_texture: Rename 'pitch' to 'stride' The libcamera public API uses 'stride' to refer to the line stride. Rename the SDLTexture::pitch_ member variable for consistency. Signed-off-by: Laurent Pinchart Reviewed-by: Eric Curtin Reviewed-by: Jacopo Mondi --- src/cam/sdl_texture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cam/sdl_texture.cpp') diff --git a/src/cam/sdl_texture.cpp b/src/cam/sdl_texture.cpp index 02a8ff28..e9040bc5 100644 --- a/src/cam/sdl_texture.cpp +++ b/src/cam/sdl_texture.cpp @@ -10,8 +10,8 @@ #include SDLTexture::SDLTexture(const SDL_Rect &rect, uint32_t pixelFormat, - const int pitch) - : ptr_(nullptr), rect_(rect), pixelFormat_(pixelFormat), pitch_(pitch) + const int stride) + : ptr_(nullptr), rect_(rect), pixelFormat_(pixelFormat), stride_(stride) { } -- cgit v1.2.1