| 12 | } |
| 13 | |
| 14 | void _pad_buffer(Ref<FileAccess> f, uint32_t p_len) { |
| 15 | int extra = 4 - (p_len % 4); |
| 16 | if (extra < 4) { |
| 17 | for (int32_t i = 0; i < extra; i++) { |
| 18 | f->store_8(0); //pad to 32 |
| 19 | } |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | Ref<Image> ImageParserV2::convert_indexed_image(const Vector<uint8_t> &p_imgdata, int p_width, int p_height, int p_mipmaps, V2Image::Format p_format, Error *r_error) { |
| 24 | Vector<uint8_t> r_imgdata; |
no test coverage detected