Disable FB swap

This commit is contained in:
iabdalkader 2014-09-20 03:38:26 +02:00
parent a4d1687dfe
commit a8146eaeba

View File

@ -107,9 +107,9 @@ def fb_dump():
if (size[2] > 2):
try:
#img = Image.frombytes("RGB", (size[0], size[1]), buff, "jpeg", "RGB", "")
__write_img(buff, "/tmp/swap.jpeg")
img = Image.open("/tmp/swap.jpeg")
#print(size[0], size[1], size[2])
#__write_img(buff, "/tmp/swap.jpeg")
img = Image.frombytes("RGB", (size[0], size[1]), buff, "jpeg", "RGB", "")
buff = np.fromstring(img.tobytes(), dtype=np.uint8)
except Exception, e:
print "JPEG decode error (%s)"%e