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

Function stbi__hdr_gettoken

include/stb/stb_image.h:7109–7129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7107
7108#define STBI__HDR_BUFLEN 1024
7109static char *stbi__hdr_gettoken(stbi__context *z, char *buffer)
7110{
7111 int len=0;
7112 char c = '\0';
7113
7114 c = (char) stbi__get8(z);
7115
7116 while (!stbi__at_eof(z) && c != '\n') {
7117 buffer[len++] = c;
7118 if (len == STBI__HDR_BUFLEN-1) {
7119 // flush to end of line
7120 while (!stbi__at_eof(z) && stbi__get8(z) != '\n')
7121 ;
7122 break;
7123 }
7124 c = (char) stbi__get8(z);
7125 }
7126
7127 buffer[len] = 0;
7128 return buffer;
7129}
7130
7131static void stbi__hdr_convert(float *output, stbi_uc *input, int req_comp)
7132{

Callers 2

stbi__hdr_loadFunction · 0.85
stbi__hdr_infoFunction · 0.85

Calls 2

stbi__get8Function · 0.85
stbi__at_eofFunction · 0.85

Tested by

no test coverage detected