Matthew Wilber
51c15c1cad
Changed TGATranslator to use shared translator code instead of duplicating code
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6818 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 19:32:34 +00:00
Matthew Wilber
c56079fb22
Initial checking for shared translator code. Many of the translators share many lines of the same code. This code helps eliminate duplicate code, and should help the process of making translators easier
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6817 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-29 19:29:57 +00:00
Matthew Wilber
8dee39bf9a
Removed GPL text as permission was obtained from Michael Sweet to allow this derivative work to be distributed under the OpenBeOS license.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6477 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-03 00:52:18 +00:00
Matthew Wilber
b309d0de79
Fixed version number calculations, disabled headerOnly and dataOnly options
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6474 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-03 00:29:01 +00:00
Matthew Wilber
f29673f8ae
Initial check in for Stephan Assmus' SGITranslator
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6472 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-02 23:55:38 +00:00
Matthew Wilber
fbf9f5c51e
added SGITranslator
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6471 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-02 23:53:54 +00:00
Matthew Wilber
9f92d9c62b
Corrected the quality/capability values which I set when I misunderstood them.
...
These values are described best in the BeBook: TranslatorRoster.html
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6130 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-18 04:26:25 +00:00
Matthew Wilber
2a90041c24
Fixed Find/Replace mix-up
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6101 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-16 02:09:38 +00:00
Matthew Wilber
462cf13ce7
Added Stephan Assmus' TIFF writing code. Now the TIFFTranslator can write TIFF images with a few different compression options.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6100 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-16 02:04:30 +00:00
Matthew Wilber
023968853e
Changed to ignore dubious values in the fileSize and imagesize fields. These fields are not needed in the actual decoding of BMP images anyway. Some Windows image viewers are equally forgiving with these fields, as there are programs that write dubious BMPs.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6091 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-15 02:03:48 +00:00
shatty
028ec37e0b
use static libs instead of direct object linking
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6028 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-12 03:23:41 +00:00
Matthew Wilber
ccb32f11fb
Updated Jamfile to use zlib version 1.2.1
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6025 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-12 02:20:59 +00:00
Matthew Wilber
7d181dbc57
Created openbeos-translationkit-cvs Package
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6014 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-11 07:15:48 +00:00
Matthew Wilber
6439a8fc6d
Changed to always write out full image, ignoring the headerOnly/dataOnly settings.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5995 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-09 02:45:24 +00:00
Matthew Wilber
293357ae2a
Changed to always write out the entire image and ignore the headerOnly/dataOnly settings.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5994 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-09 02:34:20 +00:00
Matthew Wilber
2c00fcbb62
Fixed QuickRes/headerOnly issue by ignoring headerOnly/dataOnly settings and always writting out the whole image.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5993 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-09 02:23:49 +00:00
Matthew Wilber
e17553b84d
Fix for blank PNG images appearing in QuickRes. Apparently, when QuickRes asks for headerOnly, it really means that it wants the entire image.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5992 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-09 02:06:38 +00:00
Matthew Wilber
176d835a41
Fixed version number format and calculations
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5988 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-08 04:17:30 +00:00
Matthew Wilber
deef293945
Fixed version number format and calculations
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5987 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-08 03:54:17 +00:00
Matthew Wilber
caff577d6a
Fixed version format and calculations
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5986 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-08 03:47:09 +00:00
Matthew Wilber
0e292355ba
Fixed version format and calculations
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5985 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-08 03:41:53 +00:00
Matthew Wilber
ead4b1fa60
Fixed version number format and calculations
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5984 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-08 03:35:54 +00:00
Matthew Wilber
66cc749dfc
Fixed PNGTranslator Jamfile so that you can now build the PNGTranslator using Jam.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5982 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 23:40:52 +00:00
Matthew Wilber
18d77fc7c0
Finally added PNGTranslator
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5981 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 23:39:12 +00:00
Matthew Wilber
e108d38cc1
Made translator able to tollerate interlaced PNG images that error in the call to png_read_end(), but have image data that is valid. This was the problem that prevented programs like BeBattle and Eric's Ultimate Solitare from working with the OBOS PNGTranslator.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5956 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-07 04:01:37 +00:00
Matthew Wilber
8fc7439cef
Changed BMPTranslator to be less picky about the msheader.imagesize value. It now accepts the value if it is not less than the minimum possible imagesize.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5923 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-06 02:35:44 +00:00
Matthew Wilber
c98aac40f6
Updated libtiff to release version 3.6.1
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5882 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-01-03 15:22:08 +00:00
Matthew Wilber
1abb86b2ed
Initial check in for GIFTranslator, generously donated by Daniel Switkin
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5639 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-09 22:27:58 +00:00
Matthew Wilber
c04dd9b71c
Added Daniel Switkin's GIFTranslator
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5638 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-12-09 22:26:03 +00:00
Matthew Wilber
ee727d5674
Added a setting which allows the user to ignore alpha data from TGA files. This is necessary when TGAs are created from certain programs that lie, saying they have an alpha channel, when they actually don't. Also, fixed usage of alpha data from color mapped TGA images. Some images were misread as having an alpha channel when they didn't, and some images were misread as not having an alpha channel, when they did.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5292 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-09 21:09:34 +00:00
Matthew Wilber
1cb6ca0473
Fixed issue that caused some 32-bit TGA files to be converted to B_RGB32 (no alpha) instead of B_RGBA32 (alpha)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5284 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-11-08 17:03:06 +00:00
Matthew Wilber
b95d8a76bc
Fixed bits->bits translation so that it no longer errors out due to reads at the end of the stream
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5166 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-25 22:05:23 +00:00
Matthew Wilber
9568e684a8
Fixed bits->bits translation so that it no longer errors out due to reading at the end of the stream
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5165 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-10-25 22:04:19 +00:00
Matthew Wilber
a5eede3a67
Fix for PNGTranslator erroring on bad data following image data
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4779 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-09-21 19:25:30 +00:00
Matthew Wilber
e789715f25
No longer returns B_NO_TRANSLATOR if it suspects the data is not text data, instead, it returns B_OK with a low capability rating. This is so that STXTTranslator can be used with OBOS StyledEdit
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4255 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-09 13:40:51 +00:00
Matthew Wilber
ab361b2efb
Changed identify string to include index of identified page and count of pages so that even when this translator is used with programs that don't support multiple pages, the user can see how many pages the TIFF has and what page is currently active. Also, fixed issue when ioExtension is supplied, but does not contain "/documentIndex" which caused B_NO_TRANSLATOR to be returned.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4217 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-03 13:04:07 +00:00
Matthew Wilber
15f9dcadef
Fixed issue with multipage tiffs where if page 1 was requested, the last page of the tiff would be retrieved
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4215 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-08-03 01:57:33 +00:00
Matthew Wilber
8e3121a82b
Changed to use Be's SupportDefs.h for integer typedefs instead of having tiff.h figure out what they should be. This prevents the typdefs from being both defined by Be and by libtiff, eliminating compiler warnings.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4176 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-31 23:09:27 +00:00
Matthew Wilber
c9f996e088
Added support for bits->PNG conversion, both interlaced and non-interlaced
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4110 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-27 14:38:24 +00:00
Matthew Wilber
3783dc6eab
Cleaned up PNG->bits code, added PNG->PNG code, added PNG info to config panel, added PNG interlace option to config panel, added saving of settings
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4086 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-26 19:55:37 +00:00
Matthew Wilber
010b9fa36b
Changed to check for PNG signature
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4082 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-26 02:40:14 +00:00
Matthew Wilber
34d6a0f784
Added read support for (hopefully) every variety of PNG that libpng supports
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4070 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-25 03:22:53 +00:00
Matthew Wilber
98fde4e893
Initial check in for PNGTranslator -- based on libpng library. It probably doesn't build properly with Jam yet, so I've left it out of the Jamfile in the parent directory. Currently, it can read some PNG images, but it falsly identifies everything that is not a Be Bitmap image as a PNG image.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4052 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-22 02:56:56 +00:00
Matthew Wilber
a1cd43f854
using ByteOrder.h caused redfining of many types (like int32, uint32), so I switched to endian.h
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4028 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-20 14:34:15 +00:00
Matthew Wilber
566eea5a61
Changed input / output formats to match values from Be's R5 PPMTranslator and made cosmetic changes to config panel
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4023 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-20 01:31:53 +00:00
Matthew Wilber
78c02e525a
Initial check in for TIFFTranslator - libtiff ( http://www.libtiff.org/ ) version. Old non-lib based TIFFTranslator remains, but is no longer part of build process. This translator provides the same TIFF reading capability as Be's version (as far as I can tell) with the addition of support for multi-page TIFF files.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4016 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-19 16:40:33 +00:00
Matthew Wilber
67ae0ccc24
Changed to use new libtifftranslator for building the TIFFTranslator. Old TIFFTranslator still remains, but is not built from this Jamfile
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4015 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-19 16:35:02 +00:00
Matthew Wilber
a08b357442
Added support for multi-page TIFF files
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3913 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-09 03:19:07 +00:00
Matthew Wilber
6cef630541
Added reading of next IFD entry offset in order to make it convenient to read all IFD entries in a TIFF file
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3897 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-07-08 04:12:14 +00:00
Matthew Wilber
60afeeca54
initial check in for PPMTranslator from BeOS R5 sample-code folder
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3551 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-17 00:17:30 +00:00