From 2c76ca85bc0638b6b110ad384e7b076737f34aa2 Mon Sep 17 00:00:00 2001 From: Yuki Kodama Date: Thu, 2 Sep 2021 23:46:33 +0900 Subject: [PATCH] update quaternion to fix upside down --- examples/capture/README.md | 2 +- examples/capture/src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/capture/README.md b/examples/capture/README.md index a2885bf..207332a 100644 --- a/examples/capture/README.md +++ b/examples/capture/README.md @@ -15,7 +15,7 @@ NOTE: You **need** to adjust the build features! Edit the `Cargo.toml` for the b - `-rate [FPS:U32]`/`--framerate [FPS:U32]`: Set FPS of capture to `[FPS:U32]`. Does nothing if -c flag is not set. Value Has to be a `u32` - `-4cc [FORMAT]`/`--format [FORMAT]`: Set format of capture to `[FORMAT]`. Does nothing if -c flag is not set. Possible values are MJPG and YUYV. Will be ignored if not one of those two. - `-b [BACKEND]`/`--backend [BACKEND]`: Set the capture backend to `[BACKEND]`. Pass AUTO for automatic backend, UVC to use UVC, V4L to use Video4Linux, GST to use Gstreamer, OPENCV to use OpenCV. -- `-d`/`--display`: Enable glium display. Note: This is currently bugged as it shows an upside down feed. It also does not respond to `x` button press from window. (FIXME) +- `-d`/`--display`: Enable glium display. Note: Does not respond to `x` button press from window. (FIXME) Example Usage: ``` diff --git a/examples/capture/src/main.rs b/examples/capture/src/main.rs index 540dc74..9e7962b 100644 --- a/examples/capture/src/main.rs +++ b/examples/capture/src/main.rs @@ -299,7 +299,7 @@ fn main() { let uniforms = uniform! { matrix: [ [1.0, 0.0, 0.0, 0.0], - [0.0, 1.0, 0.0, 0.0], + [0.0, -1.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0f32] ],