Lines Matching refs:ref_index
52 int src_index, int ref_index,
83 static inline void init_ref(MotionEstContext *c, uint8_t *src[3], uint8_t *ref[3], uint8_t *ref2[3], int x, int y, int ref_index){
94 if(ref_index){
96 c->ref[ref_index][i]= ref2[i] + offset[i];
108 const int size, const int h, int ref_index, int src_index,
114 uint8_t * const * const ref= c->ref[ref_index];
180 const int size, const int h, int ref_index, int src_index,
188 uint8_t * const * const ref= c->ref[ref_index];
226 int ref_index, int src_index,
228 return cmp_inline(s,x,y,0,0,0,16,ref_index,src_index, cmp_func, chroma_cmp_func, 0, 0);
232 const int size, const int h, int ref_index, int src_index,
235 return cmp_direct_inline(s,x,y,0,0,size,h,ref_index,src_index, cmp_func, chroma_cmp_func, flags&FLAG_QPEL);
237 return cmp_inline(s,x,y,0,0,size,h,ref_index,src_index, cmp_func, chroma_cmp_func, 0, flags&FLAG_CHROMA);
242 const int size, const int h, int ref_index, int src_index,
245 return cmp_direct_inline(s,x,y,subx,suby,size,h,ref_index,src_index, cmp_func, chroma_cmp_func, flags&FLAG_QPEL);
247 return cmp_inline(s,x,y,subx,suby,size,h,ref_index,src_index, cmp_func, chroma_cmp_func, flags&FLAG_QPEL, flags&FLAG_CHROMA);
255 const int size, const int h, int ref_index, int src_index,
260 return cmp_simple(s,x,y,ref_index,src_index, cmp_func, chroma_cmp_func);
263 return cmp_fpel_internal(s,x,y,size,h,ref_index,src_index, cmp_func, chroma_cmp_func,flags);
265 return cmp_internal(s,x,y,subx,suby,size,h,ref_index,src_index, cmp_func, chroma_cmp_func, flags);
270 const int size, const int h, int ref_index, int src_index,
273 return cmp_direct_inline(s,x,y,subx,suby,size,h,ref_index,src_index, cmp_func, chroma_cmp_func, 0);
275 return cmp_inline(s,x,y,subx,suby,size,h,ref_index,src_index, cmp_func, chroma_cmp_func, 0, flags&FLAG_CHROMA);
280 const int size, const int h, int ref_index, int src_index,
283 return cmp_direct_inline(s,x,y,subx,suby,size,h,ref_index,src_index, cmp_func, chroma_cmp_func, 1);
285 return cmp_inline(s,x,y,subx,suby,size,h,ref_index,src_index, cmp_func, chroma_cmp_func, 1, flags&FLAG_CHROMA);
395 int src_index, int ref_index,
420 ptr = c->ref[ref_index][0] + (my * stride) + mx;
708 static inline void init_interlaced_ref(MpegEncContext *s, int ref_index){
711 c->ref[1+ref_index][0] = c->ref[0+ref_index][0] + s->linesize;
714 c->ref[1+ref_index][1] = c->ref[0+ref_index][1] + s->uvlinesize;
715 c->ref[1+ref_index][2] = c->ref[0+ref_index][2] + s->uvlinesize;
721 static int interlaced_search(MpegEncContext *s, int ref_index,
740 init_interlaced_ref(s, ref_index);
781 dmin = epzs_motion_search2(s, &mx_i, &my_i, P, block, field_select+ref_index, mv_table, (1<<16)>>1);
783 dmin= c->sub_motion_search(s, &mx_i, &my_i, dmin, block, field_select+ref_index, size, h);
792 uint8_t *ref= c->ref[field_select+ref_index][0] + (mx_i>>1) + (my_i>>1)*stride;
891 int field_select0= p->f.ref_index[0][4*mb_xy ];
892 int field_select1= p->f.ref_index[0][4*mb_xy+2];
919 int field_select0 = p->f.ref_index[1][4 * mb_xy ];
920 int field_select1 = p->f.ref_index[1][4 * mb_xy + 2];
1265 int mb_x, int mb_y, int16_t (*mv_table)[2], int ref_index, int f_code)
1322 dmin = ff_epzs_motion_search(s, &mx, &my, P, 0, ref_index, s->p_mv_table, mv_scale, 0, 16);
1327 dmin= c->sub_motion_search(s, &mx, &my, dmin, 0, ref_index, 0, 16);
1330 dmin= ff_get_mb_score(s, mx, my, 0, ref_index, 0, 16, 1);