History

vpxdsp: [x86] add highbd_dc_left_predictor functions

C vs SSE2 speed gains: _4x4 : ~6.49x _8x8 : ~10.82x _16x16 : ~7.61x _32x32 : ~5.29x BUG=webm:1411

Scott LaVarnway committed 9 years ago

Commit c39a05f1 parent 2d0c1104 files · +80 −8Browse files

Showing the changes to test (2 of 4 files). Show all

Unified · Split

2 files
  1. test/test_intra_pred_speed.cc +8 −4
  2. test/vp9_intrapred_test.cc +24 −0
test/test_intra_pred_speed.cc+8−4
@@ -481,28 +481,32 @@ HIGHBD_INTRA_PRED_TEST( · 480 unmodified lines
481481
482482 #if HAVE_SSE2
483483 HIGHBD_INTRA_PRED_TEST(SSE2, TestHighbdIntraPred4,
484− vpx_highbd_dc_predictor_4x4_sse2, NULL,
484+ vpx_highbd_dc_predictor_4x4_sse2,
485+ vpx_highbd_dc_left_predictor_4x4_sse2,
485486 vpx_highbd_dc_top_predictor_4x4_sse2, NULL,
486487 vpx_highbd_v_predictor_4x4_sse2,
487488 vpx_highbd_h_predictor_4x4_sse2, NULL, NULL, NULL, NULL,
488489 NULL, NULL, vpx_highbd_tm_predictor_4x4_c)
489490
490491 HIGHBD_INTRA_PRED_TEST(SSE2, TestHighbdIntraPred8,
491− vpx_highbd_dc_predictor_8x8_sse2, NULL,
492+ vpx_highbd_dc_predictor_8x8_sse2,
493+ vpx_highbd_dc_left_predictor_8x8_sse2,
492494 vpx_highbd_dc_top_predictor_8x8_sse2, NULL,
493495 vpx_highbd_v_predictor_8x8_sse2,
494496 vpx_highbd_h_predictor_8x8_sse2, NULL, NULL, NULL, NULL,
495497 NULL, NULL, vpx_highbd_tm_predictor_8x8_sse2)
496498
497499 HIGHBD_INTRA_PRED_TEST(SSE2, TestHighbdIntraPred16,
498− vpx_highbd_dc_predictor_16x16_sse2, NULL,
500+ vpx_highbd_dc_predictor_16x16_sse2,
501+ vpx_highbd_dc_left_predictor_16x16_sse2,
499502 vpx_highbd_dc_top_predictor_16x16_sse2, NULL,
500503 vpx_highbd_v_predictor_16x16_sse2,
501504 vpx_highbd_h_predictor_16x16_sse2, NULL, NULL, NULL,
502505 NULL, NULL, NULL, vpx_highbd_tm_predictor_16x16_sse2)
503506
504507 HIGHBD_INTRA_PRED_TEST(SSE2, TestHighbdIntraPred32,
505− vpx_highbd_dc_predictor_32x32_sse2, NULL,
508+ vpx_highbd_dc_predictor_32x32_sse2,
509+ vpx_highbd_dc_left_predictor_32x32_sse2,
506510 vpx_highbd_dc_top_predictor_32x32_sse2, NULL,
507511 vpx_highbd_v_predictor_32x32_sse2,
508512 vpx_highbd_h_predictor_32x32_sse2, NULL, NULL, NULL,
test/vp9_intrapred_test.cc+24−0
@@ -471,6 +471,14 @@ TEST_P(VP9HighbdIntraPredTest, HighbdIntraPredTests) { · 470 unmodified lines
471471 INSTANTIATE_TEST_CASE_P(
472472 SSE2_TO_C_8, VP9HighbdIntraPredTest,
473473 ::testing::Values(
474+ HighbdIntraPredParam(&vpx_highbd_dc_left_predictor_4x4_sse2,
475+ &vpx_highbd_dc_left_predictor_4x4_c, 4, 8),
476+ HighbdIntraPredParam(&vpx_highbd_dc_left_predictor_8x8_sse2,
477+ &vpx_highbd_dc_left_predictor_8x8_c, 8, 8),
478+ HighbdIntraPredParam(&vpx_highbd_dc_left_predictor_16x16_sse2,
479+ &vpx_highbd_dc_left_predictor_16x16_c, 16, 8),
480+ HighbdIntraPredParam(&vpx_highbd_dc_left_predictor_32x32_sse2,
481+ &vpx_highbd_dc_left_predictor_32x32_c, 32, 8),
474482 HighbdIntraPredParam(&vpx_highbd_dc_predictor_4x4_sse2,
475483 &vpx_highbd_dc_predictor_4x4_c, 4, 8),
476484 HighbdIntraPredParam(&vpx_highbd_dc_predictor_8x8_sse2,
@@ -515,6 +523,14 @@ INSTANTIATE_TEST_CASE_P( · 38 unmodified lines
515523 INSTANTIATE_TEST_CASE_P(
516524 SSE2_TO_C_10, VP9HighbdIntraPredTest,
517525 ::testing::Values(
526+ HighbdIntraPredParam(&vpx_highbd_dc_left_predictor_4x4_sse2,
527+ &vpx_highbd_dc_left_predictor_4x4_c, 4, 10),
528+ HighbdIntraPredParam(&vpx_highbd_dc_left_predictor_8x8_sse2,
529+ &vpx_highbd_dc_left_predictor_8x8_c, 8, 10),
530+ HighbdIntraPredParam(&vpx_highbd_dc_left_predictor_16x16_sse2,
531+ &vpx_highbd_dc_left_predictor_16x16_c, 16, 10),
532+ HighbdIntraPredParam(&vpx_highbd_dc_left_predictor_32x32_sse2,
533+ &vpx_highbd_dc_left_predictor_32x32_c, 32, 10),
518534 HighbdIntraPredParam(&vpx_highbd_dc_predictor_4x4_sse2,
519535 &vpx_highbd_dc_predictor_4x4_c, 4, 10),
520536 HighbdIntraPredParam(&vpx_highbd_dc_predictor_8x8_sse2,
@@ -559,6 +575,14 @@ INSTANTIATE_TEST_CASE_P( · 38 unmodified lines
559575 INSTANTIATE_TEST_CASE_P(
560576 SSE2_TO_C_12, VP9HighbdIntraPredTest,
561577 ::testing::Values(
578+ HighbdIntraPredParam(&vpx_highbd_dc_left_predictor_4x4_sse2,
579+ &vpx_highbd_dc_left_predictor_4x4_c, 4, 12),
580+ HighbdIntraPredParam(&vpx_highbd_dc_left_predictor_8x8_sse2,
581+ &vpx_highbd_dc_left_predictor_8x8_c, 8, 12),
582+ HighbdIntraPredParam(&vpx_highbd_dc_left_predictor_16x16_sse2,
583+ &vpx_highbd_dc_left_predictor_16x16_c, 16, 12),
584+ HighbdIntraPredParam(&vpx_highbd_dc_left_predictor_32x32_sse2,
585+ &vpx_highbd_dc_left_predictor_32x32_c, 32, 12),
562586 HighbdIntraPredParam(&vpx_highbd_dc_predictor_4x4_sse2,
563587 &vpx_highbd_dc_predictor_4x4_c, 4, 12),
564588 HighbdIntraPredParam(&vpx_highbd_dc_predictor_8x8_sse2,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t