avtp: Introduce AAF depayloader element
authorAndre Guedes <andre.guedes@intel.com>
Thu, 24 Jan 2019 00:20:27 +0000 (16:20 -0800)
committerEderson de Souza <ederson.desouza@intel.com>
Wed, 3 Jul 2019 16:59:35 +0000 (09:59 -0700)
commit6477884a56fb9bf59b2f13d8b0c6244d8ce32039
treebf8a8b5ec619006c32ab885e85066eba3894cea8
parent1e985f02f49881637dca9eeea6c3b560737551fe
avtp: Introduce AAF depayloader element

This patch introduces the AAF depayloader element, the counterpart from
the AAF payloader. As expected, this element inputs AVTPDUs and outputs
audio raw data and supports AAF PCM encapsulation only.

The AAF depayloader srcpad produces a fixed format that is encoded
within the AVTPDU. Once the first AVTPDU is received by the element, the
audio features e.g. sample format, rate, number of channels, are decoded
and the srcpad caps are set accordingly. Also, at this point, the
element pushes a SEGMENT event downstream defining the segment according
to the AVTP presentation time.

All AVTP depayloaders will share some common code. For that reason, this
patch introduces the GstAvtpBaseDepayload abstract class that implements
common depayloader functionalities. AAF-specific functionalities are
implemented in the derived class GstAvtpAafDepay.
ext/avtp/Makefile.am
ext/avtp/gstavtp.c
ext/avtp/gstavtpaafdepay.c [new file with mode: 0644]
ext/avtp/gstavtpaafdepay.h [new file with mode: 0644]
ext/avtp/gstavtpbasedepayload.c [new file with mode: 0644]
ext/avtp/gstavtpbasedepayload.h [new file with mode: 0644]
ext/avtp/meson.build