* @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. */
| 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 | /** |
no test coverage detected