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

Function qp2bits

libavcodec/ratecontrol.c:52–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52static 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
59static inline double bits2qp(RateControlEntry *rce, double bits){
60 if(bits<0.9){

Callers 2

get_qscaleFunction · 0.85
init_pass2Function · 0.85

Calls 1

av_logFunction · 0.85

Tested by

no test coverage detected