add PVRTC support

This commit is contained in:
Ishotihadus
2019-12-13 03:15:35 +09:00
parent b92b00fc4a
commit e683b3c91a
4 changed files with 325 additions and 140 deletions
+1 -2
View File
@@ -389,8 +389,7 @@ module Mikunyan
# @param [String] bin binary to decode
# @return [ChunkyPNG::Image] decoded image
def self.decode_pvrtc1_2bpp(width, height, bin)
# ChunkyPNG::Image.from_rgba_stream(width, height, DecodeHelper.decode_pvrtc1_2bpp(bin, width, height))
nil
ChunkyPNG::Image.from_rgba_stream(width, height, DecodeHelper.decode_pvrtc1_2bpp(bin, width, height))
end
# Decode image from ETC1 compressed binary