aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2003-08-11 04:26:00 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2003-08-11 04:26:00 +0000
commitc5e843b82205c04c618a423d3bb223f1f630b7a1 (patch)
tree47eb18ea910be2d9735290aef960fd458b46d29c /include
added sources from pidip-0.12.4svn2git-root
svn path=/trunk/externals/pidip/; revision=837
Diffstat (limited to 'include')
-rw-r--r--include/charmaps.h1292
-rw-r--r--include/pdp_streaming.h34
-rw-r--r--include/yuv.h31
3 files changed, 1357 insertions, 0 deletions
diff --git a/include/charmaps.h b/include/charmaps.h
new file mode 100644
index 0000000..9caed3a
--- /dev/null
+++ b/include/charmaps.h
@@ -0,0 +1,1292 @@
+#ifndef __bitmaps_h__
+#define __bitmaps_h__
+
+#define CHARWIDTH 5
+#define CHARHEIGHT 8
+#define NBCHARS 128
+
+typedef char charmap[CHARWIDTH*CHARHEIGHT];
+
+static charmap charmaps[NBCHARS] = {
+{
+0,0,0,0,0,
+0,0,1,0,0,
+0,1,1,1,0,
+1,1,1,1,0,
+0,1,1,1,0,
+0,0,1,0,0,
+0,0,0,0,0,
+0,0,0,0,0,
+},
+{
+0,0,0,0,0,
+0,0,1,0,0,
+0,0,1,0,0,
+1,1,0,1,1,
+0,1,0,1,0,
+0,0,1,0,0,
+0,1,0,1,0,
+0,0,1,0,0,
+},
+{
+0,0,0,0,0,
+0,0,1,0,0,
+0,1,0,1,0,
+0,1,0,1,0,
+0,1,1,1,0,
+0,0,0,0,0,
+1,0,0,1,0,
+1,0,0,1,0,
+},
+{
+0,0,0,0,0,
+0,0,1,0,0,
+1,1,1,1,0,
+0,0,0,1,0,
+1,1,1,1,0,
+0,0,1,0,0,
+0,0,0,0,0,
+0,0,0,0,0,
+},
+{
+0,0,0,0,0,
+0,0,1,0,0,
+0,1,0,1,0,
+0,0,1,0,0,
+0,1,0,1,0,
+0,0,1,0,0,
+0,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0,
+0,0,0,0,0,
+0,1,0,0,0,
+0,1,0,0,0,
+0,1,0,0,0,
+0,0,0,0,0,
+},
+{
+1,0,0,0,0,
+0,1,0,0,0,
+0,1,0,0,0,
+0,0,1,0,0,
+0,1,0,0,0,
+0,1,0,0,0,
+1,0,0,0,0,
+0,0,0,0,0,
+},
+{
+0,0,0,0,0,
+0,0,0,0,0,
+1,1,0,0,0,
+0,1,1,0,0,
+0,0,0,0,0,
+0,0,0,0,0,
+0,0,0,0,0,
+0,0,0,0,0,
+}
+};
+
+#endif
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;
diff --git a/include/yuv.h b/include/yuv.h
new file mode 100644
index 0000000..554553d
--- /dev/null
+++ b/include/yuv.h
@@ -0,0 +1,31 @@
+/*
+ * EffecTV - Realtime Digital Video Effector
+ * Copyright (C) 2001-2002 FUKUCHI Kentaro
+ *
+ * yuv.c: YUV(YCbCr) color system utilities
+ *
+ */
+
+#include <math.h>
+
+/*
+ * conversion from YUV to RGB
+ * r = 1.164*(y-16) + 1.596*(v-128);
+ * g = 1.164*(y-16) - 0.813*(v-128) - 0.391*(u-128);
+ * b = 1.164*(y-16) + 2.018*(u-128);
+ * conversion from RGB to YUV
+ * y = 0.257*r + 0.504*g + 0.098*b + 16
+ * u = -0.148*r - 0.291*g + 0.439*b + 128
+ * v = 0.439*r - 0.368*g - 0.071*b + 128
+ */
+
+int yuv_init(void);
+unsigned char yuv_RGBtoY(int rgb);
+unsigned char yuv_RGBtoU(int rgb);
+unsigned char yuv_RGBtoV(int rgb);
+unsigned char yuv_YUVtoR(unsigned char y, unsigned char u, unsigned char v);
+unsigned char yuv_YUVtoG(unsigned char y, unsigned char u, unsigned char v);
+unsigned char yuv_YUVtoB(unsigned char y, unsigned char u, unsigned char v);
+int yuv_YUVtoRGB(unsigned char y, unsigned char u, unsigned char v);
+void yuv_Y122RGB( short int* packet, unsigned int *rgb, int width, int height );
+void yuv_RGB2Y12( unsigned int *rgb, short int* packet, int width, int height );