зеркало из https://github.com/mozilla/gecko-dev.git
Bug 468327. Disable optimized YUV-RGB conversion on Mac since it's incorrect. r+sr=roc
This commit is contained in:
Родитель
e7b670232e
Коммит
57d9f1c4d5
|
@ -9,3 +9,6 @@ The svn revision number used was r3774.
|
|||
|
||||
The patch from Annodex trac ticket 421 is applied to fix bug 459938:
|
||||
http://trac.annodex.net/ticket/421
|
||||
|
||||
The patch from Bug 468327 (yuv_disable_optimized.patch) is applied
|
||||
to disable optimized yuv to rgb routines.
|
||||
|
|
|
@ -54,7 +54,10 @@
|
|||
* V = 0.615 R - 0.515 G - 0.100 B
|
||||
*/
|
||||
|
||||
#if defined(__MMX__) || defined(__SSE__) || defined(__SSE2__) || defined(__SSE3__)
|
||||
// Optimized YUV to RGB conversion routine disabled due to generating
|
||||
// incorrect colours. See Annodex trac ticket 421:
|
||||
// http://trac.annodex.net/ticket/421
|
||||
#if 0 //defined(__MMX__) || defined(__SSE__) || defined(__SSE2__) || defined(__SSE3__)
|
||||
|
||||
#if defined(WIN32)
|
||||
#define restrict
|
||||
|
|
|
@ -36,4 +36,5 @@ rm ./src/liboggplay/oggplay_private.h1
|
|||
sed s/\#ifdef\ HAVE_INTTYPES_H/\#if\ HAVE_INTTYPES_H/g $1/src/liboggplay/oggplay_data.c >./src/liboggplay/oggplay_data.c
|
||||
cd ./src/liboggplay
|
||||
patch <../../yuv2rgb-vanilla-fix.patch
|
||||
patch <../../yuv_disable_optimized.patch
|
||||
cd ../..
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
diff --git a/media/liboggplay/src/liboggplay/oggplay_yuv2rgb.c b/media/liboggplay/src/liboggplay/oggplay_yuv2rgb.c
|
||||
index 8ace308..0e2cef0 100644
|
||||
--- a/media/liboggplay/src/liboggplay/oggplay_yuv2rgb.c
|
||||
+++ b/media/liboggplay/src/liboggplay/oggplay_yuv2rgb.c
|
||||
@@ -54,7 +54,10 @@
|
||||
* V = 0.615 R - 0.515 G - 0.100 B
|
||||
*/
|
||||
|
||||
-#if defined(__MMX__) || defined(__SSE__) || defined(__SSE2__) || defined(__SSE3__)
|
||||
+// Optimized YUV to RGB conversion routine disabled due to generating
|
||||
+// incorrect colours. See Annodex trac ticket 421:
|
||||
+// http://trac.annodex.net/ticket/421
|
||||
+#if 0 //defined(__MMX__) || defined(__SSE__) || defined(__SSE2__) || defined(__SSE3__)
|
||||
|
||||
#if defined(WIN32)
|
||||
#define restrict
|
Загрузка…
Ссылка в новой задаче