>-        m_entropyCoder.load(m_rdContexts.temp);
>-        m_entropyCoder.resetBits();
>-
>-        for (int compIdx = 0; compIdx < 2; compIdx++)
>-            m_entropyCoder.codeSaoOffsetEO(m_offset[compIdx + 1][typeIdx] + 
>1, typeIdx, compIdx + 1);
>-
>-        uint32_t estRate = m_entropyCoder.getNumberOfWrittenBits();
>-        int64_t cost = calcSaoRdoCost((estDist[0] + estDist[1]), estRate, 
>lambda[1]);
>+        // sao_eo_class_luma and sao_eo_class_chroma are fixed-length 2-bit 
>syntax elements.
>+        cost += eo_type_cost + calcSaoRdoCost(0, 2, lambda[1]);
> 
it is not fixed-length, the codeSaoOffsetEO output depends on Offset and 
plane_idx, it is different in difference input sequence
_______________________________________________
x265-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/x265-devel

Reply via email to