| 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 1827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1838 /* Convert B to C */ \ | 1838 /* Convert B to C */ \ |
| 1839 FMT_B##To##FMT_C(dst_argb_b + OFF, kStrideB, \ | 1839 FMT_B##To##FMT_C(dst_argb_b + OFF, kStrideB, \ |
| 1840 dst_argb_bc + OFF, kStrideC, \ | 1840 dst_argb_bc + OFF, kStrideC, \ |
| 1841 kWidth, kHeight); \ | 1841 kWidth, kHeight); \ |
| 1842 for (int i = 0; i < kStrideC * kHeight; ++i) { \ | 1842 for (int i = 0; i < kStrideC * kHeight; ++i) { \ |
| 1843 EXPECT_EQ(dst_argb_c[i + OFF], dst_argb_bc[i + OFF]); \ | 1843 EXPECT_EQ(dst_argb_c[i + OFF], dst_argb_bc[i + OFF]); \ |
| 1844 } \ | 1844 } \ |
| 1845 free_aligned_buffer_64(src_y); \ | 1845 free_aligned_buffer_64(src_y); \ |
| 1846 free_aligned_buffer_64(src_u); \ | 1846 free_aligned_buffer_64(src_u); \ |
| 1847 free_aligned_buffer_64(src_v); \ | 1847 free_aligned_buffer_64(src_v); \ |
| 1848 free_aligned_buffer_64(src_a); \ |
| 1848 free_aligned_buffer_64(dst_argb_b); \ | 1849 free_aligned_buffer_64(dst_argb_b); \ |
| 1849 free_aligned_buffer_64(dst_argb_c); \ | 1850 free_aligned_buffer_64(dst_argb_c); \ |
| 1850 free_aligned_buffer_64(dst_argb_bc); \ | 1851 free_aligned_buffer_64(dst_argb_bc); \ |
| 1851 } | 1852 } |
| 1852 | 1853 |
| 1853 #define TESTQPLANARTOE(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B, \ | 1854 #define TESTQPLANARTOE(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B, \ |
| 1854 FMT_C, BPP_C) \ | 1855 FMT_C, BPP_C) \ |
| 1855 TESTQPLANARTOEI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B, \ | 1856 TESTQPLANARTOEI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B, \ |
| 1856 benchmark_width_ - 4, _Any, +, 0, FMT_C, BPP_C, 0) \ | 1857 benchmark_width_ - 4, _Any, +, 0, FMT_C, BPP_C, 0) \ |
| 1857 TESTQPLANARTOEI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B, \ | 1858 TESTQPLANARTOEI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B, \ |
| 1858 benchmark_width_, _Unaligned, +, 1, FMT_C, BPP_C, 0) \ | 1859 benchmark_width_, _Unaligned, +, 1, FMT_C, BPP_C, 0) \ |
| 1859 TESTQPLANARTOEI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B, \ | 1860 TESTQPLANARTOEI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B, \ |
| 1860 benchmark_width_, _Invert, -, 0, FMT_C, BPP_C, 0) \ | 1861 benchmark_width_, _Invert, -, 0, FMT_C, BPP_C, 0) \ |
| 1861 TESTQPLANARTOEI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B, \ | 1862 TESTQPLANARTOEI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B, \ |
| 1862 benchmark_width_, _Opt, +, 0, FMT_C, BPP_C, 0) \ | 1863 benchmark_width_, _Opt, +, 0, FMT_C, BPP_C, 0) \ |
| 1863 TESTQPLANARTOEI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B, \ | 1864 TESTQPLANARTOEI(FMT_PLANAR, SUBSAMP_X, SUBSAMP_Y, FMT_B, BPP_B, \ |
| 1864 benchmark_width_, _Premult, +, 0, FMT_C, BPP_C, 1) | 1865 benchmark_width_, _Premult, +, 0, FMT_C, BPP_C, 1) |
| 1865 | 1866 |
| 1866 TESTQPLANARTOE(I420Alpha, 2, 2, ARGB, 4, ABGR, 4) | 1867 TESTQPLANARTOE(I420Alpha, 2, 2, ARGB, 4, ABGR, 4) |
| 1867 TESTQPLANARTOE(I420Alpha, 2, 2, ABGR, 4, ARGB, 4) | 1868 TESTQPLANARTOE(I420Alpha, 2, 2, ABGR, 4, ARGB, 4) |
| 1868 | 1869 |
| 1869 } // namespace libyuv | 1870 } // namespace libyuv |
| OLD | NEW |