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

Function extract_r_from_rgb

tests/AssetsLibrary.cpp:72–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72void extract_r_from_rgb(const RawTensor &src, RawTensor &dst)
73{
74 ARM_COMPUTE_ERROR_ON(src.size() != 3 * dst.size());
75
76 const size_t num_elements = dst.num_elements();
77
78 for (size_t i = 0, j = 0; j < num_elements; i += 3, ++j)
79 {
80 dst.data()[j] = src.data()[i];
81 }
82}
83
84void extract_g_from_rgb(const RawTensor &src, RawTensor &dst)
85{

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
num_elementsMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected