|
Algorithm 2 The proposed MTS early termination method |
Input: the prediction modes list L Output: the minimum RD cost of second pass
and the best results
-
1:
initialize the minimum RD cost of MTS
-
2:
reorder MTS candidates according to the frequency of transform used in neighboring CUs
-
3:
calculate the RD cost of the current CU using DCT-II
-
4:
for each transform in MTS candidates do
-
5:
if all neighboring CUs choose DCT-II then
-
6:
break;
-
7:
end if
-
8:
for each predicition mode in list L do
-
9:
derive the RD cost ;
-
10:
if < then
-
11:
update by ;
-
12:
load the prediction results of ;
-
13:
else
-
14:
contine;
-
15:
end if
-
16:
end for
-
17:
if > then
-
18:
update by ;
-
19:
else
-
20:
break;
-
21:
end if
-
22:
end for
-
23:
return
|