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

Function stbi__start_mem

include/stb/stb_image.h:826–833  ·  view source on GitHub ↗

initialize a memory-decode context

Source from the content-addressed store, hash-verified

824
825// initialize a memory-decode context
826static void stbi__start_mem(stbi__context *s, stbi_uc const *buffer, int len)
827{
828 s->io.read = NULL;
829 s->read_from_callbacks = 0;
830 s->callback_already_read = 0;
831 s->img_buffer = s->img_buffer_original = (stbi_uc *) buffer;
832 s->img_buffer_end = s->img_buffer_original_end = (stbi_uc *) buffer+len;
833}
834
835// initialize a callback-based context
836static void stbi__start_callbacks(stbi__context *s, stbi_io_callbacks *c, void *user)

Callers 7

stbi_load_16_from_memoryFunction · 0.85
stbi_load_from_memoryFunction · 0.85
stbi_loadf_from_memoryFunction · 0.85
stbi_is_hdr_from_memoryFunction · 0.85
stbi_info_from_memoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected