History log of /haiku/src/tests/kits/interface/bbitmap/BBitmapTester.cpp
Revision Date Author Comments
# bb187c91 15-Sep-2021 Jérôme Duval <jerome.duval@gmail.com>

interface: add colorspaces support for RGB48 and RGBA64

these colorspaces are packed as RGB or RGBA, not BGR or BGRA.
RGB48_BIG and RGBA64 only differ in the endianess of the channel the 2-byte value.

this is a big difference with RGB24_BIG and RGBA32_BIG, in which case _BIG
means the order is RGB (BGR) and not BGR (BGRA).
BGR48, BGRA64 could indeed be added, if needed.

I chose 0x11 and 0x12 arbitrarily, but given the order of channels 0x1011
and 0x1012 might make more sense. This would mean using another bit for "real"
bigendian colorspaces.

Only the color conversion to 32-bits is implemented.

Tested with the RAWTranslator modified to output 16bpp with success.

Found some references in enum AVPixelFormat in libavutil/pixfmt.h.

Change-Id: I4b023dec85d01f1e63e1b053139e5bb5d263a0e0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4468
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# 76a5f348 26-Oct-2002 beveloper <beveloper@nowhere.fake>

simplified include path


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1689 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fa822d72 01-Sep-2002 Ingo Weinhold <ingo_weinhold@gmx.de>

First unit tests for BBitmap (for a constructor and SetBits()/ImportBits()).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@954 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 76a5f3484abd9a293483b45f40455c0b58e6f3f0 26-Oct-2002 beveloper <beveloper@nowhere.fake>

simplified include path


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1689 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fa822d727ddad54c214f2ce7aeec67a51e877169 01-Sep-2002 Ingo Weinhold <ingo_weinhold@gmx.de>

First unit tests for BBitmap (for a constructor and SetBits()/ImportBits()).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@954 a95241bf-73f2-0310-859d-f6bbb57e9c96