|
|
|
@ -460,26 +460,6 @@ static inline uint64_t no_rnd_avg64(uint64_t a, uint64_t b) |
|
|
|
|
return (a & b) + (((a ^ b) & ~BYTE_VEC64(0x01)) >> 1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static inline int get_penalty_factor(int lambda, int lambda2, int type){ |
|
|
|
|
switch(type&0xFF){ |
|
|
|
|
default: |
|
|
|
|
case FF_CMP_SAD: |
|
|
|
|
return lambda>>FF_LAMBDA_SHIFT; |
|
|
|
|
case FF_CMP_DCT: |
|
|
|
|
return (3*lambda)>>(FF_LAMBDA_SHIFT+1); |
|
|
|
|
case FF_CMP_SATD: |
|
|
|
|
case FF_CMP_DCT264: |
|
|
|
|
return (2*lambda)>>FF_LAMBDA_SHIFT; |
|
|
|
|
case FF_CMP_RD: |
|
|
|
|
case FF_CMP_PSNR: |
|
|
|
|
case FF_CMP_SSE: |
|
|
|
|
case FF_CMP_NSSE: |
|
|
|
|
return lambda2>>FF_LAMBDA_SHIFT; |
|
|
|
|
case FF_CMP_BIT: |
|
|
|
|
return 1; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void ff_dsputil_init_alpha(DSPContext* c, AVCodecContext *avctx); |
|
|
|
|
void ff_dsputil_init_arm(DSPContext* c, AVCodecContext *avctx); |
|
|
|
|
void ff_dsputil_init_bfin(DSPContext* c, AVCodecContext *avctx); |
|
|
|
|