mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 15:27:07 +00:00
45d2f5a779
This patch introduces the AVTP Compressed Video Format (CVF) depayloader specified in IEEE 1722-2016 section 8. Currently, this depayloader only supports H.264 encapsulation described in section 8.5. Is also worth noting that only single NAL units are handled: aggregated and fragmented payloads are not handled. As stated in AVTP CVF payloader patch, AVTP timestamp is used to define outgoing buffer DTS, while the H264_TIMESTAMP defines outgoing buffer PTS. When an AVTP packet is received, the extracted H.264 NAL unit is added to a "stash" (the out_buffer) of H.264 NAL units. This "stash" is pushed downstream as single buffer (with NAL units aggregated according to format used on GStreamer, based on ISO/IEC 14496-15) as soon as we get the AVTP packet with M bit set. This patch groups NAL units using a fixed NAL size lenght, sent downstream on the `codec_data` capability. The "stash" of NAL units can be prematurely sent downstream if a discontinuity (a missing SEQNUM) happens. This patch reuses the infra provided by gstavtpbasedepayload.c.
36 lines
708 B
Makefile
36 lines
708 B
Makefile
plugin_LTLIBRARIES = libgstavtp.la
|
|
|
|
libgstavtp_la_SOURCES = \
|
|
gstavtp.c \
|
|
gstavtpaafdepay.c \
|
|
gstavtpaafpay.c \
|
|
gstavtpbasedepayload.c \
|
|
gstavtpbasepayload.c \
|
|
gstavtpcvfdepay.c \
|
|
gstavtpcvfpay.c \
|
|
gstavtpsink.c \
|
|
gstavtpsrc.c
|
|
|
|
libgstavtp_la_CFLAGS = \
|
|
$(GST_PLUGINS_BASE_CFLAGS) \
|
|
$(GST_BASE_CFLAGS) \
|
|
$(GST_CFLAGS) \
|
|
$(AVTP_CFLAGS)
|
|
|
|
libgstavtp_la_LIBADD = \
|
|
$(GST_PLUGINS_BASE_LIBS) -lgstaudio-$(GST_API_VERSION) \
|
|
$(GST_BASE_LIBS) \
|
|
$(GST_LIBS) \
|
|
$(AVTP_LIBS)
|
|
|
|
libgstavtp_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
|
|
|
noinst_HEADERS = \
|
|
gstavtpaafdepay.h \
|
|
gstavtpaafpay.h \
|
|
gstavtpbasedepayload.h \
|
|
gstavtpbasepayload.h \
|
|
gstavtpcvfdepay.h \
|
|
gstavtpcvfpay.h \
|
|
gstavtpsink.h \
|
|
gstavtpsrc.h
|