summaryrefslogtreecommitdiff
path: root/src/cam/sdl_texture.cpp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-08-08 18:35:43 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-08-09 21:15:47 +0300
commit1590e9b2b8c1b8b120a9b0dd6a53f4ef1298b2a0 (patch)
tree7e443384dc608d39bb3ef7539803185e8342ad6b /src/cam/sdl_texture.cpp
parent768f1138e9111975959057a621a99518ab78981f (diff)
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 <laurent.pinchart@ideasonboard.com> Reviewed-by: Eric Curtin <ecurtin@redhat.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/cam/sdl_texture.cpp')
-rw-r--r--src/cam/sdl_texture.cpp4
1 files changed, 2 insertions, 2 deletions
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 <iostream>
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)
{
}