Support changing resolutions between passes with macroblock-tree
authorFiona Glaser <fiona@x264.com>
Sat, 9 Jun 2012 01:19:59 +0000 (18:19 -0700)
committerFiona Glaser <fiona@x264.com>
Tue, 17 Jul 2012 19:19:13 +0000 (12:19 -0700)
commitdea5d7a54b5ba948ed71d74e0264a2191bcd9815
treeb002d0ca6c2de687c54a7859907a484533224472
parent498af9c559b8da986544e93f898df02fc9e224b3
Support changing resolutions between passes with macroblock-tree
Implement a basic separable bilinear filter to rescale the quantizer offsets.
Structure inspired by swscale, but floating-point instead of fixed-point.
Not as optimized as it could be, but it's quite fast already.

Example compression penalties on a 720p video game recording:
First pass with 720p and second as 480p: ~-1.5% (vs. same res)
First pass with 480p and second as 720p: ~-3% (vs. same res)
encoder/ratecontrol.c