Mercurial > mplayer.hg
comparison libswscale/yuv2rgb.c @ 30800:d600373a8935
Cosmetics: fix vertical alignment.
author | benoit |
---|---|
date | Fri, 05 Mar 2010 08:41:35 +0000 |
parents | 76f3878f34fd |
children | 87acb5d9e4aa |
comparison
equal
deleted
inserted
replaced
30799:76f3878f34fd | 30800:d600373a8935 |
---|---|
738 c->yuvTable = av_malloc(1024*3*2); | 738 c->yuvTable = av_malloc(1024*3*2); |
739 y_table16 = c->yuvTable; | 739 y_table16 = c->yuvTable; |
740 yb = -(384<<16) - oy; | 740 yb = -(384<<16) - oy; |
741 for (i = 0; i < 1024; i++) { | 741 for (i = 0; i < 1024; i++) { |
742 uint8_t yval = av_clip_uint8((yb + 0x8000) >> 16); | 742 uint8_t yval = av_clip_uint8((yb + 0x8000) >> 16); |
743 y_table16[i ] = (yval >> 4) << rbase; | 743 y_table16[i ] = (yval >> 4) << rbase; |
744 y_table16[i+1024] = (yval >> 4) << gbase; | 744 y_table16[i+1024] = (yval >> 4) << gbase; |
745 y_table16[i+2048] = (yval >> 4) << bbase; | 745 y_table16[i+2048] = (yval >> 4) << bbase; |
746 yb += cy; | 746 yb += cy; |
747 } | 747 } |
748 fill_table(c->table_rV, 2, crv, y_table16 + yoffs); | 748 fill_table(c->table_rV, 2, crv, y_table16 + yoffs); |
749 fill_table(c->table_gU, 2, cgu, y_table16 + yoffs + 1024); | 749 fill_table(c->table_gU, 2, cgu, y_table16 + yoffs + 1024); |
750 fill_table(c->table_bU, 2, cbu, y_table16 + yoffs + 2048); | 750 fill_table(c->table_bU, 2, cbu, y_table16 + yoffs + 2048); |