History log of /haiku/src/add-ons/translators/jpeg2000/JPEG2000Translator.cpp
Revision Date Author Comments
# caf3ea90 28-Sep-2022 Augustin Cavalier <waddlesplash@gmail.com>

Remove unnecessary SetExplicitPreferredSize from translators using layouts.


# 5f61e00a 12-Feb-2022 Dale Cieslak <dcieslak@yahoo.com>

Add-Ons/Translators: Set About text for JPEG & JPEG2000 to B_PANEL_TEXT_COLOR

The body text on the About tabs for the JPEG & JPEG2000 translators are
BTextViews and so the default fg color is B_DOCUMENT_TEXT_COLOR. This
patch forces them to use B_PANEL_TEXT_COLOR to match the rest of the panel.

As a side note, trying to set the fg color in every translator via
SetHighUIColor seems to have no effect and they seem to all default to
using B_PANEL_TEXT_COLOR already (aside from the BTextViews in this
commit).

Fixes #15941

Change-Id: Ia97dcce082d7f1666c61a8d5ecefa3bcd5845b96
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4960
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# e5928728 16-Sep-2021 Franck LeCodeur <cassisian@gmail.com>

JPEG2000Translator: Fix -Werror warnings

This fix is for ticket #9460 to potentially enable -Werror for JPEG2000Translator.
Original warning: 'char* strncpy(char*, const char*, size_t)' specified bound equals destination size [-Wstringop-truncation]

- Replaced several occurrences of same string with existing constant.
- Use strcmp instead of strncmp as one string is guaranteed to be null-terminated
- Replace strncpy use with strlcpy as seen in other code places.

Change-Id: I5e7ed0de10dc40447a64fe77a7909af577e128ac
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4472
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>


# cd6365c7 17-May-2018 Jérôme Duval <jerome.duval@gmail.com>

style fixes


# f0650dc9 09-Dec-2015 looncraz <looncraz@looncraz.net>

preferences: Convert to using Set*UIColor.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Patches 0023-0037 from looncraz, unmodified.


# 3292b902 02-May-2015 Humdinger <humdingerb@gmail.com>

Unify version output ("v" vs "Version", sentence casing.


# d9c440a5 24-Apr-2015 Janus <janus2@ymail.com>

DataTranslations: use layout, standard format.

* Fix jpeg, jpeg2000.
* Partialy fixes #11999.


# fdfe641d 26-Aug-2014 Jérôme Duval <jerome.duval@gmail.com>

JPEG2000Translator: use outsourced Jasper package

* fixes for API changes with newer version of Jasper.


# 2b861dd2 10-Aug-2012 Alex Smith <alex@alex-smith.me.uk>

Added translator add-ons.


# 7d48219b 10-Jan-2012 Hannah Boneß <hannah@animux.de>

Update layout building code in translators

update layout builder code to new api in:
* src/add-ons/translators/raw
* src/add-ons/translators/exr
* src/add-ons/translators/hvif
* src/add-ons/translators/tga
* src/add-ons/translators/webp
* src/add-ons/translators/gif
* src/add-ons/translators/sgi
* src/add-ons/translators/tiff
* src/add-ons/translators/jpeg
* src/add-ons/translators/jpeg2000
* src/add-ons/translators/ppm

Signed-off-by: Alex Wilson <yourpalal2@gmail.com>


# 546208a5 16-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

More catalog-related cleanup.

* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.


# 1da233a7 19-Feb-2011 Siarzhuk Zharski <zharik@gmx.li>

Yet another localization fix in Data Translators.
Partialy fixes #7129.



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


# 2e49ff35 19-Feb-2011 Siarzhuk Zharski <zharik@gmx.li>

Fixing localization of JPEG and JPEG2000 translation add-ons.
Partially fixing #7229.



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


# 70d59669 04-Feb-2011 Siarzhuk Zharski <zharik@gmx.li>

Applied following patches proposed by Jorma Karvonen:
#7135 #7140 #7141 #7145 #7186 #7188 #7191
#7136 #7187 #7184 #7185 #7192 #7138 #7139

with some changes and exclusions:
- all attempts to localize "fprintf(stderr,..." and "printf(..."
replaced by _untranslated_ "syslog(LOG_ERR ...";
- following *Translator.rdef files, that were not added in mentioned patches
were additionally created:
SGI, TIFF, RAW, RTF, PPM, WebP, EXR, STXT, WonderBrush, GIF, TGA;
- some small fixes for consistent catalogs building.

Thank you, Jorma! Please check. ;-)



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


# c44966df 24-Jan-2011 Jérôme Duval <korli@users.berlios.de>

Applied patch from Karvjorm (ticket #7154): Localization for JPEG2000 translator.


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


# bf243977 18-Jan-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Made local variables actually local.
Both JPEGTranslator and JPEG200Translator were "exporting" gSettings symbol,
which when loaded within a app (like Paladin) exporting the same global symbol
was leading to a symbol resolution error. See #7114 for details.



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


# 94a204f0 25-Apr-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Alex Wilson (yourpalal): Convert the JPEG2000 Translator to use the
BaseTranslator framework and layout management. Big coding style clean up, too.
Thanks a bunch, great work!


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


# fcc3e627 13-Jan-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Humdiner:
Changed strings in add-ons to sentence case. This is case-add-ons.diff
from #5169.


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


# bdaaeb0c 06-Aug-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Applied the logic in r31871 to jpeg2000 translator too. Fixes bug #4139.
Also cleaned up.


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


# c212b8f6 28-Jul-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Applied patch by richy_rich which removes BAlerts from jpeg
and jpeg2000 translators.
Fixes bug #3044


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


# c095606e 03-Nov-2008 Ryan Leavengood <leavengood@gmail.com>

Fixed #3043, which was listed as a ShowImage bug but really was a bug in
several translators which used the incorrect MIME type for the base Be Bitmap
Format. Please when adding translators use image/x-be-bitmap, not just
x-be-bitmap. Though I suppose the if statement in ShowImage could be changed to
only look for x-be-bitmap at the end of the string when filtering, I think this
is the proper fix.

While I was editing the translators I also made the naming more consistant by
adding the translator name in parenthesis after Be Bitmap Format for those that
did not have it.


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


# 6bda235a 17-Oct-2008 Stefano Ceccherini <stefano.ceccherini@gmail.com>

some gcc4 warning fixes

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


# 13eaf8fa 29-May-2007 Stephan Aßmus <superstippi@gmx.de>

* fixed one potential leak
* truncated lines to 80 chars


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


# 117da2d7 28-Oct-2006 Axel Dörfler <axeld@pinc-software.de>

* Applied the changes I made to the JPEG translator to the JPEG2000 translator as well.
* Further cleanup.


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


# b0bc48fb 19-May-2006 Axel Dörfler <axeld@pinc-software.de>

Some more GCC 4 and PPC fixes.
* Mesa doesn't compile yet, as some PPC specific stuff seems to be
missing, Philippe?
* Cortex and some other stuff has been marked x86-only, although
it's more of a "GCC 2.95.3"-only.
* I'm not sure if it's a bug in GCC 4, or if that's what the C
standard demands, but sizeof(some_type::some_field) is not
valid anymore :-/


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


# 109d4881 27-Apr-2006 Stephan Aßmus <superstippi@gmx.de>

changed translator name to JPEG[2000] Images to be in line with all the other image translators

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


# 56c5bd3a 11-Mar-2006 Axel Dörfler <axeld@pinc-software.de>

Fixed warnings.


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


# 9949213a 19-Oct-2005 Stephan Aßmus <superstippi@gmx.de>

removed the redundant "translator" from the folder names, fixed some warnings in the JPEG2000Translator

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


# 3292b90274c44e1485bdb127e31bbbcf80938a6a 02-May-2015 Humdinger <humdingerb@gmail.com>

Unify version output ("v" vs "Version", sentence casing.


# d9c440a536ed06bdcb5ece683cd86be2c250c72b 24-Apr-2015 Janus <janus2@ymail.com>

DataTranslations: use layout, standard format.

* Fix jpeg, jpeg2000.
* Partialy fixes #11999.


# fdfe641dcafdc85fdd85e97a17e44bb439f1e675 26-Aug-2014 Jérôme Duval <jerome.duval@gmail.com>

JPEG2000Translator: use outsourced Jasper package

* fixes for API changes with newer version of Jasper.


# 2b861dd2a5a8129154c0c3003d816d2912890c27 10-Aug-2012 Alex Smith <alex@alex-smith.me.uk>

Added translator add-ons.


# 7d48219b470e22b5147f0ae9adc8ee2049c981d3 10-Jan-2012 Hannah Boneß <hannah@animux.de>

Update layout building code in translators

update layout builder code to new api in:
* src/add-ons/translators/raw
* src/add-ons/translators/exr
* src/add-ons/translators/hvif
* src/add-ons/translators/tga
* src/add-ons/translators/webp
* src/add-ons/translators/gif
* src/add-ons/translators/sgi
* src/add-ons/translators/tiff
* src/add-ons/translators/jpeg
* src/add-ons/translators/jpeg2000
* src/add-ons/translators/ppm

Signed-off-by: Alex Wilson <yourpalal2@gmail.com>


# 546208a53940a26c6379c48a7854ade1a8250fc5 16-Apr-2012 Oliver Tappe <zooey@hirschkaefer.de>

More catalog-related cleanup.

* rename B_TRANSLATE_CONTEXT to B_TRANSLATION_CONTEXT and
B_TRANSLATE_WITH_CONTEXT to B_TRANSLATE_CONTEXT, squashing a TODO
* adjust all uses of both macros in Haiku's source tree
* use correct header guard for collecting/Catalog.h

The renamed macros require adjustments to all external applications
using catalogs.


# 1da233a71fe159b71ce7437b9acb5252adff4754 19-Feb-2011 Siarzhuk Zharski <zharik@gmx.li>

Yet another localization fix in Data Translators.
Partialy fixes #7129.



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


# 2e49ff35c518cb55348afb16521ab879696ec43b 19-Feb-2011 Siarzhuk Zharski <zharik@gmx.li>

Fixing localization of JPEG and JPEG2000 translation add-ons.
Partially fixing #7229.



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


# 70d5966963513ff47a456ba70b7d2eec0f99648d 04-Feb-2011 Siarzhuk Zharski <zharik@gmx.li>

Applied following patches proposed by Jorma Karvonen:
#7135 #7140 #7141 #7145 #7186 #7188 #7191
#7136 #7187 #7184 #7185 #7192 #7138 #7139

with some changes and exclusions:
- all attempts to localize "fprintf(stderr,..." and "printf(..."
replaced by _untranslated_ "syslog(LOG_ERR ...";
- following *Translator.rdef files, that were not added in mentioned patches
were additionally created:
SGI, TIFF, RAW, RTF, PPM, WebP, EXR, STXT, WonderBrush, GIF, TGA;
- some small fixes for consistent catalogs building.

Thank you, Jorma! Please check. ;-)



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


# c44966dff2813393aba0d3f8cdfa46abb2595948 24-Jan-2011 Jérôme Duval <korli@users.berlios.de>

Applied patch from Karvjorm (ticket #7154): Localization for JPEG2000 translator.


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


# bf243977ffd34197ad7c0820c2da5d21abea0402 18-Jan-2011 Philippe Houdoin <philippe.houdoin@gmail.com>

Made local variables actually local.
Both JPEGTranslator and JPEG200Translator were "exporting" gSettings symbol,
which when loaded within a app (like Paladin) exporting the same global symbol
was leading to a symbol resolution error. See #7114 for details.



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


# 94a204f083efcdfde918177393ae56e5bd968e7b 25-Apr-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Alex Wilson (yourpalal): Convert the JPEG2000 Translator to use the
BaseTranslator framework and layout management. Big coding style clean up, too.
Thanks a bunch, great work!


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


# fcc3e627e1aedc4075deb952c66068d542fe9abe 13-Jan-2010 Stephan Aßmus <superstippi@gmx.de>

Patch by Humdiner:
Changed strings in add-ons to sentence case. This is case-add-ons.diff
from #5169.


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


# bdaaeb0c374ad315c4becde3544f6b10508bc999 06-Aug-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Applied the logic in r31871 to jpeg2000 translator too. Fixes bug #4139.
Also cleaned up.


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


# c212b8f649238f9e9b477216695b7a6a715ec9ca 28-Jul-2009 Stefano Ceccherini <stefano.ceccherini@gmail.com>

Applied patch by richy_rich which removes BAlerts from jpeg
and jpeg2000 translators.
Fixes bug #3044


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


# c095606e75fe3c978e4749fd2ee5738a44c9af16 03-Nov-2008 Ryan Leavengood <leavengood@gmail.com>

Fixed #3043, which was listed as a ShowImage bug but really was a bug in
several translators which used the incorrect MIME type for the base Be Bitmap
Format. Please when adding translators use image/x-be-bitmap, not just
x-be-bitmap. Though I suppose the if statement in ShowImage could be changed to
only look for x-be-bitmap at the end of the string when filtering, I think this
is the proper fix.

While I was editing the translators I also made the naming more consistant by
adding the translator name in parenthesis after Be Bitmap Format for those that
did not have it.


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


# 6bda235a592737fa04aefa756026f32892810715 17-Oct-2008 Stefano Ceccherini <stefano.ceccherini@gmail.com>

some gcc4 warning fixes

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


# 13eaf8fa008eb7d413e091f33b38eadf2c528451 29-May-2007 Stephan Aßmus <superstippi@gmx.de>

* fixed one potential leak
* truncated lines to 80 chars


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


# 117da2d75f3b92fc1ac4b008012a4374fc2918bf 28-Oct-2006 Axel Dörfler <axeld@pinc-software.de>

* Applied the changes I made to the JPEG translator to the JPEG2000 translator as well.
* Further cleanup.


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


# b0bc48fbd360f10cee1856e03393c63dcbdd180f 19-May-2006 Axel Dörfler <axeld@pinc-software.de>

Some more GCC 4 and PPC fixes.
* Mesa doesn't compile yet, as some PPC specific stuff seems to be
missing, Philippe?
* Cortex and some other stuff has been marked x86-only, although
it's more of a "GCC 2.95.3"-only.
* I'm not sure if it's a bug in GCC 4, or if that's what the C
standard demands, but sizeof(some_type::some_field) is not
valid anymore :-/


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


# 109d4881b5a17a781b613b365dc8689467e0c4ee 27-Apr-2006 Stephan Aßmus <superstippi@gmx.de>

changed translator name to JPEG[2000] Images to be in line with all the other image translators

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


# 56c5bd3a77bad3d09c44a5fc81697c686e24db0b 11-Mar-2006 Axel Dörfler <axeld@pinc-software.de>

Fixed warnings.


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


# 9949213a25979d177b420bc71891c2bff02a331d 19-Oct-2005 Stephan Aßmus <superstippi@gmx.de>

removed the redundant "translator" from the folder names, fixed some warnings in the JPEG2000Translator

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