mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-01 20:12:28 +00:00
7f61ced7e6
Original commit message from CVS: * gst/mxf/mxfaes-bwf.c: (mxf_metadata_aes3_audio_essence_descriptor_handle_tag), (mxf_metadata_aes3_audio_essence_descriptor_reset), (mxf_aes3_handle_essence_element), (mxf_bwf_create_caps), (mxf_aes3_create_caps), (mxf_aes_bwf_create_caps): * gst/mxf/mxfaes-bwf.h: * gst/mxf/mxfdemux.c: (gst_mxf_demux_reset_metadata), (gst_mxf_demux_handle_metadata_aes3_audio_essence_descriptor), (gst_mxf_demux_handle_header_metadata_resolve_references), (gst_mxf_demux_handle_metadata): * gst/mxf/mxfdemux.h: Add support for AES3 audio (SMPTE 382M). * gst/mxf/mxfdv-dif.c: (mxf_dv_dif_create_caps): * gst/mxf/mxfjpeg2000.c: (mxf_jpeg2000_create_caps): Fix coding style.
116 lines
3 KiB
C
116 lines
3 KiB
C
/* GStreamer
|
|
* Copyright (C) 2008 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Library General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Library General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Library General Public
|
|
* License along with this library; if not, write to the
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
* Boston, MA 02111-1307, USA.
|
|
*/
|
|
|
|
#ifndef __MXF_DEMUX_H__
|
|
#define __MXF_DEMUX_H__
|
|
|
|
#include <gst/gst.h>
|
|
#include <gst/base/gstadapter.h>
|
|
|
|
#include "mxfparse.h"
|
|
|
|
G_BEGIN_DECLS
|
|
#define GST_TYPE_MXF_DEMUX \
|
|
(gst_mxf_demux_get_type())
|
|
#define GST_MXF_DEMUX(obj) \
|
|
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_MXF_DEMUX,GstMXFDemux))
|
|
#define GST_MXF_DEMUX_CLASS(klass) \
|
|
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_MXF_DEMUX,GstMXFDemuxClass))
|
|
#define GST_IS_MXF_DEMUX(obj) \
|
|
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_MXF_DEMUX))
|
|
#define GST_IS_MXF_DEMUX_CLASS(klass) \
|
|
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_MXF_DEMUX))
|
|
typedef struct _GstMXFDemux GstMXFDemux;
|
|
typedef struct _GstMXFDemuxClass GstMXFDemuxClass;
|
|
|
|
struct _GstMXFDemux
|
|
{
|
|
GstElement element;
|
|
|
|
GstPad *sinkpad;
|
|
GPtrArray *src;
|
|
|
|
GstAdapter *adapter;
|
|
|
|
GstSegment segment;
|
|
|
|
GstEvent *new_seg_event;
|
|
GstEvent *close_seg_event;
|
|
|
|
guint64 offset;
|
|
|
|
gboolean random_access;
|
|
gboolean flushing;
|
|
|
|
guint64 run_in;
|
|
|
|
guint64 header_partition_pack_offset;
|
|
guint64 footer_partition_pack_offset;
|
|
|
|
/* MXF file state */
|
|
MXFPartitionPack partition;
|
|
MXFPrimerPack primer;
|
|
|
|
GArray *partition_index;
|
|
GArray *index_table;
|
|
|
|
/* Structural metadata */
|
|
gboolean update_metadata;
|
|
gboolean final_metadata;
|
|
gboolean pull_footer_metadata;
|
|
MXFMetadataPreface preface;
|
|
GArray *identification;
|
|
MXFMetadataContentStorage content_storage;
|
|
GArray *essence_container_data;
|
|
GArray *material_package;
|
|
GArray *source_package;
|
|
GPtrArray *package;
|
|
GArray *track;
|
|
GArray *sequence;
|
|
GArray *structural_component;
|
|
GArray *locator;
|
|
|
|
GPtrArray *descriptor;
|
|
GArray *generic_descriptor;
|
|
GArray *file_descriptor;
|
|
GArray *generic_sound_essence_descriptor;
|
|
GArray *generic_picture_essence_descriptor;
|
|
GArray *cdci_picture_essence_descriptor;
|
|
GArray *rgba_picture_essence_descriptor;
|
|
GArray *mpeg_video_descriptor;
|
|
GArray *wave_audio_essence_descriptor;
|
|
GArray *aes3_audio_essence_descriptor;
|
|
GArray *multiple_descriptor;
|
|
|
|
MXFUMID current_package_uid;
|
|
MXFMetadataGenericPackage *current_package;
|
|
gchar *current_package_string;
|
|
gchar *requested_package_string;
|
|
};
|
|
|
|
struct _GstMXFDemuxClass
|
|
{
|
|
GstElementClass parent_class;
|
|
};
|
|
|
|
GType gst_mxf_demux_get_type (void);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __MXF_DEMUX_H__ */
|