• Home
  • Raw
  • Download

Lines Matching refs:plane_index

42     int plane_index, ret;  in encode_init()  local
57 for(plane_index=0; plane_index<3; plane_index++){ in encode_init()
58 s->plane[plane_index].diag_mc= 1; in encode_init()
59 s->plane[plane_index].htaps= 6; in encode_init()
60 s->plane[plane_index].hcoeff[0]= 40; in encode_init()
61 s->plane[plane_index].hcoeff[1]= -10; in encode_init()
62 s->plane[plane_index].hcoeff[2]= 2; in encode_init()
63 s->plane[plane_index].fast_mc= 1; in encode_init()
504 static int get_dc(SnowContext *s, int mb_x, int mb_y, int plane_index){ in get_dc() argument
506 Plane *p= &s->plane[plane_index]; in get_dc()
508 const int block_w = plane_index ? block_size>>s->chroma_h_shift : block_size; in get_dc()
509 const int block_h = plane_index ? block_size>>s->chroma_v_shift : block_size; in get_dc()
510 …const uint8_t *obmc = plane_index ? ff_obmc_tab[s->block_max_depth+s->chroma_h_shift] : ff_obmc_t… in get_dc()
511 const int obmc_stride= plane_index ? (2*block_size)>>s->chroma_h_shift : 2*block_size; in get_dc()
512 const int ref_stride= s->current_picture->linesize[plane_index]; in get_dc()
513 uint8_t *src= s-> input_picture->data[plane_index]; in get_dc()
514 …IDWTELEM *dst= (IDWTELEM*)s->m.sc.obmc_scratchpad + plane_index*block_size*block_size*4; //FIXME c… in get_dc()
527 b->color[plane_index]= 0; in get_dc()
537 … y, block_w, block_h, w, h, obmc_stride, ref_stride, obmc_stride, mb_x2, mb_y2, 0, 0, plane_index); in get_dc()
600 static int get_block_rd(SnowContext *s, int mb_x, int mb_y, int plane_index, uint8_t (*obmc_edged)[… in get_block_rd() argument
601 Plane *p= &s->plane[plane_index]; in get_block_rd()
603 const int block_w = plane_index ? block_size>>s->chroma_h_shift : block_size; in get_block_rd()
604 const int block_h = plane_index ? block_size>>s->chroma_v_shift : block_size; in get_block_rd()
605 const int obmc_stride= plane_index ? (2*block_size)>>s->chroma_h_shift : 2*block_size; in get_block_rd()
606 const int ref_stride= s->current_picture->linesize[plane_index]; in get_block_rd()
607 uint8_t *dst= s->current_picture->data[plane_index]; in get_block_rd()
608 uint8_t *src= s-> input_picture->data[plane_index]; in get_block_rd()
609 IDWTELEM *pred= (IDWTELEM*)s->m.sc.obmc_scratchpad + plane_index*block_size*block_size*4; in get_block_rd()
629 …tmp, ref_stride, sx, sy, block_w*2, block_h*2, &s->block[mb_x + mb_y*b_stride], plane_index, w, h); in get_block_rd()
687 if(plane_index==0){ in get_block_rd()
701 static int get_4block_rd(SnowContext *s, int mb_x, int mb_y, int plane_index){ in get_4block_rd() argument
703 Plane *p= &s->plane[plane_index]; in get_4block_rd()
705 const int block_w = plane_index ? block_size>>s->chroma_h_shift : block_size; in get_4block_rd()
706 const int block_h = plane_index ? block_size>>s->chroma_v_shift : block_size; in get_4block_rd()
707 …const uint8_t *obmc = plane_index ? ff_obmc_tab[s->block_max_depth+s->chroma_h_shift] : ff_obmc_t… in get_4block_rd()
708 const int obmc_stride= plane_index ? (2*block_size)>>s->chroma_h_shift : 2*block_size; in get_4block_rd()
709 const int ref_stride= s->current_picture->linesize[plane_index]; in get_4block_rd()
710 uint8_t *dst= s->current_picture->data[plane_index]; in get_4block_rd()
711 uint8_t *src= s-> input_picture->data[plane_index]; in get_4block_rd()
731 …block_w, block_h, w, h, /*dst_stride*/0, ref_stride, obmc_stride, mb_x2, mb_y2, 1, 1, plane_index); in get_4block_rd()
751 if(plane_index==0){ in get_4block_rd()
1370 int plane_index, level, orientation; in encode_qlogs() local
1372 for(plane_index=0; plane_index<FFMIN(s->nb_planes, 2); plane_index++){ in encode_qlogs()
1376 … put_symbol(&s->c, s->header_state, s->plane[plane_index].band[level][orientation].qlog, 1); in encode_qlogs()
1383 int plane_index, i; in encode_header() local
1396 for(plane_index=0; plane_index<2; plane_index++){ in encode_header()
1397 Plane *p= &s->plane[plane_index]; in encode_header()
1423 for(plane_index=0; plane_index<FFMIN(s->nb_planes, 2); plane_index++){ in encode_header()
1424 Plane *p= &s->plane[plane_index]; in encode_header()
1431 for(plane_index=0; plane_index<FFMIN(s->nb_planes, 2); plane_index++){ in encode_header()
1432 Plane *p= &s->plane[plane_index]; in encode_header()
1456 int plane_index; in update_last_header_values() local
1459 for(plane_index=0; plane_index<2; plane_index++){ in update_last_header_values()
1460 Plane *p= &s->plane[plane_index]; in update_last_header_values()
1570 int level, orientation, plane_index, i, y, ret; in encode_frame() local
1711 for(plane_index=0; plane_index < s->nb_planes; plane_index++){ in encode_frame()
1712 calculate_visual_weight(s, &s->plane[plane_index]); in encode_frame()
1721 for(plane_index=0; plane_index < s->nb_planes; plane_index++){ in encode_frame()
1722 Plane *p= &s->plane[plane_index]; in encode_frame()
1730 if(pict->data[plane_index]) //FIXME gray hack in encode_frame()
1733 …s->spatial_idwt_buffer[y*w + x]= pict->data[plane_index][y*pict->linesize[plane_index] + x]<<FRAC_… in encode_frame()
1736 predict_plane(s, s->spatial_idwt_buffer, plane_index, 0); in encode_frame()
1738 if( plane_index==0 in encode_frame()
1766 if(s->pass1_rc && plane_index==0){ in encode_frame()
1811 predict_plane(s, s->spatial_idwt_buffer, plane_index, 1); in encode_frame()
1817 … s->current_picture->data[plane_index][y*s->current_picture->linesize[plane_index] + x]= in encode_frame()
1818 pict->data[plane_index][y*pict->linesize[plane_index] + x]; in encode_frame()
1823 predict_plane(s, s->spatial_idwt_buffer, plane_index, 1); in encode_frame()
1829 if(pict->data[plane_index]) //FIXME gray hack in encode_frame()
1832 …ent_picture->data[plane_index][y*s->current_picture->linesize[plane_index] + x] - pict->data[plane… in encode_frame()
1836 s->avctx->error[plane_index] += error; in encode_frame()
1837 s->encoding_error[plane_index] = error; in encode_frame()