diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2003-08-11 04:26:00 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2003-08-11 04:26:00 +0000 |
commit | c5e843b82205c04c618a423d3bb223f1f630b7a1 (patch) | |
tree | 47eb18ea910be2d9735290aef960fd458b46d29c /include/pdp_streaming.h |
added sources from pidip-0.12.4svn2git-root
svn path=/trunk/externals/pidip/; revision=837
Diffstat (limited to 'include/pdp_streaming.h')
-rw-r--r-- | include/pdp_streaming.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/include/pdp_streaming.h b/include/pdp_streaming.h new file mode 100644 index 0000000..648c0c6 --- /dev/null +++ b/include/pdp_streaming.h @@ -0,0 +1,34 @@ +/* + * pdp_streaming.h : structure and defines for PDP packet streaming + * Copyright (C) 2001-2002 Yves Degoyon + * + */ + +/* + * this is the format of how a packet is transmitted + * between pdp_o and pdp_i + * it starts with a tag to recognize the beginning + * of a packet, then header informations ( width, height, timestamp ) + * and, finally, the bz2 compressed data + */ + +#include <time.h> +#include <sys/time.h> + +#define TAG_LENGTH 8 + +#define PDP_PACKET_START "SPDP" +#define PDP_PACKET_TAG PDP_PACKET_START"PAC" +#define PDP_PACKET_DIFF PDP_PACKET_START"DIF" +#define REGULAR 0 +#define HUFFMAN 1 + +typedef struct _hpacket +{ + char tag[TAG_LENGTH]; + int encoding; + int width; + int height; + struct timeval etime; // valid until 2038 + unsigned int clength; +} t_hpacket; |