OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 The LibYuv Project Authors. All rights reserved. | 2 * Copyright 2011 The LibYuv Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
759 TESTATOPLANARI(FMT_A, BPP_A, YALIGN, FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, \ | 759 TESTATOPLANARI(FMT_A, BPP_A, YALIGN, FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, \ |
760 benchmark_width_, DIFF, _Invert, -, 0) \ | 760 benchmark_width_, DIFF, _Invert, -, 0) \ |
761 TESTATOPLANARI(FMT_A, BPP_A, YALIGN, FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, \ | 761 TESTATOPLANARI(FMT_A, BPP_A, YALIGN, FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, \ |
762 benchmark_width_, DIFF, _Opt, +, 0) | 762 benchmark_width_, DIFF, _Opt, +, 0) |
763 | 763 |
764 TESTATOPLANAR(ARGB, 4, 1, I420, 2, 2, 4) | 764 TESTATOPLANAR(ARGB, 4, 1, I420, 2, 2, 4) |
765 #if defined(__arm__) || defined (__aarch64__) | 765 #if defined(__arm__) || defined (__aarch64__) |
766 // arm version subsamples by summing 4 pixels then multiplying by matrix with | 766 // arm version subsamples by summing 4 pixels then multiplying by matrix with |
767 // 4x smaller coefficients which are rounded to nearest integer. | 767 // 4x smaller coefficients which are rounded to nearest integer. |
768 TESTATOPLANAR(ARGB, 4, 1, J420, 2, 2, 4) | 768 TESTATOPLANAR(ARGB, 4, 1, J420, 2, 2, 4) |
| 769 TESTATOPLANAR(ARGB, 4, 1, J422, 2, 1, 4) |
769 #else | 770 #else |
770 TESTATOPLANAR(ARGB, 4, 1, J420, 2, 2, 0) | 771 TESTATOPLANAR(ARGB, 4, 1, J420, 2, 2, 0) |
| 772 TESTATOPLANAR(ARGB, 4, 1, J422, 2, 1, 0) |
771 #endif | 773 #endif |
772 TESTATOPLANAR(BGRA, 4, 1, I420, 2, 2, 4) | 774 TESTATOPLANAR(BGRA, 4, 1, I420, 2, 2, 4) |
773 TESTATOPLANAR(ABGR, 4, 1, I420, 2, 2, 4) | 775 TESTATOPLANAR(ABGR, 4, 1, I420, 2, 2, 4) |
774 TESTATOPLANAR(RGBA, 4, 1, I420, 2, 2, 4) | 776 TESTATOPLANAR(RGBA, 4, 1, I420, 2, 2, 4) |
775 TESTATOPLANAR(RAW, 3, 1, I420, 2, 2, 4) | 777 TESTATOPLANAR(RAW, 3, 1, I420, 2, 2, 4) |
776 TESTATOPLANAR(RGB24, 3, 1, I420, 2, 2, 4) | 778 TESTATOPLANAR(RGB24, 3, 1, I420, 2, 2, 4) |
777 TESTATOPLANAR(RGB565, 2, 1, I420, 2, 2, 5) | 779 TESTATOPLANAR(RGB565, 2, 1, I420, 2, 2, 5) |
778 // TODO(fbarchard): Make 1555 neon work same as C code, reduce to diff 9. | 780 // TODO(fbarchard): Make 1555 neon work same as C code, reduce to diff 9. |
779 TESTATOPLANAR(ARGB1555, 2, 1, I420, 2, 2, 15) | 781 TESTATOPLANAR(ARGB1555, 2, 1, I420, 2, 2, 15) |
780 TESTATOPLANAR(ARGB4444, 2, 1, I420, 2, 2, 17) | 782 TESTATOPLANAR(ARGB4444, 2, 1, I420, 2, 2, 17) |
(...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1848 benchmark_width_, _Invert, -, 0, FMT_C, BPP_C, 0) \ | 1850 benchmark_width_, _Invert, -, 0, FMT_C, BPP_C, 0) \ |
1849 TESTQPLANARTOEI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, SUB_B, BPP_B, \ | 1851 TESTQPLANARTOEI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, SUB_B, BPP_B, \ |
1850 benchmark_width_, _Opt, +, 0, FMT_C, BPP_C, 0) \ | 1852 benchmark_width_, _Opt, +, 0, FMT_C, BPP_C, 0) \ |
1851 TESTQPLANARTOEI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, SUB_B, BPP_B, \ | 1853 TESTQPLANARTOEI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, SUB_B, BPP_B, \ |
1852 benchmark_width_, _Premult, +, 0, FMT_C, BPP_C, 1) | 1854 benchmark_width_, _Premult, +, 0, FMT_C, BPP_C, 1) |
1853 | 1855 |
1854 TESTQPLANARTOE(I420Alpha, 2, 2, ARGB, 1, 4, ABGR, 4) | 1856 TESTQPLANARTOE(I420Alpha, 2, 2, ARGB, 1, 4, ABGR, 4) |
1855 TESTQPLANARTOE(I420Alpha, 2, 2, ABGR, 1, 4, ARGB, 4) | 1857 TESTQPLANARTOE(I420Alpha, 2, 2, ABGR, 1, 4, ARGB, 4) |
1856 | 1858 |
1857 } // namespace libyuv | 1859 } // namespace libyuv |
OLD | NEW |