|
Algorithm 2 Selective encryption scheme |
-
Require:
Raw video V, secret key K, ROI map based on semantic layer
-
Ensure:
Encrypted HEVC/VVC-compliant bitstream
-
1:
Extract frames from V
-
2:
Detect sensitive objects and generate ROI masks
-
3:
for each Coding Tree Unit (CTU) do
-
4:
Identify syntax elements associated with ROI
-
5:
Select bypass-coded elements (QTC, MVD, optional IPM)
-
6:
for each selected syntax element do
-
7:
Perform CABAC binarisation to obtain bin sequence
-
8:
Obtain current Most Probable Symbol (MPS)
-
9:
for each bin do
-
10:
-
11:
-
12:
-
13:
Send directly to arithmetic encoder
-
14:
end for
-
15:
if syntax element is non-binary (QTC or MVD) then
-
16:
Scramble magnitude using Linear Congruential function
-
17:
-
18:
end if
-
19:
end for
-
20:
end for
-
21:
Assemble arithmetic-coded bins into encrypted bitstream
-
22:
return Encrypted bitstream
|