| 101 | }; |
| 102 | |
| 103 | static uint8_t get_mask_width(uint16_t mask) { |
| 104 | // Returns number of ones in the binary value of the parameter: mask. |
| 105 | // Uses a Simple pop_count. |
| 106 | uint8_t c = 0u; |
| 107 | for (; mask != 0u; mask &= mask - 1u) { |
| 108 | c++; |
| 109 | } |
| 110 | return c; |
| 111 | } |
| 112 | |
| 113 | static Error parse_after_file_header(const Vector<uint8_t> &p_data, bmp_header_s &bmp_header) { |
| 114 | Ref<FileAccessMemory> f = memnew(FileAccessMemory); |
no outgoing calls
no test coverage detected