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

    intialize isSkipMTS to false

  • 2:

    if partition mode is binary splitting and 0.9H2H11.1 then

  • 3:

        if RDpi=1N2RDi+(1+H2H1)×RDN1 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 RDpi=1N1RDi+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 RDpi=1N1RDi+min(RD_pri,RD_mts) then

  • 14:

            isSkipMTS=true

  • 15:

        end if

  • 16:

    end if

  • 17:

    return isSkipMTS