split encoding part of dsputil_mmx into its own file
Originally committed as revision 12223 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
		
							parent
							
								
									4847a997aa
								
							
						
					
					
						commit
						97d1d009e2
					
				@ -369,6 +369,8 @@ OBJS += i386/fdct_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_FLAC_ENCODER)            += i386/flacdsp_mmx.o
 | 
			
		||||
OBJS-$(CONFIG_SNOW_DECODER)            += i386/snowdsp_mmx.o
 | 
			
		||||
 | 
			
		||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@ -23,6 +23,7 @@
 | 
			
		||||
#define FFMPEG_DSPUTIL_MMX_H
 | 
			
		||||
 | 
			
		||||
#include <stdint.h>
 | 
			
		||||
#include "dsputil.h"
 | 
			
		||||
 | 
			
		||||
typedef struct { uint64_t a, b; } xmm_t;
 | 
			
		||||
 | 
			
		||||
@ -43,6 +44,7 @@ extern const uint64_t ff_pw_42;
 | 
			
		||||
extern const uint64_t ff_pw_64;
 | 
			
		||||
extern const uint64_t ff_pw_96;
 | 
			
		||||
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_3;
 | 
			
		||||
@ -111,4 +113,11 @@ extern const double ff_pd_2[2];
 | 
			
		||||
    "movdqa 16"#t", "#g"              \n\t"
 | 
			
		||||
#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 */
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										1422
									
								
								libavcodec/i386/dsputilenc_mmx.c
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										1422
									
								
								libavcodec/i386/dsputilenc_mmx.c
									
									
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user