2013-10-07 09:38:43 |
Daniel van Vugt |
bug |
|
|
added bug |
2013-10-07 09:40:45 |
Daniel van Vugt |
description |
MirPixelFormat does not encode details of the pixel format. This is annoying because we frequently need to switch/case for each supported pixel format. What would be nicer is encoding the instructions for formatting a pixel into the pixelformat itself. Something like...
#define PIXEL_FORMAT(redsize, redshift, greensize, greenshift, bluesize, blueshift, alphasize, alphashift) \
( \
(redsize << 28) | \
(redshift << 24) | \
(greensize << 20) | \
(greenshift << 16) | \
(bluesize << 12) | \
(blueshift << 8) | \
(alphasize << 4) | \
(alphashift << 0) | \
)
#define ABGR8888 PIXEL_FORMAT(8, 0, 8, 8, 8, 16, 8, 24)
#define XBGR8888 PIXEL_FORMAT(8, 0, 8, 8, 8, 16, 0, 24)
#define HAS_ALPHA_CHANNEL(pf) ((pf) & 0xf0) |
MirPixelFormat does not encode details of the pixel format. This is annoying because we frequently need to switch/case for each supported pixel format. What would be nicer is encoding the instructions for formatting a pixel into the pixelformat itself. Something like...
#define PIXEL_FORMAT(redsize, redshift, greensize, greenshift, bluesize, blueshift, alphasize, alphashift) ...
#define ABGR8888 PIXEL_FORMAT(8, 0, 8, 8, 8, 16, 8, 24)
#define XBGR8888 PIXEL_FORMAT(8, 0, 8, 8, 8, 16, 0, 24) |
|
2013-10-17 06:39:44 |
Daniel van Vugt |
summary |
MirPixelFormat does not encode details of the pixel format |
[feature] MirPixelFormat should encode details of the pixel format |
|
2013-10-17 06:39:49 |
Daniel van Vugt |
tags |
|
feature |
|
2013-10-18 05:44:03 |
Daniel van Vugt |
summary |
[feature] MirPixelFormat should encode details of the pixel format |
[enhancement] MirPixelFormat should encode details of the pixel format |
|
2013-10-18 05:44:09 |
Daniel van Vugt |
tags |
feature |
enhancement |
|
2013-12-17 03:02:49 |
Daniel van Vugt |
description |
MirPixelFormat does not encode details of the pixel format. This is annoying because we frequently need to switch/case for each supported pixel format. What would be nicer is encoding the instructions for formatting a pixel into the pixelformat itself. Something like...
#define PIXEL_FORMAT(redsize, redshift, greensize, greenshift, bluesize, blueshift, alphasize, alphashift) ...
#define ABGR8888 PIXEL_FORMAT(8, 0, 8, 8, 8, 16, 8, 24)
#define XBGR8888 PIXEL_FORMAT(8, 0, 8, 8, 8, 16, 0, 24) |
MirPixelFormat does not encode details of the pixel format. This is annoying because we frequently need to switch/case for each supported pixel format. What would be nicer is encoding the instructions for formatting a pixel into the pixelformat itself. Then we could query the pixel format value for information such as:
bytes per pixel
red shift
red bits
alpha bits
colour space
etc. |
|
2014-05-19 19:47:27 |
Josh Arenson |
mir: assignee |
|
Josh Arenson (josharenson) |
|
2015-07-02 08:22:19 |
Daniel van Vugt |
summary |
[enhancement] MirPixelFormat should encode details of the pixel format |
[enhancement] Add API for querying attributes of a MirPixelFormat |
|
2015-07-02 08:22:29 |
Daniel van Vugt |
mir: assignee |
Josh Arenson (josharenson) |
|
|
2015-07-02 08:23:22 |
Daniel van Vugt |
description |
MirPixelFormat does not encode details of the pixel format. This is annoying because we frequently need to switch/case for each supported pixel format. What would be nicer is encoding the instructions for formatting a pixel into the pixelformat itself. Then we could query the pixel format value for information such as:
bytes per pixel
red shift
red bits
alpha bits
colour space
etc. |
MirPixelFormat does not encode details of the pixel format. This is annoying because we frequently need to switch/case for each supported pixel format. |
|
2015-07-02 08:23:40 |
Daniel van Vugt |
mir: status |
New |
Triaged |
|
2015-07-02 08:23:44 |
Daniel van Vugt |
mir: importance |
Medium |
Low |
|
2015-10-13 13:58:12 |
Gerry Boland |
mir: importance |
Low |
Medium |
|
2017-11-03 16:20:02 |
Michał Sawicz |
mir (Ubuntu): importance |
Undecided |
Medium |
|
2017-11-03 16:20:02 |
Michał Sawicz |
mir (Ubuntu): status |
New |
Triaged |
|