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

Function get_format_for_channel

tests/Utils.h:145–156  ·  view source on GitHub ↗

Look up the format corresponding to a channel. * * @param[in] channel Channel type. * * @return Format that contains the given channel. */

Source from the content-addressed store, hash-verified

143 * @return Format that contains the given channel.
144 */
145inline Format get_format_for_channel(Channel channel)
146{
147 switch (channel)
148 {
149 case Channel::R:
150 case Channel::G:
151 case Channel::B:
152 return Format::RGB888;
153 default:
154 throw std::runtime_error("Unsupported channel");
155 }
156}
157
158/** Return the format of a channel.
159 *

Callers 4

fillMethod · 0.85
AssetsLibrary.cppFile · 0.85
getMethod · 0.85
fillMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected