From 7397a57f86052021c572c1e08f68557a40ed688c Mon Sep 17 00:00:00 2001
From: Yushin Cho <cho.yushin@gmail.com>
Date: Wed, 10 Oct 2018 23:41:02 -0700
Subject: [PATCH] Add comments on duplicated_rdo_tx_type() for top-down
 partition rdo (#645)

---
 src/encoder.rs | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/encoder.rs b/src/encoder.rs
index ced426e0..0e1d8291 100644
--- a/src/encoder.rs
+++ b/src/encoder.rs
@@ -1878,6 +1878,9 @@ fn encode_partition_topdown(seq: &Sequence, fi: &FrameInvariants, fs: &mut Frame
             let mv = part_decision.mv;
             let mut cdef_coded = cw.bc.cdef_coded;
 
+            // NOTE: Cannot avoid calling rdo_tx_size_type() here again,
+            // because, with top-down partition RDO, the neighnoring contexts
+            // of current partition can change, i.e. neighboring partitions can split down more.
             let (tx_size, tx_type) =
                 rdo_tx_size_type(seq, fi, fs, cw, bsize, bo, mode_luma, ref_frame, mv, skip);
 
-- 
GitLab