diff options
author | Jacopo Mondi <jacopo@jmondi.org> | 2022-11-28 10:23:21 +0100 |
---|---|---|
committer | Jacopo Mondi <jacopo@jmondi.org> | 2022-12-09 08:57:41 +0100 |
commit | 5d6dc03bb310a4618e56579eea510d38bd15c830 (patch) | |
tree | 6ec441e9ec62b7aa140311bcb50b7cca39e819cc /src | |
parent | 9361cd1ffa15a14fd808d8e865658d2e88f2ca04 (diff) |
[HACK] cam: sdl: Software rotate the rendered image
As long as the sensor and the ISP do not support flips/transpose,
software-rotate the image at display time using SDL2.
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/apps/cam/sdl_sink.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/apps/cam/sdl_sink.cpp b/src/apps/cam/sdl_sink.cpp index a2f4abc1..933decfc 100644 --- a/src/apps/cam/sdl_sink.cpp +++ b/src/apps/cam/sdl_sink.cpp @@ -210,6 +210,6 @@ void SDLSink::renderBuffer(FrameBuffer *buffer) texture_->update(planes); SDL_RenderClear(renderer_); - SDL_RenderCopy(renderer_, texture_->get(), nullptr, nullptr); + SDL_RenderCopyEx(renderer_, texture_->get(), nullptr, nullptr, 90.0, nullptr, SDL_FLIP_NONE); SDL_RenderPresent(renderer_); } |