Lines Matching defs:level

155 static int decode_q_branch(SnowContext *s, int level, int x, int y){
157 const int rem_depth= s->block_max_depth - level;
163 const BlockNode *tr = y && trx<w && ((x&1)==0 || level==0) ? &s->block[index-w+(1<<rem_depth)] : tl; //FIXME use lt
164 int s_context= 2*left->level + 2*top->level + tl->level + tr->level;
168 set_blocks(s, level, x, y, null_block.color[0], null_block.color[1], null_block.color[2], null_block.mx, null_block.my, null_block.ref, BLOCK_INTRA);
172 if(level==s->block_max_depth || get_rac(&s->c, &s->block_state[4 + s_context])){
211 set_blocks(s, level, x, y, l, cb, cr, mx, my, ref, type);
213 if ((res = decode_q_branch(s, level+1, 2*x+0, 2*y+0)) < 0 ||
214 (res = decode_q_branch(s, level+1, 2*x+1, 2*y+0)) < 0 ||
215 (res = decode_q_branch(s, level+1, 2*x+0, 2*y+1)) < 0 ||
216 (res = decode_q_branch(s, level+1, 2*x+1, 2*y+1)) < 0)
276 int plane_index, level, orientation;
279 for(level=0; level<s->spatial_decomposition_count; level++){
280 for(orientation=level ? 1:0; orientation<4; orientation++){
282 if (plane_index==2) q= s->plane[1].band[level][orientation].qlog;
283 else if(orientation==2) q= s->plane[plane_index].band[level][1].qlog;
285 s->plane[plane_index].band[level][orientation].qlog= q;
447 int level, orientation, plane_index;
528 for(level=0; level<s->spatial_decomposition_count; level++){
529 for(orientation=level ? 1 : 0; orientation<4; orientation++){
530 SubBand *b= &p->band[level][orientation];
556 for(level=0; level<s->spatial_decomposition_count; level++){
557 for(orientation=level ? 1 : 0; orientation<4; orientation++){
558 SubBand *b= &p->band[level][orientation];
564 start_y = (mb_y ? ((block_h * our_mb_start) >> (s->spatial_decomposition_count - level)) + s->spatial_decomposition_count - level + extra: 0);
565 end_y = (((block_h * our_mb_end) >> (s->spatial_decomposition_count - level)) + s->spatial_decomposition_count - level + extra);
567 start_y = FFMAX(0, start_y - (block_h >> (1+s->spatial_decomposition_count - level)));
568 end_y = FFMAX(0, end_y - (block_h >> (1+s->spatial_decomposition_count - level)));
583 decode_subband_slice_buffered(s, b, &s->sb, start_y, end_y, decode_state[level][orientation]);