mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
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:
parent
932e9f5eee
commit
369c79abd3
1 changed files with 7 additions and 0 deletions
|
@ -146,6 +146,13 @@ get_ancillary_16 (GstVideoVBIParser * parser, GstVideoAncillary * anc)
|
||||||
anc->data_count = DC;
|
anc->data_count = DC;
|
||||||
memset (anc->data, 0, 256);
|
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 */
|
/* i is at the beginning of the user data now */
|
||||||
for (j = 0; j < anc->data_count; j++)
|
for (j = 0; j < anc->data_count; j++)
|
||||||
anc->data[j] = data[parser->offset + i + j] & 0xff;
|
anc->data[j] = data[parser->offset + i + j] & 0xff;
|
||||||
|
|
Loading…
Reference in a new issue