changeset 8972:2ed9b2143f94

Remove duplicated code
author rtognimp
date Fri, 17 Jan 2003 21:44:58 +0000
parents 1a55bd301c66
children 0a665389cf2b
files libmpcodecs/vd_lcl.c
diffstat 1 files changed, 2 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_lcl.c	Fri Jan 17 20:14:10 2003 +0000
+++ b/libmpcodecs/vd_lcl.c	Fri Jan 17 21:44:58 2003 +0000
@@ -1,7 +1,7 @@
 /*
  *
  * LCL (LossLess Codec Library) Decoder for Mplayer
- * (c) 2002 Roberto Togni
+ * (c) 2002, 2003 Roberto Togni
  *
  * Fourcc: MSZH, ZLIB
  *
@@ -488,21 +488,7 @@
   if ((hc->codec == CODEC_ZLIB) && (hc->flags & FLAG_PNGFILTER)) {
     switch (hc->imgtype) {
       case IMGTYPE_YUV111:
-        for (row = 0; row < height; row++) {
-          pixel_ptr = row * width * 3;
-          yq = encoded[pixel_ptr++];
-          uqvq = encoded[pixel_ptr++];
-	  uqvq+=(encoded[pixel_ptr++] << 8);
-          for (col = 1; col < width; col++) {
-            encoded[pixel_ptr] = yq -= encoded[pixel_ptr];
-            uqvq -= (encoded[pixel_ptr+1] | (encoded[pixel_ptr+2]<<8));
-            encoded[pixel_ptr+1] = (uqvq) & 0xff;
-            encoded[pixel_ptr+2] = ((uqvq)>>8) & 0xff;
-            pixel_ptr += 3;
-          }
-        }
-        break;
-      case IMGTYPE_RGB24: // No
+      case IMGTYPE_RGB24:
         for (row = 0; row < height; row++) {
           pixel_ptr = row * width * 3;
           yq = encoded[pixel_ptr++];