# HG changeset patch # User reimar # Date 1278856096 0 # Node ID 0d09c303bfe357fd5721362f24b166c659e81da3 # Parent cf048df35b009b53e1279c3eed579b001fcb64e0 Document code inefficiency. diff -r cf048df35b00 -r 0d09c303bfe3 spudec.c --- a/spudec.c Sun Jul 11 13:36:02 2010 +0000 +++ b/spudec.c Sun Jul 11 13:48:16 2010 +0000 @@ -1304,6 +1304,8 @@ packet->packet = malloc(packet->data_len); img = packet->packet; aimg = packet->packet + stride * h; + // TODO: this would be a lot faster by converting the + // palette first. for (y = 0; y < h; y++) { for (x = 0; x < w; x++) { uint32_t pixel = pal[pal_img[x]];