mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-08 10:31:05 +00:00
2f0cc8ec30
Original commit message from CVS: Moved from gst-plugins/ext/mplex/. See that directory for older changelogs.
41 lines
649 B
C++
41 lines
649 B
C++
#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__
|