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
481 481
482#if HAVE_SSE2482#if HAVE_SSE2
483HIGHBD_INTRA_PRED_TEST(SSE2, TestHighbdIntraPred4,483HIGHBD_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,
485 vpx_highbd_dc_top_predictor_4x4_sse2, NULL,486 vpx_highbd_dc_top_predictor_4x4_sse2, NULL,
486 vpx_highbd_v_predictor_4x4_sse2,487 vpx_highbd_v_predictor_4x4_sse2,
487 vpx_highbd_h_predictor_4x4_sse2, NULL, NULL, NULL, NULL,488 vpx_highbd_h_predictor_4x4_sse2, NULL, NULL, NULL, NULL,
488 NULL, NULL, vpx_highbd_tm_predictor_4x4_c)489 NULL, NULL, vpx_highbd_tm_predictor_4x4_c)
489 490
490HIGHBD_INTRA_PRED_TEST(SSE2, TestHighbdIntraPred8,491HIGHBD_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,
492 vpx_highbd_dc_top_predictor_8x8_sse2, NULL,494 vpx_highbd_dc_top_predictor_8x8_sse2, NULL,
493 vpx_highbd_v_predictor_8x8_sse2,495 vpx_highbd_v_predictor_8x8_sse2,
494 vpx_highbd_h_predictor_8x8_sse2, NULL, NULL, NULL, NULL,496 vpx_highbd_h_predictor_8x8_sse2, NULL, NULL, NULL, NULL,
495 NULL, NULL, vpx_highbd_tm_predictor_8x8_sse2)497 NULL, NULL, vpx_highbd_tm_predictor_8x8_sse2)
496 498
497HIGHBD_INTRA_PRED_TEST(SSE2, TestHighbdIntraPred16,499HIGHBD_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,
499 vpx_highbd_dc_top_predictor_16x16_sse2, NULL,502 vpx_highbd_dc_top_predictor_16x16_sse2, NULL,
500 vpx_highbd_v_predictor_16x16_sse2,503 vpx_highbd_v_predictor_16x16_sse2,
501 vpx_highbd_h_predictor_16x16_sse2, NULL, NULL, NULL,504 vpx_highbd_h_predictor_16x16_sse2, NULL, NULL, NULL,
502 NULL, NULL, NULL, vpx_highbd_tm_predictor_16x16_sse2)505 NULL, NULL, NULL, vpx_highbd_tm_predictor_16x16_sse2)
503 506
504HIGHBD_INTRA_PRED_TEST(SSE2, TestHighbdIntraPred32,507HIGHBD_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,
506 vpx_highbd_dc_top_predictor_32x32_sse2, NULL,510 vpx_highbd_dc_top_predictor_32x32_sse2, NULL,
507 vpx_highbd_v_predictor_32x32_sse2,511 vpx_highbd_v_predictor_32x32_sse2,
508 vpx_highbd_h_predictor_32x32_sse2, NULL, NULL, NULL,512 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
471INSTANTIATE_TEST_CASE_P(471INSTANTIATE_TEST_CASE_P(
472 SSE2_TO_C_8, VP9HighbdIntraPredTest,472 SSE2_TO_C_8, VP9HighbdIntraPredTest,
473 ::testing::Values(473 ::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),
474 HighbdIntraPredParam(&vpx_highbd_dc_predictor_4x4_sse2,482 HighbdIntraPredParam(&vpx_highbd_dc_predictor_4x4_sse2,
475 &vpx_highbd_dc_predictor_4x4_c, 4, 8),483 &vpx_highbd_dc_predictor_4x4_c, 4, 8),
476 HighbdIntraPredParam(&vpx_highbd_dc_predictor_8x8_sse2,484 HighbdIntraPredParam(&vpx_highbd_dc_predictor_8x8_sse2,
@@ -515,6 +523,14 @@ INSTANTIATE_TEST_CASE_P( · 38 unmodified lines
515INSTANTIATE_TEST_CASE_P(523INSTANTIATE_TEST_CASE_P(
516 SSE2_TO_C_10, VP9HighbdIntraPredTest,524 SSE2_TO_C_10, VP9HighbdIntraPredTest,
517 ::testing::Values(525 ::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),
518 HighbdIntraPredParam(&vpx_highbd_dc_predictor_4x4_sse2,534 HighbdIntraPredParam(&vpx_highbd_dc_predictor_4x4_sse2,
519 &vpx_highbd_dc_predictor_4x4_c, 4, 10),535 &vpx_highbd_dc_predictor_4x4_c, 4, 10),
520 HighbdIntraPredParam(&vpx_highbd_dc_predictor_8x8_sse2,536 HighbdIntraPredParam(&vpx_highbd_dc_predictor_8x8_sse2,
@@ -559,6 +575,14 @@ INSTANTIATE_TEST_CASE_P( · 38 unmodified lines
559INSTANTIATE_TEST_CASE_P(575INSTANTIATE_TEST_CASE_P(
560 SSE2_TO_C_12, VP9HighbdIntraPredTest,576 SSE2_TO_C_12, VP9HighbdIntraPredTest,
561 ::testing::Values(577 ::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),
562 HighbdIntraPredParam(&vpx_highbd_dc_predictor_4x4_sse2,586 HighbdIntraPredParam(&vpx_highbd_dc_predictor_4x4_sse2,
563 &vpx_highbd_dc_predictor_4x4_c, 4, 12),587 &vpx_highbd_dc_predictor_4x4_c, 4, 12),
564 HighbdIntraPredParam(&vpx_highbd_dc_predictor_8x8_sse2,588 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