MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / qp2bits

Function qp2bits

libavcodec/ratecontrol.c:72–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72static 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
80static double qp2bits_cb(void *rce, double qp)
81{

Callers 3

qp2bits_cbFunction · 0.85
get_qscaleFunction · 0.85
init_pass2Function · 0.85

Calls 1

av_logFunction · 0.85

Tested by

no test coverage detected