Lines Matching defs:ref
56 uint8_t ref; ///< Reference frame index
70 .ref= 0,
221 static av_always_inline void snow_horizontal_compose_lift_lead_out(int i, IDWTELEM * dst, IDWTELEM * src, IDWTELEM * ref, int width, int w, int lift_high, int mul, int add, int shift){
223 dst[i] = src[i] - ((mul * (ref[i] + ref[i + 1]) + add) >> shift);
227 dst[w] = src[w] - ((mul * 2 * ref[w] + add) >> shift);
231 static av_always_inline void snow_horizontal_compose_liftS_lead_out(int i, IDWTELEM * dst, IDWTELEM * src, IDWTELEM * ref, int width, int w){
233 dst[i] = src[i] + ((ref[i] + ref[(i+1)]+W_BO + 4 * src[i]) >> W_BS);
237 dst[w] = src[w] + ((2 * ref[w] + W_BO + 4 * src[w]) >> W_BS);
257 static inline void pred_mv(SnowContext *s, int *mx, int *my, int ref,
263 const int *scale = ff_scale_mv_ref[ref];
264 *mx = mid_pred((left->mx * scale[left->ref] + 128) >>8,
265 (top ->mx * scale[top ->ref] + 128) >>8,
266 (tr ->mx * scale[tr ->ref] + 128) >>8);
267 *my = mid_pred((left->my * scale[left->ref] + 128) >>8,
268 (top ->my * scale[top ->ref] + 128) >>8,
269 (tr ->my * scale[tr ->ref] + 128) >>8);
277 return !((a->mx - b->mx) | (a->my - b->my) | (a->ref - b->ref) | ((a->type ^ b->type)&BLOCK_INTRA));
465 static inline void set_blocks(SnowContext *s, int level, int x, int y, int l, int cb, int cr, int mx, int my, int ref, int type){
479 block.ref= ref;
490 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){
500 c->ref[0][i]= ref [i] + offset[i];