changeset 31640:0d09c303bfe3

Document code inefficiency.
author reimar
date Sun, 11 Jul 2010 13:48:16 +0000
parents cf048df35b00
children 6c5a559d340c
files spudec.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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]];