[MPlayer-cvslog] r31706 - trunk/spudec.c

reimar subversion at mplayerhq.hu
Sun Jul 11 15:48:16 CEST 2010


Author: reimar
Date: Sun Jul 11 15:48:16 2010
New Revision: 31706

Log:
Document code inefficiency.

Modified:
   trunk/spudec.c

Modified: trunk/spudec.c
==============================================================================
--- trunk/spudec.c	Sun Jul 11 15:36:02 2010	(r31705)
+++ trunk/spudec.c	Sun Jul 11 15:48:16 2010	(r31706)
@@ -1304,6 +1304,8 @@ void spudec_set_paletted(void *this, con
   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]];


More information about the MPlayer-cvslog mailing list