1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

vc2enc: print the average quantization index at the end

Similar to how the AAC encoder does it.
0 means the video's been compressed losslessly/almost losslessly
thoughout. Generally, the higher, the worse.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
This commit is contained in:
Rostislav Pehlivanov 2016-02-15 23:54:52 +00:00
parent 5d82370930
commit 3b1d1437a0

View File

@ -974,6 +974,8 @@ static av_cold int vc2_encode_end(AVCodecContext *avctx)
int i; int i;
VC2EncContext *s = avctx->priv_data; VC2EncContext *s = avctx->priv_data;
av_log(avctx, AV_LOG_INFO, "Qavg: %i\n", s->q_start);
for (i = 0; i < 3; i++) { for (i = 0; i < 3; i++) {
ff_vc2enc_free_transforms(&s->transform_args[i].t); ff_vc2enc_free_transforms(&s->transform_args[i].t);
av_freep(&s->plane[i].coef_buf); av_freep(&s->plane[i].coef_buf);