Home
last modified time | relevance | path

Searched +full:test +full:. +full:rgb (Results 1 – 25 of 365) sorted by relevance

12345678910>>...15

/external/python/cpython2/Lib/test/
Dtest_imgfile.py1 """Simple test script for imgfile.c
2 Roger E. Masse
5 from test.test_support import verbose, unlink, findfile, import_module
13 on the image passed in name.
24 # of the image in pixels and z is the number of bytes per pixel. Only
25 # 3 byte RGB pixels and 1 byte greyscale pixels are supported.
26 sizes = imgfile.getsizes(name)
27 except imgfile.error:
28 # get a more qualified path component of the script...
30 ourname = sys.argv[0]
[all …]
Dtest_imageop.py1 """Test script for the imageop module. This has the side
2 effect of partially testing the imgfile module as well.
3 Roger E. Masse
6 from test.test_support import verbose, unlink, import_module, run_unittest
19 class InputValidationTests(unittest.TestCase):
38 except (ValueError, imageop.error):
43 self._check(name, size, *extra)
46 self._check(name, None, *extra)
49 self.check_size("crop", 0, 0, 0, 0)
50 self.check_size("scale", 1, 0)
[all …]
Dtest_colorsys.py1 import unittest, test.test_support
9 class ColorsysTest(unittest.TestCase):
12 self.assertEqual(len(tr1), 3)
13 self.assertEqual(len(tr2), 3)
14 self.assertAlmostEqual(tr1[0], tr2[0])
15 self.assertAlmostEqual(tr1[1], tr2[1])
16 self.assertAlmostEqual(tr1[2], tr2[2])
22 rgb = (r, g, b)
23 self.assertTripleEqual(
24 rgb,
[all …]
/external/autotest/client/cros/image_comparison/
Drgb_image_comparer.py1 # Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
3 # found in the LICENSE file.
10 from autotest_lib.client.cros.image_comparison import comparison_result
11 from autotest_lib.client.cros.video import method_logger
25 Compares two RGB images using built-in python image library.
31 self.pixel_threshold = rgb_pixel_threshold
34 @method_logger.log
37 Compares a test image against a known golden image.
39 Both images must be RGB images.
41 @param golden_img_path: path, complete path to a golden image.
[all …]
/external/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/
DGlRectDrawerTest.java3 * Copyright 2015 Google Inc.
8 * 1. Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright notice,
12 * and/or other materials provided with the distribution.
13 * 3. The name of the author may not be used to endorse or promote products
14 * derived from this software without specific prior written permission.
18 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 package org.webrtc;
[all …]
/external/ImageMagick/tests/
Dcli-colorspace.tap4 # dedicated to making software imaging solutions freely available.
6 # You may not use this file except in compliance with the License. You may
9 # http://www.imagemagick.org/script/license.php
13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # limitations under the License.
17 . ./common.shi
18 . ${srcdir}/tests/common.shi
22 echo "1..1"
26 echo "1..19"
29 in="rose: -scale 1x1" # a one pixel image of the average color.
[all …]
/external/ImageMagick/PerlMagick/t/
Dwrite.t3 # dedicated to making software imaging solutions freely available.
5 # You may not use this file except in compliance with the License. You may
8 # http://www.imagemagick.org/script/license.php
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # limitations under the License.
16 # Test writing formats supported directly by ImageMagick
19 BEGIN { $| = 1; $test=1; print "1..32\n"; }
20 END {print "not ok $test\n" unless $loaded;}
24 require 't/subroutines.pl';
28 print("AVS X image file ...\n");
[all …]
Dread.t3 # dedicated to making software imaging solutions freely available.
5 # You may not use this file except in compliance with the License. You may
8 # http://www.imagemagick.org/script/license.php
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 # limitations under the License.
16 # Test reading formats supported directly by ImageMagick.
18 BEGIN { $| = 1; $test=1; print "1..47\n"; }
19 END {print "not ok $test\n" unless $loaded;}
23 require 't/subroutines.pl';
27 print("AVS X image file ...\n");
[all …]
/external/pdfium/xfa/fde/css/
Dcfde_cssvaluelistparser_unittest.cpp1 // Copyright 2017 PDFium Authors. All rights reserved.
3 // found in the LICENSE file.
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
7 #include "xfa/fde/css/cfde_cssvaluelistparser.h"
9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "third_party/base/ptr_util.h"
12 TEST(CFDE_CSSValueListParser, rgb_short) { in TEST() function
19 EXPECT_EQ(FDE_CSSPrimitiveType::RGB, type); in TEST()
25 EXPECT_EQ(FDE_CSSPrimitiveType::RGB, type); in TEST()
30 pdfium::MakeUnique<CFDE_CSSValueListParser>(L"rgb(1, 255, 4)", 14, L' '); in TEST()
[all …]
Dcfde_cssdeclaration_unittest.cpp1 // Copyright 2017 PDFium Authors. All rights reserved.
3 // found in the LICENSE file.
5 #include "xfa/fde/css/cfde_cssdeclaration.h"
7 #include "testing/gtest/include/gtest/gtest.h"
9 TEST(CFDE_CSSDecalration, HexEncodingParsing) { in TEST() function
12 // Length value invalid. in TEST()
38 // Upper and lower case characters. in TEST()
45 TEST(CFDE_CSSDecalration, RGBEncodingParsing) { in TEST() function
48 // Invalid input for rgb() syntax. in TEST()
51 EXPECT_TRUE(CFDE_CSSDeclaration::ParseCSSColor(L"rgb(0, 0, 0)", 12, &color)); in TEST()
[all …]
/external/libdrm/tests/util/
Dpattern.c3 * Jakob Bornecrantz <jakob@tungstengraphics.com>
5 * Jesse Barnes <jesse.barnes@intel.com>
15 * all copies or substantial portions of the Software.
19 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23 * IN THE SOFTWARE.
27 #include "config.h"
30 #include <stdint.h>
31 #include <stdio.h>
32 #include <stdlib.h>
33 #include <string.h>
[all …]
/external/deqp/modules/gles2/functional/
Des2fBlendTests.cpp8 * you may not use this file except in compliance with the License.
11 * http://www.apache.org/licenses/LICENSE-2.0
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * limitations under the License.
21 * \brief Blend tests.
24 #include "es2fBlendTests.hpp"
25 #include "glsFragmentOpUtil.hpp"
26 #include "gluPixelTransfer.hpp"
27 #include "gluStrUtil.hpp"
28 #include "tcuSurface.hpp"
[all …]
/external/skia/gm/
Dimagefromyuvtextures.cpp2 * Copyright 2015 Google Inc.
5 * found in the LICENSE file.
8 // This test only works with the GPU backend.
10 #include "gm.h"
14 #include "GrContext.h"
15 #include "GrGpu.h"
16 #include "GrTest.h"
17 #include "SkBitmap.h"
18 #include "SkGradientShader.h"
19 #include "SkImage.h"
[all …]
/external/autotest/server/site_tests/video_PlaybackQuality/
Dvideo_PlaybackQuality.py1 # Copyright 2016 The Chromium OS Authors. All rights reserved.
3 # found in the LICENSE file.
10 from autotest_lib.client.bin import utils
11 from autotest_lib.client.common_lib import error
12 from autotest_lib.client.common_lib import file_utils
13 from autotest_lib.client.cros.chameleon import chameleon_port_finder
14 from autotest_lib.client.cros.chameleon import chameleon_stream_server
15 from autotest_lib.client.cros.chameleon import edid
16 from autotest_lib.server import test
17 from autotest_lib.server.cros.multimedia import remote_facade_factory
[all …]
/external/owasp/sanitizer/src/tests/org/owasp/html/
DSanitizersTest.java2 // All rights reserved.
9 // notice, this list of conditions and the following disclaimer.
12 // documentation and/or other materials provided with the distribution.
15 // without specific prior written permission.
19 // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
27 // POSSIBILITY OF SUCH DAMAGE.
29 package org.owasp.html;
31 import org.junit.Test;
33 import junit.framework.TestCase;
37 @Test
[all …]
DStylingPolicyTest.java2 // All rights reserved.
9 // notice, this list of conditions and the following disclaimer.
12 // documentation and/or other materials provided with the distribution.
15 // without specific prior written permission.
19 // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
27 // POSSIBILITY OF SUCH DAMAGE.
29 package org.owasp.html;
31 import javax.annotation.Nullable;
33 import org.junit.Test;
35 import junit.framework.TestCase;
[all …]
/external/deqp/modules/gles3/functional/
Des3fBlendTests.cpp8 * you may not use this file except in compliance with the License.
11 * http://www.apache.org/licenses/LICENSE-2.0
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * limitations under the License.
21 * \brief Blend tests.
24 #include "es3fBlendTests.hpp"
25 #include "gluStrUtil.hpp"
26 #include "glsFragmentOpUtil.hpp"
27 #include "gluPixelTransfer.hpp"
28 #include "tcuPixelFormat.hpp"
[all …]
/external/libjpeg-turbo/
DMakefile.am1 lib_LTLIBRARIES = libjpeg.la
3 include_HEADERS = jerror.h jmorecfg.h jpeglib.h
6 lib_LTLIBRARIES += libturbojpeg.la
8 include_HEADERS += turbojpeg.h
11 nodist_include_HEADERS = jconfig.h
14 pkgconfig_DATA = pkgscripts/libjpeg.pc
16 pkgconfig_DATA += pkgscripts/libturbojpeg.pc
19 HDRS = jchuff.h jdct.h jdhuff.h jerror.h jinclude.h jmemsys.h jmorecfg.h \
20 jpegint.h jpeglib.h jversion.h jsimd.h jsimddct.h jpegcomp.h \
21 jpeg_nbits_table.h
[all …]
DChangeLog.md1 1.5.1
4 ### Significant changes relative to 1.5.0:
6 1. Previously, the undocumented `JSIMD_FORCE*` environment variables could be
8 sets were available on a particular platform. On x86 platforms, where CPU
11 use of an instruction set only if that instruction set is available. However,
16 instructions. A new environment variable (`JSIMD_FORCEDSPR2`) was introduced
18 `JSIMD_FORCENONE` environment variable was extended to that implementation.
19 These environment variables provide a workaround for those attempting to test
21 /proc/cpuinfo from the host system.
23 2. libjpeg-turbo previously assumed that AltiVec instructions were always
[all …]
/external/webrtc/webrtc/modules/video_render/test/testAPI/
DtestAPI.cc2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
11 #include "webrtc/modules/video_render/test/testAPI/testAPI.h"
13 #include <stdio.h>
16 #include <tchar.h>
17 #include <windows.h>
18 #include <assert.h>
22 #include <windows.h>
[all …]
/external/webp/src/dsp/
Dalpha_processing_neon.c1 // Copyright 2017 Google Inc. All Rights Reserved.
5 // tree. An additional intellectual property rights grant can be found
6 // in the file PATENTS. All contributing project authors may
7 // be found in the AUTHORS file in the root of the source tree.
10 // Utilities for processing transparent channel, NEON version.
12 // Author: Skal (pascal.massimino@gmail.com)
14 #include "./dsp.h"
18 #include "./neon.h"
26 const uint8x8_t alpha = (V).val[(ALPHA)]; \
27 const uint16x8_t r1 = vmull_u8((V).val[1], alpha); \
[all …]
/external/libpng/contrib/libtests/
Dgentests.sh5 # Last changed in libpng 1.6.0 [February 14, 2013]
7 # This code is released under the libpng license.
9 # and license in png.h
11 # Generate a set of PNG test images. The images are generated in a
13 # change that name. The generation requires a built version of makepng in the
14 # current directory.
19 echo ' Generate a set of PNG test files in "directory" ("tests" by default)'
24 test -x "$mp" || {
35 test $# -gt 1 && {
39 test $# -eq 0 || usage
[all …]
/external/skia/src/codec/
DSkAndroidCodec.cpp2 * Copyright 2015 Google Inc.
5 * found in the LICENSE file.
8 #include "SkAndroidCodec.h"
9 #include "SkCodec.h"
10 #include "SkCodecPriv.h"
11 #include "SkRawAdapterCodec.h"
12 #include "SkSampledCodec.h"
13 #include "SkWebpAdapterCodec.h"
21 * Loads the gamut as a set of three points (triangle).
23 static void load_gamut(SkPoint rgb[], const SkMatrix44& xyz) { in load_gamut() argument
[all …]
/external/python/cpython2/Lib/lib-tk/
DtkColorChooser.py4 # available in Tk 4.2 and newer.
15 # (given as an RGB triplet or a Tk color string)
36 color = self.options["initialcolor"]
38 # assume an RGB triplet
39 self.options["initialcolor"] = "#%02x%02x%02x" % color
50 # an RGB tuple together with the Tk color string
51 r, g, b = widget.winfo_rgb(result)
62 options = options.copy()
65 return Chooser(**options).show()
69 # test stuff
/external/mesa3d/docs/
Dconform.html1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dt…
6 <link rel="stylesheet" type="text/css" href="mesa.css">
14 <iframe src="contents.html"></iframe>
21 implementations. I, Brian Paul, have been given a copy of the tests
22 for testing Mesa. The tests are not publicly available.
26 conformance tests. Testing with the preliminary OpenGL 1.3 tests has
27 also been done. Mesa passes all the 1.3 tests.
31 and 16-bpp displays.
34 Mesa 4.0 and later pass all conformance tests at all path levels.
36 based upon Mesa.
[all …]

12345678910>>...15