Lines Matching refs:plane_index
39 int plane_index, ret;
54 for(plane_index=0; plane_index<3; plane_index++){
55 s->plane[plane_index].diag_mc= 1;
56 s->plane[plane_index].htaps= 6;
57 s->plane[plane_index].hcoeff[0]= 40;
58 s->plane[plane_index].hcoeff[1]= -10;
59 s->plane[plane_index].hcoeff[2]= 2;
60 s->plane[plane_index].fast_mc= 1;
495 static int get_dc(SnowContext *s, int mb_x, int mb_y, int plane_index){
497 Plane *p= &s->plane[plane_index];
499 const int block_w = plane_index ? block_size>>s->chroma_h_shift : block_size;
500 const int block_h = plane_index ? block_size>>s->chroma_v_shift : block_size;
501 const uint8_t *obmc = plane_index ? ff_obmc_tab[s->block_max_depth+s->chroma_h_shift] : ff_obmc_tab[s->block_max_depth];
502 const int obmc_stride= plane_index ? (2*block_size)>>s->chroma_h_shift : 2*block_size;
503 const int ref_stride= s->current_picture->linesize[plane_index];
504 uint8_t *src= s-> input_picture->data[plane_index];
505 IDWTELEM *dst= (IDWTELEM*)s->m.obmc_scratchpad + plane_index*block_size*block_size*4; //FIXME change to unsigned
518 b->color[plane_index]= 0;
528 x, y, block_w, block_h, w, h, obmc_stride, ref_stride, obmc_stride, mb_x2, mb_y2, 0, 0, plane_index);
591 static int get_block_rd(SnowContext *s, int mb_x, int mb_y, int plane_index, uint8_t (*obmc_edged)[MB_SIZE * 2]){
592 Plane *p= &s->plane[plane_index];
594 const int block_w = plane_index ? block_size>>s->chroma_h_shift : block_size;
595 const int block_h = plane_index ? block_size>>s->chroma_v_shift : block_size;
596 const int obmc_stride= plane_index ? (2*block_size)>>s->chroma_h_shift : 2*block_size;
597 const int ref_stride= s->current_picture->linesize[plane_index];
598 uint8_t *dst= s->current_picture->data[plane_index];
599 uint8_t *src= s-> input_picture->data[plane_index];
600 IDWTELEM *pred= (IDWTELEM*)s->m.obmc_scratchpad + plane_index*block_size*block_size*4;
620 ff_snow_pred_block(s, cur, tmp, ref_stride, sx, sy, block_w*2, block_h*2, &s->block[mb_x + mb_y*b_stride], plane_index, w, h);
678 if(plane_index==0){
692 static int get_4block_rd(SnowContext *s, int mb_x, int mb_y, int plane_index){
694 Plane *p= &s->plane[plane_index];
696 const int block_w = plane_index ? block_size>>s->chroma_h_shift : block_size;
697 const int block_h = plane_index ? block_size>>s->chroma_v_shift : block_size;
698 const uint8_t *obmc = plane_index ? ff_obmc_tab[s->block_max_depth+s->chroma_h_shift] : ff_obmc_tab[s->block_max_depth];
699 const int obmc_stride= plane_index ? (2*block_size)>>s->chroma_h_shift : 2*block_size;
700 const int ref_stride= s->current_picture->linesize[plane_index];
701 uint8_t *dst= s->current_picture->data[plane_index];
702 uint8_t *src= s-> input_picture->data[plane_index];
722 x, y, block_w, block_h, w, h, /*dst_stride*/0, ref_stride, obmc_stride, mb_x2, mb_y2, 1, 1, plane_index);
742 if(plane_index==0){
1358 int plane_index, level, orientation;
1360 for(plane_index=0; plane_index<FFMIN(s->nb_planes, 2); plane_index++){
1364 put_symbol(&s->c, s->header_state, s->plane[plane_index].band[level][orientation].qlog, 1);
1371 int plane_index, i;
1384 for(plane_index=0; plane_index<2; plane_index++){
1385 Plane *p= &s->plane[plane_index];
1411 for(plane_index=0; plane_index<FFMIN(s->nb_planes, 2); plane_index++){
1412 Plane *p= &s->plane[plane_index];
1419 for(plane_index=0; plane_index<FFMIN(s->nb_planes, 2); plane_index++){
1420 Plane *p= &s->plane[plane_index];
1444 int plane_index;
1447 for(plane_index=0; plane_index<2; plane_index++){
1448 Plane *p= &s->plane[plane_index];
1554 int level, orientation, plane_index, i, y, ret;
1676 for(plane_index=0; plane_index < s->nb_planes; plane_index++){
1677 calculate_visual_weight(s, &s->plane[plane_index]);
1686 for(plane_index=0; plane_index < s->nb_planes; plane_index++){
1687 Plane *p= &s->plane[plane_index];
1695 if(pict->data[plane_index]) //FIXME gray hack
1698 s->spatial_idwt_buffer[y*w + x]= pict->data[plane_index][y*pict->linesize[plane_index] + x]<<FRAC_BITS;
1701 predict_plane(s, s->spatial_idwt_buffer, plane_index, 0);
1703 if( plane_index==0
1731 if(s->pass1_rc && plane_index==0){
1776 predict_plane(s, s->spatial_idwt_buffer, plane_index, 1);
1782 s->current_picture->data[plane_index][y*s->current_picture->linesize[plane_index] + x]=
1783 pict->data[plane_index][y*pict->linesize[plane_index] + x];
1788 predict_plane(s, s->spatial_idwt_buffer, plane_index, 1);
1794 if(pict->data[plane_index]) //FIXME gray hack
1797 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];
1801 s->avctx->error[plane_index] += error;
1802 s->current_picture->error[plane_index] = error;