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

Side by Side Diff: source/config/linux/arm-neon-cpu-detect/vp8_rtcd.h

Issue 554673004: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « libvpx_srcs_x86_intrinsics.gypi ('k') | source/config/linux/arm-neon-cpu-detect/vp9_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 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 #ifdef __cplusplus 10 #ifdef __cplusplus
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 void vp8_blend_mb_inner_c(unsigned char *y, unsigned char *u, unsigned char *v, int y1, int u1, int v1, int alpha, int stride); 52 void vp8_blend_mb_inner_c(unsigned char *y, unsigned char *u, unsigned char *v, int y1, int u1, int v1, int alpha, int stride);
53 #define vp8_blend_mb_inner vp8_blend_mb_inner_c 53 #define vp8_blend_mb_inner vp8_blend_mb_inner_c
54 54
55 void vp8_blend_mb_outer_c(unsigned char *y, unsigned char *u, unsigned char *v, int y1, int u1, int v1, int alpha, int stride); 55 void vp8_blend_mb_outer_c(unsigned char *y, unsigned char *u, unsigned char *v, int y1, int u1, int v1, int alpha, int stride);
56 #define vp8_blend_mb_outer vp8_blend_mb_outer_c 56 #define vp8_blend_mb_outer vp8_blend_mb_outer_c
57 57
58 int vp8_block_error_c(short *coeff, short *dqcoeff); 58 int vp8_block_error_c(short *coeff, short *dqcoeff);
59 #define vp8_block_error vp8_block_error_c 59 #define vp8_block_error vp8_block_error_c
60 60
61 void vp8_build_intra_predictors_mbuv_s_c(struct macroblockd *x, unsigned char * uabove_row, unsigned char * vabove_row, unsigned char *uleft, unsigned char *vl eft, int left_stride, unsigned char * upred_ptr, unsigned char * vpred_ptr, int pred_stride); 61 void vp8_build_intra_predictors_mbuv_s_c(struct macroblockd *x, unsigned char * uabove_row, unsigned char * vabove_row, unsigned char *uleft, unsigned char *vl eft, int left_stride, unsigned char * upred_ptr, unsigned char * vpred_ptr, int pred_stride);
62 #define vp8_build_intra_predictors_mbuv_s vp8_build_intra_predictors_mbuv_s_c 62 void vp8_build_intra_predictors_mbuv_s_neon(struct macroblockd *x, unsigned char * uabove_row, unsigned char * vabove_row, unsigned char *uleft, unsigned char *vleft, int left_stride, unsigned char * upred_ptr, unsigned char * vpred_ptr, i nt pred_stride);
63 RTCD_EXTERN void (*vp8_build_intra_predictors_mbuv_s)(struct macroblockd *x, uns igned char * uabove_row, unsigned char * vabove_row, unsigned char *uleft, unsi gned char *vleft, int left_stride, unsigned char * upred_ptr, unsigned char * vp red_ptr, int pred_stride);
63 64
64 void vp8_build_intra_predictors_mby_s_c(struct macroblockd *x, unsigned char * y above_row, unsigned char * yleft, int left_stride, unsigned char * ypred_ptr, in t y_stride); 65 void vp8_build_intra_predictors_mby_s_c(struct macroblockd *x, unsigned char * y above_row, unsigned char * yleft, int left_stride, unsigned char * ypred_ptr, in t y_stride);
65 #define vp8_build_intra_predictors_mby_s vp8_build_intra_predictors_mby_s_c 66 void vp8_build_intra_predictors_mby_s_neon(struct macroblockd *x, unsigned char * yabove_row, unsigned char * yleft, int left_stride, unsigned char * ypred_ptr, int y_stride);
67 RTCD_EXTERN void (*vp8_build_intra_predictors_mby_s)(struct macroblockd *x, unsi gned char * yabove_row, unsigned char * yleft, int left_stride, unsigned char * ypred_ptr, int y_stride);
66 68
67 void vp8_clear_system_state_c(); 69 void vp8_clear_system_state_c();
68 #define vp8_clear_system_state vp8_clear_system_state_c 70 #define vp8_clear_system_state vp8_clear_system_state_c
69 71
70 void vp8_copy_mem16x16_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); 72 void vp8_copy_mem16x16_c(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
71 void vp8_copy_mem16x16_v6(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch); 73 void vp8_copy_mem16x16_v6(unsigned char *src, int src_pitch, unsigned char *dst, int dst_pitch);
72 void vp8_copy_mem16x16_neon(unsigned char *src, int src_pitch, unsigned char *ds t, int dst_pitch); 74 void vp8_copy_mem16x16_neon(unsigned char *src, int src_pitch, unsigned char *ds t, int dst_pitch);
73 RTCD_EXTERN void (*vp8_copy_mem16x16)(unsigned char *src, int src_pitch, unsigne d char *dst, int dst_pitch); 75 RTCD_EXTERN void (*vp8_copy_mem16x16)(unsigned char *src, int src_pitch, unsigne d char *dst, int dst_pitch);
74 76
75 void vp8_copy_mem8x4_c(unsigned char *src, int src_pitch, unsigned char *dst, in t dst_pitch); 77 void vp8_copy_mem8x4_c(unsigned char *src, int src_pitch, unsigned char *dst, in t dst_pitch);
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 unsigned int vp8_variance_halfpixvar16x16_hv_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse ); 415 unsigned int vp8_variance_halfpixvar16x16_hv_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse );
414 unsigned int vp8_variance_halfpixvar16x16_hv_armv6(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse); 416 unsigned int vp8_variance_halfpixvar16x16_hv_armv6(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse);
415 unsigned int vp8_variance_halfpixvar16x16_hv_neon(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int * sse); 417 unsigned int vp8_variance_halfpixvar16x16_hv_neon(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int * sse);
416 RTCD_EXTERN unsigned int (*vp8_variance_halfpixvar16x16_hv)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsi gned int *sse); 418 RTCD_EXTERN unsigned int (*vp8_variance_halfpixvar16x16_hv)(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsi gned int *sse);
417 419
418 unsigned int vp8_variance_halfpixvar16x16_v_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse) ; 420 unsigned int vp8_variance_halfpixvar16x16_v_c(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *sse) ;
419 unsigned int vp8_variance_halfpixvar16x16_v_armv6(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int * sse); 421 unsigned int vp8_variance_halfpixvar16x16_v_armv6(const unsigned char *src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int * sse);
420 unsigned int vp8_variance_halfpixvar16x16_v_neon(const unsigned char *src_ptr, i nt source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *s se); 422 unsigned int vp8_variance_halfpixvar16x16_v_neon(const unsigned char *src_ptr, i nt source_stride, const unsigned char *ref_ptr, int ref_stride, unsigned int *s se);
421 RTCD_EXTERN unsigned int (*vp8_variance_halfpixvar16x16_v)(const unsigned char * src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsig ned int *sse); 423 RTCD_EXTERN unsigned int (*vp8_variance_halfpixvar16x16_v)(const unsigned char * src_ptr, int source_stride, const unsigned char *ref_ptr, int ref_stride, unsig ned int *sse);
422 424
423 void vp8_yv12_copy_partial_frame_c(struct yv12_buffer_config *src_ybc, struct yv 12_buffer_config *dst_ybc);
424 void vp8_yv12_copy_partial_frame_neon(struct yv12_buffer_config *src_ybc, struct yv12_buffer_config *dst_ybc);
425 RTCD_EXTERN void (*vp8_yv12_copy_partial_frame)(struct yv12_buffer_config *src_y bc, struct yv12_buffer_config *dst_ybc);
426
427 void vp8_rtcd(void); 425 void vp8_rtcd(void);
428 426
429 #include "vpx_config.h" 427 #include "vpx_config.h"
430 428
431 #ifdef RTCD_C 429 #ifdef RTCD_C
432 #include "vpx_ports/arm.h" 430 #include "vpx_ports/arm.h"
433 static void setup_rtcd_internal(void) 431 static void setup_rtcd_internal(void)
434 { 432 {
435 int flags = arm_cpu_caps(); 433 int flags = arm_cpu_caps();
436 434
437 (void)flags; 435 (void)flags;
438 436
439 vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_armv6; 437 vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_armv6;
440 if (flags & HAS_NEON) vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_ neon; 438 if (flags & HAS_NEON) vp8_bilinear_predict16x16 = vp8_bilinear_predict16x16_ neon;
441 vp8_bilinear_predict4x4 = vp8_bilinear_predict4x4_armv6; 439 vp8_bilinear_predict4x4 = vp8_bilinear_predict4x4_armv6;
442 if (flags & HAS_NEON) vp8_bilinear_predict4x4 = vp8_bilinear_predict4x4_neon ; 440 if (flags & HAS_NEON) vp8_bilinear_predict4x4 = vp8_bilinear_predict4x4_neon ;
443 vp8_bilinear_predict8x4 = vp8_bilinear_predict8x4_armv6; 441 vp8_bilinear_predict8x4 = vp8_bilinear_predict8x4_armv6;
444 if (flags & HAS_NEON) vp8_bilinear_predict8x4 = vp8_bilinear_predict8x4_neon ; 442 if (flags & HAS_NEON) vp8_bilinear_predict8x4 = vp8_bilinear_predict8x4_neon ;
445 vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_armv6; 443 vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_armv6;
446 if (flags & HAS_NEON) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_neon ; 444 if (flags & HAS_NEON) vp8_bilinear_predict8x8 = vp8_bilinear_predict8x8_neon ;
445 vp8_build_intra_predictors_mbuv_s = vp8_build_intra_predictors_mbuv_s_c;
446 if (flags & HAS_NEON) vp8_build_intra_predictors_mbuv_s = vp8_build_intra_pr edictors_mbuv_s_neon;
447 vp8_build_intra_predictors_mby_s = vp8_build_intra_predictors_mby_s_c;
448 if (flags & HAS_NEON) vp8_build_intra_predictors_mby_s = vp8_build_intra_pre dictors_mby_s_neon;
447 vp8_copy_mem16x16 = vp8_copy_mem16x16_v6; 449 vp8_copy_mem16x16 = vp8_copy_mem16x16_v6;
448 if (flags & HAS_NEON) vp8_copy_mem16x16 = vp8_copy_mem16x16_neon; 450 if (flags & HAS_NEON) vp8_copy_mem16x16 = vp8_copy_mem16x16_neon;
449 vp8_copy_mem8x4 = vp8_copy_mem8x4_v6; 451 vp8_copy_mem8x4 = vp8_copy_mem8x4_v6;
450 if (flags & HAS_NEON) vp8_copy_mem8x4 = vp8_copy_mem8x4_neon; 452 if (flags & HAS_NEON) vp8_copy_mem8x4 = vp8_copy_mem8x4_neon;
451 vp8_copy_mem8x8 = vp8_copy_mem8x8_v6; 453 vp8_copy_mem8x8 = vp8_copy_mem8x8_v6;
452 if (flags & HAS_NEON) vp8_copy_mem8x8 = vp8_copy_mem8x8_neon; 454 if (flags & HAS_NEON) vp8_copy_mem8x8 = vp8_copy_mem8x8_neon;
453 vp8_dc_only_idct_add = vp8_dc_only_idct_add_v6; 455 vp8_dc_only_idct_add = vp8_dc_only_idct_add_v6;
454 if (flags & HAS_NEON) vp8_dc_only_idct_add = vp8_dc_only_idct_add_neon; 456 if (flags & HAS_NEON) vp8_dc_only_idct_add = vp8_dc_only_idct_add_neon;
455 vp8_denoiser_filter = vp8_denoiser_filter_c; 457 vp8_denoiser_filter = vp8_denoiser_filter_c;
456 if (flags & HAS_NEON) vp8_denoiser_filter = vp8_denoiser_filter_neon; 458 if (flags & HAS_NEON) vp8_denoiser_filter = vp8_denoiser_filter_neon;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 vp8_variance8x16 = vp8_variance8x16_c; 539 vp8_variance8x16 = vp8_variance8x16_c;
538 if (flags & HAS_NEON) vp8_variance8x16 = vp8_variance8x16_neon; 540 if (flags & HAS_NEON) vp8_variance8x16 = vp8_variance8x16_neon;
539 vp8_variance8x8 = vp8_variance8x8_armv6; 541 vp8_variance8x8 = vp8_variance8x8_armv6;
540 if (flags & HAS_NEON) vp8_variance8x8 = vp8_variance8x8_neon; 542 if (flags & HAS_NEON) vp8_variance8x8 = vp8_variance8x8_neon;
541 vp8_variance_halfpixvar16x16_h = vp8_variance_halfpixvar16x16_h_armv6; 543 vp8_variance_halfpixvar16x16_h = vp8_variance_halfpixvar16x16_h_armv6;
542 if (flags & HAS_NEON) vp8_variance_halfpixvar16x16_h = vp8_variance_halfpixv ar16x16_h_neon; 544 if (flags & HAS_NEON) vp8_variance_halfpixvar16x16_h = vp8_variance_halfpixv ar16x16_h_neon;
543 vp8_variance_halfpixvar16x16_hv = vp8_variance_halfpixvar16x16_hv_armv6; 545 vp8_variance_halfpixvar16x16_hv = vp8_variance_halfpixvar16x16_hv_armv6;
544 if (flags & HAS_NEON) vp8_variance_halfpixvar16x16_hv = vp8_variance_halfpix var16x16_hv_neon; 546 if (flags & HAS_NEON) vp8_variance_halfpixvar16x16_hv = vp8_variance_halfpix var16x16_hv_neon;
545 vp8_variance_halfpixvar16x16_v = vp8_variance_halfpixvar16x16_v_armv6; 547 vp8_variance_halfpixvar16x16_v = vp8_variance_halfpixvar16x16_v_armv6;
546 if (flags & HAS_NEON) vp8_variance_halfpixvar16x16_v = vp8_variance_halfpixv ar16x16_v_neon; 548 if (flags & HAS_NEON) vp8_variance_halfpixvar16x16_v = vp8_variance_halfpixv ar16x16_v_neon;
547 vp8_yv12_copy_partial_frame = vp8_yv12_copy_partial_frame_c;
548 if (flags & HAS_NEON) vp8_yv12_copy_partial_frame = vp8_yv12_copy_partial_fr ame_neon;
549 } 549 }
550 #endif 550 #endif
551 551
552 #ifdef __cplusplus 552 #ifdef __cplusplus
553 } // extern "C" 553 } // extern "C"
554 #endif 554 #endif
555 555
556 #endif 556 #endif
OLDNEW
« no previous file with comments | « libvpx_srcs_x86_intrinsics.gypi ('k') | source/config/linux/arm-neon-cpu-detect/vp9_rtcd.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698