Skip to content

Instantly share code, notes, and snippets.

@roxlu
Created August 31, 2023 17:31
Show Gist options
  • Save roxlu/40fa767b35209e28b8ace835e434c113 to your computer and use it in GitHub Desktop.
Save roxlu/40fa767b35209e28b8ace835e434c113 to your computer and use it in GitHub Desktop.
// Transfer characteristics (bits 5 downto 4 of Byte 2) is set to HLG (1h).
// Other values set are only used for testing purposes and do not conform to any spec!
unsigned char cFrameDataVpid[] =
{
0xAA, 0xD0, 0x00, 0x00,
};
std::vector<unsigned char> FrameDataVpid(cFrameDataVpid,
&cFrameDataVpid[sizeof(cFrameDataVpid)/sizeof(cFrameDataVpid[0])]);
// Create a HDR VPID packet
DtMxHdrVpid Vpid;
Vpid.SetVpid(FrameDataVpid);
// Add VPID packet to frame. Insert in luminance stream of the VANC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment