00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef SWSCALE_RGB2RGB_H
00027 #define SWSCALE_RGB2RGB_H
00028
00029 #include <inttypes.h>
00030
00031
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
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