"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libavcodec/h264pred_template.c" between
libav-12.1.tar.gz and libav-12.2.tar.gz

About: libav provides cross-platform tools ("avconv") and libraries to convert, manipulate and stream a wide range of multimedia (audio and video) formats and protocols.

h264pred_template.c  (libav-12.1):h264pred_template.c  (libav-12.2)
skipping to change at line 1125 skipping to change at line 1125
SRC(1,4)=SRC(3,3)=SRC(5,2)=SRC(7,1)= (l4 + 2*l5 + l6 + 2) >> 2; SRC(1,4)=SRC(3,3)=SRC(5,2)=SRC(7,1)= (l4 + 2*l5 + l6 + 2) >> 2;
SRC(0,5)=SRC(2,4)=SRC(4,3)=SRC(6,2)= (l5 + l6 + 1) >> 1; SRC(0,5)=SRC(2,4)=SRC(4,3)=SRC(6,2)= (l5 + l6 + 1) >> 1;
SRC(1,5)=SRC(3,4)=SRC(5,3)=SRC(7,2)= (l5 + 2*l6 + l7 + 2) >> 2; SRC(1,5)=SRC(3,4)=SRC(5,3)=SRC(7,2)= (l5 + 2*l6 + l7 + 2) >> 2;
SRC(0,6)=SRC(2,5)=SRC(4,4)=SRC(6,3)= (l6 + l7 + 1) >> 1; SRC(0,6)=SRC(2,5)=SRC(4,4)=SRC(6,3)= (l6 + l7 + 1) >> 1;
SRC(1,6)=SRC(3,5)=SRC(5,4)=SRC(7,3)= (l6 + 3*l7 + 2) >> 2; SRC(1,6)=SRC(3,5)=SRC(5,4)=SRC(7,3)= (l6 + 3*l7 + 2) >> 2;
SRC(0,7)=SRC(1,7)=SRC(2,6)=SRC(2,7)=SRC(3,6)= SRC(0,7)=SRC(1,7)=SRC(2,6)=SRC(2,7)=SRC(3,6)=
SRC(3,7)=SRC(4,5)=SRC(4,6)=SRC(4,7)=SRC(5,5)= SRC(3,7)=SRC(4,5)=SRC(4,6)=SRC(4,7)=SRC(5,5)=
SRC(5,6)=SRC(5,7)=SRC(6,4)=SRC(6,5)=SRC(6,6)= SRC(5,6)=SRC(5,7)=SRC(6,4)=SRC(6,5)=SRC(6,6)=
SRC(6,7)=SRC(7,4)=SRC(7,5)=SRC(7,6)=SRC(7,7)= l7; SRC(6,7)=SRC(7,4)=SRC(7,5)=SRC(7,6)=SRC(7,7)= l7;
} }
static void FUNCC(pred8x8l_vertical_filter_add)(uint8_t *_src, int16_t *_block,
int has_topleft,
int has_topright, ptrdiff_t _str
ide)
{
int i;
pixel *src = (pixel*)_src;
const dctcoef *block = (const dctcoef*)_block;
pixel pix[8];
int stride = _stride/sizeof(pixel);
PREDICT_8x8_LOAD_TOP;
pix[0] = t0;
pix[1] = t1;
pix[2] = t2;
pix[3] = t3;
pix[4] = t4;
pix[5] = t5;
pix[6] = t6;
pix[7] = t7;
for (i = 0; i < 8; i++) {
pixel v = pix[i];
src[0 * stride] = v += block[0];
src[1 * stride] = v += block[8];
src[2 * stride] = v += block[16];
src[3 * stride] = v += block[24];
src[4 * stride] = v += block[32];
src[5 * stride] = v += block[40];
src[6 * stride] = v += block[48];
src[7 * stride] = v + block[56];
src++;
block++;
}
memset(_block, 0, sizeof(dctcoef) * 64);
}
static void FUNCC(pred8x8l_horizontal_filter_add)(uint8_t *_src, int16_t *_block
, int has_topleft,
int has_topright, ptrdiff_t _s
tride)
{
int i;
pixel *src = (pixel*)_src;
const dctcoef *block = (const dctcoef*)_block;
pixel pix[8];
int stride = _stride/sizeof(pixel);
PREDICT_8x8_LOAD_LEFT;
pix[0] = l0;
pix[1] = l1;
pix[2] = l2;
pix[3] = l3;
pix[4] = l4;
pix[5] = l5;
pix[6] = l6;
pix[7] = l7;
for (i = 0; i < 8; i++) {
pixel v = pix[i];
src[0] = v += block[0];
src[1] = v += block[1];
src[2] = v += block[2];
src[3] = v += block[3];
src[4] = v += block[4];
src[5] = v += block[5];
src[6] = v += block[6];
src[7] = v + block[7];
src += stride;
block += 8;
}
memset(_block, 0, sizeof(dctcoef) * 64);
}
#undef PREDICT_8x8_LOAD_LEFT #undef PREDICT_8x8_LOAD_LEFT
#undef PREDICT_8x8_LOAD_TOP #undef PREDICT_8x8_LOAD_TOP
#undef PREDICT_8x8_LOAD_TOPLEFT #undef PREDICT_8x8_LOAD_TOPLEFT
#undef PREDICT_8x8_LOAD_TOPRIGHT #undef PREDICT_8x8_LOAD_TOPRIGHT
#undef PREDICT_8x8_DC #undef PREDICT_8x8_DC
#undef PTR #undef PTR
#undef PT #undef PT
#undef PL #undef PL
#undef SRC #undef SRC
 End of changes. 1 change blocks. 
0 lines changed or deleted 77 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)