Research Article

A Data Hiding Technique to Synchronously Embed Physiological Signals in H.264/AVC Encoded Video for Medicine Healthcare

Algorithm 3

Algorithm of our data hiding decoding technique.
Algorithm: Extract a sample.
Input: Embedded sample in a synchronous frame.
Result: Data of the sample in bit-pairs according to (2).
(1) for ExtractSample do
(2) curblock → current macroblock
(3) for MacroblockPartition do
(4) switch Mapping do
(5)   case (%2 = 1) & (%2 = 0): Bit-pair = 00
(6)   case (%2 = 0) & (%2 = a): Bit-pair = 01
(7)   case (%2 = 1) & (%2 = 1): Bit-pair = 10
(8)   case (%2 = 0) & (%2 = 0): Bit-pair = 11
(9) end switch
(10)end for → until complete all partitions of the current macroblock
(11) end for → until complete all samples