Mercurial > libavcodec.hg
comparison ffv1.c @ 4283:d6f83e2f8804 libavcodec
rename always_inline to av_always_inline and move to common.h
author | mru |
---|---|
date | Fri, 08 Dec 2006 00:35:08 +0000 |
parents | 34fdffe98bd0 |
children | ce643a22f049 |
comparison
equal
deleted
inserted
replaced
4282:9d64f6eacc7b | 4283:d6f83e2f8804 |
---|---|
184 int colorspace; | 184 int colorspace; |
185 | 185 |
186 DSPContext dsp; | 186 DSPContext dsp; |
187 }FFV1Context; | 187 }FFV1Context; |
188 | 188 |
189 static always_inline int fold(int diff, int bits){ | 189 static av_always_inline int fold(int diff, int bits){ |
190 if(bits==8) | 190 if(bits==8) |
191 diff= (int8_t)diff; | 191 diff= (int8_t)diff; |
192 else{ | 192 else{ |
193 diff+= 1<<(bits-1); | 193 diff+= 1<<(bits-1); |
194 diff&=(1<<bits)-1; | 194 diff&=(1<<bits)-1; |