summaryrefslogtreecommitdiff
path: root/src/cam/sdl_texture_yuv.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_yuv.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_yuv.cpp')
-rw-r--r--src/cam/sdl_texture_yuv.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cam/sdl_texture_yuv.cpp b/src/cam/sdl_texture_yuv.cpp
index aa424559..b29c3b93 100644
--- a/src/cam/sdl_texture_yuv.cpp
+++ b/src/cam/sdl_texture_yuv.cpp
@@ -17,8 +17,8 @@ SDLTextureNV12::SDLTextureNV12(const SDL_Rect &rect, unsigned int stride)
void SDLTextureNV12::update(const std::vector<libcamera::Span<const uint8_t>> &data)
{
- SDL_UpdateNVTexture(ptr_, &rect_, data[0].data(), pitch_,
- data[1].data(), pitch_);
+ SDL_UpdateNVTexture(ptr_, &rect_, 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(const std::vector<libcamera::Span<const uint8_t>> &data)
{
- SDL_UpdateTexture(ptr_, &rect_, data[0].data(), pitch_);
+ SDL_UpdateTexture(ptr_, &rect_, data[0].data(), stride_);
}