• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/ap/gpl/minidlna/ffmpeg-0.5.1/libavcodec/

Lines Matching defs:ref

376     uint8_t ref;
390 .ref= 0,
720 lift(DWTELEM *dst, DWTELEM *src, DWTELEM *ref,
729 #define LIFT(src, ref, inv) ((src) + ((inv) ? - (ref) : + (ref)))
731 dst[0] = LIFT(src[0], ((mul*2*ref[0]+add)>>shift), inverse);
739 ((mul*(ref[i*ref_step] + ref[(i+1)*ref_step])+add)>>shift),
746 ((mul*2*ref[w*ref_step]+add)>>shift),
752 inv_lift(IDWTELEM *dst, IDWTELEM *src, IDWTELEM *ref,
761 #define LIFT(src, ref, inv) ((src) + ((inv) ? - (ref) : + (ref)))
763 dst[0] = LIFT(src[0], ((mul*2*ref[0]+add)>>shift), inverse);
771 ((mul*(ref[i*ref_step] + ref[(i+1)*ref_step])+add)>>shift),
778 ((mul*2*ref[w*ref_step]+add)>>shift),
785 liftS(DWTELEM *dst, DWTELEM *src, DWTELEM *ref,
795 #define LIFTS(src, ref, inv) \
797 (src) + (((ref) + 4*(src))>>shift): \
798 -((-16*(src) + (ref) + add/4 + 1 + (5<<25))/(5*4) - (1<<23)))
800 dst[0] = LIFTS(src[0], mul*2*ref[0]+add, inverse);
808 mul*(ref[i*ref_step] + ref[(i+1)*ref_step])+add,
814 LIFTS(src[w*src_step], mul*2*ref[w*ref_step]+add, inverse);
818 inv_liftS(IDWTELEM *dst, IDWTELEM *src, IDWTELEM *ref,
828 #define LIFTS(src, ref, inv) \
830 (src) + (((ref) + 4*(src))>>shift): \
831 -((-16*(src) + (ref) + add/4 + 1 + (5<<25))/(5*4) - (1<<23)))
833 dst[0] = LIFTS(src[0], mul*2*ref[0]+add, inverse);
841 mul*(ref[i*ref_step] + ref[(i+1)*ref_step])+add,
847 LIFTS(src[w*src_step], mul*2*ref[w*ref_step]+add, inverse);
1675 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){
1688 block.ref= ref;
1699 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){
1708 c->ref[0][i]= ref [i] + offset[i];
1713 static inline void pred_mv(SnowContext *s, int *mx, int *my, int ref,
1719 const int *scale = scale_mv_ref[ref];
1720 *mx = mid_pred((left->mx * scale[left->ref] + 128) >>8,
1721 (top ->mx * scale[top ->ref] + 128) >>8,
1722 (tr ->mx * scale[tr ->ref] + 128) >>8);
1723 *my = mid_pred((left->my * scale[left->ref] + 128) >>8,
1724 (top ->my * scale[top ->ref] + 128) >>8,
1725 (tr ->my * scale[tr ->ref] + 128) >>8);
1775 int ref_context= av_log2(2*left->ref) + av_log2(2*top->ref);
1779 int ref, best_ref, ref_score, ref_mx, ref_my;
1842 for(ref=0; ref<s->ref_frames; ref++){
1843 init_ref(c, current_data, s->last_picture[ref].data, NULL, block_w*x, block_w*y, 0);
1855 ref_score+= 2*av_log2(2*ref)*c->penalty_factor;
1856 if(s->ref_mvs[ref]){
1857 s->ref_mvs[ref][index][0]= ref_mx;
1858 s->ref_mvs[ref][index][1]= ref_my;
1859 s->ref_scores[ref][index]= ref_score;
1863 best_ref= ref;
1965 return !((a->mx - b->mx) | (a->my - b->my) | (a->ref - b->ref) | ((a->type ^ b->type)&BLOCK_INTRA));
1983 int ref_context= av_log2(2*left->ref) + av_log2(2*top->ref);
1984 int mx_context= av_log2(2*FFABS(left->mx - top->mx)) + 16*!!b->ref;
1985 int my_context= av_log2(2*FFABS(left->my - top->my)) + 16*!!b->ref;
2013 pred_mv(s, &pmx, &pmy, b->ref, left, top, tr);
2016 put_symbol(&s->c, &s->block_state[128 + 1024 + 32*ref_context], b->ref, 0);
2019 set_blocks(s, level, x, y, pl, pcb, pcr, b->mx, b->my, b->ref, 0);
2035 set_blocks(s, level, x, y, null_block.color[0], null_block.color[1], null_block.color[2], null_block.mx, null_block.my, null_block.ref, BLOCK_INTRA);
2044 int ref = 0;
2045 int ref_context= av_log2(2*left->ref) + av_log2(2*top->ref);
2058 ref= get_symbol(&s->c, &s->block_state[128 + 1024 + 32*ref_context], 0);
2059 pred_mv(s, &mx, &my, ref, left, top, tr);
2060 mx+= get_symbol(&s->c, &s->block_state[128 + 32*(mx_context + 16*!!ref)], 1);
2061 my+= get_symbol(&s->c, &s->block_state[128 + 32*(my_context + 16*!!ref)], 1);
2063 set_blocks(s, level, x, y, l, cb, cr, mx, my, ref, type);
2346 uint8_t *src= s->last_picture[block->ref].data[plane_index];
2774 pred_mv(s, &dmx, &dmy, b->ref, left, top, tr);
2779 + av_log2(2*b->ref));
2963 value= s->me_cache_generation + (p[0]>>10) + (p[1]<<6) + (block->ref<<12);
2992 static av_always_inline int check_4block_inter(SnowContext *s, int mb_x, int mb_y, int p0, int p1, int ref, int *best_rd){
3003 value= s->me_cache_generation + (p0>>10) + (p1<<6) + (block->ref<<12);
3010 block->ref= ref;
3052 int dia_change, i, j, ref;
3141 for(ref=0; ref < s->ref_frames; ref++){
3142 int16_t (*mvr)[2]= &s->ref_mvs[ref][index];
3143 if(s->ref_scores[ref][index] > s->ref_scores[ref_b.ref][index]*3/2) //FIXME tune threshold
3145 block->ref= ref;
3243 check_4block_inter(s, mb_x, mb_y, b[i]->mx, b[i]->my, b[i]->ref, &best_rd);