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

Method is_graya

dlib/image_loader/png_loader.cpp:155–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153
154 bool png_loader::is_gray() const { return color_type == PNG_COLOR_TYPE_GRAY; }
155 bool png_loader::is_graya() const { return color_type == PNG_COLOR_TYPE_GRAY_ALPHA; }
156 bool png_loader::is_rgb() const { return color_type == PNG_COLOR_TYPE_RGB; }
157 bool png_loader::is_rgba() const { return color_type == PNG_COLOR_TYPE_RGB_ALPHA; }
158 unsigned int png_loader::bit_depth () const {return bit_depth_;}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected