Add "Pixel format" to status line (#208)#224
Add "Pixel format" to status line (#208)#224mattipee wants to merge 4 commits intoopenastroproject:masterfrom
Conversation
|
I retract my pull request for bitDepth, pixelFormat is more useful. My implementation uses a higher-order macro, sorry. No longer specify integer values for the formats, it's automatic. It goes like this...
Called with Called with The old You lose the debug-ability of printing out a numerical format value and scanning the list of #defines, but can instead just print out |
|
All that said, I chose to do it with the lightest-touch-possible... one could define all the pixel format strings manually or even go as far as to define a structure of pixel format properties, but instead |
…against the change proposed in openastroproject#224
An alternative to this which may be more useful in fact might be to substitute a string representation of pixel format for bit depth which in itself is still a little opaque:
eg state.mainWindow->setPixFormatValue( OA_PIX_FMT_STRING( format ) );
Happy to make this become that instead...