OSDN Git Service

Made the file size estimation less jumpy: Before the progress was rounded to a precis...
authorlordmulder <mulder2@gmx.de>
Wed, 14 May 2014 15:17:40 +0000 (17:17 +0200)
committerlordmulder <mulder2@gmx.de>
Wed, 14 May 2014 15:17:40 +0000 (17:17 +0200)
commit214cdc4e309d536ce4716bbda556246bb5845c75
tree5825f372754318d1aaaff07344775916c922af47
parentfff0cc76efc7ee574e75172c72d18a9652ab99cf
Made the file size estimation less jumpy: Before the progress was rounded to a precision of 1.0 percent. This caused a "jump" of the estimated size each time the integral part of progress increased by one. Now the progress is rounded to a precision of 0.1 percent, which greatly reduces the effect. Furthermore, we apply a slight smoothing filter on the estimated values in order to make the output more "stable".
src/encoder_abstract.cpp
src/encoder_abstract.h
src/encoder_x264.cpp
src/encoder_x264.h
src/encoder_x265.cpp
src/encoder_x265.h
src/version.h