NN PP: Decode Encoded Data
(self,*arg)
| 120 | self.rPix += 1 |
| 121 | |
| 122 | def DENCD(self,*arg): |
| 123 | """ NN PP: Decode Encoded Data """ |
| 124 | b0, b1 = arg[0], arg[1] #piece, 2 pixels data |
| 125 | for i in range(b0): |
| 126 | if self.bpp == 4: |
| 127 | self.HPIX((b1&(0x0F<<(4*((i+1)%2))))>>(4*((i+1)%2))) |
| 128 | else: |
| 129 | self.HPIX(b1) |
| 130 | self.rPix += 1 |
| 131 | |
| 132 | def EORLE(self,*arg): |
| 133 | """ 00 01: End Of RLE Data, Writing Decoded File """ |