(String filename, Buffer dest, int width, int height)
| 20 | @Override |
| 21 | public void decompress(String filename, Buffer dest, int width, int height) { |
| 22 | byte[] f = bytes(filename); |
| 23 | |
| 24 | if(f==null) |
| 25 | { |
| 26 | throw new IllegalArgumentException(" failed to load :"+filename); |
| 27 | } |
| 28 | // 4 or 3? |
| 29 | dest.rewind(); |
| 30 | ((ByteBuffer)dest).put(f); |
| 31 | dest.rewind(); |
| 32 | |
| 33 | } |
| 34 | |
| 35 | public void decompressRaw(String filename, Buffer dest, int width, int height) { |
| 36 | byte[] f = bytes(filename); |
| 37 | |
| 38 | if(f==null) |
no test coverage detected