| 1 | /* GStreamer |
| 2 | * Copyright (C) 2020 Sebastian Dröge <[email protected]> |
| 3 | * |
| 4 | * This library is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU Library General Public |
| 6 | * License as published by the Free Software Foundation; either |
| 7 | * version 2 of the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This library is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 | * Library General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU Library General Public |
| 15 | * License along with this library; if not, write to the |
| 16 | * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, |
| 17 | * Boston, MA 02110-1301, USA. |
| 18 | */ |
| 19 | |
| 20 | /* Implementation of SMPTE 436M - MXF Mappings for VBI Lines |
| 21 | * and Ancillary Data Packets |
| 22 | */ |
| 23 | |
| 24 | #ifndef __MXF_VANC_H__ |
| 25 | #define __MXF_VANC_H__ |
| 26 | |
| 27 | #include <gst/gst.h> |
| 28 | |
| 29 | typedef struct { |
| 30 | guint8 c_not_y_channel_flag; |
| 31 | guint8 did; |
| 32 | guint8 sdid; |
| 33 | guint16 line_number; |
| 34 | guint16 horizontal_offset; |
| 35 | guint8 data_count; |
| 36 | guint16 checksum; |
| 37 | guint len_bytes; /* Total length in bytes */ |
| 38 | } St2038AncHeader; |
| 39 | |
| 40 | void mxf_vanc_init (void); |
| 41 | |
| 42 | #endif /* __MXF_VANC_H__ */ |