MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / stbi__rewind

Function stbi__rewind

lite/example/cpp_example/mge/cv/stb_image.h:900–906  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

898#endif // !STBI_NO_STDIO
899
900static void stbi__rewind(stbi__context* s) {
901 // conceptually rewind SHOULD rewind to the beginning of the stream,
902 // but we just rewind to the beginning of the initial buffer, because
903 // we only use it after doing 'test', which only ever looks at at most 92 bytes
904 s->img_buffer = s->img_buffer_original;
905 s->img_buffer_end = s->img_buffer_original_end;
906}
907
908enum { STBI_ORDER_RGB, STBI_ORDER_BGR };
909

Callers 15

stbi__jpeg_testFunction · 0.85
stbi__jpeg_info_rawFunction · 0.85
stbi__png_testFunction · 0.85
stbi__png_info_rawFunction · 0.85
stbi__png_is16Function · 0.85
stbi__bmp_testFunction · 0.85
stbi__tga_infoFunction · 0.85
stbi__tga_testFunction · 0.85
stbi__psd_testFunction · 0.85
stbi__pic_testFunction · 0.85
stbi__gif_testFunction · 0.85
stbi__gif_info_rawFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected