-
-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update build scripts and dependencies
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
- Loading branch information
1 parent
0230f87
commit 8886cd7
Showing
5 changed files
with
60 additions
and
7 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
builder/patches/libplacebo/0000-utils-libav-only-adjusts-bit_shift-for-drm-p010-frames.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
From a5e701025dce2036930b9e049862e5355b07a45f Mon Sep 17 00:00:00 2001 | ||
From: David Rosca <nowrep@gmail.com> | ||
Date: Tue, 9 Jan 2024 13:38:08 +0100 | ||
Subject: [PATCH] utils/libav: Only adjust bit_shift for DRM P010 frames | ||
|
||
Fixes mapping Vulkan P010 frames. | ||
|
||
Closes #237 | ||
--- | ||
src/include/libplacebo/utils/libav_internal.h | 11 ++++++----- | ||
1 file changed, 6 insertions(+), 5 deletions(-) | ||
|
||
diff --git a/src/include/libplacebo/utils/libav_internal.h b/src/include/libplacebo/utils/libav_internal.h | ||
index 4c269e5d..992e5ca6 100644 | ||
--- a/src/include/libplacebo/utils/libav_internal.h | ||
+++ b/src/include/libplacebo/utils/libav_internal.h | ||
@@ -967,11 +967,6 @@ static void pl_fix_hwframe_sample_depth(struct pl_frame *out, const AVFrame *fra | ||
struct pl_bit_encoding *bits = &out->repr.bits; | ||
|
||
bits->sample_depth = fmt->component_depth[0]; | ||
- | ||
- switch (hwfc->sw_format) { | ||
- case AV_PIX_FMT_P010: bits->bit_shift = 6; break; | ||
- default: break; | ||
- } | ||
} | ||
|
||
static bool pl_map_avframe_drm(pl_gpu gpu, struct pl_frame *out, | ||
@@ -1016,6 +1011,12 @@ static bool pl_map_avframe_drm(pl_gpu gpu, struct pl_frame *out, | ||
} | ||
|
||
pl_fix_hwframe_sample_depth(out, frame); | ||
+ | ||
+ switch (hwfc->sw_format) { | ||
+ case AV_PIX_FMT_P010: out->repr.bits.bit_shift = 6; break; | ||
+ default: break; | ||
+ } | ||
+ | ||
return true; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters