video-anc: Add comment about our assumption of the ADF user data format

We assume here the same data format for the user data as for the
DID/SDID: 10 bits with parity in the upper 2 bits. In theory some
standards could define this differently and even have full 10 bits of
user data but there does not seem to be a single such standard after
all these years.
This commit is contained in:
Sebastian Dröge 2018-11-09 10:54:57 +02:00 committed by Nicolas Dufresne
parent 932e9f5eee
commit 369c79abd3

View file

@ -146,6 +146,13 @@ get_ancillary_16 (GstVideoVBIParser * parser, GstVideoAncillary * anc)
anc->data_count = DC;
memset (anc->data, 0, 256);
/* FIXME: We assume here the same data format for the user data as for the
* DID/SDID: 10 bits with parity in the upper 2 bits. In theory some
* standards could define this differently and even have full 10 bits of
* user data but there does not seem to be a single such standard after
* all these years.
*/
/* i is at the beginning of the user data now */
for (j = 0; j < anc->data_count; j++)
anc->data[j] = data[parser->offset + i + j] & 0xff;