summaryrefslogtreecommitdiff
path: root/src/cam/sdl_texture.h
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.h
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.h')
-rw-r--r--src/cam/sdl_texture.h4
1 files changed, 2 insertions, 2 deletions
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<libcamera::Span<const uint8_t>> &data) = 0;
@@ -26,5 +26,5 @@ protected:
SDL_Texture *ptr_;
const SDL_Rect rect_;
const uint32_t pixelFormat_;
- const int pitch_;
+ const int stride_;
};