Lines Matching defs:channel

123 	static void readChannel(glw::GLenum type, glw::GLuint channel, const glw::GLubyte* pixel, glw::GLdouble& out_value);
125 static void writeChannel(glw::GLenum type, glw::GLuint channel, glw::GLdouble value, glw::GLubyte* pixel);
441 * @param left_red Red channel of left image
442 * @param left_green Green channel of left image
443 * @param left_blue Blue channel of left image
444 * @param left_alpha Alpha channel of left image
446 * @param right_red Red channel of right image
447 * @param right_green Green channel of right image
448 * @param right_blue Blue channel of right image
449 * @param right_alpha Alpha channel of right image
1641 /** Read value of channel
1643 * @tparam T Type used to store channel value
1645 * @param channel Channel index
1650 void readBaseTypeFromUnsignedChannel(GLuint channel, const GLubyte* pixel, GLdouble& out_value)
1656 const T t_value = ptr[channel];
1662 /** Read value of channel
1664 * @tparam T Type used to store channel value
1666 * @param channel Channel index
1671 void readBaseTypeFromSignedChannel(GLuint channel, const GLubyte* pixel, GLdouble& out_value)
1679 const T t_value = ptr[channel];
1685 /** Read value of channel
1687 * @tparam T Type used to store channel value
1689 * @param channel Channel index
1693 void readBaseTypeFromFloatChannel(GLuint channel, const GLubyte* pixel, GLdouble& out_value)
1696 const GLfloat t_value = ptr[channel];
1702 /** Read value of channel
1704 * @tparam T Type used to store channel value
1706 * @param channel Channel index
1710 void readBaseTypeFromHalfFloatChannel(GLuint channel, const GLubyte* pixel, GLdouble& out_value)
1713 const deUint16 bits = ptr[channel];
1720 /** Read value of channel
1723 * @tparam size_1 Size of channel in bits
1724 * @tparam size_2 Size of channel in bits
1725 * @tparam size_3 Size of channel in bits
1726 * @tparam off_1 Offset of channel in bits
1727 * @tparam off_2 Offset of channel in bits
1728 * @tparam off_3 Offset of channel in bits
1730 * @param channel Channel index
1736 void read3Channel(GLuint channel, const GLubyte* pixel, GLdouble& out_value)
1749 switch (channel)
1767 TCU_FAIL("Invalid channel");
1779 /** Read value of channel
1782 * @tparam size_1 Size of channel in bits
1783 * @tparam size_2 Size of channel in bits
1784 * @tparam size_3 Size of channel in bits
1785 * @tparam size_4 Size of channel in bits
1786 * @tparam off_1 Offset of channel in bits
1787 * @tparam off_2 Offset of channel in bits
1788 * @tparam off_3 Offset of channel in bits
1789 * @tparam off_4 Offset of channel in bits
1791 * @param channel Channel index
1797 void read4Channel(GLuint channel, const GLubyte* pixel, GLdouble& out_value)
1811 switch (channel)
1834 TCU_FAIL("Invalid channel");
1846 /** Read value of channel
1848 * @param channel Channel index
1852 void read11F_11F_10F_Channel(GLuint channel, const GLubyte* pixel, GLdouble& out_value)
1857 switch (channel)
1884 TCU_FAIL("Invalid channel");
1888 /** Write value of channel
1892 * @param channel Channel index
1897 void writeBaseTypeToUnsignedChannel(GLuint channel, GLdouble value, GLubyte* pixel)
1907 ptr[channel] = t_value;
1910 /** Write value of channel
1914 * @param channel Channel index
1919 void writeBaseTypeToSignedChannel(GLuint channel, GLdouble value, GLubyte* pixel)
1931 ptr[channel] = t_value;
1934 /** Write value of channel
1936 * @param channel Channel index
1940 void writeBaseTypeToFloatChannel(GLuint channel, GLdouble value, GLubyte* pixel)
1946 ptr[channel] = t_value;
1949 /** Write value of channel
1951 * @param channel Channel index
1955 void writeBaseTypeToHalfFloatChannel(GLuint channel, GLdouble value, GLubyte* pixel)
1961 ptr[channel] = val.bits();
1964 /** Write value of channel
1967 * @tparam size_1 Size of channel in bits
1968 * @tparam size_2 Size of channel in bits
1969 * @tparam size_3 Size of channel in bits
1970 * @tparam off_1 Offset of channel in bits
1971 * @tparam off_2 Offset of channel in bits
1972 * @tparam off_3 Offset of channel in bits
1974 * @param channel Channel index
1980 void write3Channel(GLuint channel, GLdouble value, GLubyte* pixel)
1992 switch (channel)
2010 TCU_FAIL("Invalid channel");
2023 /** Write value of channel
2026 * @tparam size_1 Size of channel in bits
2027 * @tparam size_2 Size of channel in bits
2028 * @tparam size_3 Size of channel in bits
2029 * @tparam size_4 Size of channel in bits
2030 * @tparam off_1 Offset of channel in bits
2031 * @tparam off_2 Offset of channel in bits
2032 * @tparam off_3 Offset of channel in bits
2033 * @tparam off_4 Offset of channel in bits
2035 * @param channel Channel index
2041 void write4Channel(GLuint channel, GLdouble value, GLubyte* pixel)
2054 switch (channel)
2077 TCU_FAIL("Invalid channel");
2090 /** Write value of channel
2092 * @param channel Channel index
2096 void write11F_11F_10F_Channel(GLuint channel, GLdouble value, GLubyte* pixel)
2100 switch (channel)
2127 TCU_FAIL("Invalid channel");
2131 /** Read value of channel
2134 * @param channel Channel index
2138 void Utils::readChannel(GLenum type, GLuint channel, const GLubyte* pixel, GLdouble& value)
2144 readBaseTypeFromUnsignedChannel<GLubyte>(channel, pixel, value);
2147 readBaseTypeFromUnsignedChannel<GLushort>(channel, pixel, value);
2150 readBaseTypeFromUnsignedChannel<GLuint>(channel, pixel, value);
2153 readBaseTypeFromSignedChannel<GLbyte>(channel, pixel, value);
2156 readBaseTypeFromSignedChannel<GLshort>(channel, pixel, value);
2159 readBaseTypeFromSignedChannel<GLint>(channel, pixel, value);
2162 readBaseTypeFromHalfFloatChannel(channel, pixel, value);
2165 readBaseTypeFromFloatChannel(channel, pixel, value);
2171 read3Channel<GLubyte, 3, 3, 2, 5, 2, 0>(channel, pixel, value);
2174 read3Channel<GLushort, 5, 6, 5, 11, 5, 0>(channel, pixel, value);
2179 read4Channel<GLushort, 4, 4, 4, 4, 12, 8, 4, 0>(channel, pixel, value);
2182 read4Channel<GLushort, 5, 5, 5, 1, 11, 6, 1, 0>(channel, pixel, value);
2185 read4Channel<GLuint, 2, 10, 10, 10, 30, 20, 10, 0>(3 - channel, pixel, value);
2188 read4Channel<GLuint, 5, 9, 9, 9, 27, 18, 9, 0>(3 - channel, pixel, value);
2193 read11F_11F_10F_Channel(channel, pixel, value);
2201 /** Write value of channel
2204 * @param channel Channel index
2208 void Utils::writeChannel(GLenum type, GLuint channel, GLdouble value, GLubyte* pixel)
2214 writeBaseTypeToUnsignedChannel<GLubyte>(channel, value, pixel);
2217 writeBaseTypeToUnsignedChannel<GLushort>(channel, value, pixel);
2220 writeBaseTypeToUnsignedChannel<GLuint>(channel, value, pixel);
2223 writeBaseTypeToSignedChannel<GLbyte>(channel, value, pixel);
2226 writeBaseTypeToSignedChannel<GLshort>(channel, value, pixel);
2229 writeBaseTypeToSignedChannel<GLint>(channel, value, pixel);
2232 writeBaseTypeToHalfFloatChannel(channel, value, pixel);
2235 writeBaseTypeToFloatChannel(channel, value, pixel);
2242 write3Channel<GLubyte, 3, 3, 2, 5, 2, 0>(channel, value, pixel);
2245 write3Channel<GLushort, 5, 6, 5, 11, 5, 0>(channel, value, pixel);
2250 write4Channel<GLushort, 4, 4, 4, 4, 12, 8, 4, 0>(channel, value, pixel);
2253 write4Channel<GLushort, 5, 5, 5, 1, 11, 6, 1, 0>(channel, value, pixel);
2256 write4Channel<GLuint, 2, 10, 10, 10, 30, 20, 10, 0>(3 - channel, value, pixel);
2259 write4Channel<GLuint, 5, 9, 9, 9, 27, 18, 9, 0>(3 - channel, value, pixel);
2264 write11F_11F_10F_Channel(channel, value, pixel);
2276 * @param red Red channel
2277 * @param green Green channel
2278 * @param blue Blue channel
2279 * @param alpha Alpha channel
2376 * @param red Red channel
2377 * @param green Green channel
2378 * @param blue Blue channel
2379 * @param alpha Alpha channel