Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Side by Side Diff: unit_test/convert_test.cc

Issue 1409913002: remove have jpeg test (Closed) Base URL: https://chromium.googlesource.com/libyuv/libyuv@master
Patch Set: git cl land Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « unit_test/color_test.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1430 matching lines...) Expand 10 before | Expand all | Expand 10 after
1441 } 1441 }
1442 free_aligned_buffer_64(dst_y); 1442 free_aligned_buffer_64(dst_y);
1443 free_aligned_buffer_64(dst_u); 1443 free_aligned_buffer_64(dst_u);
1444 free_aligned_buffer_64(dst_v); 1444 free_aligned_buffer_64(dst_v);
1445 free_aligned_buffer_64(dst_y_2); 1445 free_aligned_buffer_64(dst_y_2);
1446 free_aligned_buffer_64(dst_u_2); 1446 free_aligned_buffer_64(dst_u_2);
1447 free_aligned_buffer_64(dst_v_2); 1447 free_aligned_buffer_64(dst_v_2);
1448 free_aligned_buffer_64(src_y); 1448 free_aligned_buffer_64(src_y);
1449 } 1449 }
1450 1450
1451 TEST_F(LibYUVConvertTest, HaveJPEG) {
1452 #ifdef HAVE_JPEG
1453 printf("JPEG enabled\n.");
1454 #else
1455 printf("JPEG disabled\n.");
1456 #endif
1457 }
1458
1459 TEST_F(LibYUVConvertTest, TestYToARGB) { 1451 TEST_F(LibYUVConvertTest, TestYToARGB) {
1460 uint8 y[32]; 1452 uint8 y[32];
1461 uint8 expectedg[32]; 1453 uint8 expectedg[32];
1462 for (int i = 0; i < 32; ++i) { 1454 for (int i = 0; i < 32; ++i) {
1463 y[i] = i * 5 + 17; 1455 y[i] = i * 5 + 17;
1464 expectedg[i] = static_cast<int>((y[i] - 16) * 1.164f + 0.5f); 1456 expectedg[i] = static_cast<int>((y[i] - 16) * 1.164f + 0.5f);
1465 } 1457 }
1466 uint8 argb[32 * 4]; 1458 uint8 argb[32 * 4];
1467 YToARGB(y, 0, argb, 0, 32, 1); 1459 YToARGB(y, 0, argb, 0, 32, 1);
1468 1460
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
1693 free_aligned_buffer_64(dst_y_orig); \ 1685 free_aligned_buffer_64(dst_y_orig); \
1694 free_aligned_buffer_64(dst_uv_orig); \ 1686 free_aligned_buffer_64(dst_uv_orig); \
1695 free_aligned_buffer_64(dst_y); \ 1687 free_aligned_buffer_64(dst_y); \
1696 free_aligned_buffer_64(dst_uv); \ 1688 free_aligned_buffer_64(dst_uv); \
1697 } 1689 }
1698 1690
1699 TESTPTOB(TestYUY2ToNV12, YUY2ToI420, YUY2ToNV12) 1691 TESTPTOB(TestYUY2ToNV12, YUY2ToI420, YUY2ToNV12)
1700 TESTPTOB(TestUYVYToNV12, UYVYToI420, UYVYToNV12) 1692 TESTPTOB(TestUYVYToNV12, UYVYToI420, UYVYToNV12)
1701 1693
1702 } // namespace libyuv 1694 } // namespace libyuv
OLDNEW
« no previous file with comments | « unit_test/color_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698