comparison libswscale/swscale.c @ 27559:21590d0bb4e6

The yuv->rgb tables are too small for clipping to be avoidable, thus revert the respective optimization. The table generator code has to be rewritten anyway one day by some volunteer because it is not LGPL, fixing the GPL table generator thus seems like wasted time.
author michael
date Fri, 12 Sep 2008 21:25:42 +0000
parents a594051dc796
children dec58ca745b2
comparison
equal deleted inserted replaced
27558:f4cab7872474 27559:21590d0bb4e6
538 if (Y2>65535) Y2=65535; \ 538 if (Y2>65535) Y2=65535; \
539 else if (Y2<0)Y2=0; \ 539 else if (Y2<0)Y2=0; \
540 } 540 }
541 541
542 #define YSCALE_YUV_2_RGBX_C(type) \ 542 #define YSCALE_YUV_2_RGBX_C(type) \
543 YSCALE_YUV_2_PACKEDX_NOCLIP_C(type) \ 543 YSCALE_YUV_2_PACKEDX_C(type) /* FIXME fix tables so that cliping is not needed and then use _NOCLIP*/\
544 r = (type *)c->table_rV[V]; \ 544 r = (type *)c->table_rV[V]; \
545 g = (type *)(c->table_gU[U] + c->table_gV[V]); \ 545 g = (type *)(c->table_gU[U] + c->table_gV[V]); \
546 b = (type *)c->table_bU[U]; \ 546 b = (type *)c->table_bU[U]; \
547 547
548 #define YSCALE_YUV_2_PACKED2_C \ 548 #define YSCALE_YUV_2_PACKED2_C \