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

Function extract_g_from_rgb

tests/AssetsLibrary.cpp:84–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84void extract_g_from_rgb(const RawTensor &src, RawTensor &dst)
85{
86 ARM_COMPUTE_ERROR_ON(src.size() != 3 * dst.size());
87
88 const size_t num_elements = dst.num_elements();
89
90 for (size_t i = 1, j = 0; j < num_elements; i += 3, ++j)
91 {
92 dst.data()[j] = src.data()[i];
93 }
94}
95
96void extract_b_from_rgb(const RawTensor &src, RawTensor &dst)
97{

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
num_elementsMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected