summaryrefslogtreecommitdiff
path: root/subprojects/packagefiles
diff options
context:
space:
mode:
Diffstat (limited to 'subprojects/packagefiles')
-rw-r--r--subprojects/packagefiles/ffmpeg-compat/meson_options.txt4
-rw-r--r--subprojects/packagefiles/ffmpeg-compat/meson_project.diff16
-rw-r--r--subprojects/packagefiles/ffmpeg/meson_options.txt4
-rw-r--r--subprojects/packagefiles/libplacebo/oversample_testing.diff18
4 files changed, 42 insertions, 0 deletions
diff --git a/subprojects/packagefiles/ffmpeg-compat/meson_options.txt b/subprojects/packagefiles/ffmpeg-compat/meson_options.txt
new file mode 100644
index 0000000..eb4b08b
--- /dev/null
+++ b/subprojects/packagefiles/ffmpeg-compat/meson_options.txt
@@ -0,0 +1,4 @@
+# Copy-paste from top-level project.
+option('codec-hwaccel', type: 'feature', value: 'disabled', yield: true)
+option('renderer-api', type: 'combo', choices: ['vulkan', 'dx11', 'gl', 'gl-rpi'], value: 'vulkan', yield: true)
+option('sink-only', type: 'boolean', value: false, yield: true)
diff --git a/subprojects/packagefiles/ffmpeg-compat/meson_project.diff b/subprojects/packagefiles/ffmpeg-compat/meson_project.diff
new file mode 100644
index 0000000..5646fe1
--- /dev/null
+++ b/subprojects/packagefiles/ffmpeg-compat/meson_project.diff
@@ -0,0 +1,16 @@
+--- meson.build 2025-05-25 19:32:01.080982098 -0400
++++ meson.build 2025-05-25 19:32:01.080982098 -0400
+@@ -1,4 +1,4 @@
+-project('ffmpeg', 'c', version: '7.1.1', meson_version: '>=0.57.0')
++project('ffmpeg', 'c', version: '3.4.14', meson_version: '>=0.57.0')
+
+ ffmpeg_version_string = meson.project_version()
+
+@@ -39,6 +39,7 @@
+ endif
+
+ if is_windows
++ extra_options += ['--extra-cflags=-D_WIN32_WINNT=0x0502'] # Windows Server 2003 with SP1, Windows XP with SP2.
+ if is_64bit
+ extra_options += ['--target-os=win64']
+ else
diff --git a/subprojects/packagefiles/ffmpeg/meson_options.txt b/subprojects/packagefiles/ffmpeg/meson_options.txt
new file mode 100644
index 0000000..eb4b08b
--- /dev/null
+++ b/subprojects/packagefiles/ffmpeg/meson_options.txt
@@ -0,0 +1,4 @@
+# Copy-paste from top-level project.
+option('codec-hwaccel', type: 'feature', value: 'disabled', yield: true)
+option('renderer-api', type: 'combo', choices: ['vulkan', 'dx11', 'gl', 'gl-rpi'], value: 'vulkan', yield: true)
+option('sink-only', type: 'boolean', value: false, yield: true)
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,