FreeRDP
Loading...
Searching...
No Matches
Pixel formats

PIXEL color ordering formats known. More...

Macros

#define PIXEL_FORMAT_ARGB32   FREERDP_PIXEL_FORMAT(32, FREERDP_PIXEL_FORMAT_TYPE_ARGB, 8, 8, 8, 8)
 
#define PIXEL_FORMAT_XRGB32   FREERDP_PIXEL_FORMAT(32, FREERDP_PIXEL_FORMAT_TYPE_ARGB, 0, 8, 8, 8)
 
#define PIXEL_FORMAT_ABGR32   FREERDP_PIXEL_FORMAT(32, FREERDP_PIXEL_FORMAT_TYPE_ABGR, 8, 8, 8, 8)
 
#define PIXEL_FORMAT_XBGR32   FREERDP_PIXEL_FORMAT(32, FREERDP_PIXEL_FORMAT_TYPE_ABGR, 0, 8, 8, 8)
 
#define PIXEL_FORMAT_BGRA32   FREERDP_PIXEL_FORMAT(32, FREERDP_PIXEL_FORMAT_TYPE_BGRA, 8, 8, 8, 8)
 
#define PIXEL_FORMAT_BGRX32   FREERDP_PIXEL_FORMAT(32, FREERDP_PIXEL_FORMAT_TYPE_BGRA, 0, 8, 8, 8)
 
#define PIXEL_FORMAT_RGBA32   FREERDP_PIXEL_FORMAT(32, FREERDP_PIXEL_FORMAT_TYPE_RGBA, 8, 8, 8, 8)
 
#define PIXEL_FORMAT_RGBX32   FREERDP_PIXEL_FORMAT(32, FREERDP_PIXEL_FORMAT_TYPE_RGBA, 0, 8, 8, 8)
 
#define PIXEL_FORMAT_BGRX32_DEPTH30    FREERDP_PIXEL_FORMAT(32, FREERDP_PIXEL_FORMAT_TYPE_BGRA, 0, 10, 10, 10)
 
#define PIXEL_FORMAT_RGBX32_DEPTH30    FREERDP_PIXEL_FORMAT(32, FREERDP_PIXEL_FORMAT_TYPE_RGBA, 0, 10, 10, 10)
 
#define PIXEL_FORMAT_RGB24   FREERDP_PIXEL_FORMAT(24, FREERDP_PIXEL_FORMAT_TYPE_ARGB, 0, 8, 8, 8)
 
#define PIXEL_FORMAT_BGR24   FREERDP_PIXEL_FORMAT(24, FREERDP_PIXEL_FORMAT_TYPE_ABGR, 0, 8, 8, 8)
 
#define PIXEL_FORMAT_RGB16   FREERDP_PIXEL_FORMAT(16, FREERDP_PIXEL_FORMAT_TYPE_ARGB, 0, 5, 6, 5)
 
#define PIXEL_FORMAT_BGR16   FREERDP_PIXEL_FORMAT(16, FREERDP_PIXEL_FORMAT_TYPE_ABGR, 0, 5, 6, 5)
 
#define PIXEL_FORMAT_ARGB15   FREERDP_PIXEL_FORMAT(16, FREERDP_PIXEL_FORMAT_TYPE_ARGB, 1, 5, 5, 5)
 
#define PIXEL_FORMAT_RGB15   FREERDP_PIXEL_FORMAT(15, FREERDP_PIXEL_FORMAT_TYPE_ARGB, 0, 5, 5, 5)
 
#define PIXEL_FORMAT_ABGR15   FREERDP_PIXEL_FORMAT(16, FREERDP_PIXEL_FORMAT_TYPE_ABGR, 1, 5, 5, 5)
 
#define PIXEL_FORMAT_BGR15   FREERDP_PIXEL_FORMAT(15, FREERDP_PIXEL_FORMAT_TYPE_ABGR, 0, 5, 5, 5)
 
#define PIXEL_FORMAT_RGB8   FREERDP_PIXEL_FORMAT(8, FREERDP_PIXEL_FORMAT_TYPE_A, 8, 0, 0, 0)
 
#define PIXEL_FORMAT_A4   FREERDP_PIXEL_FORMAT(4, FREERDP_PIXEL_FORMAT_TYPE_A, 4, 0, 0, 0)
 
#define PIXEL_FORMAT_MONO   FREERDP_PIXEL_FORMAT(1, FREERDP_PIXEL_FORMAT_TYPE_A, 1, 0, 0, 0)
 

Detailed Description

PIXEL color ordering formats known.

Macro Definition Documentation

◆ PIXEL_FORMAT_A4

#define PIXEL_FORMAT_A4   FREERDP_PIXEL_FORMAT(4, FREERDP_PIXEL_FORMAT_TYPE_A, 4, 0, 0, 0)

Definition at line 104 of file include/freerdp/codec/color.h.

◆ PIXEL_FORMAT_ABGR15

#define PIXEL_FORMAT_ABGR15   FREERDP_PIXEL_FORMAT(16, FREERDP_PIXEL_FORMAT_TYPE_ABGR, 1, 5, 5, 5)

Definition at line 97 of file include/freerdp/codec/color.h.

◆ PIXEL_FORMAT_ABGR32

#define PIXEL_FORMAT_ABGR32   FREERDP_PIXEL_FORMAT(32, FREERDP_PIXEL_FORMAT_TYPE_ABGR, 8, 8, 8, 8)

Definition at line 77 of file include/freerdp/codec/color.h.

◆ PIXEL_FORMAT_ARGB15

#define PIXEL_FORMAT_ARGB15   FREERDP_PIXEL_FORMAT(16, FREERDP_PIXEL_FORMAT_TYPE_ARGB, 1, 5, 5, 5)

Definition at line 95 of file include/freerdp/codec/color.h.

◆ PIXEL_FORMAT_ARGB32

#define PIXEL_FORMAT_ARGB32   FREERDP_PIXEL_FORMAT(32, FREERDP_PIXEL_FORMAT_TYPE_ARGB, 8, 8, 8, 8)

Definition at line 75 of file include/freerdp/codec/color.h.

◆ PIXEL_FORMAT_BGR15

#define PIXEL_FORMAT_BGR15   FREERDP_PIXEL_FORMAT(15, FREERDP_PIXEL_FORMAT_TYPE_ABGR, 0, 5, 5, 5)

Definition at line 98 of file include/freerdp/codec/color.h.

◆ PIXEL_FORMAT_BGR16

#define PIXEL_FORMAT_BGR16   FREERDP_PIXEL_FORMAT(16, FREERDP_PIXEL_FORMAT_TYPE_ABGR, 0, 5, 6, 5)

Definition at line 94 of file include/freerdp/codec/color.h.

◆ PIXEL_FORMAT_BGR24

#define PIXEL_FORMAT_BGR24   FREERDP_PIXEL_FORMAT(24, FREERDP_PIXEL_FORMAT_TYPE_ABGR, 0, 8, 8, 8)

Definition at line 90 of file include/freerdp/codec/color.h.

◆ PIXEL_FORMAT_BGRA32

#define PIXEL_FORMAT_BGRA32   FREERDP_PIXEL_FORMAT(32, FREERDP_PIXEL_FORMAT_TYPE_BGRA, 8, 8, 8, 8)

Definition at line 79 of file include/freerdp/codec/color.h.

◆ PIXEL_FORMAT_BGRX32

#define PIXEL_FORMAT_BGRX32   FREERDP_PIXEL_FORMAT(32, FREERDP_PIXEL_FORMAT_TYPE_BGRA, 0, 8, 8, 8)

Definition at line 80 of file include/freerdp/codec/color.h.

◆ PIXEL_FORMAT_BGRX32_DEPTH30

#define PIXEL_FORMAT_BGRX32_DEPTH30    FREERDP_PIXEL_FORMAT(32, FREERDP_PIXEL_FORMAT_TYPE_BGRA, 0, 10, 10, 10)

Definition at line 83 of file include/freerdp/codec/color.h.

112 {
113 UINT32 format;
114 UINT32 palette[256];
115 };
116typedef struct gdi_palette gdiPalette;
117
118 /* Compare two color formats but ignore differences in alpha channel.
119 */
120WINPR_ATTR_NODISCARD
121FREERDP_API DWORD FreeRDPAreColorFormatsEqualNoAlpha(DWORD first, DWORD second);
122
123/* Color Space Conversions: http://msdn.microsoft.com/en-us/library/ff566496/ */
124
125/***
126 *
127 * Get a string representation of a color
128 *
129 * @param format The pixel color format
130 *
131 * @return A string representation of format
132 */
133#if defined(WITH_FREERDP_DEPRECATED)
134#define GetColorFormatName(...) FreeRDPGetColorFormatName(__VA_ARGS__)
135#endif
136 WINPR_ATTR_NODISCARD
137 FREERDP_API const char* FreeRDPGetColorFormatName(UINT32 format);
138
146 WINPR_ATTR_NODISCARD
147 FREERDP_API uint32_t FreeRDPGetColorFromatFromName(const char* name);
148
149/***
150 *
151 * Converts a pixel color in internal representation to its red, green, blue
152 * and alpha components.
153 *
154 * @param color The color in format internal representation
155 * @param format one of PIXEL_FORMAT_* color format defines
156 * @param _r red color value
157 * @param _g green color value
158 * @param _b blue color value
159 * @param _a alpha color value
160 * @param palette palette to use (only used for 8 bit color!)
161 */
162#if defined(WITH_FREERDP_DEPRECATED)
163#define SplitColor(...) FreeRDPSplitColor(__VA_ARGS__)
164#endif
165 FREERDP_API void FreeRDPSplitColor(UINT32 color, UINT32 format, BYTE* _r, BYTE* _g, BYTE* _b,
166 BYTE* _a, const gdiPalette* palette);
167
168 /***
169 *
170 * Converts red, green, blue and alpha values to internal representation.
171 *
172 * @param format one of PIXEL_FORMAT_* color format defines
173 * @param r red color value
174 * @param g green color value
175 * @param b blue color value
176 * @param a alpha color value
177 *
178 * @return The pixel color in the desired format. Value is in internal
179 * representation.
180 */
181#if defined(WITH_FREERDP_DEPRECATED)
182#define GetColor(...) FreeRDPGetColor(__VA_ARGS__)
183#endif
184 WINPR_ATTR_NODISCARD
185 FREERDP_API UINT32 FreeRDPGetColor(UINT32 format, BYTE r, BYTE g, BYTE b, BYTE a);
186
187 /***
188 *
189 * Returns the number of bits the format format uses.
190 *
191 * @param format One of PIXEL_FORMAT_* defines
192 *
193 * @return The number of bits the format requires per pixel.
194 */
195#if defined(WITH_FREERDP_DEPRECATED)
196#define GetBitsPerPixel(...) FreeRDPGetBitsPerPixel(__VA_ARGS__)
197#endif
198 WINPR_ATTR_NODISCARD
199 static inline UINT32 FreeRDPGetBitsPerPixel(UINT32 format)
200 {
201 return (((format) >> 24) & 0x3F);
202 }
203
204 /***
205 * @param format one of PIXEL_FORMAT_* color format defines
206 *
207 * @return TRUE if the format has an alpha channel, FALSE otherwise.
208 */
209#if defined(WITH_FREERDP_DEPRECATED)
210#define ColorHasAlpha(...) FreeRDPColorHasAlpha(__VA_ARGS__)
211#endif
212 WINPR_ATTR_NODISCARD
213 static inline BOOL FreeRDPColorHasAlpha(UINT32 format)
214 {
215 UINT32 alpha = (((format) >> 12) & 0x0F);
216
217 if (alpha == 0)
218 return FALSE;
219
220 return TRUE;
221 }
222
223 /***
224 *
225 * Read a pixel from memory to internal representation
226 *
227 * @param src The source buffer
228 * @param format The PIXEL_FORMAT_* define the source buffer uses for encoding
229 *
230 * @return The pixel color in internal representation
231 */
232#if defined(WITH_FREERDP_DEPRECATED)
233#define ReadColor(...) FreeRDPReadColor(__VA_ARGS__)
234#endif
235 WINPR_ATTR_NODISCARD
236 FREERDP_API UINT32 FreeRDPReadColor(const BYTE* WINPR_RESTRICT src, UINT32 format);
237
238 /***
239 *
240 * Write a pixel from internal representation to memory
241 *
242 * @param dst The destination buffer
243 * @param format The PIXEL_FORMAT_* define for encoding
244 * @param color The pixel color in internal representation
245 *
246 * @return TRUE if successful, FALSE otherwise
247 */
248#if defined(WITH_FREERDP_DEPRECATED)
249#define WriteColor(...) FreeRDPWriteColor(__VA_ARGS__)
250#define WriteColorIgnoreAlpha(...) FreeRDPWriteColorIgnoreAlpha(__VA_ARGS__)
251#endif
252 FREERDP_API BOOL FreeRDPWriteColor(BYTE* WINPR_RESTRICT dst, UINT32 format, UINT32 color);
253
254 FREERDP_API BOOL FreeRDPWriteColorIgnoreAlpha(BYTE* WINPR_RESTRICT dst, UINT32 format,
255 UINT32 color);
256
257 /***
258 *
259 * Converts a pixel in internal representation format srcFormat to internal
260 * representation format dstFormat
261 *
262 * @param color The pixel color in srcFormat representation
263 * @param srcFormat The PIXEL_FORMAT_* of color
264 * @param dstFormat The PIXEL_FORMAT_* of the return.
265 * @param palette palette to use (only used for 8 bit color!)
266 *
267 * @return The converted pixel color in dstFormat representation
268 */
269#if defined(WITH_FREERDP_DEPRECATED)
270#define ConvertColor(...) FreeRDPConvertColor(__VA_ARGS__)
271#endif
272 WINPR_ATTR_NODISCARD
273 static inline UINT32 FreeRDPConvertColor(UINT32 color, UINT32 srcFormat, UINT32 dstFormat,
274 const gdiPalette* palette)
275 {
276 BYTE r = 0;
277 BYTE g = 0;
278 BYTE b = 0;
279 BYTE a = 0;
280 FreeRDPSplitColor(color, srcFormat, &r, &g, &b, &a, palette);
281 return FreeRDPGetColor(dstFormat, r, g, b, a);
282 }
283
284 /***
285 *
286 * Returns the number of bytes the format format uses.
287 *
288 * @param format One of PIXEL_FORMAT_* defines
289 *
290 * @return The number of bytes the format requires per pixel.
291 */
292#if defined(WITH_FREERDP_DEPRECATED)
293#define GetBytesPerPixel(...) FreeRDPGetBytesPerPixel(__VA_ARGS__)
294#endif
295 WINPR_ATTR_NODISCARD
296 static inline UINT32 FreeRDPGetBytesPerPixel(UINT32 format)
297 {
298 return (FreeRDPGetBitsPerPixel(format) + 7) / 8;
299 }
300
301#if !defined(WITHOUT_FREERDP_3x_DEPRECATED)
302 /***
303 *
304 * @param width width to copy in pixels
305 * @param height height to copy in pixels
306 * @param data source buffer, must be (nWidth + 7) / 8 bytes long
307 *
308 * @return A buffer allocated with winpr_aligned_malloc(width * height, 16)
309 * if successful, NULL otherwise.
310 */
311
312 WINPR_DEPRECATED_VAR("[since 3.21.0] use freerdp_glyph_convert_ex instead",
313 WINPR_ATTR_MALLOC(winpr_aligned_free, 1)
314 WINPR_ATTR_NODISCARD FREERDP_API BYTE* freerdp_glyph_convert(
315 UINT32 width, UINT32 height, const BYTE* WINPR_RESTRICT data));
316#endif
317
318 /***
319 *
320 * @param width width to copy in pixels
321 * @param height height to copy in pixels
322 * @param data source buffer, must be (nWidth + 7) / 8 bytes long
323 * @param len the length of \ref data in bytes
324 *
325 * @return A buffer allocated with winpr_aligned_malloc(width * height, 16)
326 * if successful, NULL otherwise.
327 * @since version 3.21.0
328 */
329 WINPR_ATTR_MALLOC(winpr_aligned_free, 1)
330 WINPR_ATTR_NODISCARD
331 FREERDP_API BYTE* freerdp_glyph_convert_ex(UINT32 width, UINT32 height,
332 const BYTE* WINPR_RESTRICT data, size_t len);
333
334 /***
335 *
336 * @param pDstData destination buffer
337 * @param DstFormat destination buffer format
338 * @param nDstStep destination buffer stride (line in bytes) 0 for default
339 * @param nXDst destination buffer offset x
340 * @param nYDst destination buffer offset y
341 * @param nWidth width to copy in pixels
342 * @param nHeight height to copy in pixels
343 * @param pSrcData source buffer, must be (nWidth + 7) / 8 bytes long
344 * @param backColor The background color in internal representation format
345 * @param foreColor The foreground color in internal representation format
346 * @param palette palette to use (only used for 8 bit color!)
347 *
348 * @return TRUE if success, FALSE otherwise
349 */
350 WINPR_ATTR_NODISCARD
351 FREERDP_API BOOL freerdp_image_copy_from_monochrome(
352 BYTE* WINPR_RESTRICT pDstData, UINT32 DstFormat, UINT32 nDstStep, UINT32 nXDst,
353 UINT32 nYDst, UINT32 nWidth, UINT32 nHeight, const BYTE* WINPR_RESTRICT pSrcData,
354 UINT32 backColor, UINT32 foreColor, const gdiPalette* WINPR_RESTRICT palette);
355
356 /***
357 *
358 * @param pDstData destination buffer
359 * @param DstFormat destination buffer format
360 * @param nDstStep destination buffer stride (line in bytes) 0 for default
361 * @param nXDst destination buffer offset x
362 * @param nYDst destination buffer offset y
363 * @param nWidth width to copy in pixels
364 * @param nHeight height to copy in pixels
365 * @param bitsColor icon's image data buffer
366 * @param cbBitsColor length of the image data buffer in bytes
367 * @param bitsMask icon's 1bpp image mask buffer
368 * @param cbBitsMask length of the image mask buffer in bytes
369 * @param colorTable icon's image color table
370 * @param cbColorTable length of the image color table buffer in bytes
371 * @param bpp color image data bits per pixel
372 *
373 * @return TRUE if success, FALSE otherwise
374 */
375 WINPR_ATTR_NODISCARD
376 FREERDP_API BOOL freerdp_image_copy_from_icon_data(
377 BYTE* WINPR_RESTRICT pDstData, UINT32 DstFormat, UINT32 nDstStep, UINT32 nXDst,
378 UINT32 nYDst, UINT16 nWidth, UINT16 nHeight, const BYTE* WINPR_RESTRICT bitsColor,
379 UINT16 cbBitsColor, const BYTE* WINPR_RESTRICT bitsMask, UINT16 cbBitsMask,
380 const BYTE* WINPR_RESTRICT colorTable, UINT16 cbColorTable, UINT32 bpp);
381
382 /***
383 *
384 * @param pDstData destination buffer
385 * @param DstFormat destination buffer format
386 * @param nDstStep destination buffer stride (line in bytes) 0 for default
387 * @param nXDst destination buffer offset x
388 * @param nYDst destination buffer offset y
389 * @param nWidth width to copy in pixels
390 * @param nHeight height to copy in pixels
391 * @param xorMask XOR mask buffer
392 * @param xorMaskLength XOR mask length in bytes
393 * @param andMask AND mask buffer
394 * @param andMaskLength AND mask length in bytes
395 * @param xorBpp XOR bits per pixel
396 * @param palette palette to use (only used for 8 bit color!)
397 *
398 * @return TRUE if success, FALSE otherwise
399 */
400 WINPR_ATTR_NODISCARD
401 FREERDP_API BOOL freerdp_image_copy_from_pointer_data(
402 BYTE* WINPR_RESTRICT pDstData, UINT32 DstFormat, UINT32 nDstStep, UINT32 nXDst,
403 UINT32 nYDst, UINT32 nWidth, UINT32 nHeight, const BYTE* WINPR_RESTRICT xorMask,
404 UINT32 xorMaskLength, const BYTE* WINPR_RESTRICT andMask, UINT32 andMaskLength,
405 UINT32 xorBpp, const gdiPalette* WINPR_RESTRICT palette);
406
407 /*** Copies an image from source to destination, converting if necessary.
408 * Source and destination may overlap.
409 *
410 * @param pDstData destination buffer
411 * @param DstFormat destination buffer format
412 * @param nDstStep destination buffer stride (line in bytes) 0 for default
413 * @param nXDst destination buffer offset x
414 * @param nYDst destination buffer offset y
415 * @param nWidth width to copy in pixels
416 * @param nHeight height to copy in pixels
417 * @param pSrcData source buffer
418 * @param SrcFormat source buffer format
419 * @param nSrcStep source buffer stride (line in bytes) 0 for default
420 * @param nXSrc source buffer x offset in pixels
421 * @param nYSrc source buffer y offset in pixels
422 * @param palette palette to use (only used for 8 bit color!)
423 * @param flags Image flipping flags FREERDP_FLIP_NONE et al
424 *
425 * @return TRUE if success, FALSE otherwise
426 */
427 WINPR_ATTR_NODISCARD
428 FREERDP_API BOOL freerdp_image_copy(BYTE* pDstData, DWORD DstFormat, UINT32 nDstStep,
429 UINT32 nXDst, UINT32 nYDst, UINT32 nWidth, UINT32 nHeight,
430 const BYTE* pSrcData, DWORD SrcFormat, UINT32 nSrcStep,
431 UINT32 nXSrc, UINT32 nYSrc,
432 const gdiPalette* WINPR_RESTRICT palette, UINT32 flags);
433
438 WINPR_ATTR_NODISCARD
439 FREERDP_API BOOL freerdp_image_copy_overlap(
440 BYTE* pDstData, DWORD DstFormat, UINT32 nDstStep, UINT32 nXDst, UINT32 nYDst, UINT32 nWidth,
441 UINT32 nHeight, const BYTE* pSrcData, DWORD SrcFormat, UINT32 nSrcStep, UINT32 nXSrc,
442 UINT32 nYSrc, const gdiPalette* WINPR_RESTRICT palette, UINT32 flags);
443
444 /*** Same as @ref freerdp_image_copy but only for non overlapping source and destination
445 * @since version 3.6.0
446 */
447 WINPR_ATTR_NODISCARD
448 FREERDP_API BOOL freerdp_image_copy_no_overlap(
449 BYTE* WINPR_RESTRICT pDstData, DWORD DstFormat, UINT32 nDstStep, UINT32 nXDst, UINT32 nYDst,
450 UINT32 nWidth, UINT32 nHeight, const BYTE* WINPR_RESTRICT pSrcData, DWORD SrcFormat,
451 UINT32 nSrcStep, UINT32 nXSrc, UINT32 nYSrc, const gdiPalette* WINPR_RESTRICT palette,
452 UINT32 flags);
453
454 /*** Scale an image to destination
455 *
456 * @param pDstData destination buffer
457 * @param DstFormat destination buffer format
458 * @param nDstStep destination buffer stride (line in bytes) 0 for default
459 * @param nXDst destination buffer offset x
460 * @param nYDst destination buffer offset y
461 * @param nDstWidth width of destination in pixels
462 * @param nDstHeight height of destination in pixels
463 * @param pSrcData source buffer
464 * @param SrcFormat source buffer format
465 * @param nSrcStep source buffer stride (line in bytes) 0 for default
466 * @param nXSrc source buffer x offset in pixels
467 * @param nYSrc source buffer y offset in pixels
468 * @param nSrcWidth width of source in pixels
469 * @param nSrcHeight height of source in pixels
470 *
471 * @return TRUE if success, FALSE otherwise
472 */
473 WINPR_ATTR_NODISCARD
474 FREERDP_API BOOL freerdp_image_scale(BYTE* WINPR_RESTRICT pDstData, DWORD DstFormat,
475 UINT32 nDstStep, UINT32 nXDst, UINT32 nYDst,
476 UINT32 nDstWidth, UINT32 nDstHeight,
477 const BYTE* WINPR_RESTRICT pSrcData, DWORD SrcFormat,
478 UINT32 nSrcStep, UINT32 nXSrc, UINT32 nYSrc,
479 UINT32 nSrcWidth, UINT32 nSrcHeight);
480
495 WINPR_ATTR_NODISCARD
496 FREERDP_API BOOL freerdp_image_fill(BYTE* WINPR_RESTRICT pDstData, DWORD DstFormat,
497 UINT32 nDstStep, UINT32 nXDst, UINT32 nYDst, UINT32 nWidth,
498 UINT32 nHeight, UINT32 color);
499
500#define FREERDP_IMAGE_FILL_IGNORE_ALPHA 1
520 WINPR_ATTR_NODISCARD
521 FREERDP_API BOOL freerdp_image_fill_ex(BYTE* WINPR_RESTRICT pDstData, DWORD DstFormat,
522 UINT32 nDstStep, UINT32 nXDst, UINT32 nYDst,
523 UINT32 nWidth, UINT32 nHeight, UINT32 color,
524 UINT32 flags);
525
526#ifdef __cplusplus
527}
528#endif
529
530#endif /* FREERDP_CODEC_COLOR_H */

◆ PIXEL_FORMAT_MONO

#define PIXEL_FORMAT_MONO   FREERDP_PIXEL_FORMAT(1, FREERDP_PIXEL_FORMAT_TYPE_A, 1, 0, 0, 0)

Definition at line 107 of file include/freerdp/codec/color.h.

◆ PIXEL_FORMAT_RGB15

#define PIXEL_FORMAT_RGB15   FREERDP_PIXEL_FORMAT(15, FREERDP_PIXEL_FORMAT_TYPE_ARGB, 0, 5, 5, 5)

Definition at line 96 of file include/freerdp/codec/color.h.

◆ PIXEL_FORMAT_RGB16

#define PIXEL_FORMAT_RGB16   FREERDP_PIXEL_FORMAT(16, FREERDP_PIXEL_FORMAT_TYPE_ARGB, 0, 5, 6, 5)

Definition at line 93 of file include/freerdp/codec/color.h.

◆ PIXEL_FORMAT_RGB24

#define PIXEL_FORMAT_RGB24   FREERDP_PIXEL_FORMAT(24, FREERDP_PIXEL_FORMAT_TYPE_ARGB, 0, 8, 8, 8)

Definition at line 89 of file include/freerdp/codec/color.h.

◆ PIXEL_FORMAT_RGB8

#define PIXEL_FORMAT_RGB8   FREERDP_PIXEL_FORMAT(8, FREERDP_PIXEL_FORMAT_TYPE_A, 8, 0, 0, 0)

Definition at line 101 of file include/freerdp/codec/color.h.

◆ PIXEL_FORMAT_RGBA32

#define PIXEL_FORMAT_RGBA32   FREERDP_PIXEL_FORMAT(32, FREERDP_PIXEL_FORMAT_TYPE_RGBA, 8, 8, 8, 8)

Definition at line 81 of file include/freerdp/codec/color.h.

◆ PIXEL_FORMAT_RGBX32

#define PIXEL_FORMAT_RGBX32   FREERDP_PIXEL_FORMAT(32, FREERDP_PIXEL_FORMAT_TYPE_RGBA, 0, 8, 8, 8)

Definition at line 82 of file include/freerdp/codec/color.h.

◆ PIXEL_FORMAT_RGBX32_DEPTH30

#define PIXEL_FORMAT_RGBX32_DEPTH30    FREERDP_PIXEL_FORMAT(32, FREERDP_PIXEL_FORMAT_TYPE_RGBA, 0, 10, 10, 10)

Definition at line 85 of file include/freerdp/codec/color.h.

◆ PIXEL_FORMAT_XBGR32

#define PIXEL_FORMAT_XBGR32   FREERDP_PIXEL_FORMAT(32, FREERDP_PIXEL_FORMAT_TYPE_ABGR, 0, 8, 8, 8)

Definition at line 78 of file include/freerdp/codec/color.h.

◆ PIXEL_FORMAT_XRGB32

#define PIXEL_FORMAT_XRGB32   FREERDP_PIXEL_FORMAT(32, FREERDP_PIXEL_FORMAT_TYPE_ARGB, 0, 8, 8, 8)

Definition at line 76 of file include/freerdp/codec/color.h.