MCPcopy Create free account
hub / github.com/ActiveState/code / DENCD

Method DENCD

recipes/Python/577379_BIRLE_Decoder/recipe-577379.py:122–130  ·  view source on GitHub ↗

NN PP: Decode Encoded Data

(self,*arg)

Source from the content-addressed store, hash-verified

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 """

Callers 1

DecodeMethod · 0.95

Calls 2

HPIXMethod · 0.95
rangeFunction · 0.85

Tested by

no test coverage detected