MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / is_luminancealpha

Method is_luminancealpha

Source/astcenc_internal.h:877–883  ·  view source on GitHub ↗

* @brief Test if this block is a luminance block with variable alpha. * * @return @c true if the block is a luminance + alpha block , @c false otherwise. */

Source from the content-addressed store, hash-verified

875 * @return @c true if the block is a luminance + alpha block , @c false otherwise.
876 */
877 inline bool is_luminancealpha() const
878 {
879 float default_alpha = this->get_default_alpha();
880 bool alpha1 = (this->data_min.lane<3>() == default_alpha) &&
881 (this->data_max.lane<3>() == default_alpha);
882 return this->grayscale && !alpha1;
883 }
884};
885
886/**

Callers 1

compress_blockFunction · 0.80

Calls 1

get_default_alphaMethod · 0.95

Tested by

no test coverage detected