1 /* 2 * GStreamer AVTP Plugin 3 * Copyright (C) 2019 Intel Corporation 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public 7 * License as published by the Free Software Foundation; either 8 * version 2.1 of the License, or (at your option) any later 9 * version. 10 * 11 * This library is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Lesser General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with this library; if not, write to the 18 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 19 * Boston, MA 02110-1301 USA 20 */ 21 22 #ifndef __GST_AVTP_AAF_PAY_H__ 23 #define __GST_AVTP_AAF_PAY_H__ 24 25 #include <gst/gst.h> 26 27 #include "gstavtpbasepayload.h" 28 29 G_BEGIN_DECLS 30 31 #define GST_TYPE_AVTP_AAF_PAY (gst_avtp_aaf_pay_get_type()) 32 #define GST_AVTP_AAF_PAY(obj) \ 33 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_AVTP_AAF_PAY,GstAvtpAafPay)) 34 #define GST_AVTP_AAF_PAY_CLASS(klass) \ 35 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_AVTP_AAF_PAY,GstAvtpAafPayClass)) 36 #define GST_IS_AVTP_AAF_PAY(obj) \ 37 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_AVTP_AAF_PAY)) 38 #define GST_IS_AVTP_AAF_PAY_CLASS(klass) \ 39 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AVTP_AAF_PAY)) 40 41 typedef struct _GstAvtpAafPay GstAvtpAafPay; 42 typedef struct _GstAvtpAafPayClass GstAvtpAafPayClass; 43 typedef enum _GstAvtpAafTimestampMode GstAvtpAafTimestampMode; 44 45 enum _GstAvtpAafTimestampMode { 46 GST_AVTP_AAF_TIMESTAMP_MODE_NORMAL, 47 GST_AVTP_AAF_TIMESTAMP_MODE_SPARSE, 48 }; 49 50 struct _GstAvtpAafPay 51 { 52 GstAvtpBasePayload payload; 53 54 GstAvtpAafTimestampMode timestamp_mode; 55 56 GstMemory *header; 57 gint channels; 58 gint depth; 59 gint rate; 60 gint format; 61 }; 62 63 struct _GstAvtpAafPayClass 64 { 65 GstAvtpBasePayloadClass parent_class; 66 }; 67 68 GType gst_avtp_aaf_pay_get_type (void); 69 70 GST_ELEMENT_REGISTER_DECLARE (avtpaafpay); 71 72 G_END_DECLS 73 74 #endif /* __GST_AVTP_AAF_PAY_H__ */ 75