| OLD | NEW |
| 1 #ifndef VP8_RTCD_H_ | 1 #ifndef VP8_RTCD_H_ |
| 2 #define VP8_RTCD_H_ | 2 #define VP8_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 /* |
| 11 * VP8 | 11 * VP8 |
| 12 */ | 12 */ |
| 13 | 13 |
| 14 struct blockd; | 14 struct blockd; |
| 15 struct macroblockd; | 15 struct macroblockd; |
| 16 struct loop_filter_info; | 16 struct loop_filter_info; |
| 17 | 17 |
| 18 /* Encoder forward decls */ | 18 /* Encoder forward decls */ |
| 19 struct block; | 19 struct block; |
| 20 struct macroblock; | 20 struct macroblock; |
| 21 struct variance_vtable; | 21 struct variance_vtable; |
| 22 union int_mv; | 22 union int_mv; |
| 23 struct yv12_buffer_config; | 23 struct yv12_buffer_config; |
| 24 | 24 |
| 25 void vp8_clear_system_state_c(); |
| 26 void vpx_reset_mmx_state(); |
| 27 RTCD_EXTERN void (*vp8_clear_system_state)(); |
| 28 |
| 25 void vp8_dequantize_b_c(struct blockd*, short *dqc); | 29 void vp8_dequantize_b_c(struct blockd*, short *dqc); |
| 26 void vp8_dequantize_b_mmx(struct blockd*, short *dqc); | 30 void vp8_dequantize_b_mmx(struct blockd*, short *dqc); |
| 27 RTCD_EXTERN void (*vp8_dequantize_b)(struct blockd*, short *dqc); | 31 RTCD_EXTERN void (*vp8_dequantize_b)(struct blockd*, short *dqc); |
| 28 | 32 |
| 29 void vp8_dequant_idct_add_c(short *input, short *dq, unsigned char *output, int
stride); | 33 void vp8_dequant_idct_add_c(short *input, short *dq, unsigned char *output, int
stride); |
| 30 void vp8_dequant_idct_add_mmx(short *input, short *dq, unsigned char *output, in
t stride); | 34 void vp8_dequant_idct_add_mmx(short *input, short *dq, unsigned char *output, in
t stride); |
| 31 RTCD_EXTERN void (*vp8_dequant_idct_add)(short *input, short *dq, unsigned char
*output, int stride); | 35 RTCD_EXTERN void (*vp8_dequant_idct_add)(short *input, short *dq, unsigned char
*output, int stride); |
| 32 | 36 |
| 33 void vp8_dequant_idct_add_y_block_c(short *q, short *dq, unsigned char *dst, int
stride, char *eobs); | 37 void vp8_dequant_idct_add_y_block_c(short *q, short *dq, unsigned char *dst, int
stride, char *eobs); |
| 34 void vp8_dequant_idct_add_y_block_mmx(short *q, short *dq, unsigned char *dst, i
nt stride, char *eobs); | 38 void vp8_dequant_idct_add_y_block_mmx(short *q, short *dq, unsigned char *dst, i
nt stride, char *eobs); |
| (...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 void vp8_rtcd(void); | 477 void vp8_rtcd(void); |
| 474 | 478 |
| 475 #ifdef RTCD_C | 479 #ifdef RTCD_C |
| 476 #include "vpx_ports/x86.h" | 480 #include "vpx_ports/x86.h" |
| 477 static void setup_rtcd_internal(void) | 481 static void setup_rtcd_internal(void) |
| 478 { | 482 { |
| 479 int flags = x86_simd_caps(); | 483 int flags = x86_simd_caps(); |
| 480 | 484 |
| 481 (void)flags; | 485 (void)flags; |
| 482 | 486 |
| 487 vp8_clear_system_state = vp8_clear_system_state_c; |
| 488 if (flags & HAS_MMX) vp8_clear_system_state = vpx_reset_mmx_state; |
| 489 |
| 483 vp8_dequantize_b = vp8_dequantize_b_c; | 490 vp8_dequantize_b = vp8_dequantize_b_c; |
| 484 if (flags & HAS_MMX) vp8_dequantize_b = vp8_dequantize_b_mmx; | 491 if (flags & HAS_MMX) vp8_dequantize_b = vp8_dequantize_b_mmx; |
| 485 | 492 |
| 486 vp8_dequant_idct_add = vp8_dequant_idct_add_c; | 493 vp8_dequant_idct_add = vp8_dequant_idct_add_c; |
| 487 if (flags & HAS_MMX) vp8_dequant_idct_add = vp8_dequant_idct_add_mmx; | 494 if (flags & HAS_MMX) vp8_dequant_idct_add = vp8_dequant_idct_add_mmx; |
| 488 | 495 |
| 489 vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y_block_c; | 496 vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y_block_c; |
| 490 if (flags & HAS_MMX) vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y_b
lock_mmx; | 497 if (flags & HAS_MMX) vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y_b
lock_mmx; |
| 491 if (flags & HAS_SSE2) vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y_
block_sse2; | 498 if (flags & HAS_SSE2) vp8_dequant_idct_add_y_block = vp8_dequant_idct_add_y_
block_sse2; |
| 492 | 499 |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 812 | 819 |
| 813 vp8_diamond_search_sad = vp8_diamond_search_sad_c; | 820 vp8_diamond_search_sad = vp8_diamond_search_sad_c; |
| 814 if (flags & HAS_SSE3) vp8_diamond_search_sad = vp8_diamond_search_sadx4; | 821 if (flags & HAS_SSE3) vp8_diamond_search_sad = vp8_diamond_search_sadx4; |
| 815 | 822 |
| 816 | 823 |
| 817 vp8_denoiser_filter = vp8_denoiser_filter_c; | 824 vp8_denoiser_filter = vp8_denoiser_filter_c; |
| 818 if (flags & HAS_SSE2) vp8_denoiser_filter = vp8_denoiser_filter_sse2; | 825 if (flags & HAS_SSE2) vp8_denoiser_filter = vp8_denoiser_filter_sse2; |
| 819 } | 826 } |
| 820 #endif | 827 #endif |
| 821 #endif | 828 #endif |
| OLD | NEW |