File: ccvt_h-source.html

package info (click to toggle)
camstream 0.25-4
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,996 kB
  • ctags: 1,478
  • sloc: cpp: 6,074; asm: 1,033; makefile: 272
file content (85 lines) | stat: -rw-r--r-- 8,432 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<html>
<head>
<title>Camstream: CamStream API documentation</title>
<link rel="stylesheet" href="../../tech.css" type="text/css">
</head>
<body>

<!-- Generated by Doxygen 1.2.6 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
<hr><h1>ccvt.h</h1><a href="ccvt_h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <font class="preprocessor">#ifndef CCVT_H</font>
00002 <font class="preprocessor"></font><font class="preprocessor">#define CCVT_H</font>
00003 <font class="preprocessor"></font>
00004 <font class="preprocessor">#ifdef __cplusplus</font>
00005 <font class="preprocessor"></font><font class="keyword">extern</font> <font class="stringliteral">"C"</font> {
00006 <font class="preprocessor">#endif</font>
00007 <font class="preprocessor"></font>
00008 <font class="comment">/* Colour ConVerT: going from one colour space to another</font>
00009 <font class="comment"></font>
00010 <font class="comment">   Format descriptions:</font>
00011 <font class="comment">   420i = "4:2:0 interlaced"</font>
00012 <font class="comment">           YYYY UU YYYY UU   even lines</font>
00013 <font class="comment">           YYYY VV YYYY VV   odd lines</font>
00014 <font class="comment">           U/V data is subsampled by 2 both in horizontal </font>
00015 <font class="comment">           and vertical directions, and intermixed with the Y values.</font>
00016 <font class="comment">   </font>
00017 <font class="comment">   420p = "4:2:0 planar"</font>
00018 <font class="comment">           YYYYYYYY      N lines</font>
00019 <font class="comment">           UUUU          N/2 lines</font>
00020 <font class="comment">           VVVV          N/2 lines</font>
00021 <font class="comment">           U/V is again subsampled, but all the Ys, Us and Vs are placed </font>
00022 <font class="comment">           together, but in separate buffers. The buffers may be placed in</font>
00023 <font class="comment">           one piece of contiguous memory though, with Y buffer first,</font>
00024 <font class="comment">           followed by U, folloed by V.</font>
00025 <font class="comment"></font>
00026 <font class="comment">   yuyv = "4:2:2 interlaced"</font>
00027 <font class="comment">           YUYV YUYV YUYV ...   N lines</font>
00028 <font class="comment">           The U/V data is subsampled by 2 in horizontal direction only.</font>
00029 <font class="comment"></font>
00030 <font class="comment">   bgr24 = 3 bytes per pixel, in the order Blue Green Red (whoever came up</font>
00031 <font class="comment">           with that idea...)</font>
00032 <font class="comment">   rgb24 = 3 bytes per pixel, in the order Red Green Blue (which is sensible)</font>
00033 <font class="comment">   rgb32 = 4 bytes per pixel, in the order Red Green Blue Alpha, with </font>
00034 <font class="comment">           Alpha really being a filler byte (0)</font>
00035 <font class="comment">   bgr32 = last but not least, 4 bytes per pixel, in the order Blue Green Red</font>
00036 <font class="comment">           Alpha, Alpha again a filler byte (0)</font>
00037 <font class="comment"> */</font>
00038 
00039 <font class="comment">/* Functions in ccvt.S */</font>
00040 <font class="comment">/* 4:2:0 YUV interlaced to RGB/BGR */</font>
00041 <font class="keywordtype">void</font> <a class="code" href="ccvt_h.html#a0">ccvt_420i_bgr24</a>(<font class="keywordtype">int</font> width, <font class="keywordtype">int</font> height, <font class="keywordtype">void</font> *src, <font class="keywordtype">void</font> *dst);
00042 <font class="keywordtype">void</font> <a class="code" href="ccvt_h.html#a1">ccvt_420i_rgb24</a>(<font class="keywordtype">int</font> width, <font class="keywordtype">int</font> height, <font class="keywordtype">void</font> *src, <font class="keywordtype">void</font> *dst);
00043 <font class="keywordtype">void</font> <a class="code" href="ccvt_h.html#a2">ccvt_420i_bgr32</a>(<font class="keywordtype">int</font> width, <font class="keywordtype">int</font> height, <font class="keywordtype">void</font> *src, <font class="keywordtype">void</font> *dst);
00044 <font class="keywordtype">void</font> <a class="code" href="ccvt_h.html#a3">ccvt_420i_rgb32</a>(<font class="keywordtype">int</font> width, <font class="keywordtype">int</font> height, <font class="keywordtype">void</font> *src, <font class="keywordtype">void</font> *dst);
00045 
00046 <font class="comment">/* 4:2:0 YUYV interlaced to RGB/BGR */</font>
00047 <font class="keywordtype">void</font> <a class="code" href="ccvt_h.html#a4">ccvt_yuyv_rgb32</a>(<font class="keywordtype">int</font> width, <font class="keywordtype">int</font> height, <font class="keywordtype">void</font> *src, <font class="keywordtype">void</font> *dst);
00048 <font class="keywordtype">void</font> <a class="code" href="ccvt_h.html#a5">ccvt_yuyv_bgr32</a>(<font class="keywordtype">int</font> width, <font class="keywordtype">int</font> height, <font class="keywordtype">void</font> *src, <font class="keywordtype">void</font> *dst);
00049 
00050 <font class="comment">/* 4:2:0 YUV planar to RGB/BGR     */</font>
00051 <font class="keywordtype">void</font> <a class="code" href="ccvt_h.html#a6">ccvt_420p_rgb32</a>(<font class="keywordtype">int</font> width, <font class="keywordtype">int</font> height, <font class="keywordtype">void</font> *srcy, <font class="keywordtype">void</font> *srcu, <font class="keywordtype">void</font> *srcv, <font class="keywordtype">void</font> *dst);
00052 <font class="keywordtype">void</font> <a class="code" href="ccvt_h.html#a7">ccvt_420p_bgr32</a>(<font class="keywordtype">int</font> width, <font class="keywordtype">int</font> height, <font class="keywordtype">void</font> *srcy, <font class="keywordtype">void</font> *srcu, <font class="keywordtype">void</font> *srcv, <font class="keywordtype">void</font> *dst);
00053 
00054 <font class="comment">/* RGB/BGR to 4:2:0 YUV interlaced */</font>
00055 
00056 <font class="comment">/* RGB/BGR to 4:2:0 YUV planar     */</font>
00057 <font class="keywordtype">void</font> <a class="code" href="ccvt_h.html#a8">ccvt_rgb24_420p</a>(<font class="keywordtype">int</font> width, <font class="keywordtype">int</font> height, <font class="keywordtype">void</font> *src, <font class="keywordtype">void</font> *dsty, <font class="keywordtype">void</font> *dstu, <font class="keywordtype">void</font> *dstv);
00058 <font class="keywordtype">void</font> <a class="code" href="ccvt_h.html#a9">ccvt_bgr24_420p</a>(<font class="keywordtype">int</font> width, <font class="keywordtype">int</font> height, <font class="keywordtype">void</font> *src, <font class="keywordtype">void</font> *dsty, <font class="keywordtype">void</font> *dstu, <font class="keywordtype">void</font> *dstv);
00059 
00060 <font class="comment">/* Go from 420i to other yuv formats */</font>
00061 <font class="keywordtype">void</font> <a class="code" href="ccvt_h.html#a10">ccvt_420i_420p</a>(<font class="keywordtype">int</font> width, <font class="keywordtype">int</font> height, <font class="keywordtype">void</font> *src, <font class="keywordtype">void</font> *dsty, <font class="keywordtype">void</font> *dstu, <font class="keywordtype">void</font> *dstv);
00062 <font class="keywordtype">void</font> <a class="code" href="ccvt_h.html#a11">ccvt_420i_yuyv</a>(<font class="keywordtype">int</font> width, <font class="keywordtype">int</font> height, <font class="keywordtype">void</font> *src, <font class="keywordtype">void</font> *dst);
00063 
00064 <font class="preprocessor">#ifdef __cplusplus</font>
00065 <font class="preprocessor"></font>}
00066 <font class="preprocessor">#endif</font>
00067 <font class="preprocessor"></font>
00068 <font class="preprocessor">#endif</font>
</font></pre></div><hr><address><small>Generated at Wed Jun 20 02:51:22 2001 for Camstream by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.gif" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.6 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>,
 &copy;&nbsp;1997-2001</small></address>
</body>
</html>