| 188 | } |
| 189 | |
| 190 | static int get_dc(uint8_t *src, int stride, int scale, int block_size) |
| 191 | { |
| 192 | int y; |
| 193 | int sum=0; |
| 194 | for(y=0; y<block_size; y++){ |
| 195 | int x; |
| 196 | for(x=0; x<block_size; x++){ |
| 197 | sum+=src[x + y*stride]; |
| 198 | } |
| 199 | } |
| 200 | return FASTDIV((sum + (scale>>1)), scale); |
| 201 | } |
| 202 | |
| 203 | /* dir = 0: left, dir = 1: top prediction */ |
| 204 | int ff_msmpeg4_pred_dc(MpegEncContext *s, int n, |
no test coverage detected