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

Method Decode

recipes/Python/577379_BIRLE_Decoder/recipe-577379.py:53–64  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

51 self.buf = ""
52
53 def Decode(self):
54 mrk = {0:self.EOSL,1:self.EORLE,2:self.MOFF}#funcs for RLE Data markers
55
56 while((self.lns*self.w)<=self.tPix):
57 b = self.enc[self.c:self.c+2]
58 self.c += 2
59 if len(b) != 2: break
60 b0, b1 = ord(b[0]), ord(b[1])
61 if b0 == 0:
62 mrk.get(b1,self.UENCD)(b0,b1)
63 else:
64 self.DENCD(b0,b1)
65
66 def HPIX(self,pixel):
67 """ Half-Byte Packing for 4-Bit and Pixel Data Handler """

Callers

nothing calls this directly

Calls 2

DENCDMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected