MCPcopy Create free account
hub / github.com/davisking/dlib / get_info

Method get_info

dlib/image_loader/webp_loader.cpp:72–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70// ----------------------------------------------------------------------------------------
71
72 void webp_loader::get_info()
73 {
74 if (!WebPGetInfo(data_.data(), data_.size(), &width_, &height_))
75 {
76 throw image_load_error("webp_loader: Invalid header");
77 }
78 }
79
80// ----------------------------------------------------------------------------------------
81

Callers

nothing calls this directly

Calls 3

image_load_errorClass · 0.70
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected