| 70 | } |
| 71 | |
| 72 | static inline double qp2bits(const RateControlEntry *rce, double qp) |
| 73 | { |
| 74 | if (qp <= 0.0) { |
| 75 | av_log(NULL, AV_LOG_ERROR, "qp<=0.0\n"); |
| 76 | } |
| 77 | return rce->qscale * (double)(rce->i_tex_bits + rce->p_tex_bits + 1) / qp; |
| 78 | } |
| 79 | |
| 80 | static double qp2bits_cb(void *rce, double qp) |
| 81 | { |
no test coverage detected