• Home
  • Raw
  • Download

Lines Matching refs:kHeight

37     const int kHeight = benchmark_height_;                                    \
38 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \
40 SUBSAMPLE(kHeight, SRC_SUBSAMP_Y) + \
43 SUBSAMPLE(kHeight, SRC_SUBSAMP_Y) + \
45 align_buffer_page_end(dst_y_c, kWidth* kHeight); \
47 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
49 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
50 align_buffer_page_end(dst_y_opt, kWidth* kHeight); \
52 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
54 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
55 for (int i = 0; i < kHeight; ++i) \
58 for (int i = 0; i < SUBSAMPLE(kHeight, SRC_SUBSAMP_Y); ++i) { \
66 memset(dst_y_c, 1, kWidth* kHeight); \
68 SUBSAMPLE(kWidth, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
70 SUBSAMPLE(kWidth, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
71 memset(dst_y_opt, 101, kWidth* kHeight); \
73 SUBSAMPLE(kWidth, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
75 SUBSAMPLE(kWidth, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
81 SUBSAMPLE(kWidth, SUBSAMP_X), kWidth, NEG kHeight); \
88 SUBSAMPLE(kWidth, SUBSAMP_X), kWidth, NEG kHeight); \
91 for (int i = 0; i < kHeight; ++i) { \
101 for (int i = 0; i < SUBSAMPLE(kHeight, SUBSAMP_Y); ++i) { \
113 for (int i = 0; i < SUBSAMPLE(kHeight, SUBSAMP_Y); ++i) { \
162 const int kHeight = benchmark_height_; \
164 SUBSAMPLE(kWidth, SRC_SUBSAMP_X) * SUBSAMPLE(kHeight, SRC_SUBSAMP_Y); \
165 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \
168 align_buffer_page_end(dst_y_c, kWidth* kHeight); \
170 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
172 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
173 align_buffer_page_end(dst_y_opt, kWidth* kHeight); \
175 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
177 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
181 for (int i = 0; i < kHeight; ++i) \
184 for (int i = 0; i < SUBSAMPLE(kHeight, SRC_SUBSAMP_Y); ++i) { \
192 memset(dst_y_c, 1, kWidth* kHeight); \
194 SUBSAMPLE(kWidth, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
196 SUBSAMPLE(kWidth, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
197 memset(dst_y_opt, 101, kWidth* kHeight); \
199 SUBSAMPLE(kWidth, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
201 SUBSAMPLE(kWidth, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
207 SUBSAMPLE(kWidth, SUBSAMP_X), kWidth, NEG kHeight); \
214 dst_v_opt, SUBSAMPLE(kWidth, SUBSAMP_X), kWidth, NEG kHeight); \
217 for (int i = 0; i < kHeight; ++i) { \
227 for (int i = 0; i < SUBSAMPLE(kHeight, SUBSAMP_Y); ++i) { \
239 for (int i = 0; i < SUBSAMPLE(kHeight, SUBSAMP_Y); ++i) { \
285 const int kHeight = benchmark_height_; \
286 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \
288 SUBSAMPLE(kHeight, SRC_SUBSAMP_Y) + \
291 SUBSAMPLE(kHeight, SRC_SUBSAMP_Y) + \
293 align_buffer_page_end(dst_y_c, kWidth* kHeight); \
295 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
296 align_buffer_page_end(dst_y_opt, kWidth* kHeight); \
298 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
299 for (int i = 0; i < kHeight; ++i) \
302 for (int i = 0; i < SUBSAMPLE(kHeight, SRC_SUBSAMP_Y); ++i) { \
310 memset(dst_y_c, 1, kWidth* kHeight); \
312 SUBSAMPLE(kWidth * 2, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
313 memset(dst_y_opt, 101, kWidth* kHeight); \
315 SUBSAMPLE(kWidth * 2, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
320 dst_uv_c, SUBSAMPLE(kWidth * 2, SUBSAMP_X), kWidth, NEG kHeight); \
326 dst_uv_opt, SUBSAMPLE(kWidth * 2, SUBSAMP_X), kWidth, NEG kHeight); \
329 for (int i = 0; i < kHeight; ++i) { \
339 for (int i = 0; i < SUBSAMPLE(kHeight, SUBSAMP_Y); ++i) { \
380 const int kHeight = benchmark_height_; \
381 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \
383 SUBSAMPLE(kHeight, SRC_SUBSAMP_Y) + \
385 align_buffer_page_end(dst_y_c, kWidth* kHeight); \
387 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
389 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
390 align_buffer_page_end(dst_y_opt, kWidth* kHeight); \
392 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
394 SUBSAMPLE(kHeight, SUBSAMP_Y)); \
395 for (int i = 0; i < kHeight; ++i) \
398 for (int i = 0; i < SUBSAMPLE(kHeight, SRC_SUBSAMP_Y); ++i) { \
404 memset(dst_y_c, 1, kWidth* kHeight); \
406 SUBSAMPLE(kWidth, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
408 SUBSAMPLE(kWidth, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
409 memset(dst_y_opt, 101, kWidth* kHeight); \
411 SUBSAMPLE(kWidth, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
413 SUBSAMPLE(kWidth, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
419 SUBSAMPLE(kWidth, SUBSAMP_X), kWidth, NEG kHeight); \
426 SUBSAMPLE(kWidth, SUBSAMP_X), kWidth, NEG kHeight); \
430 for (int i = 0; i < kHeight; ++i) { \
441 for (int i = 0; i < SUBSAMPLE(kHeight, SUBSAMP_Y); ++i) { \
453 for (int i = 0; i < SUBSAMPLE(kHeight, SUBSAMP_Y); ++i) { \
498 const int kHeight = ALIGNINT(benchmark_height_, YALIGN); \
501 const int kSizeUV = kStrideUV * SUBSAMPLE(kHeight, SUBSAMP_Y); \
502 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \
505 align_buffer_page_end(dst_argb_c, kStrideB* kHeight + OFF); \
506 align_buffer_page_end(dst_argb_opt, kStrideB* kHeight + OFF); \
507 for (int i = 0; i < kWidth * kHeight; ++i) { \
514 memset(dst_argb_c + OFF, 1, kStrideB * kHeight); \
515 memset(dst_argb_opt + OFF, 101, kStrideB * kHeight); \
519 kWidth, NEG kHeight); \
524 kStrideB, kWidth, NEG kHeight); \
528 align_buffer_page_end(dst_argb32_c, kWidth* BPP_C* kHeight); \
529 align_buffer_page_end(dst_argb32_opt, kWidth* BPP_C* kHeight); \
530 memset(dst_argb32_c, 2, kWidth* BPP_C* kHeight); \
531 memset(dst_argb32_opt, 102, kWidth* BPP_C* kHeight); \
533 kWidth, kHeight); \
535 kWidth * BPP_C, kWidth, kHeight); \
536 for (int i = 0; i < kWidth * BPP_C * kHeight; ++i) { \
601 const int kHeight = ALIGNINT(benchmark_height_, YALIGN); \
604 const int kSizeUV = kStrideUV * SUBSAMPLE(kHeight, SUBSAMP_Y); \
605 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \
608 align_buffer_page_end(src_a, kWidth* kHeight + OFF); \
609 align_buffer_page_end(dst_argb_c, kStrideB* kHeight + OFF); \
610 align_buffer_page_end(dst_argb_opt, kStrideB* kHeight + OFF); \
611 for (int i = 0; i < kWidth * kHeight; ++i) { \
619 memset(dst_argb_c + OFF, 1, kStrideB * kHeight); \
620 memset(dst_argb_opt + OFF, 101, kStrideB * kHeight); \
624 dst_argb_c + OFF, kStrideB, kWidth, NEG kHeight, \
630 dst_argb_opt + OFF, kStrideB, kWidth, NEG kHeight, \
634 for (int i = 0; i < kWidth * BPP_B * kHeight; ++i) { \
670 const int kHeight = benchmark_height_; \
673 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \
675 kStrideUV* SUBSAMPLE(kHeight, SUBSAMP_Y) * 2 + OFF); \
676 align_buffer_page_end(dst_argb_c, kStrideB* kHeight); \
677 align_buffer_page_end(dst_argb_opt, kStrideB* kHeight); \
678 for (int i = 0; i < kHeight; ++i) \
681 for (int i = 0; i < SUBSAMPLE(kHeight, SUBSAMP_Y); ++i) { \
686 memset(dst_argb_c, 1, kStrideB* kHeight); \
687 memset(dst_argb_opt, 101, kStrideB* kHeight); \
690 dst_argb_c, kWidth * BPP_B, kWidth, NEG kHeight); \
695 NEG kHeight); \
698 align_buffer_page_end(dst_argb32_c, kWidth * 4 * kHeight); \
699 align_buffer_page_end(dst_argb32_opt, kWidth * 4 * kHeight); \
700 memset(dst_argb32_c, 2, kWidth * 4 * kHeight); \
701 memset(dst_argb32_opt, 102, kWidth * 4 * kHeight); \
703 kHeight); \
705 kHeight); \
707 for (int i = 0; i < kHeight; ++i) { \
748 const int kHeight = ALIGNINT(benchmark_height_, YALIGN); \
751 align_buffer_page_end(src_argb, kStride* kHeight + OFF); \
752 align_buffer_page_end(dst_y_c, kWidth* kHeight); \
753 align_buffer_page_end(dst_u_c, kStrideUV* SUBSAMPLE(kHeight, SUBSAMP_Y)); \
754 align_buffer_page_end(dst_v_c, kStrideUV* SUBSAMPLE(kHeight, SUBSAMP_Y)); \
755 align_buffer_page_end(dst_y_opt, kWidth* kHeight); \
757 kStrideUV* SUBSAMPLE(kHeight, SUBSAMP_Y)); \
759 kStrideUV* SUBSAMPLE(kHeight, SUBSAMP_Y)); \
760 memset(dst_y_c, 1, kWidth* kHeight); \
761 memset(dst_u_c, 2, kStrideUV* SUBSAMPLE(kHeight, SUBSAMP_Y)); \
762 memset(dst_v_c, 3, kStrideUV* SUBSAMPLE(kHeight, SUBSAMP_Y)); \
763 memset(dst_y_opt, 101, kWidth* kHeight); \
764 memset(dst_u_opt, 102, kStrideUV* SUBSAMPLE(kHeight, SUBSAMP_Y)); \
765 memset(dst_v_opt, 103, kStrideUV* SUBSAMPLE(kHeight, SUBSAMP_Y)); \
766 for (int i = 0; i < kHeight; ++i) \
771 kStrideUV, dst_v_c, kStrideUV, kWidth, NEG kHeight); \
776 kWidth, NEG kHeight); \
778 for (int i = 0; i < kHeight; ++i) { \
784 for (int i = 0; i < SUBSAMPLE(kHeight, SUBSAMP_Y); ++i) { \
790 for (int i = 0; i < SUBSAMPLE(kHeight, SUBSAMP_Y); ++i) { \
809 const int kHeight = ALIGNINT(benchmark_height_, YALIGN); \
812 align_buffer_page_end(src_argb, kStride* kHeight + OFF); \
813 align_buffer_page_end(dst_y_c, kWidth* kHeight); \
815 kStrideUV * 2 * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
816 align_buffer_page_end(dst_y_opt, kWidth* kHeight); \
818 kStrideUV * 2 * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
819 memset(dst_y_c, 1, kWidth* kHeight); \
820 memset(dst_uv_c, 2, kStrideUV * 2 * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
821 memset(dst_y_opt, 101, kWidth* kHeight); \
822 memset(dst_uv_opt, 102, kStrideUV * 2 * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
823 for (int i = 0; i < kHeight; ++i) \
829 kWidth, NEG kHeight); \
834 kStrideUV * 2, kWidth, NEG kHeight); \
836 for (int i = 0; i < kHeight; ++i) { \
842 for (int i = 0; i < SUBSAMPLE(kHeight, SUBSAMP_Y) * 2; ++i) { \
899 const int kHeight = benchmark_height_; \
902 align_buffer_page_end(src_argb, kStride* kHeight + OFF); \
903 align_buffer_page_end(dst_y_c, kWidth* kHeight); \
905 kStrideUV * 2 * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
906 align_buffer_page_end(dst_y_opt, kWidth* kHeight); \
908 kStrideUV * 2 * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
909 for (int i = 0; i < kHeight; ++i) \
912 memset(dst_y_c, 1, kWidth* kHeight); \
913 memset(dst_uv_c, 2, kStrideUV * 2 * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
914 memset(dst_y_opt, 101, kWidth* kHeight); \
915 memset(dst_uv_opt, 102, kStrideUV * 2 * SUBSAMPLE(kHeight, SUBSAMP_Y)); \
918 kStrideUV * 2, kWidth, NEG kHeight); \
922 dst_uv_opt, kStrideUV * 2, kWidth, NEG kHeight); \
925 for (int i = 0; i < kHeight; ++i) { \
935 for (int i = 0; i < SUBSAMPLE(kHeight, SUBSAMP_Y); ++i) { \
972 const int kHeight = benchmark_height_; \
973 const int kHeightA = (kHeight + HEIGHT_A - 1) / HEIGHT_A * HEIGHT_A; \
974 const int kHeightB = (kHeight + HEIGHT_B - 1) / HEIGHT_B * HEIGHT_B; \
989 NEG kHeight); \
993 kWidth, NEG kHeight); \
1014 const int kHeight = (fastrand() & 31) + 1; \
1015 const int kHeightA = (kHeight + HEIGHT_A - 1) / HEIGHT_A * HEIGHT_A; \
1016 const int kHeightB = (kHeight + HEIGHT_B - 1) / HEIGHT_B * HEIGHT_B; \
1031 kHeight); \
1034 kHeight); \
1099 const int kHeight = benchmark_height_; \
1100 const int kHeightA = (kHeight + HEIGHT_A - 1) / HEIGHT_A * HEIGHT_A; \
1101 const int kHeightB = (kHeight + HEIGHT_B - 1) / HEIGHT_B * HEIGHT_B; \
1116 NULL, kWidth, NEG kHeight); \
1120 kStrideB, NULL, kWidth, NEG kHeight); \
1141 const int kHeight = (fastrand() & 31) + 1; \
1142 const int kHeightA = (kHeight + HEIGHT_A - 1) / HEIGHT_A * HEIGHT_A; \
1143 const int kHeightB = (kHeight + HEIGHT_B - 1) / HEIGHT_B * HEIGHT_B; \
1158 kWidth, kHeight); \
1161 NULL, kWidth, kHeight); \
1195 const int kHeight = benchmark_height_; \
1196 const int kHeightA = (kHeight + HEIGHT_A - 1) / HEIGHT_A * HEIGHT_A; \
1209 NEG kHeight); \
1213 NEG kHeight); \
1216 FMT_ATOB(dst_argb_c, kStrideA, dst_argb_c, kStrideA, kWidth, NEG kHeight); \
1219 NEG kHeight); \
1438 const int kHeight = benchmark_height_; in TEST_F() local
1445 kWidth * kHeight + kStrideUV * SUBSAMPLE(kHeight, SUBSAMP_Y) * 2; in TEST_F()
1447 uint8* src_uv = src_y + kWidth * kHeight; in TEST_F()
1461 for (int i = 0; i < kHeight * kWidth; ++i) { in TEST_F()
1464 for (int i = 0; i < (SUBSAMPLE(kHeight, SUBSAMP_Y) * kStrideUV) * 2; ++i) { in TEST_F()
1480 SUBSAMPLE(kDestWidth, SUBSAMP_X), 0, crop_y, kWidth, kHeight, in TEST_F()
1601 const int kHeight = ALIGNINT(benchmark_height_, YALIGN); \
1604 const int kSizeUV = kStrideUV * SUBSAMPLE(kHeight, SUBSAMP_Y); \
1605 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \
1608 align_buffer_page_end(dst_argb_c, kStrideB* kHeight + OFF); \
1609 align_buffer_page_end(dst_argb_opt, kStrideB* kHeight + OFF); \
1610 for (int i = 0; i < kWidth * kHeight; ++i) { \
1617 memset(dst_argb_c + OFF, 1, kStrideB * kHeight); \
1618 memset(dst_argb_opt + OFF, 101, kStrideB * kHeight); \
1622 kStrideB, NULL, kWidth, NEG kHeight); \
1627 dst_argb_opt + OFF, kStrideB, NULL, kWidth, NEG kHeight); \
1631 align_buffer_page_end(dst_argb32_c, kWidth* BPP_C* kHeight); \
1632 align_buffer_page_end(dst_argb32_opt, kWidth* BPP_C* kHeight); \
1633 memset(dst_argb32_c, 2, kWidth* BPP_C* kHeight); \
1634 memset(dst_argb32_opt, 102, kWidth* BPP_C* kHeight); \
1636 kWidth, kHeight); \
1638 kWidth * BPP_C, kWidth, kHeight); \
1639 for (int i = 0; i < kWidth * BPP_C * kHeight; ++i) { \
1674 const int kHeight = benchmark_height_; \
1676 align_buffer_page_end(orig_uyvy, 4 * SUBSAMPLE(kWidth, 2) * kHeight); \
1677 align_buffer_page_end(orig_y, kWidth* kHeight); \
1679 SUBSAMPLE(kWidth, 2) * SUBSAMPLE(kHeight, 2)); \
1681 SUBSAMPLE(kWidth, 2) * SUBSAMPLE(kHeight, 2)); \
1683 align_buffer_page_end(dst_y_orig, kWidth* kHeight); \
1685 2 * SUBSAMPLE(kWidth, 2) * SUBSAMPLE(kHeight, 2)); \
1687 align_buffer_page_end(dst_y, kWidth* kHeight); \
1689 2 * SUBSAMPLE(kWidth, 2) * SUBSAMPLE(kHeight, 2)); \
1691 MemRandomize(orig_uyvy, 4 * SUBSAMPLE(kWidth, 2) * kHeight); \
1696 SUBSAMPLE(kWidth, 2), kWidth, kHeight); \
1699 2 * SUBSAMPLE(kWidth, 2), kWidth, kHeight); \
1704 dst_uv, 2 * SUBSAMPLE(kWidth, 2), kWidth, kHeight); \
1707 for (int i = 0; i < kWidth * kHeight; ++i) { \
1710 for (int i = 0; i < kWidth * kHeight; ++i) { \
1713 for (int i = 0; i < 2 * SUBSAMPLE(kWidth, 2) * SUBSAMPLE(kHeight, 2); \
1735 const int kHeight = benchmark_height_; \ in TESTPTOB()
1738 const int kSizeUV = kStrideUV * SUBSAMPLE(kHeight, SUBSAMP_Y); \ in TESTPTOB()
1739 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \ in TESTPTOB()
1742 align_buffer_page_end(dst_argb_b, kStrideB* kHeight + OFF); \ in TESTPTOB()
1743 for (int i = 0; i < kWidth * kHeight; ++i) { \ in TESTPTOB()
1750 memset(dst_argb_b + OFF, 1, kStrideB * kHeight); \ in TESTPTOB()
1754 kStrideB, kWidth, NEG kHeight); \ in TESTPTOB()
1758 align_buffer_page_end(dst_argb_c, kStrideC* kHeight + OFF); \ in TESTPTOB()
1759 align_buffer_page_end(dst_argb_bc, kStrideC* kHeight + OFF); \ in TESTPTOB()
1760 memset(dst_argb_c + OFF, 2, kStrideC * kHeight); \ in TESTPTOB()
1761 memset(dst_argb_bc + OFF, 3, kStrideC * kHeight); \ in TESTPTOB()
1764 kWidth, NEG kHeight); \ in TESTPTOB()
1767 kWidth, kHeight); \ in TESTPTOB()
1768 for (int i = 0; i < kStrideC * kHeight; ++i) { \ in TESTPTOB()
1826 const int kHeight = benchmark_height_; \
1829 SUBSAMPLE(kWidth, SUBSAMP_X) * SUBSAMPLE(kHeight, SUBSAMP_Y); \
1830 align_buffer_page_end(src_y, kWidth* kHeight + OFF); \
1833 align_buffer_page_end(src_a, kWidth* kHeight + OFF); \
1834 align_buffer_page_end(dst_argb_b, kStrideB* kHeight + OFF); \
1835 for (int i = 0; i < kWidth * kHeight; ++i) { \
1843 memset(dst_argb_b + OFF, 1, kStrideB * kHeight); \
1848 dst_argb_b + OFF, kStrideB, kWidth, NEG kHeight, ATTEN); \
1852 align_buffer_page_end(dst_argb_c, kStrideC* kHeight + OFF); \
1853 align_buffer_page_end(dst_argb_bc, kStrideC* kHeight + OFF); \
1854 memset(dst_argb_c + OFF, 2, kStrideC * kHeight); \
1855 memset(dst_argb_bc + OFF, 3, kStrideC * kHeight); \
1859 dst_argb_c + OFF, kStrideC, kWidth, NEG kHeight, ATTEN); \
1862 kWidth, kHeight); \
1863 for (int i = 0; i < kStrideC * kHeight; ++i) { \