Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
d29f0a60
Commit
d29f0a60
authored
Aug 07, 2008
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Contribs: Update FFMPEG to HEAD because there were many fixes in H264 decoding lately.
parent
1ef79a2b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
64 additions
and
66 deletions
+64
-66
extras/contrib/src/Makefile
extras/contrib/src/Makefile
+5
-6
extras/contrib/src/Patches/ffmpeg-svn-mmx_removal-darwin9.patch
.../contrib/src/Patches/ffmpeg-svn-mmx_removal-darwin9.patch
+59
-60
No files found.
extras/contrib/src/Makefile
View file @
d29f0a60
...
...
@@ -1067,7 +1067,7 @@ DISTCLEAN_PKG += amrwb-$(LIBAMR_WB_VERSION).tar.bz2
ifdef
SVN
ffmpeg
:
$(SVN)
co
$(FFMPEG_SVN)
ffmpeg
-r
14
080
$(SVN)
co
$(FFMPEG_SVN)
ffmpeg
-r
14
661
ifeq
($(HOST),i586-pc-beos)
(
cd
$@
;
patch
-p0
< ../Patches/ffmpeg-svn-beos.patch
)
endif
...
...
@@ -1084,7 +1084,7 @@ ifdef HAVE_DARWIN_OS
(
cd
$@
/libswscale
;
patch
-p0
< ../../Patches/ffmpeg-fix-noaltivec.patch
)
endif
ifdef
NO_TEXT_RELOCATION
(
cd
$@
;
patch
-p
1
< ../Patches/ffmpeg-svn-mmx_removal-darwin9.patch
)
(
cd
$@
;
patch
-p
0
< ../Patches/ffmpeg-svn-mmx_removal-darwin9.patch
)
endif
ifdef
HAVE_UCLIBC
patch
-p0
< Patches/ffmpeg-svn-uclibc.patch
...
...
@@ -2454,10 +2454,9 @@ endif
(
cd
$<
;
$(HOSTCC)
./configure
$(HOSTCONF)
--prefix
=
$(PREFIX)
CFLAGS
=
"
$(CFLAGS)
-O3"
&&
make
&&
make
install
)
touch
$@
CLEAN_FILE
+=
.schroedinger
CLEAN_PKG
+=
schroedinger
DISTCLEAN_PKG
+=
schroedinger-
$(SCHROED_VERSION)
.tar.gz
CLEAN_FILE
+=
.libass
CLEAN_PKG
+=
libass
DISTCLEAN_PKG
+=
libass-
$(ASS_VERSION)
.tar.bz2
# ***************************************************************************
# Some cleaning
...
...
extras/contrib/src/Patches/ffmpeg-svn-mmx_removal-darwin9.patch
View file @
d29f0a60
diff --git a/libpostproc/postprocess.c b/
libpostproc/postprocess.c
index 572e607..4608d9d 100644
---
a/libpostproc/postprocess.c
+++
b/libpostproc/postprocess.c
@@ -5
63,10 +563,6 @@
static av_always_inline void do_a_deblock_C(uint8_t *src, int step, int stride,
Index:
libpostproc/postprocess.c
===================================================================
---
libpostproc/postprocess.c (révision 14661)
+++
libpostproc/postprocess.c (copie de travail)
@@ -5
52,9 +552,6 @@
//Note: we have C, MMX, MMX2, 3DNOW version there is no 3DNOW+MMX2 one
//Plain C versions
-#if !defined (HAVE_MMX) || defined (RUNTIME_CPUDETECT)
-#define COMPILE_C
-#endif
-
#ifdef ARCH_POWERPC
#ifdef HAVE_ALTIVEC
#define COMPILE_ALTIVEC
@@ -5
75,17 +571,8 @@
static av_always_inline void do_a_deblock_C(uint8_t *src, int step, int stride,
@@ -5
62,17 +559,8 @@
#if defined(ARCH_X86)
-#if (defined (HAVE_MMX) && !defined (HAVE_3DNOW) && !defined (HAVE_MMX2)) || defined (RUNTIME_CPUDETECT)
-#define COMPILE_MMX
-#endif
-
+#define COMPILE_C
-#if defined (HAVE_MMX2) || defined (RUNTIME_CPUDETECT)
-#define COMPILE_MMX2
-#endif
+#define COMPILE_C
-
-#if (defined (HAVE_3DNOW) && !defined (HAVE_MMX2)) || defined (RUNTIME_CPUDETECT)
-#define COMPILE_3DNOW
-#endif
#endif /* defined(ARCH_X86) */
#undef HAVE_MMX
@@ -6
55,15 +642,7 @@
static inline void postProcess(const uint8_t src[], int srcStride, uint8_t dst[]
// someone might exchange the CPU whithout restarting MPlayer ;)
@@ -6
40,15 +628,7 @@
// someone might exchange the CPU whithout restarting MPlayer ;)
#ifdef RUNTIME_CPUDETECT
#if defined(ARCH_X86)
-
// ordered per speed fastest first
-
if(c->cpuCaps & PP_CPU_CAPS_MMX2)
-
postProcess_MMX2(src, srcStride, dst, dstStride, width, height, QPs, QPStride, isColor, c);
-
else if(c->cpuCaps & PP_CPU_CAPS_3DNOW)
-
postProcess_3DNow(src, srcStride, dst, dstStride, width, height, QPs, QPStride, isColor, c);
-
else if(c->cpuCaps & PP_CPU_CAPS_MMX)
-
postProcess_MMX(src, srcStride, dst, dstStride, width, height, QPs, QPStride, isColor, c);
-
else
-
postProcess_C(src, srcStride, dst, dstStride, width, height, QPs, QPStride, isColor, c);
+
postProcess_C(src, srcStride, dst, dstStride, width, height, QPs, QPStride, isColor, c);
- // ordered per speed fastest first
- if(c->cpuCaps & PP_CPU_CAPS_MMX2)
- postProcess_MMX2(src, srcStride, dst, dstStride, width, height, QPs, QPStride, isColor, c);
- else if(c->cpuCaps & PP_CPU_CAPS_3DNOW)
- postProcess_3DNow(src, srcStride, dst, dstStride, width, height, QPs, QPStride, isColor, c);
- else if(c->cpuCaps & PP_CPU_CAPS_MMX)
- postProcess_MMX(src, srcStride, dst, dstStride, width, height, QPs, QPStride, isColor, c);
- else
- postProcess_C(src, srcStride, dst, dstStride, width, height, QPs, QPStride, isColor, c);
+ postProcess_C(src, srcStride, dst, dstStride, width, height, QPs, QPStride, isColor, c);
#else
#ifdef ARCH_POWERPC
#ifdef HAVE_ALTIVEC
diff --git a/libswscale/rgb2rgb.c b/libswscale/rgb2rgb.c
index faf3e95..d226e49 100644
--- a/libswscale/rgb2rgb.c
+++ b/libswscale/rgb2rgb.c
@@ -158,6 +158,7 @@
static uint64_t __attribute__((aligned(8))) dither8[2]={
#define RENAME(a) a ## _C
#include "rgb2rgb_template.c"
if(c->cpuCaps & PP_CPU_CAPS_ALTIVEC)
Index: libswscale/yuv2rgb.c
===================================================================
--- libswscale/yuv2rgb.c (révision 27432)
+++ libswscale/yuv2rgb.c (copie de travail)
@@ -148,6 +148,7 @@
};
#endif
+#if 0
#if
defined(ARCH_X86) && defined(CONFIG_GPL)
#if
def HAVE_MMX
/
/MMX versions
@@ -18
8,6 +189,7 @@
static uint64_t __attribute__((aligned(8))) dither8[2]={
#include "
rgb
2rgb_template.c"
/
* hope these constant values are cache line aligned */
@@ -18
1,6 +182,7 @@
#include "
yuv
2rgb_template.c"
#endif /
/ARCH_X86 || ARCH_X86_64
#endif /
* HAVE_MMX */
+#endif
/*
rgb15->rgb16 Original by Strepto/Astral
diff --git a/libswscale/swscale.c b/
libswscale/swscale.c
index 5e3c0a9..359ef14 100644
---
a/libswscale/swscale.c
+++
b/libswscale/swscale.c
@@ -8
75,9 +875,7 @@
static inline void yuv2packedXinC(SwsContext *c, int16_t *lumFilter, int16_t **l
const int32_t Inverse_Table_6_9[8][4] = {
{117504, 138453, 13954, 34903}, /* no sequence_display_extension */
Index:
libswscale/swscale.c
===================================================================
---
libswscale/swscale.c (révision 27432)
+++
libswscale/swscale.c (copie de travail)
@@ -8
20,9 +820,7 @@
//Note: we have C, X86, MMX, MMX2, 3DNOW version therse no 3DNOW+MMX2 one
//Plain C versions
...
...
@@ -83,7 +82,7 @@ index 5e3c0a9..359ef14 100644
#ifdef ARCH_POWERPC
#if (defined (HAVE_ALTIVEC) || defined (RUNTIME_CPUDETECT)) && defined (CONFIG_GPL)
@@ -8
85,6 +883,7 @@
static inline void yuv2packedXinC(SwsContext *c, int16_t *lumFilter, int16_t **l
@@ -8
30,6 +828,7 @@
#endif //HAVE_ALTIVEC
#endif //ARCH_POWERPC
...
...
@@ -91,7 +90,7 @@ index 5e3c0a9..359ef14 100644
#if defined(ARCH_X86)
#if ((defined (HAVE_MMX) && !defined (HAVE_3DNOW) && !defined (HAVE_MMX2)) || defined (RUNTIME_CPUDETECT)) && defined (CONFIG_GPL)
@@ -8
99,6 +898,7 @@
static inline void yuv2packedXinC(SwsContext *c, int16_t *lumFilter, int16_t **l
@@ -8
44,6 +843,7 @@
#define COMPILE_3DNOW
#endif
#endif //ARCH_X86 || ARCH_X86_64
...
...
@@ -99,7 +98,7 @@ index 5e3c0a9..359ef14 100644
#undef HAVE_MMX
#undef HAVE_MMX2
@@ -1
544,15 +1544,8 @@
static SwsFunc getSwsFunc(int flags){
@@ -1
490,15 +1490,8 @@
#if defined(RUNTIME_CPUDETECT) && defined (CONFIG_GPL)
#if defined(ARCH_X86)
// ordered per speed fastest first
...
...
@@ -117,23 +116,23 @@ index 5e3c0a9..359ef14 100644
#else
#ifdef ARCH_POWERPC
if (flags & SWS_CPU_CAPS_ALTIVEC)
diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv
2rgb.c
index 8ece0f6..6dac051 100644
---
a/libswscale/yuv2rgb.c
+++
b/libswscale/yuv2rgb.c
@@ -15
6,6 +156,7 @@
const uint8_t __attribute__((aligned(8))) dither_8x8_220[8][8]={
};
#
endif
Index: libswscale/rgb
2rgb.c
===================================================================
---
libswscale/rgb2rgb.c (révision 27432)
+++
libswscale/rgb2rgb.c (copie de travail)
@@ -15
8,6 +158,7 @@
#define RENAME(a) a ## _C
#
include "rgb2rgb_template.c"
+#if 0
#if
def HAVE_MMX
#if
defined(ARCH_X86) && defined(CONFIG_GPL)
/
* hope these constant values are cache line aligned */
@@ -18
9,6 +190,7 @@
static volatile uint64_t attribute_used __attribute__((aligned(8))) r5Dither;
#include "
yuv
2rgb_template.c"
/
/MMX versions
@@ -18
8,6 +189,7 @@
#include "
rgb
2rgb_template.c"
#endif /
* defined(ARCH_X86) */
#endif /
/ARCH_X86 || ARCH_X86_64
+#endif
const int32_t Inverse_Table_6_9[8][4] = {
{117504, 138453, 13954, 34903}, /* no sequence_display_extension */
/*
RGB15->RGB16 original by Strepto/Astral
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment