Research Article

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

Algorithm 2

Algorithm of our data hiding encoding technique for low motion sequences.
Algorithm: Embed a sample in low-motion sequences
Input: Data of the sample in bit-pairs according to (2).
Result: Embedded sample in a frame.
(1) for NewSample do
(2) curblock → current macroblock
(3) if PSKIP partition do
(4)  curblock = P16 × 16 partition type
(5) switch Mapping do
(6)   case 00: Quarter-Pixel Search Position =
(7)   case 01: Quarter-Pixel Search Position =
(8)   case 10: Quarter-Pixel Search Position =
(9)   case 11: Quarter-Pixel Search Position =
(10) end switch
(11)end if → until complete all partitions of the current macroblock
(12) end for → until complete all samples