comparison libmpcodecs/vd_lcl.c @ 8451:fb88ccbc5ccc

compiler warning fixes based on patch by Dominik Mierzejewski <dominik@rangers.eu.org>
author arpi
date Sat, 14 Dec 2002 17:56:35 +0000
parents 95740a8fc77f
children 2ed9b2143f94
comparison
equal deleted inserted replaced
8450:8cfc9309f0cc 8451:fb88ccbc5ccc
489 switch (hc->imgtype) { 489 switch (hc->imgtype) {
490 case IMGTYPE_YUV111: 490 case IMGTYPE_YUV111:
491 for (row = 0; row < height; row++) { 491 for (row = 0; row < height; row++) {
492 pixel_ptr = row * width * 3; 492 pixel_ptr = row * width * 3;
493 yq = encoded[pixel_ptr++]; 493 yq = encoded[pixel_ptr++];
494 uqvq = encoded[pixel_ptr++] + (encoded[pixel_ptr++] << 8); 494 uqvq = encoded[pixel_ptr++];
495 uqvq+=(encoded[pixel_ptr++] << 8);
495 for (col = 1; col < width; col++) { 496 for (col = 1; col < width; col++) {
496 encoded[pixel_ptr] = yq -= encoded[pixel_ptr]; 497 encoded[pixel_ptr] = yq -= encoded[pixel_ptr];
497 uqvq -= (encoded[pixel_ptr+1] | (encoded[pixel_ptr+2]<<8)); 498 uqvq -= (encoded[pixel_ptr+1] | (encoded[pixel_ptr+2]<<8));
498 encoded[pixel_ptr+1] = (uqvq) & 0xff; 499 encoded[pixel_ptr+1] = (uqvq) & 0xff;
499 encoded[pixel_ptr+2] = ((uqvq)>>8) & 0xff; 500 encoded[pixel_ptr+2] = ((uqvq)>>8) & 0xff;
503 break; 504 break;
504 case IMGTYPE_RGB24: // No 505 case IMGTYPE_RGB24: // No
505 for (row = 0; row < height; row++) { 506 for (row = 0; row < height; row++) {
506 pixel_ptr = row * width * 3; 507 pixel_ptr = row * width * 3;
507 yq = encoded[pixel_ptr++]; 508 yq = encoded[pixel_ptr++];
508 uqvq = encoded[pixel_ptr++] + (encoded[pixel_ptr++] << 8); 509 uqvq = encoded[pixel_ptr++];
510 uqvq+=(encoded[pixel_ptr++] << 8);
509 for (col = 1; col < width; col++) { 511 for (col = 1; col < width; col++) {
510 encoded[pixel_ptr] = yq -= encoded[pixel_ptr]; 512 encoded[pixel_ptr] = yq -= encoded[pixel_ptr];
511 uqvq -= (encoded[pixel_ptr+1] | (encoded[pixel_ptr+2]<<8)); 513 uqvq -= (encoded[pixel_ptr+1] | (encoded[pixel_ptr+2]<<8));
512 encoded[pixel_ptr+1] = (uqvq) & 0xff; 514 encoded[pixel_ptr+1] = (uqvq) & 0xff;
513 encoded[pixel_ptr+2] = ((uqvq)>>8) & 0xff; 515 encoded[pixel_ptr+2] = ((uqvq)>>8) & 0xff;