diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2002-10-24 22:37:51 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2002-10-24 22:37:51 +0000 |
commit | 1496394c0f4be1a718fb189846c6350cbd9e43da (patch) | |
tree | 7f839063fd206ad3db102a7a20c336d0c8423295 /ext/mplex/aunit.hh | |
parent | 440801dd9e53284925575c2170b53bf947522414 (diff) | |
download | gst-plugins-bad-1496394c0f4be1a718fb189846c6350cbd9e43da.tar.gz gst-plugins-bad-1496394c0f4be1a718fb189846c6350cbd9e43da.tar.bz2 gst-plugins-bad-1496394c0f4be1a718fb189846c6350cbd9e43da.zip |
First stab at porting mplex
Original commit message from CVS:
First stab at porting mplex
Diffstat (limited to 'ext/mplex/aunit.hh')
-rw-r--r-- | ext/mplex/aunit.hh | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/ext/mplex/aunit.hh b/ext/mplex/aunit.hh new file mode 100644 index 00000000..0876887b --- /dev/null +++ b/ext/mplex/aunit.hh @@ -0,0 +1,41 @@ +#ifndef __AUNIT_H__ +#define __AUNIT_H__ + +#include <config.h> +#include "mjpeg_types.h" +#include "bits.hh" + +typedef int64_t clockticks; // This value *must* be signed + + // because we frequently compute *offsets* + +class Aunit +{ +public: + Aunit ():length (0), PTS (0), DTS (0) + { + } + void markempty () + { + length = 0; + } + bitcount_t start; + unsigned int length; + clockticks PTS; + int dorder; + + // Used only for video AU's but otherwise + // you have to go crazy on templates. + clockticks DTS; + int porder; + unsigned int type; + bool seq_header; + bool end_seq; + +}; + +typedef Aunit VAunit; + +typedef Aunit AAunit; + +#endif // __AUNIT_H__ |