OLD | NEW |
1 /* | 1 /* |
2 * libjingle | 2 * libjingle |
3 * Copyright 2014 Google Inc. | 3 * Copyright 2014 Google Inc. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
(...skipping 14 matching lines...) Expand all Loading... |
25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 */ | 26 */ |
27 | 27 |
28 #include <string> | 28 #include <string> |
29 | 29 |
30 #include "libyuv/convert.h" | 30 #include "libyuv/convert.h" |
31 #include "libyuv/convert_from.h" | 31 #include "libyuv/convert_from.h" |
32 #include "libyuv/convert_from_argb.h" | 32 #include "libyuv/convert_from_argb.h" |
33 #include "libyuv/mjpeg_decoder.h" | 33 #include "libyuv/mjpeg_decoder.h" |
34 #include "libyuv/planar_functions.h" | 34 #include "libyuv/planar_functions.h" |
35 #include "talk/media/base/testutils.h" | |
36 #include "talk/media/base/videocommon.h" | |
37 #include "webrtc/base/flags.h" | 35 #include "webrtc/base/flags.h" |
38 #include "webrtc/base/gunit.h" | 36 #include "webrtc/base/gunit.h" |
39 #include "webrtc/base/scoped_ptr.h" | 37 #include "webrtc/base/scoped_ptr.h" |
| 38 #include "webrtc/media/base/testutils.h" |
| 39 #include "webrtc/media/base/videocommon.h" |
40 | 40 |
41 // Undefine macros for the windows build. | 41 // Undefine macros for the windows build. |
42 #undef max | 42 #undef max |
43 #undef min | 43 #undef min |
44 | 44 |
45 using cricket::DumpPlanarYuvTestImage; | 45 using cricket::DumpPlanarYuvTestImage; |
46 | 46 |
47 DEFINE_bool(planarfunctions_dump, false, | 47 DEFINE_bool(planarfunctions_dump, false, |
48 "whether to write out scaled images for inspection"); | 48 "whether to write out scaled images for inspection"); |
49 DEFINE_int(planarfunctions_repeat, 1, | 49 DEFINE_int(planarfunctions_repeat, 1, |
(...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
933 // Parameter Test: The parameter is the unalignment offset. | 933 // Parameter Test: The parameter is the unalignment offset. |
934 // Aligned data for testing assembly versions. | 934 // Aligned data for testing assembly versions. |
935 INSTANTIATE_TEST_CASE_P(PlanarFunctionsAligned, PlanarFunctionsTest, | 935 INSTANTIATE_TEST_CASE_P(PlanarFunctionsAligned, PlanarFunctionsTest, |
936 ::testing::Values(0)); | 936 ::testing::Values(0)); |
937 | 937 |
938 // Purposely unalign the output argb pointer to test slow path (C version). | 938 // Purposely unalign the output argb pointer to test slow path (C version). |
939 INSTANTIATE_TEST_CASE_P(PlanarFunctionsMisaligned, PlanarFunctionsTest, | 939 INSTANTIATE_TEST_CASE_P(PlanarFunctionsMisaligned, PlanarFunctionsTest, |
940 ::testing::Values(1)); | 940 ::testing::Values(1)); |
941 | 941 |
942 } // namespace cricket | 942 } // namespace cricket |
OLD | NEW |