|
|
@ -35,6 +35,7 @@ |
|
|
|
#include "libswscale/swscale_internal.h" |
|
|
|
#include "libswscale/swscale_internal.h" |
|
|
|
#include "libavutil/attributes.h" |
|
|
|
#include "libavutil/attributes.h" |
|
|
|
#include "libavutil/x86/asm.h" |
|
|
|
#include "libavutil/x86/asm.h" |
|
|
|
|
|
|
|
#include "libavutil/x86/cpu.h" |
|
|
|
#include "libavutil/cpu.h" |
|
|
|
#include "libavutil/cpu.h" |
|
|
|
|
|
|
|
|
|
|
|
#if HAVE_INLINE_ASM |
|
|
|
#if HAVE_INLINE_ASM |
|
|
@ -79,7 +80,7 @@ av_cold SwsFunc ff_yuv2rgb_init_x86(SwsContext *c) |
|
|
|
return NULL; |
|
|
|
return NULL; |
|
|
|
|
|
|
|
|
|
|
|
#if HAVE_MMXEXT_INLINE |
|
|
|
#if HAVE_MMXEXT_INLINE |
|
|
|
if (cpu_flags & AV_CPU_FLAG_MMXEXT) { |
|
|
|
if (INLINE_MMXEXT(cpu_flags)) { |
|
|
|
switch (c->dstFormat) { |
|
|
|
switch (c->dstFormat) { |
|
|
|
case AV_PIX_FMT_RGB24: |
|
|
|
case AV_PIX_FMT_RGB24: |
|
|
|
return yuv420_rgb24_mmxext; |
|
|
|
return yuv420_rgb24_mmxext; |
|
|
@ -89,7 +90,7 @@ av_cold SwsFunc ff_yuv2rgb_init_x86(SwsContext *c) |
|
|
|
} |
|
|
|
} |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
if (cpu_flags & AV_CPU_FLAG_MMX) { |
|
|
|
if (INLINE_MMX(cpu_flags)) { |
|
|
|
switch (c->dstFormat) { |
|
|
|
switch (c->dstFormat) { |
|
|
|
case AV_PIX_FMT_RGB32: |
|
|
|
case AV_PIX_FMT_RGB32: |
|
|
|
if (c->srcFormat == AV_PIX_FMT_YUVA420P) { |
|
|
|
if (c->srcFormat == AV_PIX_FMT_YUVA420P) { |
|
|
|