Mercurial > libavcodec.hg
comparison error_resilience.c @ 4176:23da44e8fd05 libavcodec
rename cropTbl -> ff_cropTbl
author | mru |
---|---|
date | Sun, 12 Nov 2006 20:08:09 +0000 |
parents | 34fdffe98bd0 |
children | f334529b46ec |
comparison
equal
deleted
inserted
replaced
4175:b3328ed50a5e | 4176:23da44e8fd05 |
---|---|
197 * @param w width in 8 pixel blocks | 197 * @param w width in 8 pixel blocks |
198 * @param h height in 8 pixel blocks | 198 * @param h height in 8 pixel blocks |
199 */ | 199 */ |
200 static void h_block_filter(MpegEncContext *s, uint8_t *dst, int w, int h, int stride, int is_luma){ | 200 static void h_block_filter(MpegEncContext *s, uint8_t *dst, int w, int h, int stride, int is_luma){ |
201 int b_x, b_y; | 201 int b_x, b_y; |
202 uint8_t *cm = cropTbl + MAX_NEG_CROP; | 202 uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; |
203 | 203 |
204 for(b_y=0; b_y<h; b_y++){ | 204 for(b_y=0; b_y<h; b_y++){ |
205 for(b_x=0; b_x<w-1; b_x++){ | 205 for(b_x=0; b_x<w-1; b_x++){ |
206 int y; | 206 int y; |
207 int left_status = s->error_status_table[( b_x >>is_luma) + (b_y>>is_luma)*s->mb_stride]; | 207 int left_status = s->error_status_table[( b_x >>is_luma) + (b_y>>is_luma)*s->mb_stride]; |
257 * @param w width in 8 pixel blocks | 257 * @param w width in 8 pixel blocks |
258 * @param h height in 8 pixel blocks | 258 * @param h height in 8 pixel blocks |
259 */ | 259 */ |
260 static void v_block_filter(MpegEncContext *s, uint8_t *dst, int w, int h, int stride, int is_luma){ | 260 static void v_block_filter(MpegEncContext *s, uint8_t *dst, int w, int h, int stride, int is_luma){ |
261 int b_x, b_y; | 261 int b_x, b_y; |
262 uint8_t *cm = cropTbl + MAX_NEG_CROP; | 262 uint8_t *cm = ff_cropTbl + MAX_NEG_CROP; |
263 | 263 |
264 for(b_y=0; b_y<h-1; b_y++){ | 264 for(b_y=0; b_y<h-1; b_y++){ |
265 for(b_x=0; b_x<w; b_x++){ | 265 for(b_x=0; b_x<w; b_x++){ |
266 int x; | 266 int x; |
267 int top_status = s->error_status_table[(b_x>>is_luma) + ( b_y >>is_luma)*s->mb_stride]; | 267 int top_status = s->error_status_table[(b_x>>is_luma) + ( b_y >>is_luma)*s->mb_stride]; |