| 50 | } |
| 51 | |
| 52 | static inline double qp2bits(RateControlEntry *rce, double qp){ |
| 53 | if(qp<=0.0){ |
| 54 | av_log(NULL, AV_LOG_ERROR, "qp<=0.0\n"); |
| 55 | } |
| 56 | return rce->qscale * (double)(rce->i_tex_bits + rce->p_tex_bits+1)/ qp; |
| 57 | } |
| 58 | |
| 59 | static inline double bits2qp(RateControlEntry *rce, double bits){ |
| 60 | if(bits<0.9){ |
no test coverage detected