Lines Matching defs:level

220 static int encode_q_branch(SnowContext *s, int level, int x, int y){
231 const int rem_depth= s->block_max_depth - level;
233 const int block_w= 1<<(LOG2_MB_SIZE - level);
241 const BlockNode *tr = y && trx<w && ((x&1)==0 || level==0) ? &s->block[index-w+(1<<rem_depth)] : tl; //FIXME use lt
261 int s_context= 2*left->level + 2*top->level + tl->level + tr->level;
267 set_blocks(s, level, x, y, pl, pcb, pcr, 0, 0, 0, BLOCK_INTRA);
335 (1<<16)>>shift, level-LOG2_MB_SIZE+4, block_w);
342 ref_score= c->sub_motion_search(&s->m, &ref_mx, &ref_my, ref_score, 0, 0, level-LOG2_MB_SIZE+4, block_w);
343 ref_score= ff_get_mb_score(&s->m, ref_mx, ref_my, 0, 0, level-LOG2_MB_SIZE+4, block_w, 0);
366 if(level!=s->block_max_depth)
397 if(level!=s->block_max_depth)
413 if(level==0){
422 if(level!=s->block_max_depth){
424 score2 = encode_q_branch(s, level+1, 2*x+0, 2*y+0);
425 score2+= encode_q_branch(s, level+1, 2*x+1, 2*y+0);
426 score2+= encode_q_branch(s, level+1, 2*x+0, 2*y+1);
427 score2+= encode_q_branch(s, level+1, 2*x+1, 2*y+1);
440 set_blocks(s, level, x, y, l, cb, cr, pmx, pmy, 0, BLOCK_INTRA);
448 set_blocks(s, level, x, y, pl, pcb, pcr, mx, my, best_ref, 0);
454 static void encode_q_branch2(SnowContext *s, int level, int x, int y){
456 const int rem_depth= s->block_max_depth - level;
463 const BlockNode *tr = y && trx<w && ((x&1)==0 || level==0) ? &s->block[index-w+(1<<rem_depth)] : tl; //FIXME use lt
471 int s_context= 2*left->level + 2*top->level + tl->level + tr->level;
474 set_blocks(s, level, x, y, pl, pcb, pcr, 0, 0, 0, BLOCK_INTRA);
478 if(level!=s->block_max_depth){
483 encode_q_branch2(s, level+1, 2*x+0, 2*y+0);
484 encode_q_branch2(s, level+1, 2*x+1, 2*y+0);
485 encode_q_branch2(s, level+1, 2*x+0, 2*y+1);
486 encode_q_branch2(s, level+1, 2*x+1, 2*y+1);
498 set_blocks(s, level, x, y, b->color[0], b->color[1], b->color[2], pmx, pmy, 0, BLOCK_INTRA);
506 set_blocks(s, level, x, y, pl, pcb, pcr, b->mx, b->my, b->ref, 0);
1376 int plane_index, level, orientation;
1379 for(level=0; level<s->spatial_decomposition_count; level++){
1380 for(orientation=level ? 1:0; orientation<4; orientation++){
1382 put_symbol(&s->c, s->header_state, s->plane[plane_index].band[level][orientation].qlog, 1);
1492 int level, orientation, delta_qlog;
1494 for(level=0; level<s->spatial_decomposition_count; level++){
1495 for(orientation=level ? 1 : 0; orientation<4; orientation++){
1496 SubBand *b= &s->plane[0].band[level][orientation];
1541 int level, orientation, x, y;
1543 for(level=0; level<s->spatial_decomposition_count; level++){
1545 for(orientation=level ? 1 : 0; orientation<4; orientation++){
1546 SubBand *b= &p->band[level][orientation];
1564 p->band[level][1].qlog = p->band[level][2].qlog;
1576 int level, orientation, plane_index, i, y, ret;
1786 for(level=0; level<s->spatial_decomposition_count; level++){
1787 for(orientation=level ? 1 : 0; orientation<4; orientation++){
1788 SubBand *b= &p->band[level][orientation];
1801 for(level=0; level<s->spatial_decomposition_count; level++){
1802 for(orientation=level ? 1 : 0; orientation<4; orientation++){
1803 SubBand *b= &p->band[level][orientation];