summaryrefslogtreecommitdiffstats
path: root/gst/rtp/gstrtph264pay.h
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2008-05-20 11:33:05 +0000
committerWim Taymans <wim.taymans@gmail.com>2008-05-20 11:33:05 +0000
commitbe0e73ee6bd042a349a79b0d4b34fdc6d5366a47 (patch)
tree4f67b41ccf070337c0fe75ace68a3303f0f946d9 /gst/rtp/gstrtph264pay.h
parent3d3f7cd6dafbf0b5a49f94627fa638e493e6ca8f (diff)
gst/rtp/gstrtph264depay.*: Add experimental support for outputting quicktime-like AVC output in addition to the exist...
Original commit message from CVS: * gst/rtp/gstrtph264depay.c: (gst_rtp_h264_depay_class_init), (gst_rtp_h264_depay_init), (gst_rtp_h264_depay_set_property), (gst_rtp_h264_depay_get_property), (gst_rtp_h264_depay_setcaps), (gst_rtp_h264_depay_process): * gst/rtp/gstrtph264depay.h: Add experimental support for outputting quicktime-like AVC output in addition to the existing bytestream output. * gst/rtp/gstrtph264pay.c: (gst_h264_scan_mode_get_type), (gst_rtp_h264_pay_class_init), (gst_rtp_h264_pay_init), (gst_rtp_h264_pay_setcaps), (gst_rtp_h264_pay_payload_nal), (gst_rtp_h264_pay_handle_buffer), (gst_rtp_h264_pay_set_property), (gst_rtp_h264_pay_get_property): * gst/rtp/gstrtph264pay.h: Make the parsing mode configurable, for some inputs we don't need to scan every byte for start codes. Only set the marker bit on ACCESS units.
Diffstat (limited to 'gst/rtp/gstrtph264pay.h')
-rw-r--r--gst/rtp/gstrtph264pay.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gst/rtp/gstrtph264pay.h b/gst/rtp/gstrtph264pay.h
index b0ac0965..f48fb98b 100644
--- a/gst/rtp/gstrtph264pay.h
+++ b/gst/rtp/gstrtph264pay.h
@@ -36,6 +36,13 @@ G_BEGIN_DECLS
#define GST_IS_RTP_H264_PAY_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_RTP_H264_PAY))
+typedef enum
+{
+ GST_H264_SCAN_MODE_BYTESTREAM,
+ GST_H264_SCAN_MODE_MULTI_NAL,
+ GST_H264_SCAN_MODE_SINLE_NAL
+} GstH264ScanMode;
+
typedef struct _GstRtpH264Pay GstRtpH264Pay;
typedef struct _GstRtpH264PayClass GstRtpH264PayClass;
@@ -53,6 +60,7 @@ struct _GstRtpH264Pay
gchar *profile_level_id;
gchar *sprop_parameter_sets;
gboolean update_caps;
+ GstH264ScanMode scan_mode;
};
struct _GstRtpH264PayClass