MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / get_channel_format

Function get_channel_format

tests/Utils.h:164–175  ·  view source on GitHub ↗

Return the format of a channel. * * @param[in] channel Channel type. * * @return Format of the given channel. */

Source from the content-addressed store, hash-verified

162 * @return Format of the given channel.
163 */
164inline Format get_channel_format(Channel channel)
165{
166 switch (channel)
167 {
168 case Channel::R:
169 case Channel::G:
170 case Channel::B:
171 return Format::U8;
172 default:
173 throw std::runtime_error("Unsupported channel");
174 }
175}
176
177/** Base case of foldl.
178 *

Callers 1

AssetsLibrary.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected