• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

libswscale/rgb2rgb.h

Go to the documentation of this file.
00001 /*
00002  *  software RGB to RGB converter
00003  *  pluralize by Software PAL8 to RGB converter
00004  *               Software YUV to YUV converter
00005  *               Software YUV to RGB converter
00006  *  Written by Nick Kurshev.
00007  *  palette & YUV & runtime CPU stuff by Michael (michaelni@gmx.at)
00008  *
00009  * This file is part of FFmpeg.
00010  *
00011  * FFmpeg is free software; you can redistribute it and/or
00012  * modify it under the terms of the GNU Lesser General Public
00013  * License as published by the Free Software Foundation; either
00014  * version 2.1 of the License, or (at your option) any later version.
00015  *
00016  * FFmpeg is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00019  * Lesser General Public License for more details.
00020  *
00021  * You should have received a copy of the GNU Lesser General Public
00022  * License along with FFmpeg; if not, write to the Free Software
00023  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
00024  */
00025 
00026 #ifndef SWSCALE_RGB2RGB_H
00027 #define SWSCALE_RGB2RGB_H
00028 
00029 #include <inttypes.h>
00030 
00031 /* A full collection of RGB to RGB(BGR) converters */
00032 extern void (*rgb24tobgr32)(const uint8_t *src, uint8_t *dst, long src_size);
00033 extern void (*rgb24tobgr16)(const uint8_t *src, uint8_t *dst, long src_size);
00034 extern void (*rgb24tobgr15)(const uint8_t *src, uint8_t *dst, long src_size);
00035 extern void (*rgb32tobgr24)(const uint8_t *src, uint8_t *dst, long src_size);
00036 extern void (*rgb32to16)   (const uint8_t *src, uint8_t *dst, long src_size);
00037 extern void (*rgb32to15)   (const uint8_t *src, uint8_t *dst, long src_size);
00038 extern void (*rgb15to16)   (const uint8_t *src, uint8_t *dst, long src_size);
00039 extern void (*rgb15tobgr24)(const uint8_t *src, uint8_t *dst, long src_size);
00040 extern void (*rgb15to32)   (const uint8_t *src, uint8_t *dst, long src_size);
00041 extern void (*rgb16to15)   (const uint8_t *src, uint8_t *dst, long src_size);
00042 extern void (*rgb16tobgr24)(const uint8_t *src, uint8_t *dst, long src_size);
00043 extern void (*rgb16to32)   (const uint8_t *src, uint8_t *dst, long src_size);
00044 extern void (*rgb24tobgr24)(const uint8_t *src, uint8_t *dst, long src_size);
00045 extern void (*rgb24to16)   (const uint8_t *src, uint8_t *dst, long src_size);
00046 extern void (*rgb24to15)   (const uint8_t *src, uint8_t *dst, long src_size);
00047 extern void (*rgb32tobgr32)(const uint8_t *src, uint8_t *dst, long src_size);
00048 extern void (*rgb32tobgr16)(const uint8_t *src, uint8_t *dst, long src_size);
00049 extern void (*rgb32tobgr15)(const uint8_t *src, uint8_t *dst, long src_size);
00050 
00051 void rgb24to32   (const uint8_t *src, uint8_t *dst, long src_size);
00052 void rgb32to24   (const uint8_t *src, uint8_t *dst, long src_size);
00053 void rgb16tobgr32(const uint8_t *src, uint8_t *dst, long src_size);
00054 void rgb16to24   (const uint8_t *src, uint8_t *dst, long src_size);
00055 void rgb16tobgr16(const uint8_t *src, uint8_t *dst, long src_size);
00056 void rgb16tobgr15(const uint8_t *src, uint8_t *dst, long src_size);
00057 void rgb15tobgr32(const uint8_t *src, uint8_t *dst, long src_size);
00058 void rgb15to24   (const uint8_t *src, uint8_t *dst, long src_size);
00059 void rgb15tobgr16(const uint8_t *src, uint8_t *dst, long src_size);
00060 void rgb15tobgr15(const uint8_t *src, uint8_t *dst, long src_size);
00061 void bgr8torgb8  (const uint8_t *src, uint8_t *dst, long src_size);
00062 
00063 
00064 void palette8topacked32(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
00065 void palette8topacked24(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
00066 void palette8torgb16(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
00067 void palette8tobgr16(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
00068 void palette8torgb15(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
00069 void palette8tobgr15(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
00070 
00077 //void uyvytoyv12(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst,
00078 
00083 extern void (*yv12toyuy2)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst,
00084                           long width, long height,
00085                           long lumStride, long chromStride, long dstStride);
00086 
00090 extern void (*yuv422ptoyuy2)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst,
00091                              long width, long height,
00092                              long lumStride, long chromStride, long dstStride);
00093 
00098 extern void (*yuy2toyv12)(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst,
00099                           long width, long height,
00100                           long lumStride, long chromStride, long srcStride);
00101 
00106 extern void (*yv12touyvy)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst,
00107                           long width, long height,
00108                           long lumStride, long chromStride, long dstStride);
00109 
00113 extern void (*yuv422ptouyvy)(const uint8_t *ysrc, const uint8_t *usrc, const uint8_t *vsrc, uint8_t *dst,
00114                              long width, long height,
00115                              long lumStride, long chromStride, long dstStride);
00116 
00123 extern void (*rgb24toyv12)(const uint8_t *src, uint8_t *ydst, uint8_t *udst, uint8_t *vdst,
00124                            long width, long height,
00125                            long lumStride, long chromStride, long srcStride);
00126 extern void (*planar2x)(const uint8_t *src, uint8_t *dst, long width, long height,
00127                         long srcStride, long dstStride);
00128 
00129 extern void (*interleaveBytes)(uint8_t *src1, uint8_t *src2, uint8_t *dst,
00130                                long width, long height, long src1Stride,
00131                                long src2Stride, long dstStride);
00132 
00133 extern void (*vu9_to_vu12)(const uint8_t *src1, const uint8_t *src2,
00134                            uint8_t *dst1, uint8_t *dst2,
00135                            long width, long height,
00136                            long srcStride1, long srcStride2,
00137                            long dstStride1, long dstStride2);
00138 
00139 extern void (*yvu9_to_yuy2)(const uint8_t *src1, const uint8_t *src2, const uint8_t *src3,
00140                             uint8_t *dst,
00141                             long width, long height,
00142                             long srcStride1, long srcStride2,
00143                             long srcStride3, long dstStride);
00144 
00145 void sws_rgb2rgb_init(int flags);
00146 
00147 #endif /* SWSCALE_RGB2RGB_H */

Generated on Tue Nov 4 2014 12:59:24 for ffmpeg by  doxygen 1.7.1