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

Function countFrequencies

Source/ThirdParty/tinyexr.h:3045–3050  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3043}
3044
3045static void countFrequencies(std::vector<long long> &freq,
3046 const unsigned short data[/*n*/], int n) {
3047 for (int i = 0; i < HUF_ENCSIZE; ++i) freq[i] = 0;
3048
3049 for (int i = 0; i < n; ++i) ++freq[data[i]];
3050}
3051
3052static void writeUInt(char buf[4], unsigned int i) {
3053 unsigned char *b = (unsigned char *)buf;

Callers 1

hufCompressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected