History log of /haiku/src/kits/translation/BitmapStream.cpp
Revision Date Author Comments
# 095b3813 03-Apr-2023 PulkoMandy <pulkomandy@pulkomandy.tk>

BitmapStream: fix grayscale AVIF decoding

BitmapStream creates a BBitmap without specifying a bytes per row, but
then check the bytes per row matches the header. It is better to ask
BBitmap for the desired bytes per row to avoid any difference in
padding.

Change-Id: Ie1facfd423ad888a14757a0fffc9e8cdf72ef832
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6301
Tested-by: Automation <automation@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 057b69a7 24-May-2019 Augustin Cavalier <waddlesplash@gmail.com>

Deskbar & Translation: Use assignment operator instead of memcpy.


# 278bcb57 19-Jan-2013 John Scipione <jscipione@gmail.com>

Remove docs from BitmapStream.cpp


# 3fed1a15 05-Aug-2012 Alex Smith <alex@alex-smith.me.uk>

Get app_server working on x86_64.

With this commit, app_server now compiles and runs at boot! Nothing
particularly interesting happens, just the blue background and a mouse
pointer. Remote backends are broken and not compiled in, see #8834.
Note that it won't be possible to build this quite yet, need to get
the FreeType package uploaded.


# 6ee17ffb 24-Jun-2011 Axel Dörfler <axeld@pinc-software.de>

* Fixed incorrect usage of "new" - thanks korli!


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


# ee918f63 24-Jun-2011 Axel Dörfler <axeld@pinc-software.de>

* This fixes the BitmapStream issues identified by #7740; the actual problem
persists to be debugged further.


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


# 8780d207 27-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* Rewrote header.
* Cleaned up sources.


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


# fc1ca2da 25-Apr-2008 Jérôme Duval <korli@users.berlios.de>

style cleanup


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


# 0f89f0ae 29-Mar-2005 Axel Dörfler <axeld@pinc-software.de>

Fixed warnings, minor cleanup.


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


# af79a4ed 27-May-2004 haydentech <haydentech@nowhere.fake>

Fixed BBitmapStream return types that didn't match the class definition


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


# c9cccf23 29-Oct-2003 Matthew Wilber <mwilber@nowhere.fake>

Changed BBitmapStream to behave more like Be's implementation while still checking for bad input.


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


# bb87c791 11-Jan-2003 Matthew Wilber <mwilber@nowhere.fake>

Cleaned up a few little things


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


# 9f9e1f50 10-Jan-2003 Matthew Wilber <mwilber@nowhere.fake>

A beta tester reported that PackageBuilder failed to load when the OBOS libtranslation.so was used. This was because the OBOS BBitmapStream was missing a protected function. I implemented the protected function (SwapHeader) and changed the class to use it instead of the previous functions that I wrote to provide similar behavior.


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


# e9651c05 17-Oct-2002 Matthew Wilber <mwilber@nowhere.fake>

fixed spelling and changed casting from C-Style to new C++ style


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


# d359a8f9 12-Aug-2002 Matthew Wilber <mwilber@nowhere.fake>

Changed ReadAt() return codes so that when ReadAt() is called with pos >= the size of the BBitmap, it returns B_ERROR instead of B_BAD_VALUE. The BBitmapTranslator expects B_ERROR to be returned in this case and will return an error code as the result to the Translate call if B_ERROR is not returned.


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


# cbb87528 01-Aug-2002 Matthew Wilber <mwilber@nowhere.fake>

added more/better error checking/handling, changed variables to more appropriate types, updated comments, changed some return codes


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


# 52a38012 08-Jul-2002 ejakowatz <ejakowatz@nowhere.fake>

It is accomplished ...


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


# 278bcb57e76d634a01c8d1e594fd1167375c07c8 19-Jan-2013 John Scipione <jscipione@gmail.com>

Remove docs from BitmapStream.cpp


# 3fed1a15f58e8d6fe6b492f3b94bb3625ffeddbd 05-Aug-2012 Alex Smith <alex@alex-smith.me.uk>

Get app_server working on x86_64.

With this commit, app_server now compiles and runs at boot! Nothing
particularly interesting happens, just the blue background and a mouse
pointer. Remote backends are broken and not compiled in, see #8834.
Note that it won't be possible to build this quite yet, need to get
the FreeType package uploaded.


# 6ee17ffbe8d726bc0abdf71591012602c7d7a186 24-Jun-2011 Axel Dörfler <axeld@pinc-software.de>

* Fixed incorrect usage of "new" - thanks korli!


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


# ee918f63650b748bf4e744ce317e7ecceb96a7ed 24-Jun-2011 Axel Dörfler <axeld@pinc-software.de>

* This fixes the BitmapStream issues identified by #7740; the actual problem
persists to be debugged further.


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


# 8780d2073d7a38e12283b707e17fb1c02cfd0ee6 27-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* Rewrote header.
* Cleaned up sources.


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


# fc1ca2da5cfcb00ffdf791606d5ae97fdd58a638 25-Apr-2008 Jérôme Duval <korli@users.berlios.de>

style cleanup


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


# 0f89f0ae14361af0726d4346ba4bbd98dd647895 29-Mar-2005 Axel Dörfler <axeld@pinc-software.de>

Fixed warnings, minor cleanup.


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


# af79a4edf24bb5bc718b1818283005f631574490 27-May-2004 haydentech <haydentech@nowhere.fake>

Fixed BBitmapStream return types that didn't match the class definition


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


# c9cccf232adc051314d082fbf1bbd38f475e2d1f 29-Oct-2003 Matthew Wilber <mwilber@nowhere.fake>

Changed BBitmapStream to behave more like Be's implementation while still checking for bad input.


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


# bb87c791cb9222b6986037a6f5c079405810ce25 11-Jan-2003 Matthew Wilber <mwilber@nowhere.fake>

Cleaned up a few little things


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


# 9f9e1f50fb19ae9388029f8caf2edc0ff5ef0402 10-Jan-2003 Matthew Wilber <mwilber@nowhere.fake>

A beta tester reported that PackageBuilder failed to load when the OBOS libtranslation.so was used. This was because the OBOS BBitmapStream was missing a protected function. I implemented the protected function (SwapHeader) and changed the class to use it instead of the previous functions that I wrote to provide similar behavior.


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


# e9651c05a18977699f15bf9f45ee79af7314ac21 17-Oct-2002 Matthew Wilber <mwilber@nowhere.fake>

fixed spelling and changed casting from C-Style to new C++ style


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


# d359a8f9ef5fe6c8ac1d8c1bd0d1e7c412586bf9 12-Aug-2002 Matthew Wilber <mwilber@nowhere.fake>

Changed ReadAt() return codes so that when ReadAt() is called with pos >= the size of the BBitmap, it returns B_ERROR instead of B_BAD_VALUE. The BBitmapTranslator expects B_ERROR to be returned in this case and will return an error code as the result to the Translate call if B_ERROR is not returned.


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


# cbb87528776f463a52be1c494cce6e6584db9e19 01-Aug-2002 Matthew Wilber <mwilber@nowhere.fake>

added more/better error checking/handling, changed variables to more appropriate types, updated comments, changed some return codes


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


# 52a380120846174213ccce9c4aab0dda17c72083 08-Jul-2002 ejakowatz <ejakowatz@nowhere.fake>

It is accomplished ...


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