[FFmpeg-devel] [PATCH] vc2enc: implement adaptive quantization

2016-03-19 Thread Rostislav Pehlivanov
Actually this breaks lossless mode, made the following 2 changes locally: -fix lossless mode -set default slice sizes to 32x16 (greater quality and speed) --- libavcodec/vc2enc.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libavcodec/vc2enc.c b/liba

[FFmpeg-devel] [PATCH] vc2enc: implement adaptive quantization

2016-03-19 Thread Rostislav Pehlivanov
The encoder will first sort all slices based on their score (determined by the slice energy divided by the bytes the first pass has decided) and will then reduce their quantization index based on the log2 of the distance between the slice energy and the average energy of the frame. If the reservoir