diff options
author | Sjoerd Simons <sjoerd@luon.net> | 2008-05-13 17:21:07 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2008-05-13 17:21:07 +0000 |
commit | 7bd28a6a9498c30275cee2ede6758611819b8a11 (patch) | |
tree | dd76a53b5d4d6fc876c0bfc334ba346845a0cb57 /gst/mpeg4videoparse/mpeg4videoparse.h | |
parent | 03271f091aca8885e1e5e4c6c550f8f8e9db63ec (diff) | |
download | gst-plugins-bad-7bd28a6a9498c30275cee2ede6758611819b8a11.tar.gz gst-plugins-bad-7bd28a6a9498c30275cee2ede6758611819b8a11.tar.bz2 gst-plugins-bad-7bd28a6a9498c30275cee2ede6758611819b8a11.zip |
gst/mpeg4videoparse/mpeg4videoparse.*: Parse the config data (either outbound or in the stream) to set width/height, ...
Original commit message from CVS:
Patch by: Sjoerd Simons <sjoerd at luon dot net>
* gst/mpeg4videoparse/mpeg4videoparse.c:
(gst_mpeg4vparse_set_new_caps), (gst_mpeg4vparse_align),
(get_bits), (next_start_code), (gst_mpeg4vparse_handle_vos),
(gst_mpeg4vparse_push), (gst_mpeg4vparse_drain),
(gst_mpeg4vparse_chain), (gst_mpeg4vparse_sink_setcaps),
(gst_mpeg4vparse_sink_event), (gst_mpeg4vparse_src_query),
(gst_mpeg4vparse_set_property), (gst_mpeg4vparse_get_property),
(gst_mpeg4vparse_class_init), (gst_mpeg4vparse_init):
* gst/mpeg4videoparse/mpeg4videoparse.h:
Parse the config data (either outbound or in the stream) to set
width/height, apect ration, framerate in the caps if applicable.
Mark frames as GST_BUFFER_FLAG_DELTA_UNIT when they are not
intra frames
Set the timestamps of outgoing buffers to the buffer in
which the VOP header was found.
Drop incoming data untill configuration is found (by default,
configurable using a property).
Report a 1 frame latency. Fixes #532723.
Diffstat (limited to 'gst/mpeg4videoparse/mpeg4videoparse.h')
-rw-r--r-- | gst/mpeg4videoparse/mpeg4videoparse.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gst/mpeg4videoparse/mpeg4videoparse.h b/gst/mpeg4videoparse/mpeg4videoparse.h index 94438ad2..9661d457 100644 --- a/gst/mpeg4videoparse/mpeg4videoparse.h +++ b/gst/mpeg4videoparse/mpeg4videoparse.h @@ -43,6 +43,7 @@ typedef struct _GstMpeg4VParseClass GstMpeg4VParseClass; typedef enum { PARSE_NEED_START, PARSE_START_FOUND, + PARSE_VOS_FOUND, PARSE_VOP_FOUND } GstMpeg4VParseState; @@ -54,8 +55,17 @@ struct _GstMpeg4VParse { GstAdapter * adapter; guint offset; + guint vos_offset; + gboolean intra_frame; GstMpeg4VParseState state; + GstClockTime timestamp; + + GstBuffer *config; + guint8 profile; + GstClockTime frame_duration; + + gboolean drop; }; struct _GstMpeg4VParseClass { |