Home
last modified time | relevance | path

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

12345678910>>...25

/external/webrtc/sdk/android/instrumentationtests/src/org/webrtc/
DGlRectDrawerTest.java2 * Copyright 2015 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 package org.webrtc;
13 import static org.junit.Assert.assertEquals;
14 import static org.junit.Assert.assertTrue;
15 import static org.junit.Assert.fail;
17 import android.opengl.GLES20;
18 import android.support.test.filters.MediumTest;
[all …]
/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/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 # https://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/rust/crates/arbitrary/
DREADME.md5 …<p><strong>The trait for generating structured data from arbitrary, unstructured input.</strong></…
7 …img alt="GitHub Actions Status" src="https://github.com/rust-fuzz/rust_arbitrary/workflows/Rust/ba…
13 The `Arbitrary` crate lets you construct arbitrary instance of a type.
16 and `cargo-fuzz`](https://github.com/rust-fuzz/cargo-fuzz) or
17 [AFL](https://github.com/rust-fuzz/afl.rs), and to help you turn the raw,
19 values. This allows you to combine structure-aware test case generation with
20 coverage-guided, mutation-based fuzzers.
24 [**Read the API documentation on `docs.rs`!**](https://docs.rs/arbitrary)
28 Say you're writing a color conversion library, and you have an `Rgb` struct to
29 represent RGB colors. You might want to implement `Arbitrary` for `Rgb` so that
[all …]
/external/chromium-trace/catapult/third_party/polymer/components/shadycss/tests/
Ddynamic-scoping.html4 Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
5 This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
6 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7 The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
9 subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
17 WCT = {waitFor: function (cb) {HTMLImports.whenReady(cb)}}
19 <script src="./test-flags.js"></script>
20 <script src="../node_modules/wct-browser-legacy/browser.js"></script>
21 …<script src="../node_modules/@webcomponents/webcomponents-platform/webcomponents-platform.js"></sc…
22 <script src="../node_modules/es6-promise/dist/es6-promise.auto.min.js"></script>
[all …]
Dmixin-ordering.html4 WCT = {waitFor: function (cb) {HTMLImports.whenReady(cb)}}
6 <script src="./test-flags.js"></script>
7 <script src="../node_modules/wct-browser-legacy/browser.js"></script>
8 …<script src="../node_modules/@webcomponents/webcomponents-platform/webcomponents-platform.js"></sc…
9 <script src="../node_modules/es6-promise/dist/es6-promise.auto.min.js"></script>
10 <script src="../node_modules/@webcomponents/template/template.js"></script>
11 <script src="../node_modules/@webcomponents/html-imports/html-imports.min.js"></script>
12 <script src="../node_modules/@webcomponents/shadydom/shadydom.min.js"></script>
13 <script src="../node_modules/@webcomponents/custom-elements/custom-elements.min.js"></script>
14 <script src="../scoping-shim.min.js"></script>
[all …]
/external/libpng/contrib/testpngs/
Dmakepngs.sh3 # Make a set of test PNG files, MAKEPNG is the name of the makepng executable
4 # built from contrib/libtests/makepng.c
8 # Last changed in libpng 1.6.20 [December 3, 2015]
10 # This code is released under the libpng license.
12 # and license in png.h
15 # ones that extend the code-coverage of libpng from the existing test files in
16 # contrib/pngsuite.
17 test -n "$MAKEPNG" || MAKEPNG=./makepng
21 ${MAKEPNG} $opts $1 "$3" "$4" "$3-$4$2.png"
25 if test "$1" = "none"
[all …]
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/util/
DColorParserTest.java5 * you may not use this file except in compliance with the License.
8 * http://www.apache.org/licenses/LICENSE-2.0
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * limitations under the License.
16 package com.google.android.exoplayer2.util;
18 import static android.graphics.Color.BLACK;
19 import static android.graphics.Color.RED;
20 import static android.graphics.Color.WHITE;
21 import static android.graphics.Color.argb;
22 import static android.graphics.Color.parseColor;
[all …]
/external/rust/crates/arbitrary/tests/
Dderive.rs7 T::arbitrary(&mut buf).expect("can create arbitrary instance OK") in arbitrary_from()
11 pub struct Rgb { struct
17 #[test]
19 let rgb: Rgb = arbitrary_from(&[4, 5, 6]); in struct_with_named_fields() argument
20 assert_eq!(rgb.r, 4); in struct_with_named_fields()
21 assert_eq!(rgb.g, 5); in struct_with_named_fields()
22 assert_eq!(rgb.b, 6); in struct_with_named_fields()
24 assert_eq!((3, Some(3)), <Rgb as Arbitrary>::size_hint(0)); in struct_with_named_fields()
30 #[test]
33 assert_eq!(s.0, 43); in tuple_struct()
[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 # https://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 …]
/external/pdfium/core/fxcrt/css/
Dcfx_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 "core/fxcrt/css/cfx_cssvaluelistparser.h"
9 #include "core/fxcrt/widestring.h"
10 #include "testing/gtest/include/gtest/gtest.h"
11 #include "third_party/base/ptr_util.h"
13 TEST(CFX_CSSValueListParserTest, rgb_short) { in TEST() function
20 EXPECT_EQ(CFX_CSSPrimitiveType::RGB, type); in TEST()
26 EXPECT_EQ(CFX_CSSPrimitiveType::RGB, type); in TEST()
[all …]
/external/fmtlib/test/
Dcolor-test.cc4 // All rights reserved.
6 // For the license information refer to format.h.
8 #include "fmt/color.h"
14 #include "gtest-extra.h"
16 TEST(ColorsTest, ColorsPrint) { in TEST() function
17 EXPECT_WRITE(stdout, fmt::print(fg(fmt::rgb(255, 20, 30)), "rgb(255,20,30)"), in TEST()
55 TEST(ColorsTest, Format) { in TEST() function
56 EXPECT_EQ(fmt::format(fg(fmt::rgb(255, 20, 30)), "rgb(255,20,30)"), in TEST()
58 EXPECT_EQ(fmt::format(fg(fmt::rgb(255, 20, 30)), L"rgb(255,20,30) wide"), in TEST()
92 TEST(ColorsTest, FormatToOutAcceptsTextStyle) { in TEST() function
[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.
26 #include <stdint.h>
27 #include <stdio.h>
28 #include <stdlib.h>
29 #include <string.h>
31 #include <drm_fourcc.h>
[all …]
/external/deqp-deps/amber/tests/cases/
Ddraw_triangle_list_in_r8g8b8a8_srgb_color_frame.vkscript1 # Copyright 2019 The Amber Authors.
4 # you may not use this file except in compliance with the License.
7 # https://www.apache.org/licenses/LICENSE-2.0
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # limitations under the License.
84 [test]
88 # e.g., exponential. It needs enough tolerance.
92 relative probe rect rgb (0.0, 0.0, 1.0, 1.0) (1.0, 0, 0)
95 relative probe rect rgb (0.0, 0.0, 0.5, 1.0) (1.0, 0, 0)
96 relative probe rect rgb (0.5, 0.0, 0.5, 1.0) (0, 1.0, 0)
[all …]
Ddraw_triangle_list_in_r8g8b8a8_snorm_color_frame.vkscript1 # Copyright 2019 The Amber Authors.
4 # you may not use this file except in compliance with the License.
7 # https://www.apache.org/licenses/LICENSE-2.0
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # limitations under the License.
84 [test]
87 # R8G8B8A8_SNORM has only 128 slots and it needs enough tolerance.
91 relative probe rect rgb (0.0, 0.0, 1.0, 1.0) (1.0, 0, 0)
94 relative probe rect rgb (0.0, 0.0, 0.5, 1.0) (1.0, 0, 0)
95 relative probe rect rgb (0.5, 0.0, 0.5, 1.0) (0, 1.0, 0)
[all …]
Ddraw_triangle_list_in_r16g16b16a16_snorm_color_frame.vkscript1 # Copyright 2019 The Amber Authors.
4 # you may not use this file except in compliance with the License.
7 # https://www.apache.org/licenses/LICENSE-2.0
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # limitations under the License.
84 [test]
88 relative probe rect rgb (0.0, 0.0, 1.0, 1.0) (1.0, 0, 0)
91 relative probe rect rgb (0.0, 0.0, 0.5, 1.0) (1.0, 0, 0)
92 relative probe rect rgb (0.5, 0.0, 0.5, 1.0) (0, 1.0, 0)
95 relative probe rect rgb (0.0, 0.0, 0.5, 0.5) (1.0, 0, 0)
[all …]
Ddraw_triangle_list_in_r32g32b32a32_sfloat_color_frame.vkscript1 # Copyright 2019 The Amber Authors.
4 # you may not use this file except in compliance with the License.
7 # https://www.apache.org/licenses/LICENSE-2.0
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # limitations under the License.
84 [test]
88 relative probe rect rgb (0.0, 0.0, 1.0, 1.0) (1.0, 0, 0)
91 relative probe rect rgb (0.0, 0.0, 0.5, 1.0) (1.0, 0, 0)
92 relative probe rect rgb (0.5, 0.0, 0.5, 1.0) (0, 1.0, 0)
95 relative probe rect rgb (0.0, 0.0, 0.5, 0.5) (1.0, 0, 0)
[all …]
Ddraw_triangle_list_in_r16g16b16a16_uint_color_frame.vkscript1 # Copyright 2019 The Amber Authors.
4 # you may not use this file except in compliance with the License.
7 # https://www.apache.org/licenses/LICENSE-2.0
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # limitations under the License.
37 final_color.r = uint(frag_color.r * 256.0f * 256.0f);
38 final_color.g = uint(frag_color.g * 256.0f * 256.0f);
39 final_color.b = uint(frag_color.b * 256.0f * 256.0f);
40 final_color.a = uint(frag_color.a * 256.0f * 256.0f);
87 [test]
[all …]
Ddraw_array_after_draw_rect.vkscript1 # Copyright 2018 The Amber Authors.
4 # you may not use this file except in compliance with the License.
7 # https://www.apache.org/licenses/LICENSE-2.0
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # limitations under the License.
84 [test]
106 relative probe rect rgb (0.0, 0.0, 1.0, 1.0) (1.0, 0, 0)
110 relative probe rect rgb (0.0, 0.0, 0.5, 1.0) (1.0, 0, 0)
111 relative probe rect rgb (0.5, 0.0, 0.5, 1.0) (0, 1.0, 0)
115 relative probe rect rgb (0.0, 0.0, 0.5, 0.5) (1.0, 0, 0)
[all …]
Ddraw_rect_after_draw_array.vkscript1 # Copyright 2018 The Amber Authors.
4 # you may not use this file except in compliance with the License.
7 # https://www.apache.org/licenses/LICENSE-2.0
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # limitations under the License.
84 [test]
89 relative probe rect rgb (0.0, 0.0, 1.0, 1.0) (1.0, 0, 0)
93 relative probe rect rgb (0.0, 0.0, 0.5, 1.0) (1.0, 0, 0)
94 relative probe rect rgb (0.5, 0.0, 0.5, 1.0) (0, 1.0, 0)
98 relative probe rect rgb (0.0, 0.0, 0.5, 0.5) (1.0, 0, 0)
[all …]
Ddraw_rect_with_two_vertex_data_attached.expect_fail.vkscript1 # Copyright 2019 The Amber Authors.
4 # you may not use this file except in compliance with the License.
7 # https://www.apache.org/licenses/LICENSE-2.0
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # limitations under the License.
83 [test]
87 relative probe rect rgb (0.0, 0.0, 0.5, 0.5) (1.0, 0, 0)
88 relative probe rect rgb (0.5, 0.0, 0.5, 0.5) (0, 1.0, 0)
89 relative probe rect rgb (0.0, 0.5, 0.5, 0.5) (0, 0, 1.0)
90 relative probe rect rgb (0.5, 0.5, 0.5, 0.5) (0.5, 0.5, 0.5)
[all …]
/external/chromium-trace/catapult/third_party/polymer/components/shadycss/tests/no-scopingshim/
Dmixin-ordering.html4 WCT = {waitFor: function (cb) {HTMLImports.whenReady(cb)}}
6 <script src="../../node_modules/wct-browser-legacy/browser.js"></script>
7 …<script src="../../node_modules/@webcomponents/webcomponents-platform/webcomponents-platform.js"><…
8 <script src="../../node_modules/es6-promise/dist/es6-promise.auto.min.js"></script>
9 <script src="../../node_modules/@webcomponents/template/template.js"></script>
10 <script src="../../node_modules/@webcomponents/html-imports/html-imports.min.js"></script>
11 <script src="../../node_modules/@webcomponents/shadydom/shadydom.min.js"></script>
12 <script src="../../node_modules/@webcomponents/custom-elements/custom-elements.min.js"></script>
13 <script src="../../apply-shim.min.js"></script>
14 <script src="../../custom-style-interface.min.js"></script>
[all …]
/external/deqp/external/openglcts/modules/common/
DglcBlendEquationAdvancedTests.cpp2 * OpenGL Conformance Test Suite
5 * Copyright (c) 2014-2016 The Khronos Group Inc.
8 * 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.
24 #include "glcBlendEquationAdvancedTests.hpp"
26 #include "deRandom.hpp"
27 #include "deString.h"
29 #include "tcuRGBA.hpp"
[all …]

12345678910>>...25