summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_format_access.py
AgeCommit message (Collapse)Author
2010-03-01util: Generate linear<->sRGB conversion tables.Michal Krol
2010-02-26util: Code generate functions to pack and unpack a single pixel.José Fonseca
Should work correctly for all pixel formats except SRGB formats. Generated code made much simpler by defining the pixel format as a C structure. For example this is the generated structure for PIPE_FORMAT_B6UG5SR5S_NORM: union util_format_b6ug5sr5s_norm { uint16_t value; struct { int r:5; int g:5; unsigned b:6; } chan; }; Not used everywhere yet because it seems compiled code is slower than bitshift arithmetic by some misterious reason. So we should generate bitshift arithmetic at least for the simple UNORM pixel formats.
2010-02-26util: Factor some code into u_format_parse.pyJosé Fonseca
2010-02-26util: Use python names consistent with u_format.hJosé Fonseca
2010-02-24util: Kill array vs arith layouts. Revamp UTIL_FORMAT_LAYOUT_xxx.José Fonseca
Too confusing. I now can get the same information through other means.
2010-02-24util: Refactor some code.José Fonseca
2010-02-24util: Factor out the code to shorten a format name.José Fonseca
2010-02-24util: Handle correctly 24bit formats.José Fonseca
2009-12-15util: Fix unity value for swizzle 1.José Fonseca
It should be 255 for ubytes, and not 1. Thanks Michal for spotting this.
2009-08-30util: Auto generate pixel format accessor functions fromJosé Fonseca
This has several advantages over the u_ - not hand written - no intermediate memcpy of raw pixels - supports 4 ubytes in addition to floats - no need to pass a pipe_transfer It also has (hopefully temporary) limitations: - no support for YUV - no support for SRGB