Skip to main content
. 2022 Jul 25;22(15):5523. doi: 10.3390/s22155523
Algorithm 1 The proposed MTS early skipping method
Input: RDi(1≤i≤N−1), RDp, H1, H2
Output: isSkipMTS
  • 1:

    intialize isSkipMTS to false

  • 2:

    if partition mode is binary splitting and 0.9≤H2H1≤1.1 then

  • 3:

        if RDp≤∑i=1N−2RDi+(1+H2H1)×RDN−1 then

  • 4:

            isSkipMTS=true

  • 5:

        end if

  • 6:

    else if partition mode is not quad-tree splitting then

  • 7:

        calculat RD cost of primary transform RD_pri

  • 8:

        if RDp≤∑i=1N−1RDi+RD_pri then

  • 9:

            isSkipMTS=true

  • 10:

        end if

  • 11:

    else

  • 12:

        calculate RD costs of primary transform RD_pri and MTS RD_mts

  • 13:

        if RDp≤∑i=1N−1RDi+min(RD_pri,RD_mts) then

  • 14:

            isSkipMTS=true

  • 15:

        end if

  • 16:

    end if

  • 17:

    return isSkipMTS