forge
Explore
Log in

Don't you dare go Hollow

h264: withdraw the propagation explanation from the RD quantisation note

Browse files at this commit

c844bb5302e0a514242348fe2560cc6880715c53Ahmet Kaan GümüşParent: cf13a82
The addendum blamed the superset-measures-worse result on a reference
picture's quality being worth more than the local metric can see. x264
reports mbtree=0 rc=cqp in the streams this test compares against, so it
takes its 0.2 dB with no propagation term either, and the explanation does
not hold. The measurement stands; the cause is named as unsettled, with the
two remaining suspects and the experiment that separates them.
lanes/h264x264-r2.report.mdmodified+13 -4
@@ -244,13 +244,22 @@ Two findings, both of which the next attempt has to answer:
244 244
245 * **A superset of candidates chosen on exact cost measured worse.** Adding 2245 * **A superset of candidates chosen on exact cost measured worse.** Adding 2
246 and 4 to the candidate set can only lower the local cost of every246 and 4 to the candidate set can only lower the local cost of every
247- macroblock, and it lost 0.05 dB against the pair. Local rate-distortion on247+ macroblock, and it lost 0.05 dB against the pair. So the local cost is not
248- a reference picture is myopic: what a blurrier block saves now, the nine248+ the quantity the BD-PSNR measures, and searching it harder finds a worse
249- pictures predicting from it pay for. Nothing in the metric sees that.249+ answer. The obvious explanation -- that a reference picture's quality is
250+ worth more than the local metric can see, GOP 10 making every P picture a
251+ reference for nine others -- does not survive a check: x264 reports
252+ `mbtree=0 rc=cqp` in the streams this test compares against, so it wins
253+ these 0.2 dB with no propagation term either. What is left is that the
254+ candidates are generated against an estimate and only *chosen* on exact
255+ bits, and that choosing greedily per macroblock changes the CABAC contexts
256+ the next macroblock is measured in. Which of those two it is has not been
257+ measured.
250 * **The candidate generator is rate-blind where it matters.** The levels are258 * **The candidate generator is rate-blind where it matters.** The levels are
251 walked using an estimate; exact bits only pick between finished259 walked using an estimate; exact bits only pick between finished
252 macroblocks. x264 decides each coefficient against its actual CABAC260 macroblocks. x264 decides each coefficient against its actual CABAC
253- context cost, which is why its version is worth ten times ours.261+ context cost, which is the difference the numbers above are consistent
262+ with.
254 263
255 So the machinery is not landed -- it doubles the inter coding work for 0.02 dB.264 So the machinery is not landed -- it doubles the inter coding work for 0.02 dB.
256 The next attempt should decide levels where the contexts exist, at write time,265 The next attempt should decide levels where the contexts exist, at write time,