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.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cam/sdl_texture.h') diff --git a/src/cam/sdl_texture.h b/src/cam/sdl_texture.h index e4d3fb2b..6ccd85ea 100644 --- a/src/cam/sdl_texture.h +++ b/src/cam/sdl_texture.h @@ -16,7 +16,7 @@ class SDLTexture { public: - SDLTexture(const SDL_Rect &rect, uint32_t pixelFormat, const int pitch); + SDLTexture(const SDL_Rect &rect, uint32_t pixelFormat, const int stride); virtual ~SDLTexture(); int create(SDL_Renderer *renderer); virtual void update(const std::vector> &data) = 0; @@ -26,5 +26,5 @@ protected: SDL_Texture *ptr_; const SDL_Rect rect_; const uint32_t pixelFormat_; - const int pitch_; + const int stride_; }; -- cgit v1.2.1