Lines Matching refs:ref_index
50 int src_index, int ref_index,
81 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){
92 if(ref_index){
94 c->ref[ref_index][i]= ref2[i] + offset[i];
106 const int size, const int h, int ref_index, int src_index,
112 uint8_t * const * const ref= c->ref[ref_index];
178 const int size, const int h, int ref_index, int src_index,
186 uint8_t * const * const ref= c->ref[ref_index];
224 int ref_index, int src_index,
226 return cmp_inline(s,x,y,0,0,0,16,ref_index,src_index, cmp_func, chroma_cmp_func, 0, 0);
230 const int size, const int h, int ref_index, int src_index,
233 return cmp_direct_inline(s,x,y,0,0,size,h,ref_index,src_index, cmp_func, chroma_cmp_func, flags&FLAG_QPEL);
235 return cmp_inline(s,x,y,0,0,size,h,ref_index,src_index, cmp_func, chroma_cmp_func, 0, flags&FLAG_CHROMA);
240 const int size, const int h, int ref_index, int src_index,
243 return cmp_direct_inline(s,x,y,subx,suby,size,h,ref_index,src_index, cmp_func, chroma_cmp_func, flags&FLAG_QPEL);
245 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);
253 const int size, const int h, int ref_index, int src_index,
258 return cmp_simple(s,x,y,ref_index,src_index, cmp_func, chroma_cmp_func);
261 return cmp_fpel_internal(s,x,y,size,h,ref_index,src_index, cmp_func, chroma_cmp_func,flags);
263 return cmp_internal(s,x,y,subx,suby,size,h,ref_index,src_index, cmp_func, chroma_cmp_func, flags);
268 const int size, const int h, int ref_index, int src_index,
271 return cmp_direct_inline(s,x,y,subx,suby,size,h,ref_index,src_index, cmp_func, chroma_cmp_func, 0);
273 return cmp_inline(s,x,y,subx,suby,size,h,ref_index,src_index, cmp_func, chroma_cmp_func, 0, flags&FLAG_CHROMA);
278 const int size, const int h, int ref_index, int src_index,
281 return cmp_direct_inline(s,x,y,subx,suby,size,h,ref_index,src_index, cmp_func, chroma_cmp_func, 1);
283 return cmp_inline(s,x,y,subx,suby,size,h,ref_index,src_index, cmp_func, chroma_cmp_func, 1, flags&FLAG_CHROMA);
390 int src_index, int ref_index,
412 ptr = c->ref[ref_index][0] + (my * stride) + mx;
718 static inline void init_interlaced_ref(MpegEncContext *s, int ref_index){
721 c->ref[1+ref_index][0] = c->ref[0+ref_index][0] + s->linesize;
724 c->ref[1+ref_index][1] = c->ref[0+ref_index][1] + s->uvlinesize;
725 c->ref[1+ref_index][2] = c->ref[0+ref_index][2] + s->uvlinesize;
731 static int interlaced_search(MpegEncContext *s, int ref_index,
750 init_interlaced_ref(s, ref_index);
791 dmin = epzs_motion_search2(s, &mx_i, &my_i, P, block, field_select+ref_index, mv_table, (1<<16)>>1);
793 dmin= c->sub_motion_search(s, &mx_i, &my_i, dmin, block, field_select+ref_index, size, h);
802 uint8_t *ref= c->ref[field_select+ref_index][0] + (mx_i>>1) + (my_i>>1)*stride;
1136 int16_t (*mv_table)[2], int ref_index, int f_code)
1190 dmin = ff_epzs_motion_search(s, &mx, &my, P, 0, ref_index, s->p_mv_table, mv_scale, 0, 16);
1195 dmin= c->sub_motion_search(s, &mx, &my, dmin, 0, ref_index, 0, 16);
1198 dmin= get_mb_score(s, mx, my, 0, ref_index, 0, 16, 1);