Mercurial > libavcodec.hg
comparison h264pred.c @ 12030:22da8afd75a5 libavcodec
Add more int packing macros, name them consistently
author | mru |
---|---|
date | Wed, 30 Jun 2010 22:33:38 +0000 |
parents | fdafbcef52f5 |
children |
comparison
equal
deleted
inserted
replaced
12029:934968bd410d | 12030:22da8afd75a5 |
---|---|
107 | 107 |
108 static void pred4x4_vertical_vp8_c(uint8_t *src, const uint8_t *topright, int stride){ | 108 static void pred4x4_vertical_vp8_c(uint8_t *src, const uint8_t *topright, int stride){ |
109 const int lt= src[-1-1*stride]; | 109 const int lt= src[-1-1*stride]; |
110 LOAD_TOP_EDGE | 110 LOAD_TOP_EDGE |
111 LOAD_TOP_RIGHT_EDGE | 111 LOAD_TOP_RIGHT_EDGE |
112 uint32_t v = PACK4UINT8((lt + 2*t0 + t1 + 2) >> 2, | 112 uint32_t v = PACK_4U8((lt + 2*t0 + t1 + 2) >> 2, |
113 (t0 + 2*t1 + t2 + 2) >> 2, | 113 (t0 + 2*t1 + t2 + 2) >> 2, |
114 (t1 + 2*t2 + t3 + 2) >> 2, | 114 (t1 + 2*t2 + t3 + 2) >> 2, |
115 (t2 + 2*t3 + t4 + 2) >> 2); | 115 (t2 + 2*t3 + t4 + 2) >> 2); |
116 | 116 |
117 AV_WN32A(src+0*stride, v); | 117 AV_WN32A(src+0*stride, v); |