MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / pix

Function pix

Utils/astc_test_autoextract_hdr.cpp:54–57  ·  view source on GitHub ↗

* @brief Compute the array offset in a 2D image */

Source from the content-addressed store, hash-verified

52 * @brief Compute the array offset in a 2D image
53 */
54int pix(int x_pix, int y_idx, int x_idx, int chans, int p_idx)
55{
56 return ((y_idx * x_pix) + x_idx) * chans + p_idx;
57}
58
59int main(int argc, char **argv)
60{

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected