|
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 Project Download Mailing lists
|
til/conversions.h00001 /* 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_IMAGEUTIL_CONVERSIONS_H 00020 #define ORCA_IMAGEUTIL_CONVERSIONS_H 00021 00022 #include <stdint.h> 00023 #include <string.h> 00024 00025 namespace orcaimageutil { 00026 00027 // UYVY <-> YUYV 00028 void 00029 uyvy2yuyv (uint8_t *src, uint8_t *dest, uint32_t size); 00030 00031 void 00032 yuyv2uyvy (uint8_t *src, uint8_t *dest, uint32_t size); 00033 00034 // XXX -> UYVY 00035 void 00036 uyyvyy2uyvy (uint8_t *src, uint8_t *dest, uint32_t size); 00037 00038 void 00039 uyv2uyvy (uint8_t *src, uint8_t *dest, uint32_t size); 00040 00041 void 00042 y2uyvy (uint8_t *src, uint8_t *dest, uint32_t size); 00043 00044 void 00045 y162uyvy (uint8_t *src, uint8_t *dest, uint32_t size, int bits); 00046 00047 void 00048 y162y (uint8_t *src, uint8_t *dest, uint32_t size, int bits); 00049 00050 void 00051 rgb2uyvy (uint8_t *src, uint8_t *dest, uint32_t size); 00052 00053 void 00054 rgb482uyvy (uint8_t *src, uint8_t *dest, uint32_t size); 00055 00056 // XXX -> RGB 00057 void 00058 rgb482rgb (uint8_t *src, uint8_t *dest, uint32_t size); 00059 00060 void 00061 uyv2rgb (uint8_t *src, uint8_t *dest, uint32_t size); 00062 00063 void 00064 uyvy2rgb (uint8_t *src, uint8_t *dest, uint32_t size); 00065 00066 void 00067 uyvy2bgr (uint8_t *src, uint8_t *dest, uint32_t size); 00068 00069 void 00070 uyyvyy2rgb (uint8_t *src, uint8_t *dest, uint32_t size); 00071 00072 void 00073 y2rgb (uint8_t *src, uint8_t *dest, uint32_t size); 00074 00075 void 00076 y162rgb (uint8_t *src, uint8_t *dest, uint32_t size, int bits); 00077 00078 void 00079 uyv2bgr (uint8_t *src, uint8_t *dest, uint32_t size); 00080 00081 void 00082 uyyvyy2bgr (uint8_t *src, uint8_t *dest, uint32_t size); 00083 00084 // MISC 00085 00086 void 00087 rgb2bgr (uint8_t *src, uint8_t *dest, uint32_t size); 00088 00089 void 00090 y2bgr (uint8_t *src, uint8_t *dest, uint32_t size); 00091 00095 /* 00096 void 00097 bgr2bgra (uint8_t *src, uint8_t *dest, uint32_t size); 00098 00099 void 00100 bgr2argb (uint8_t *src, uint8_t *dest, uint32_t size); 00101 00102 void 00103 bayer2bgr(uint8_t *src, uint8_t *dest, uint32_t size, BayerFormat bayer); 00104 00105 void 00106 bayer2bgra(uint8_t *src, uint8_t *dest, uint32_t size, BayerFormat bayer); 00107 */ 00108 00109 }// namespace 00110 00111 #endif |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)
1.4.5