summaryrefslogtreecommitdiff
path: root/gst-libs/gst/video/video-anc.h
diff options
context:
space:
mode:
Diffstat (limited to 'gst-libs/gst/video/video-anc.h')
-rw-r--r--gst-libs/gst/video/video-anc.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/gst-libs/gst/video/video-anc.h b/gst-libs/gst/video/video-anc.h
index 40bd348e8..efb5b1691 100644
--- a/gst-libs/gst/video/video-anc.h
+++ b/gst-libs/gst/video/video-anc.h
@@ -32,17 +32,18 @@ typedef struct _GstVideoAncillary GstVideoAncillary;
* @SDID_block_number: The Secondary Data Identifier (if type 2) or the Data
* Block Number (if type 2)
* @data_count: The amount of data (in bytes) in @data (max 255 bytes)
- * @data: The content of the Ancillary packet in 16bit. Contains everything
- * including the ADF, DID, SDI, DC, user words and CS. (the size
- * is therefore @data_count + 4)
+ * @data: The user data content of the Ancillary packet. Does not contain
+ * the ADF, DID, SDID nor CS.
*
- * Video Ancillary data, according to SMPTE-291M specification.
+ * Video Ancillary data, according to SMPTE-291M specification. The contents
+ * of the data are always stored as 8bit data (i.e. do not contain the parity
+ * check bits). Use the helper tools to convert to/from 10bit contents.
* */
struct _GstVideoAncillary {
guint8 DID;
guint8 SDID_block_number;
guint8 data_count;
- const guint16 *data;
+ guint8 *data;
/*< private >*/
/* Padding for future extension */
@@ -64,7 +65,7 @@ typedef enum {
GST_VIDEO_ANCILLARY_DID_HANC_SDTV_AUDIO_DATA_2_LAST = 0xff,
} GstVideoAncillaryDID;
-#define GST_VIDEO_ANCILLARY_DID16(anc) ((guint16)(anc->DID) << 8 | (guint16)(anc->SDID_block_number)
+#define GST_VIDEO_ANCILLARY_DID16(anc) ((guint16)((anc)->DID) << 8 | (guint16)((anc)->SDID_block_number))
typedef enum {
GST_VIDEO_ANCILLARY_DID16_S334_EIA_708 = 0x6101,