43 0, 614, 1222, 1794, 2410, 3014, 3586, 4202, 4792, 5382, 5966, 6542,
44 7138, 7716, 8292, 8864, 9444, 10030, 10642, 11212, 11814
55 static VLC_TYPE aic_mode2_table[11814][2];
59 aic_top_vlc.
table = aic_table;
66 if((i % 10) == 9)
continue;
151 mb_size = ((w + 15) >> 4) * ((h + 15) >> 4);
172 dst[0] = (pattern >> 2) & 2;
173 dst[1] = (pattern >> 1) & 2;
174 dst[2] = pattern & 2;
175 dst[3] = (pattern << 1) & 2;
179 for(j = 0; j < 4; j++){
189 pattern = A + (B << 4) + (C << 8);
193 if(j < 3 && k < MODE2_PATTERNS_NUM){
199 if(B != -1 && C != -1)
241 blocks[r->
mb_type[mb_pos - 1]]++;
251 if(blocks[i] > count){
281 #define MASK_CUR 0x0001
282 #define MASK_RIGHT 0x0008
283 #define MASK_BOTTOM 0x0010
284 #define MASK_TOP 0x1000
285 #define MASK_Y_TOP_ROW 0x000F
286 #define MASK_Y_LAST_ROW 0xF000
287 #define MASK_Y_LEFT_COL 0x1111
288 #define MASK_Y_RIGHT_COL 0x8888
289 #define MASK_C_TOP_ROW 0x0003
290 #define MASK_C_LAST_ROW 0x000C
291 #define MASK_C_LEFT_COL 0x0005
292 #define MASK_C_RIGHT_COL 0x000A
298 uint8_t *src,
int stride,
int dmode,
299 int lim_q1,
int lim_p1,
300 int alpha,
int beta,
int beta2,
301 int chroma,
int edge,
int dir)
303 int filter_p1, filter_q1;
308 edge, &filter_p1, &filter_q1);
310 lims = filter_p1 + filter_q1 + ((lim_q1 + lim_p1) >> 1) + 1;
314 lims, dmode, chroma);
315 }
else if (filter_p1 & filter_q1) {
317 lims, lim_q1, lim_p1);
318 }
else if (filter_p1 | filter_q1) {
320 alpha, beta, lims >> 1, lim_q1 >> 1,
334 int alpha, beta, betaY, betaC;
363 for(mb_x = 0; mb_x < s->
mb_width; mb_x++, mb_pos++){
371 for(mb_x = 0; mb_x < s->
mb_width; mb_x++, mb_pos++){
372 int y_h_deblock, y_v_deblock;
373 int c_v_deblock[2], c_h_deblock[2];
376 int y_to_deblock, c_to_deblock[2];
381 betaY = betaC = beta * 3;
389 for(i = 0; i < 4; i++){
399 mbtype [i] = mbtype[0];
401 uvcbp[i][0] = uvcbp[i][1] = 0;
406 y_to_deblock = mvmasks[
POS_CUR]
414 y_h_deblock = y_to_deblock
423 y_v_deblock = y_to_deblock
435 for(i = 0; i < 2; i++){
437 c_v_deblock[i] = c_to_deblock[i]
440 c_h_deblock[i] = c_to_deblock[i]
451 for(j = 0; j < 16; j += 4){
453 for(i = 0; i < 4; i++, Y += 4){
456 int dither = j ? ij : i*4;
464 clip_cur, alpha, beta, betaY,
476 alpha, beta, betaY, 0, 0, 1);
482 mvmasks[POS_TOP] & (
MASK_TOP << i) ? clip[POS_TOP] : 0,
483 alpha, beta, betaY, 0, 1, 0);
486 if(y_v_deblock & (
MASK_CUR << ij) && !i && (mb_strong[
POS_CUR] || mb_strong[POS_LEFT])){
491 alpha, beta, betaY, 0, 1, 1);
495 for(k = 0; k < 2; k++){
496 for(j = 0; j < 2; j++){
498 for(i = 0; i < 2; i++, C += 4){
501 if(c_h_deblock[k] & (
MASK_CUR << (ij+2))){
502 int clip_bot = c_to_deblock[k] & (
MASK_CUR << (ij+2)) ? clip[
POS_CUR] : 0;
506 alpha, beta, betaC, 1, 0, 0);
512 clip_left = c_to_deblock[k] & (
MASK_CUR << (ij-1)) ? clip[
POS_CUR] : 0;
516 alpha, beta, betaC, 1, 0, 1);
523 alpha, beta, betaC, 1, 1, 0);
525 if(c_v_deblock[k] & (
MASK_CUR << ij) && !i && (mb_strong[
POS_CUR] || mb_strong[POS_LEFT])){
530 alpha, beta, betaC, 1, 1, 1);
549 if(!aic_top_vlc.
bits)