Commit 55ceb1bc authored by aurel's avatar aurel

split encoding part of dsputil_mmx into its own file

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12223 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 53263a4f
...@@ -369,6 +369,8 @@ OBJS += i386/fdct_mmx.o \ ...@@ -369,6 +369,8 @@ OBJS += i386/fdct_mmx.o \
OBJS-$(CONFIG_GPL) += i386/idct_mmx.o OBJS-$(CONFIG_GPL) += i386/idct_mmx.o
OBJS-$(CONFIG_ENCODERS) += i386/dsputilenc_mmx.o
OBJS-$(CONFIG_CAVS_DECODER) += i386/cavsdsp_mmx.o OBJS-$(CONFIG_CAVS_DECODER) += i386/cavsdsp_mmx.o
OBJS-$(CONFIG_FLAC_ENCODER) += i386/flacdsp_mmx.o OBJS-$(CONFIG_FLAC_ENCODER) += i386/flacdsp_mmx.o
OBJS-$(CONFIG_SNOW_DECODER) += i386/snowdsp_mmx.o OBJS-$(CONFIG_SNOW_DECODER) += i386/snowdsp_mmx.o
......
This diff is collapsed.
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#define FFMPEG_DSPUTIL_MMX_H #define FFMPEG_DSPUTIL_MMX_H
#include <stdint.h> #include <stdint.h>
#include "dsputil.h"
typedef struct { uint64_t a, b; } xmm_t; typedef struct { uint64_t a, b; } xmm_t;
...@@ -43,6 +44,7 @@ extern const uint64_t ff_pw_42; ...@@ -43,6 +44,7 @@ extern const uint64_t ff_pw_42;
extern const uint64_t ff_pw_64; extern const uint64_t ff_pw_64;
extern const uint64_t ff_pw_96; extern const uint64_t ff_pw_96;
extern const uint64_t ff_pw_128; extern const uint64_t ff_pw_128;
extern const uint64_t ff_pw_255;
extern const uint64_t ff_pb_1; extern const uint64_t ff_pb_1;
extern const uint64_t ff_pb_3; extern const uint64_t ff_pb_3;
...@@ -111,4 +113,11 @@ extern const double ff_pd_2[2]; ...@@ -111,4 +113,11 @@ extern const double ff_pd_2[2];
"movdqa 16"#t", "#g" \n\t" "movdqa 16"#t", "#g" \n\t"
#endif #endif
#define MOVQ_WONE(regd) \
asm volatile ( \
"pcmpeqd %%" #regd ", %%" #regd " \n\t" \
"psrlw $15, %%" #regd ::)
void dsputilenc_init_mmx(DSPContext* c, AVCodecContext *avctx);
#endif /* FFMPEG_DSPUTIL_MMX_H */ #endif /* FFMPEG_DSPUTIL_MMX_H */
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment