orca-robotics


INTRODUCTION
Overview
Download and Install
Quick Start
Documentation
Publications

REPOSITORY
Interfaces
Components
Libraries
Utilities
Software Map

DEVELOPER
Tutorials
Examples
Dev Guide
Dashboard
Wiki
login/pass: orca/orca

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

conversions.h

00001 /*
00002  * Copyright (C) 2000-2001 Dan Dennedy  <dan@dennedy.org>
00003  *
00004  * This program is free software; you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License as published by
00006  * the Free Software Foundation; either version 2 of the License, or
00007  * (at your option) any later version.
00008  *
00009  * This program is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012  * GNU General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU General Public License
00015  * along with this program; if not, write to the Free Software Foundation,
00016  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00017  */
00018 
00019 #ifndef ORCA_IMAGE_CONVERSIONS_H
00020 #define ORCA_IMAGE_CONVERSIONS_H
00021 
00022 #include <string.h>
00023 
00024 // typedef enum
00025 // {
00026 //     NO_STEREO_DECODING,
00027 //     STEREO_DECODING
00028 // } stereo_decoding_t;
00029 
00030 namespace orcaimage{
00031 
00032 // UYVY <-> YUYV
00033 void
00034 uyvy2yuyv (unsigned char *src, unsigned char *dest, int NumPixels);
00035 
00036 void
00037 yuyv2uyvy (unsigned char *src, unsigned char *dest, int NumPixels);
00038 
00039 // XXX -> UYVY
00040 void
00041 uyyvyy2uyvy (unsigned char *src, unsigned char *dest, int NumPixels);
00042 
00043 void
00044 uyv2uyvy (unsigned char *src, unsigned char *dest, int NumPixels);
00045 
00046 void
00047 y2uyvy (unsigned char *src, unsigned char *dest, int NumPixels);
00048 
00049 void
00050 y162uyvy (unsigned char *src, unsigned char *dest, int NumPixels, int bits);
00051 
00052 void
00053 y162y (unsigned char *src, unsigned char *dest, int NumPixels, int bits);
00054 
00055 void
00056 rgb2uyvy (unsigned char *src, unsigned char *dest, int NumPixels);
00057 
00058 void
00059 rgb482uyvy (unsigned char *src, unsigned char *dest, int NumPixels);
00060 
00061 // XXX -> RGB
00062 void
00063 rgb482rgb (unsigned char *src, unsigned char *dest, int NumPixels);
00064 
00065 void
00066 uyv2rgb (unsigned char *src, unsigned char *dest, int NumPixels);
00067 
00068 void
00069 uyvy2rgb (unsigned char *src, unsigned char *dest, int NumPixels);
00070 
00071 void
00072 uyvy2bgr (unsigned char *src, unsigned char *dest, int NumPixels);
00073 
00074 void
00075 uyyvyy2rgb (unsigned char *src, unsigned char *dest, int NumPixels);
00076 
00077 void
00078 y2rgb (unsigned char *src, unsigned char *dest, int NumPixels);
00079 
00080 void
00081 y162rgb (unsigned char *src, unsigned char *dest, int NumPixels, int bits);
00082 
00083 // void
00084 // StereoDecode(unsigned char *src, unsigned char *dest, int NumPixels);
00085 
00086 void
00087 uyv2bgr (unsigned char *src, unsigned char *dest, int NumPixels);
00088 
00089 void
00090 uyyvyy2bgr (unsigned char *src, unsigned char *dest, int NumPixels);
00091 
00092 // MISC
00093 
00094 void
00095 rgb2bgr (unsigned char *src, unsigned char *dest, int NumPixels);
00096 
00097 void 
00098 y2bgr (unsigned char *src, unsigned char *dest, int NumPixels);
00099 
00100 }// namespace
00101 
00102 #endif
 

Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)


Generated for Orca Robotics by  doxygen 1.4.5