comparison indeo2.c @ 4594:a96d905dcbaa libavcodec

Add av_ prefix to clip functions
author reimar
date Sun, 25 Feb 2007 10:27:12 +0000
parents c8c591fe26f8
children 1210710a6c6a
comparison
equal deleted inserted replaced
4593:2aea8bf268d8 4594:a96d905dcbaa
85 dst[out] = dst[out - stride]; 85 dst[out] = dst[out - stride];
86 out++; 86 out++;
87 } 87 }
88 } else { /* add two deltas from table */ 88 } else { /* add two deltas from table */
89 t = dst[out - stride] + (table[c * 2] - 128); 89 t = dst[out - stride] + (table[c * 2] - 128);
90 t= clip_uint8(t); 90 t= av_clip_uint8(t);
91 dst[out] = t; 91 dst[out] = t;
92 out++; 92 out++;
93 t = dst[out - stride] + (table[(c * 2) + 1] - 128); 93 t = dst[out - stride] + (table[(c * 2) + 1] - 128);
94 t= clip_uint8(t); 94 t= av_clip_uint8(t);
95 dst[out] = t; 95 dst[out] = t;
96 out++; 96 out++;
97 } 97 }
98 } 98 }
99 dst += stride; 99 dst += stride;
119 if(c >= 0x80) { /* we have a skip */ 119 if(c >= 0x80) { /* we have a skip */
120 c -= 0x7F; 120 c -= 0x7F;
121 out += c * 2; 121 out += c * 2;
122 } else { /* add two deltas from table */ 122 } else { /* add two deltas from table */
123 t = dst[out] + (((table[c * 2] - 128)*3) >> 2); 123 t = dst[out] + (((table[c * 2] - 128)*3) >> 2);
124 t= clip_uint8(t); 124 t= av_clip_uint8(t);
125 dst[out] = t; 125 dst[out] = t;
126 out++; 126 out++;
127 t = dst[out] + (((table[(c * 2) + 1] - 128)*3) >> 2); 127 t = dst[out] + (((table[(c * 2) + 1] - 128)*3) >> 2);
128 t= clip_uint8(t); 128 t= av_clip_uint8(t);
129 dst[out] = t; 129 dst[out] = t;
130 out++; 130 out++;
131 } 131 }
132 } 132 }
133 dst += stride; 133 dst += stride;