Lines Matching refs:plane_index
159 int plane_index, ret;
179 for(plane_index=0; plane_index<3; plane_index++){
180 s->plane[plane_index].diag_mc= 1;
181 s->plane[plane_index].htaps= 6;
182 s->plane[plane_index].hcoeff[0]= 40;
183 s->plane[plane_index].hcoeff[1]= -10;
184 s->plane[plane_index].hcoeff[2]= 2;
185 s->plane[plane_index].fast_mc= 1;
576 static int get_dc(SnowContext *s, int mb_x, int mb_y, int plane_index){
578 Plane *p= &s->plane[plane_index];
580 const int block_w = plane_index ? block_size/2 : block_size;
581 const uint8_t *obmc = plane_index ? obmc_tab[s->block_max_depth+1] : obmc_tab[s->block_max_depth];
582 const int obmc_stride= plane_index ? block_size : 2*block_size;
583 const int ref_stride= s->current_picture.linesize[plane_index];
584 uint8_t *src= s-> input_picture.data[plane_index];
585 IDWTELEM *dst= (IDWTELEM*)s->m.obmc_scratchpad + plane_index*block_size*block_size*4; //FIXME change to unsigned
596 b->color[plane_index]= 0;
606 x, y, block_w, block_w, w, h, obmc_stride, ref_stride, obmc_stride, mb_x2, mb_y2, 0, 0, plane_index);
669 static int get_block_rd(SnowContext *s, int mb_x, int mb_y, int plane_index, const uint8_t *obmc_edged){
670 Plane *p= &s->plane[plane_index];
672 const int block_w = plane_index ? block_size/2 : block_size;
673 const int obmc_stride= plane_index ? block_size : 2*block_size;
674 const int ref_stride= s->current_picture.linesize[plane_index];
675 uint8_t *dst= s->current_picture.data[plane_index];
676 uint8_t *src= s-> input_picture.data[plane_index];
677 IDWTELEM *pred= (IDWTELEM*)s->m.obmc_scratchpad + plane_index*block_size*block_size*4;
695 ff_snow_pred_block(s, cur, tmp, ref_stride, sx, sy, block_w*2, block_w*2, &s->block[mb_x + mb_y*b_stride], plane_index, w, h);
753 if(plane_index==0){
767 static int get_4block_rd(SnowContext *s, int mb_x, int mb_y, int plane_index){
769 Plane *p= &s->plane[plane_index];
771 const int block_w = plane_index ? block_size/2 : block_size;
772 const uint8_t *obmc = plane_index ? obmc_tab[s->block_max_depth+1] : obmc_tab[s->block_max_depth];
773 const int obmc_stride= plane_index ? block_size : 2*block_size;
774 const int ref_stride= s->current_picture.linesize[plane_index];
775 uint8_t *dst= s->current_picture.data[plane_index];
776 uint8_t *src= s-> input_picture.data[plane_index];
794 x, y, block_w, block_w, w, h, /*dst_stride*/0, ref_stride, obmc_stride, mb_x2, mb_y2, 1, 1, plane_index);
814 if(plane_index==0){
1420 int plane_index, level, orientation;
1422 for(plane_index=0; plane_index<2; plane_index++){
1426 put_symbol(&s->c, s->header_state, s->plane[plane_index].band[level][orientation].qlog, 1);
1433 int plane_index, i;
1446 for(plane_index=0; plane_index<2; plane_index++){
1447 Plane *p= &s->plane[plane_index];
1471 for(plane_index=0; plane_index<2; plane_index++){
1472 Plane *p= &s->plane[plane_index];
1479 for(plane_index=0; plane_index<2; plane_index++){
1480 Plane *p= &s->plane[plane_index];
1504 int plane_index;
1507 for(plane_index=0; plane_index<2; plane_index++){
1508 Plane *p= &s->plane[plane_index];
1612 int level, orientation, plane_index, i, y;
1720 for(plane_index=0; plane_index<3; plane_index++){
1721 calculate_visual_weight(s, &s->plane[plane_index]);
1730 for(plane_index=0; plane_index<3; plane_index++){
1731 Plane *p= &s->plane[plane_index];
1739 if(pict->data[plane_index]) //FIXME gray hack
1742 s->spatial_idwt_buffer[y*w + x]= pict->data[plane_index][y*pict->linesize[plane_index] + x]<<FRAC_BITS;
1745 predict_plane(s, s->spatial_idwt_buffer, plane_index, 0);
1747 if( plane_index==0
1778 if(s->pass1_rc && plane_index==0){
1823 predict_plane(s, s->spatial_idwt_buffer, plane_index, 1);
1829 s->current_picture.data[plane_index][y*s->current_picture.linesize[plane_index] + x]=
1830 pict->data[plane_index][y*pict->linesize[plane_index] + x];
1835 predict_plane(s, s->spatial_idwt_buffer, plane_index, 1);
1841 if(pict->data[plane_index]) //FIXME gray hack
1844 int d= s->current_picture.data[plane_index][y*s->current_picture.linesize[plane_index] + x] - pict->data[plane_index][y*pict->linesize[plane_index] + x];
1848 s->avctx->error[plane_index] += error;
1849 s->current_picture.error[plane_index] = error;