Mercurial > libavcodec.hg
comparison lcl.c @ 5089:bff60ecc02f9 libavcodec
Use AV_xx throughout libavcodec
author | ramiro |
---|---|
date | Sat, 02 Jun 2007 01:41:07 +0000 |
parents | f99e40a7155b |
children | 2b72f9bc4f06 |
comparison
equal
deleted
inserted
replaced
5088:8e206208db1f | 5089:bff60ecc02f9 |
---|---|
356 case IMGTYPE_YUV111: | 356 case IMGTYPE_YUV111: |
357 case IMGTYPE_RGB24: | 357 case IMGTYPE_RGB24: |
358 for (row = 0; row < height; row++) { | 358 for (row = 0; row < height; row++) { |
359 pixel_ptr = row * width * 3; | 359 pixel_ptr = row * width * 3; |
360 yq = encoded[pixel_ptr++]; | 360 yq = encoded[pixel_ptr++]; |
361 uqvq = encoded[pixel_ptr++]; | 361 uqvq = AV_RL16(encoded+pixel_ptr); |
362 uqvq+=(encoded[pixel_ptr++] << 8); | 362 pixel_ptr += 2; |
363 for (col = 1; col < width; col++) { | 363 for (col = 1; col < width; col++) { |
364 encoded[pixel_ptr] = yq -= encoded[pixel_ptr]; | 364 encoded[pixel_ptr] = yq -= encoded[pixel_ptr]; |
365 uqvq -= (encoded[pixel_ptr+1] | (encoded[pixel_ptr+2]<<8)); | 365 uqvq -= AV_RL16(encoded+pixel_ptr+1); |
366 encoded[pixel_ptr+1] = (uqvq) & 0xff; | 366 AV_WL16(encoded+pixel_ptr+1, uqvq); |
367 encoded[pixel_ptr+2] = ((uqvq)>>8) & 0xff; | |
368 pixel_ptr += 3; | 367 pixel_ptr += 3; |
369 } | 368 } |
370 } | 369 } |
371 break; | 370 break; |
372 case IMGTYPE_YUV422: | 371 case IMGTYPE_YUV422: |