From c5e843b82205c04c618a423d3bb223f1f630b7a1 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 11 Aug 2003 04:26:00 +0000 Subject: added sources from pidip-0.12.4 svn path=/trunk/externals/pidip/; revision=837 --- include/pdp_streaming.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 include/pdp_streaming.h (limited to 'include/pdp_streaming.h') 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 +#include + +#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; -- cgit v1.2.1