Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1522)

Side by Side Diff: source/config/linux/ia32/vpx_dsp_rtcd.h

Issue 1322703002: Cherry pick vp8 halfpix variance fix (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/libvpx@m46-2490
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « libvpx_srcs_x86_intrinsics.gypi ('k') | source/config/linux/x64/vpx_dsp_rtcd.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #ifndef VPX_DSP_RTCD_H_ 1 #ifndef VPX_DSP_RTCD_H_
2 #define VPX_DSP_RTCD_H_ 2 #define VPX_DSP_RTCD_H_
3 3
4 #ifdef RTCD_C 4 #ifdef RTCD_C
5 #define RTCD_EXTERN 5 #define RTCD_EXTERN
6 #else 6 #else
7 #define RTCD_EXTERN extern 7 #define RTCD_EXTERN extern
8 #endif 8 #endif
9 9
10 /* 10 /*
(...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after
872 unsigned int vpx_variance8x4_sse2(const uint8_t *src_ptr, int source_stride, con st uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 872 unsigned int vpx_variance8x4_sse2(const uint8_t *src_ptr, int source_stride, con st uint8_t *ref_ptr, int ref_stride, unsigned int *sse);
873 RTCD_EXTERN unsigned int (*vpx_variance8x4)(const uint8_t *src_ptr, int source_s tride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 873 RTCD_EXTERN unsigned int (*vpx_variance8x4)(const uint8_t *src_ptr, int source_s tride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse);
874 874
875 unsigned int vpx_variance8x8_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 875 unsigned int vpx_variance8x8_c(const uint8_t *src_ptr, int source_stride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse);
876 unsigned int vpx_variance8x8_mmx(const uint8_t *src_ptr, int source_stride, cons t uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 876 unsigned int vpx_variance8x8_mmx(const uint8_t *src_ptr, int source_stride, cons t uint8_t *ref_ptr, int ref_stride, unsigned int *sse);
877 unsigned int vpx_variance8x8_sse2(const uint8_t *src_ptr, int source_stride, con st uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 877 unsigned int vpx_variance8x8_sse2(const uint8_t *src_ptr, int source_stride, con st uint8_t *ref_ptr, int ref_stride, unsigned int *sse);
878 RTCD_EXTERN unsigned int (*vpx_variance8x8)(const uint8_t *src_ptr, int source_s tride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse); 878 RTCD_EXTERN unsigned int (*vpx_variance8x8)(const uint8_t *src_ptr, int source_s tride, const uint8_t *ref_ptr, int ref_stride, unsigned int *sse);
879 879
880 uint32_t vpx_variance_halfpixvar16x16_h_c(const unsigned char *src_ptr, int sour ce_stride, const unsigned char *ref_ptr, int ref_stride, uint32_t *sse); 880 uint32_t vpx_variance_halfpixvar16x16_h_c(const unsigned char *src_ptr, int sour ce_stride, const unsigned char *ref_ptr, int ref_stride, uint32_t *sse);
881 uint32_t vpx_variance_halfpixvar16x16_h_mmx(const unsigned char *src_ptr, int so urce_stride, const unsigned char *ref_ptr, int ref_stride, uint32_t *sse); 881 uint32_t vpx_variance_halfpixvar16x16_h_mmx(const unsigned char *src_ptr, int so urce_stride, const unsigned char *ref_ptr, int ref_stride, uint32_t *sse);
882 uint32_t vpx_variance_halfpixvar16x16_h_sse2(const unsigned char *src_ptr, int s ource_stride, const unsigned char *ref_ptr, int ref_stride, uint32_t *sse);
882 RTCD_EXTERN uint32_t (*vpx_variance_halfpixvar16x16_h)(const unsigned char *src_ ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, uint32_t *sse); 883 RTCD_EXTERN uint32_t (*vpx_variance_halfpixvar16x16_h)(const unsigned char *src_ ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, uint32_t *sse);
883 884
884 uint32_t vpx_variance_halfpixvar16x16_hv_c(const unsigned char *src_ptr, int sou rce_stride, const unsigned char *ref_ptr, int ref_stride, uint32_t *sse); 885 uint32_t vpx_variance_halfpixvar16x16_hv_c(const unsigned char *src_ptr, int sou rce_stride, const unsigned char *ref_ptr, int ref_stride, uint32_t *sse);
885 uint32_t vpx_variance_halfpixvar16x16_hv_mmx(const unsigned char *src_ptr, int s ource_stride, const unsigned char *ref_ptr, int ref_stride, uint32_t *sse); 886 uint32_t vpx_variance_halfpixvar16x16_hv_mmx(const unsigned char *src_ptr, int s ource_stride, const unsigned char *ref_ptr, int ref_stride, uint32_t *sse);
887 uint32_t vpx_variance_halfpixvar16x16_hv_sse2(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, uint32_t *sse);
886 RTCD_EXTERN uint32_t (*vpx_variance_halfpixvar16x16_hv)(const unsigned char *src _ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, uint32_t *sse); 888 RTCD_EXTERN uint32_t (*vpx_variance_halfpixvar16x16_hv)(const unsigned char *src _ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, uint32_t *sse);
887 889
888 uint32_t vpx_variance_halfpixvar16x16_v_c(const unsigned char *src_ptr, int sour ce_stride, const unsigned char *ref_ptr, int ref_stride, uint32_t *sse); 890 uint32_t vpx_variance_halfpixvar16x16_v_c(const unsigned char *src_ptr, int sour ce_stride, const unsigned char *ref_ptr, int ref_stride, uint32_t *sse);
889 uint32_t vpx_variance_halfpixvar16x16_v_mmx(const unsigned char *src_ptr, int so urce_stride, const unsigned char *ref_ptr, int ref_stride, uint32_t *sse); 891 uint32_t vpx_variance_halfpixvar16x16_v_mmx(const unsigned char *src_ptr, int so urce_stride, const unsigned char *ref_ptr, int ref_stride, uint32_t *sse);
892 uint32_t vpx_variance_halfpixvar16x16_v_sse2(const unsigned char *src_ptr, int s ource_stride, const unsigned char *ref_ptr, int ref_stride, uint32_t *sse);
890 RTCD_EXTERN uint32_t (*vpx_variance_halfpixvar16x16_v)(const unsigned char *src_ ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, uint32_t *sse); 893 RTCD_EXTERN uint32_t (*vpx_variance_halfpixvar16x16_v)(const unsigned char *src_ ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, uint32_t *sse);
891 894
892 void vpx_dsp_rtcd(void); 895 void vpx_dsp_rtcd(void);
893 896
894 #ifdef RTCD_C 897 #ifdef RTCD_C
895 #include "vpx_ports/x86.h" 898 #include "vpx_ports/x86.h"
896 static void setup_rtcd_internal(void) 899 static void setup_rtcd_internal(void)
897 { 900 {
898 int flags = x86_simd_caps(); 901 int flags = x86_simd_caps();
899 902
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
1335 vpx_variance8x16 = vpx_variance8x16_c; 1338 vpx_variance8x16 = vpx_variance8x16_c;
1336 if (flags & HAS_MMX) vpx_variance8x16 = vpx_variance8x16_mmx; 1339 if (flags & HAS_MMX) vpx_variance8x16 = vpx_variance8x16_mmx;
1337 if (flags & HAS_SSE2) vpx_variance8x16 = vpx_variance8x16_sse2; 1340 if (flags & HAS_SSE2) vpx_variance8x16 = vpx_variance8x16_sse2;
1338 vpx_variance8x4 = vpx_variance8x4_c; 1341 vpx_variance8x4 = vpx_variance8x4_c;
1339 if (flags & HAS_SSE2) vpx_variance8x4 = vpx_variance8x4_sse2; 1342 if (flags & HAS_SSE2) vpx_variance8x4 = vpx_variance8x4_sse2;
1340 vpx_variance8x8 = vpx_variance8x8_c; 1343 vpx_variance8x8 = vpx_variance8x8_c;
1341 if (flags & HAS_MMX) vpx_variance8x8 = vpx_variance8x8_mmx; 1344 if (flags & HAS_MMX) vpx_variance8x8 = vpx_variance8x8_mmx;
1342 if (flags & HAS_SSE2) vpx_variance8x8 = vpx_variance8x8_sse2; 1345 if (flags & HAS_SSE2) vpx_variance8x8 = vpx_variance8x8_sse2;
1343 vpx_variance_halfpixvar16x16_h = vpx_variance_halfpixvar16x16_h_c; 1346 vpx_variance_halfpixvar16x16_h = vpx_variance_halfpixvar16x16_h_c;
1344 if (flags & HAS_MMX) vpx_variance_halfpixvar16x16_h = vpx_variance_halfpixva r16x16_h_mmx; 1347 if (flags & HAS_MMX) vpx_variance_halfpixvar16x16_h = vpx_variance_halfpixva r16x16_h_mmx;
1348 if (flags & HAS_SSE2) vpx_variance_halfpixvar16x16_h = vpx_variance_halfpixv ar16x16_h_sse2;
1345 vpx_variance_halfpixvar16x16_hv = vpx_variance_halfpixvar16x16_hv_c; 1349 vpx_variance_halfpixvar16x16_hv = vpx_variance_halfpixvar16x16_hv_c;
1346 if (flags & HAS_MMX) vpx_variance_halfpixvar16x16_hv = vpx_variance_halfpixv ar16x16_hv_mmx; 1350 if (flags & HAS_MMX) vpx_variance_halfpixvar16x16_hv = vpx_variance_halfpixv ar16x16_hv_mmx;
1351 if (flags & HAS_SSE2) vpx_variance_halfpixvar16x16_hv = vpx_variance_halfpix var16x16_hv_sse2;
1347 vpx_variance_halfpixvar16x16_v = vpx_variance_halfpixvar16x16_v_c; 1352 vpx_variance_halfpixvar16x16_v = vpx_variance_halfpixvar16x16_v_c;
1348 if (flags & HAS_MMX) vpx_variance_halfpixvar16x16_v = vpx_variance_halfpixva r16x16_v_mmx; 1353 if (flags & HAS_MMX) vpx_variance_halfpixvar16x16_v = vpx_variance_halfpixva r16x16_v_mmx;
1354 if (flags & HAS_SSE2) vpx_variance_halfpixvar16x16_v = vpx_variance_halfpixv ar16x16_v_sse2;
1349 } 1355 }
1350 #endif 1356 #endif
1351 1357
1352 #ifdef __cplusplus 1358 #ifdef __cplusplus
1353 } // extern "C" 1359 } // extern "C"
1354 #endif 1360 #endif
1355 1361
1356 #endif 1362 #endif
OLDNEW
« no previous file with comments | « libvpx_srcs_x86_intrinsics.gypi ('k') | source/config/linux/x64/vpx_dsp_rtcd.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698