- Timestamp:
- Jul 28, 2017 2:51:44 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/third_party/yuv/include/libyuv/convert_from_argb.h
r5358 r5633 9 9 */ 10 10 11 #ifndef INCLUDE_LIBYUV_CONVERT_FROM_ARGB_H_ // NOLINT11 #ifndef INCLUDE_LIBYUV_CONVERT_FROM_ARGB_H_ 12 12 #define INCLUDE_LIBYUV_CONVERT_FROM_ARGB_H_ 13 13 … … 22 22 #define ARGBToARGB ARGBCopy 23 23 LIBYUV_API 24 int ARGBCopy(const uint8* src_argb, int src_stride_argb, 25 uint8* dst_argb, int dst_stride_argb, 26 int width, int height); 24 int ARGBCopy(const uint8* src_argb, 25 int src_stride_argb, 26 uint8* dst_argb, 27 int dst_stride_argb, 28 int width, 29 int height); 27 30 28 31 // Convert ARGB To BGRA. 29 32 LIBYUV_API 30 int ARGBToBGRA(const uint8* src_argb, int src_stride_argb, 31 uint8* dst_bgra, int dst_stride_bgra, 32 int width, int height); 33 int ARGBToBGRA(const uint8* src_argb, 34 int src_stride_argb, 35 uint8* dst_bgra, 36 int dst_stride_bgra, 37 int width, 38 int height); 33 39 34 40 // Convert ARGB To ABGR. 35 41 LIBYUV_API 36 int ARGBToABGR(const uint8* src_argb, int src_stride_argb, 37 uint8* dst_abgr, int dst_stride_abgr, 38 int width, int height); 42 int ARGBToABGR(const uint8* src_argb, 43 int src_stride_argb, 44 uint8* dst_abgr, 45 int dst_stride_abgr, 46 int width, 47 int height); 39 48 40 49 // Convert ARGB To RGBA. 41 50 LIBYUV_API 42 int ARGBToRGBA(const uint8* src_argb, int src_stride_argb, 43 uint8* dst_rgba, int dst_stride_rgba, 44 int width, int height); 51 int ARGBToRGBA(const uint8* src_argb, 52 int src_stride_argb, 53 uint8* dst_rgba, 54 int dst_stride_rgba, 55 int width, 56 int height); 45 57 46 58 // Convert ARGB To RGB24. 47 59 LIBYUV_API 48 int ARGBToRGB24(const uint8* src_argb, int src_stride_argb, 49 uint8* dst_rgb24, int dst_stride_rgb24, 50 int width, int height); 60 int ARGBToRGB24(const uint8* src_argb, 61 int src_stride_argb, 62 uint8* dst_rgb24, 63 int dst_stride_rgb24, 64 int width, 65 int height); 51 66 52 67 // Convert ARGB To RAW. 53 68 LIBYUV_API 54 int ARGBToRAW(const uint8* src_argb, int src_stride_argb, 55 uint8* dst_rgb, int dst_stride_rgb, 56 int width, int height); 69 int ARGBToRAW(const uint8* src_argb, 70 int src_stride_argb, 71 uint8* dst_rgb, 72 int dst_stride_rgb, 73 int width, 74 int height); 57 75 58 76 // Convert ARGB To RGB565. 59 77 LIBYUV_API 60 int ARGBToRGB565(const uint8* src_argb, int src_stride_argb, 61 uint8* dst_rgb565, int dst_stride_rgb565, 62 int width, int height); 78 int ARGBToRGB565(const uint8* src_argb, 79 int src_stride_argb, 80 uint8* dst_rgb565, 81 int dst_stride_rgb565, 82 int width, 83 int height); 63 84 64 85 // Convert ARGB To RGB565 with 4x4 dither matrix (16 bytes). … … 68 89 // const uint8(*dither)[4][4]; 69 90 LIBYUV_API 70 int ARGBToRGB565Dither(const uint8* src_argb, int src_stride_argb, 71 uint8* dst_rgb565, int dst_stride_rgb565, 72 const uint8* dither4x4, int width, int height); 91 int ARGBToRGB565Dither(const uint8* src_argb, 92 int src_stride_argb, 93 uint8* dst_rgb565, 94 int dst_stride_rgb565, 95 const uint8* dither4x4, 96 int width, 97 int height); 73 98 74 99 // Convert ARGB To ARGB1555. 75 100 LIBYUV_API 76 int ARGBToARGB1555(const uint8* src_argb, int src_stride_argb, 77 uint8* dst_argb1555, int dst_stride_argb1555, 78 int width, int height); 101 int ARGBToARGB1555(const uint8* src_argb, 102 int src_stride_argb, 103 uint8* dst_argb1555, 104 int dst_stride_argb1555, 105 int width, 106 int height); 79 107 80 108 // Convert ARGB To ARGB4444. 81 109 LIBYUV_API 82 int ARGBToARGB4444(const uint8* src_argb, int src_stride_argb, 83 uint8* dst_argb4444, int dst_stride_argb4444, 84 int width, int height); 110 int ARGBToARGB4444(const uint8* src_argb, 111 int src_stride_argb, 112 uint8* dst_argb4444, 113 int dst_stride_argb4444, 114 int width, 115 int height); 85 116 86 117 // Convert ARGB To I444. 87 118 LIBYUV_API 88 int ARGBToI444(const uint8* src_argb, int src_stride_argb, 89 uint8* dst_y, int dst_stride_y, 90 uint8* dst_u, int dst_stride_u, 91 uint8* dst_v, int dst_stride_v, 92 int width, int height); 119 int ARGBToI444(const uint8* src_argb, 120 int src_stride_argb, 121 uint8* dst_y, 122 int dst_stride_y, 123 uint8* dst_u, 124 int dst_stride_u, 125 uint8* dst_v, 126 int dst_stride_v, 127 int width, 128 int height); 93 129 94 130 // Convert ARGB To I422. 95 131 LIBYUV_API 96 int ARGBToI422(const uint8* src_argb, int src_stride_argb, 97 uint8* dst_y, int dst_stride_y, 98 uint8* dst_u, int dst_stride_u, 99 uint8* dst_v, int dst_stride_v, 100 int width, int height); 132 int ARGBToI422(const uint8* src_argb, 133 int src_stride_argb, 134 uint8* dst_y, 135 int dst_stride_y, 136 uint8* dst_u, 137 int dst_stride_u, 138 uint8* dst_v, 139 int dst_stride_v, 140 int width, 141 int height); 101 142 102 143 // Convert ARGB To I420. (also in convert.h) 103 144 LIBYUV_API 104 int ARGBToI420(const uint8* src_argb, int src_stride_argb, 105 uint8* dst_y, int dst_stride_y, 106 uint8* dst_u, int dst_stride_u, 107 uint8* dst_v, int dst_stride_v, 108 int width, int height); 145 int ARGBToI420(const uint8* src_argb, 146 int src_stride_argb, 147 uint8* dst_y, 148 int dst_stride_y, 149 uint8* dst_u, 150 int dst_stride_u, 151 uint8* dst_v, 152 int dst_stride_v, 153 int width, 154 int height); 109 155 110 156 // Convert ARGB to J420. (JPeg full range I420). 111 157 LIBYUV_API 112 int ARGBToJ420(const uint8* src_argb, int src_stride_argb, 113 uint8* dst_yj, int dst_stride_yj, 114 uint8* dst_u, int dst_stride_u, 115 uint8* dst_v, int dst_stride_v, 116 int width, int height); 158 int ARGBToJ420(const uint8* src_argb, 159 int src_stride_argb, 160 uint8* dst_yj, 161 int dst_stride_yj, 162 uint8* dst_u, 163 int dst_stride_u, 164 uint8* dst_v, 165 int dst_stride_v, 166 int width, 167 int height); 117 168 118 169 // Convert ARGB to J422. 119 170 LIBYUV_API 120 int ARGBToJ422(const uint8* src_argb, int src_stride_argb, 121 uint8* dst_yj, int dst_stride_yj, 122 uint8* dst_u, int dst_stride_u, 123 uint8* dst_v, int dst_stride_v, 124 int width, int height); 125 126 // Convert ARGB To I411. 127 LIBYUV_API 128 int ARGBToI411(const uint8* src_argb, int src_stride_argb, 129 uint8* dst_y, int dst_stride_y, 130 uint8* dst_u, int dst_stride_u, 131 uint8* dst_v, int dst_stride_v, 132 int width, int height); 171 int ARGBToJ422(const uint8* src_argb, 172 int src_stride_argb, 173 uint8* dst_yj, 174 int dst_stride_yj, 175 uint8* dst_u, 176 int dst_stride_u, 177 uint8* dst_v, 178 int dst_stride_v, 179 int width, 180 int height); 133 181 134 182 // Convert ARGB to J400. (JPeg full range). 135 183 LIBYUV_API 136 int ARGBToJ400(const uint8* src_argb, int src_stride_argb, 137 uint8* dst_yj, int dst_stride_yj, 138 int width, int height); 184 int ARGBToJ400(const uint8* src_argb, 185 int src_stride_argb, 186 uint8* dst_yj, 187 int dst_stride_yj, 188 int width, 189 int height); 139 190 140 191 // Convert ARGB to I400. 141 192 LIBYUV_API 142 int ARGBToI400(const uint8* src_argb, int src_stride_argb, 143 uint8* dst_y, int dst_stride_y, 144 int width, int height); 193 int ARGBToI400(const uint8* src_argb, 194 int src_stride_argb, 195 uint8* dst_y, 196 int dst_stride_y, 197 int width, 198 int height); 145 199 146 200 // Convert ARGB to G. (Reverse of J400toARGB, which replicates G back to ARGB) 147 201 LIBYUV_API 148 int ARGBToG(const uint8* src_argb, int src_stride_argb, 149 uint8* dst_g, int dst_stride_g, 150 int width, int height); 202 int ARGBToG(const uint8* src_argb, 203 int src_stride_argb, 204 uint8* dst_g, 205 int dst_stride_g, 206 int width, 207 int height); 151 208 152 209 // Convert ARGB To NV12. 153 210 LIBYUV_API 154 int ARGBToNV12(const uint8* src_argb, int src_stride_argb, 155 uint8* dst_y, int dst_stride_y, 156 uint8* dst_uv, int dst_stride_uv, 157 int width, int height); 211 int ARGBToNV12(const uint8* src_argb, 212 int src_stride_argb, 213 uint8* dst_y, 214 int dst_stride_y, 215 uint8* dst_uv, 216 int dst_stride_uv, 217 int width, 218 int height); 158 219 159 220 // Convert ARGB To NV21. 160 221 LIBYUV_API 161 int ARGBToNV21(const uint8* src_argb, int src_stride_argb, 162 uint8* dst_y, int dst_stride_y, 163 uint8* dst_vu, int dst_stride_vu, 164 int width, int height); 222 int ARGBToNV21(const uint8* src_argb, 223 int src_stride_argb, 224 uint8* dst_y, 225 int dst_stride_y, 226 uint8* dst_vu, 227 int dst_stride_vu, 228 int width, 229 int height); 165 230 166 231 // Convert ARGB To NV21. 167 232 LIBYUV_API 168 int ARGBToNV21(const uint8* src_argb, int src_stride_argb, 169 uint8* dst_y, int dst_stride_y, 170 uint8* dst_vu, int dst_stride_vu, 171 int width, int height); 233 int ARGBToNV21(const uint8* src_argb, 234 int src_stride_argb, 235 uint8* dst_y, 236 int dst_stride_y, 237 uint8* dst_vu, 238 int dst_stride_vu, 239 int width, 240 int height); 172 241 173 242 // Convert ARGB To YUY2. 174 243 LIBYUV_API 175 int ARGBToYUY2(const uint8* src_argb, int src_stride_argb, 176 uint8* dst_yuy2, int dst_stride_yuy2, 177 int width, int height); 244 int ARGBToYUY2(const uint8* src_argb, 245 int src_stride_argb, 246 uint8* dst_yuy2, 247 int dst_stride_yuy2, 248 int width, 249 int height); 178 250 179 251 // Convert ARGB To UYVY. 180 252 LIBYUV_API 181 int ARGBToUYVY(const uint8* src_argb, int src_stride_argb, 182 uint8* dst_uyvy, int dst_stride_uyvy, 183 int width, int height); 253 int ARGBToUYVY(const uint8* src_argb, 254 int src_stride_argb, 255 uint8* dst_uyvy, 256 int dst_stride_uyvy, 257 int width, 258 int height); 184 259 185 260 #ifdef __cplusplus … … 188 263 #endif 189 264 190 #endif // INCLUDE_LIBYUV_CONVERT_FROM_ARGB_H_ NOLINT265 #endif // INCLUDE_LIBYUV_CONVERT_FROM_ARGB_H_
Note: See TracChangeset
for help on using the changeset viewer.