-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ffmpeg: vec_xl intrinsic does not exist on older PowerPC processors use upstream patch (not yet committed) closes: https://trac.macports.org/ticket/61001 * ffmpeg: remove no-longer-needed compiler selection this is now taken care of by base and the compiler.c_standard setting
- Loading branch information
Showing
2 changed files
with
24 additions
and
8 deletions.
There are no files selected for viewing
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
20 changes: 20 additions & 0 deletions
20
multimedia/ffmpeg/files/patch-ffmpeg-powerpc-yuv2rgb-altivec-fix.diff
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,20 @@ | ||
--- libswscale/ppc/yuv2rgb_altivec.c.orig 2020-08-22 16:39:38.000000000 -0700 | ||
+++ libswscale/ppc/yuv2rgb_altivec.c 2020-08-22 16:46:11.000000000 -0700 | ||
@@ -283,6 +283,17 @@ | ||
* ------------------------------------------------------------------------------ | ||
*/ | ||
|
||
+ | ||
+#if !HAVE_VSX | ||
+static inline vector unsigned char vec_xl(signed long long offset, const ubyte *addr) | ||
+{ | ||
+ const vector unsigned char *v_addr = (const vector unsigned char *) (addr + offset); | ||
+ vector unsigned char align_perm = vec_lvsl(offset, addr); | ||
+ | ||
+ return (vector unsigned char) vec_perm(v_addr[0], v_addr[1], align_perm); | ||
+} | ||
+#endif /* !HAVE_VSX */ | ||
+ | ||
#define DEFCSP420_CVT(name, out_pixels) \ | ||
static int altivec_ ## name(SwsContext *c, const unsigned char **in, \ | ||
int *instrides, int srcSliceY, int srcSliceH, \ |