diff options
| author | 2025-06-23 17:49:11 -0400 | |
|---|---|---|
| committer | 2025-06-23 17:49:11 -0400 | |
| commit | e0fcbf0910b52a6e66eb733a2850ec58a53cf0e3 (patch) | |
| tree | a24ff2b9313263666d121536064e01436b480571 /subprojects/packagefiles/libplacebo | |
| parent | e9475ce94ba69bd437d8cf0cf3f78062be928568 (diff) | |
| download | camu-e0fcbf0910b52a6e66eb733a2850ec58a53cf0e3.tar.gz camu-e0fcbf0910b52a6e66eb733a2850ec58a53cf0e3.tar.bz2 camu-e0fcbf0910b52a6e66eb733a2850ec58a53cf0e3.zip | |
Improve FFmpeg hwaccel fallback, VR emulation
- Optimize sink seeking with single video frame.
- Small cleanups.
Signed-off-by: Andrew Opalach <andrew@akon.city>
Diffstat (limited to 'subprojects/packagefiles/libplacebo')
| -rw-r--r-- | subprojects/packagefiles/libplacebo/oversample_testing.diff | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/subprojects/packagefiles/libplacebo/oversample_testing.diff b/subprojects/packagefiles/libplacebo/oversample_testing.diff new file mode 100644 index 0000000..2993809 --- /dev/null +++ b/subprojects/packagefiles/libplacebo/oversample_testing.diff @@ -0,0 +1,18 @@ +diff --git a/src/renderer.c b/src/renderer.c +index 1f67bc3..7df525e 100644 +--- a/src/renderer.c ++++ b/src/renderer.c +@@ -1761,6 +1761,13 @@ static bool pass_read_image(struct pass_state *pass) + ref_rounded.y0 = truncf(ref_rc.y0); + ref_rounded.x1 = ref_rounded.x0 + roundf(pl_rect_w(ref_rc)); + ref_rounded.y1 = ref_rounded.y0 + roundf(pl_rect_h(ref_rc)); ++ // Oversample to avoid distortion when really zoomed in. ++ // @TODO: Verbosely log offset/base/stretch/scale to try and understand what's happening here. ++ //const float oversample = 3; ++ //ref_rounded.x0 -= oversample; ++ //ref_rounded.y0 -= oversample; ++ //ref_rounded.x1 += oversample; ++ //ref_rounded.y1 += oversample; + + PL_TRACE(rr, "Rounded reference rect: {%d %d %d %d}", + ref_rounded.x0, ref_rounded.y0, |