MCPcopy Create free account
hub / github.com/GDRETools/gdsdecomp / get_e

Function get_e

utility/image_saver.cpp:471–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469 return (uint8_t)((rgbe >> 19) & 0xFF);
470}
471constexpr uint8_t get_e(uint32_t rgbe) {
472 return (uint8_t)(((rgbe >> 27) - 15 + 128) & 0xFF);
473}
474
475Vector<uint8_t> save_hdr_buffer(const Ref<Image> &p_img, bool duplicate) {
476 ERR_FAIL_COND_V_MSG(p_img.is_null(), Vector<uint8_t>(), "Can't save invalid image as HDR.");

Callers 1

save_hdr_bufferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected