2 * Copyright (C) 2004 Martin Soto <martinsoto@users.sourceforge.net>
4 * ac3iec.h: Pad AC3 frames into IEC958 frames for the SP/DIF interface.
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
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 * Library General Public License for more details.
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library; if not, write to the
18 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
27 #include "ac3_padder.h"
32 #define GST_TYPE_AC3IEC \
35 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_AC3IEC,AC3IEC))
36 #define AC3IEC_CLASS(klass) \
37 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_AC3IEC,AC3IECClass))
38 #define GST_IS_AC3IEC(obj) \
39 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_AC3IEC))
40 #define GST_IS_AC3IEC_CLASS(klass) \
41 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_AC3IEC))
44 typedef struct _AC3IEC AC3IEC;
45 typedef struct _AC3IECClass AC3IECClass;
49 AC3IEC_OPEN = (GST_ELEMENT_FLAG_LAST << 0),
50 AC3IEC_FLAG_LAST = (GST_ELEMENT_FLAG_LAST << 2)
60 GstCaps *caps; /* source pad caps, once known */
62 GstClockTime cur_ts; /* Time stamp for the current
64 GstClockTime next_ts; /* Time stamp for the next frame. */
66 ac3_padder *padder; /* AC3 to SPDIF padder object. */
68 gboolean dvdmode; /* TRUE if DVD mode (input is
69 demultiplexed from a DVD) is
72 gboolean raw_audio; /* TRUE if output pad should use raw
73 audio capabilities. */
78 GstElementClass parent_class;
84 extern GType ac3iec_get_type (void);
88 #endif /* __AC3IEC_H__ */