Commit 020142d4 authored by Xu Tongda's avatar Xu Tongda

add average qp to x264_image_properties_t

parent b86ae3c6
Pipeline #70112 passed with stages
in 2 minutes and 46 seconds
......@@ -4018,6 +4018,10 @@ static int encoder_frame_end( x264_t *h, x264_t *thread_current,
psz_message[0] = '\0';
double dur = h->fenc->f_duration;
h->stat.f_frame_duration[h->sh.i_type] += dur;
pic_out->prop.f_qp_avg_rc = h->fdec->f_qp_avg_rc;
pic_out->prop.f_qp_avg_aq = h->fdec->f_qp_avg_aq;
if( h->param.analyse.b_psnr )
{
int64_t ssd[3] =
......
......@@ -826,6 +826,10 @@ typedef struct x264_image_properties_t
/* Out: Average effective CRF of the encoded frame */
double f_crf_avg;
/* Out: Average QPs of encoded frame as decided by RC */
float f_qp_avg_rc;
/* Out: Average QPs of encoded frame as decided by AQ in addition to RC */
float f_qp_avg_aq;
} x264_image_properties_t;
typedef struct x264_picture_t
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment