forked from enlightenment/efl
hot damn! yuv -> rgb was being done TWICE every time! once with mmx/sse and
once with raw C slooow. altivec #ifdef boobie. fix fix fix SVN revision: 10356
This commit is contained in:
parent
f1ada6e4f3
commit
a5c71f099b
|
@ -116,8 +116,8 @@ void
|
||||||
evas_common_convert_yuv_420p_601_rgba(DATA8 **src, DATA8 *dst, int w, int h)
|
evas_common_convert_yuv_420p_601_rgba(DATA8 **src, DATA8 *dst, int w, int h)
|
||||||
{
|
{
|
||||||
int mmx, sse, sse2;
|
int mmx, sse, sse2;
|
||||||
|
|
||||||
#if defined BUILD_MMX || defined BUILD_SSE
|
#if defined BUILD_MMX || defined BUILD_SSE
|
||||||
|
|
||||||
evas_common_cpu_can_do(&mmx, &sse, &sse2);
|
evas_common_cpu_can_do(&mmx, &sse, &sse2);
|
||||||
#endif
|
#endif
|
||||||
#ifndef BUILD_SSE
|
#ifndef BUILD_SSE
|
||||||
|
@ -132,8 +132,8 @@ evas_common_convert_yuv_420p_601_rgba(DATA8 **src, DATA8 *dst, int w, int h)
|
||||||
#ifdef BUILD_ALTIVEC
|
#ifdef BUILD_ALTIVEC
|
||||||
if (evas_common_cpu_has_feature(CPU_FEATURE_ALTIVEC))
|
if (evas_common_cpu_has_feature(CPU_FEATURE_ALTIVEC))
|
||||||
_evas_yv12torgb_altivec(src, dst, w, h);
|
_evas_yv12torgb_altivec(src, dst, w, h);
|
||||||
else
|
|
||||||
#endif
|
#endif
|
||||||
|
else
|
||||||
{
|
{
|
||||||
#ifdef BUILD_C
|
#ifdef BUILD_C
|
||||||
static int initted = 0;
|
static int initted = 0;
|
||||||
|
|
Loading…
Reference in New Issue