Axel Dörfler
5ff65f9b40
Added a work-around for broken ICO files that report a wrong icon height.
...
Fixed a wrong return code in case writing file data failed.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11327 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-10 18:52:52 +00:00
Axel Dörfler
c59cdc87d9
Added some not-yet-connected configuration check boxes.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11300 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-09 18:28:55 +00:00
Axel Dörfler
36129be090
Fixed/implemented support for reading and writing true color ICO images.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11295 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-09 16:52:39 +00:00
Axel Dörfler
79b649126a
Fine tuned the alpha channel handling - it should now work as expected,
...
even with stupid apps like ArtPaint that use the alpha channel with
B_RGB32 bitmaps.
May now need some work for apps that use B_RGB32 as it should be used, though :-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11289 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-08 16:58:16 +00:00
Axel Dörfler
2b05778c88
Translator for Windows ICO files with read/write support. Not yet complete, but
...
seems to work for all cases I tested it with :)
Now you can finally create favicon.ico files under BeOS :))
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11288 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-08 15:12:57 +00:00
Matthew Wilber
dfb8c585c6
Updated with new Translation Kit version macro names.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11257 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-02-05 18:22:17 +00:00
Axel Dörfler
b0e067b804
Fixed a bug in write_unicode_char() - it returned the size of the character
...
not how many bytes were actually written (which could differ with newlines
and indention).
Now use the new rgb_color == operator instead of a memcmp().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10922 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-21 02:00:16 +00:00
Axel Dörfler
0bf9534d45
Now stacks up group text_runs correctly - previously, the run on the stack could
...
still be changed by the new group (which lead, surprisingly, to wrong results :).
Added \line and \'hh commands (first part of charset support beyond plain ASCII).
Renamed GetStyle() to PrepareTextRun().
Added some support functions to copy and compare text_runs.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10577 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-03 23:55:39 +00:00
Axel Dörfler
37ec8144ed
The \'hh command is now also correctly interpreted (it's not a standard command).
...
The Text class no longer likes '\n' and '\r' and will throw those away happily.
parse_integer() can now parse integers with different radix.
Improved debug output a bit.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10576 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-03 23:46:08 +00:00
Axel Dörfler
8bf6d9ff50
No longer uses the RTF::Iterator to process the document; it now subclasses
...
the RTF::Worker for this task (TextOutput).
Cleaned the sources a bit, TextOutput now also contains the functionality
of the former AppServerConnection class.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10569 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-03 10:13:32 +00:00
Axel Dörfler
63c6a88ba0
Added a simple RTF::Worker class that can be subclassed in order to work
...
with the RTF document step by step.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10568 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-03 10:10:46 +00:00
Axel Dörfler
9932029846
Extended support of RTF features. Ie. the conversion/group context is now
...
maintained, and should work more or less correctly.
Monospaced fonts can now be chosen (the font table is partially parsed),
italics works, and many other things.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10567 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-03 08:38:48 +00:00
Axel Dörfler
e815584a4f
We're not really yet version 1.0.0 :)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10566 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-03 08:34:23 +00:00
Axel Dörfler
e709e3665e
The parser now uses a BBufferIO stream to speed things up.
...
Text::Parse() now converts bigger chunks at once.
Default RTF element destination is visible in text now, only known
other destinations are marked that way (using a lookup table).
Added virtual method IsDefinitionDelimiter() to Element to make
definition iterating nicer.
";" now always forms a separated Text object - this fixes the
definition handling.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10565 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-03 08:33:19 +00:00
Axel Dörfler
64214d4cce
Mostly adapted to the refactored RTF classes hierarchy.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10564 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-03 02:04:44 +00:00
Axel Dörfler
a7e0bca0f7
Refactored the code: put everything in the RTF namespace, separated group
...
functions from the former RTFElement (now RTF::Element).
Put the parsing basics into a separate class RTF::Parser (used to be in
the static RTFHeader::Parse()).
RTF::Header is now always correctly set to RTF::TEXT_DESTINATION.
Some minor other related changes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10563 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-03 02:03:34 +00:00
Axel Dörfler
40d9768b92
Added a simple RTF translator.
...
It only supports colors and bold fonts beside plain ASCII text, but it's a
start.
The RTF* class hierarchy should get a cleanup, though (and will soon).
You'll need Haiku's StyledEdit to make use of this translator.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10562 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-01-02 23:28:30 +00:00
shatty
202669bf0c
suppress warnings for imported code
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10136 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-22 00:48:40 +00:00
shatty
a680194343
suppress warnings on imported code
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10102 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-21 09:12:08 +00:00
shatty
4d13b0dee0
openbeos packages become haiku packages
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9979 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-11-17 00:39:28 +00:00
Matthew Wilber
846b4a22f5
Corrected comment to match new location of StreamBuffer
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9484 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-24 16:42:45 +00:00
Matthew Wilber
8a2b9ae571
Updated with the new location of the StreamBuffer files
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9333 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-10-13 21:31:29 +00:00
Matthew Wilber
7fb3685ba6
Fixed low-depth grayscale issue, PNGTranslator can now read grayscale PNG images that are less than 8 bpp
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7324 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-26 23:09:19 +00:00
Matthew Wilber
efbdb56bb0
Added comments to clarify transparency features of PNG images
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7300 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-23 21:48:17 +00:00
Matthew Wilber
e2ed67d283
removed debugger call
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7272 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-21 00:08:28 +00:00
Matthew Wilber
9f33f8e014
Disabled support for grayscale images with bit depths less than 8. This is because libpng does not support these images when it does gray to RGB conversion. Will need to enhance libpng or add workarounds to PNGTranslator to fix this issue.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7260 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-04-20 19:59:10 +00:00
Matthew Wilber
5a253979d3
Fixed window title to match Be's version, removed bits->bits translation code (this should be handled in the BaseTranslator.cpp anyway) and removed hardcoding of config view bg color
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6883 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 01:12:13 +00:00
Matthew Wilber
2058c6c754
Changed window title to be consistent with the other translators
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6881 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 01:09:40 +00:00
Matthew Wilber
3d5b4968bd
Fixed window title to match Be's version
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6879 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 01:08:35 +00:00
Matthew Wilber
c1a96ad26c
Made window title just like Be's, removed bits->bits translation code (should never be called, this case should be handled in BaseTranslator.cpp), fixed hardcoding of config view bg color
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6876 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 01:06:40 +00:00
Matthew Wilber
edd8878638
Changed to use shared translator code
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6873 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-03 01:03:52 +00:00
Matthew Wilber
54abea93f0
Changed to use shared translator code, these files are no longer needed
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6864 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-02 23:49:10 +00:00
Matthew Wilber
862e3ac371
Changed to use shared translator code
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6863 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-02 23:48:26 +00:00
Matthew Wilber
a1fd38b277
changed to use shared translator code
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6842 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-01 04:38:21 +00:00
Matthew Wilber
c36e6575c8
moved translate_direct_copy function from PNGTranslator to BaseTranslator
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6841 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-01 04:23:26 +00:00
Matthew Wilber
d02fdb8eb5
Fixed bug preventing PNGTranslator from opening PNG images, fixed version number text in config panel
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6840 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-01 03:16:34 +00:00
Matthew Wilber
40bf8c0ae5
Changed to use shared translator code
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6839 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-01 02:58:18 +00:00
Matthew Wilber
8d21fd135f
Corrected a few comments
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6834 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-01 01:43:25 +00:00
Matthew Wilber
ec5034e71f
Changed to use shared translator code
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6833 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-01 01:42:01 +00:00
Matthew Wilber
8241861213
improved magic number variable names
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6832 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-03-01 01:40:02 +00:00
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
Matthew Wilber
fae8d042d5
added PPMTranslator
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3550 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-17 00:15:26 +00:00
Matthew Wilber
8397ee2c8b
added support for Fax Group 3 TIFF images that use the EOL ends on a byte boundary option and changed identify string from "TIFF Image*" to "TIFF image*" (more like Be's)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3523 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-06-15 16:43:54 +00:00
Matthew Wilber
96a13ed121
added checking for memory allocation failure in MakeConfigurationView
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3344 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-26 18:07:29 +00:00
Matthew Wilber
c30acb53ce
fix for the segment violation that is caused when the system color map is unavailable and set deleted pointers to NULL just to be safe
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3313 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-25 15:18:38 +00:00
Matthew Wilber
9edca8f79e
added more checking for corrupt headers, reduced code redundancy, made a number of small tweaks
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3304 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-24 23:02:19 +00:00
Matthew Wilber
955d1422bc
fixed TGA to TGA translation so that it no longer fails to write the entire file
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3274 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-21 02:03:59 +00:00
Matthew Wilber
59cd2ee4ef
added new line at end of file
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3273 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-21 02:02:10 +00:00
Matthew Wilber
83b8537ccb
fixed issue with PHOTO_WHITEISZERO inverted grayscale images, added support for 1-D Group 3 Fax compressed images, added support for fill order 2 for monochrome images
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3176 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-04 21:47:42 +00:00
Matthew Wilber
a11d841c28
eliminated the debugging printf statements
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3107 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-28 02:44:44 +00:00
Matthew Wilber
58100bab8b
changed the Identify string to report information about the type of the TIFF image
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3105 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-25 23:41:36 +00:00
Matthew Wilber
39749b49af
added support for reading uncompressed, packbits encoded, 4, 8-bit palette based TIFF images
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3099 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-23 03:11:05 +00:00
Matthew Wilber
08c96d28c5
added support for reading 8, 4-bit uncompressed, packbits encoded grayscale TIFF images
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3092 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-22 01:51:33 +00:00
Matthew Wilber
91ae8a2423
changed TiffDetails to a class so that clean up would be easier and added logic to handle palette images (though they will not open yet)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3089 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-21 03:41:33 +00:00
Matthew Wilber
5cd3d8f8e3
change TiffDetails to a class so that cleanup would be easier
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3088 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-21 03:40:23 +00:00
Matthew Wilber
ac914e611c
Fixed Huffman decoding issue. The loop was exiting without waiting for a terminating code.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3079 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-19 17:22:27 +00:00
Matthew Wilber
c61687ba31
Added support for Huffman compression, though, it doesn't work fully yet
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3071 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-18 03:19:36 +00:00
shatty
293c3378f3
add newline to end of file
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3067 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-14 03:54:47 +00:00
shatty
fe5cc7b493
add newline to end of file
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3066 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-14 01:56:41 +00:00
Matthew Wilber
2cb55578bd
initial check in for structure used to decode Huffman encoded TIFF images
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3064 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-13 04:10:36 +00:00
Matthew Wilber
da10aec84a
Added support for reading uncompressed / packbits compressed monochrome TIFF images
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3061 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-08 03:10:01 +00:00
Matthew Wilber
08a14aa7fc
removed StreamBuffer files from this directory so that they would only exist in one place: the TGATranslator directory
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3060 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-07 02:43:16 +00:00
Matthew Wilber
ac626b9112
updated so that StreamBuffer code only exists in TGATranslator directory
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3059 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-07 02:41:47 +00:00
Matthew Wilber
f44805d148
updated StreamBuffer with features used by TIFFTranslator, updated TGATranslator to use new version of this class
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3058 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-07 02:40:41 +00:00
Matthew Wilber
028368527a
Added code for converting uncompressed / packbits compressed RGB and CMYK TIFF images to the Be Bitmap format
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3055 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-06 05:12:26 +00:00
Matthew Wilber
711386ad0e
Changed TiffIfd to use exceptions which makes it much more convenient to work with
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3050 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-04-01 05:58:22 +00:00
Matthew Wilber
1116d6c72b
Still doesn't quite do anything yet, but now I have code to identify TIFF images and read TIFF fields
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3048 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-31 03:23:34 +00:00
Matthew Wilber
129a87e630
initial check-in for TIFFTranslator (doesn't do anything yet)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2887 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-12 00:54:11 +00:00
Matthew Wilber
e6cc97f061
added tifftranslator
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2886 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-12 00:52:29 +00:00
Matthew Wilber
c5943e23d7
fixed copy/paste issue
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2885 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-03-12 00:51:41 +00:00
Ingo Weinhold
e13a428ed3
Added macro definition for use of a BeOS compatible BSlider header.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2787 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-21 23:24:38 +00:00
Matthew Wilber
8c714454f0
JasPer library base headers, for JPEG2000 Translator contributed by Shard
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2773 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-20 02:58:14 +00:00
Matthew Wilber
824f2204d0
JasPer JPEG2000 library files, initial check in, JPEG2000Translator contributed by Shard,
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2772 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-20 02:56:45 +00:00
Matthew Wilber
a3ecdde295
initial check in, JPEG2000Translator contributed by Shard
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2771 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-20 02:54:47 +00:00
Matthew Wilber
48063caa16
added the jpeg2000translator directory
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2770 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-20 02:50:59 +00:00
Ingo Weinhold
be9c961f2b
Added definition of macro for R5 backwards compatibility (needed for our BSlider header).
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2731 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-16 23:53:03 +00:00
Matthew Wilber
ade5705f88
ILG JPEG library, modified by Shard for the JPEGTranslator
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2716 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-15 15:09:33 +00:00
Matthew Wilber
1d97f2e234
JPEGTranslator - written by Shard
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2715 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-15 15:06:44 +00:00
Matthew Wilber
1ed64d8a1f
added jpegtranslator
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2714 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-15 15:03:22 +00:00
Matthew Wilber
c8e261ddfa
Added some comments, corrected existing comments and changed the output capability of the TGATranslator
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2702 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-14 01:36:09 +00:00
Matthew Wilber
f1ce28c0a7
Changed the copyright notice and added an include so that it would compile properly with makeppc
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2670 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-02-09 20:39:27 +00:00
Matthew Wilber
1ab4cb426e
Changed to use simple assignment in places where I used memcpy() to copy only 1 byte of data
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2355 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-05 18:41:46 +00:00
Matthew Wilber
d390baeede
added comments, made minor changes to error handling, changed a buffer type from char to uint8
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2346 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-01-02 02:31:49 +00:00
Matthew Wilber
381271419d
added some comments, replaced some hard-coded numbers, made some minor logic changes
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2316 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-30 01:02:51 +00:00
Matthew Wilber
32898e2a71
made [Input | Output]Formats() better handle the case where out_count is NULL and made the functions better handle the cas
...
e when the number of input or output formats changes
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2315 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-29 14:57:27 +00:00
Matthew Wilber
d4dd380232
made [Input | Output]Formats() better handle the case where out_count is NULL and made the functions better handle the case when the number of input or output formats changes
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2314 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-29 14:56:53 +00:00
Matthew Wilber
fb11b6e180
added code so that when text is translated from a plain BFile (with a styles attribute) the STXTTranslator casts the input to a BFile and uses the attributes to write the style information to the output stream
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2308 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-28 03:30:18 +00:00
Matthew Wilber
6eed52aa01
added code so that the Translate() function actually Translates. It now translates to/from plain and styled text. It passes most of the Translate tests, but Be's STXTTranslator includes font information with some of the styled text files it generates, and I haven't decided how to deal with that yet.
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2294 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-25 03:18:52 +00:00
Matthew Wilber
aa29ed9aa1
fixed failure to properly identify styled files with no 'STYL' data, changed plain text identify to search first 64 bytes for unsupported characters
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2290 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-23 03:01:02 +00:00
Matthew Wilber
ce1e628f36
added a little bit of actual functionality
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2258 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-16 03:21:35 +00:00
Matthew Wilber
be4c146060
initial checkin for STXTTranslator (StyledEdit files). does nothing yet, but should compile
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2255 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-15 13:54:17 +00:00
Matthew Wilber
8efc7be48e
initial checkin
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2254 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-15 13:53:07 +00:00
Matthew Wilber
af532bce19
added STXTTranslator (StyledEdit files)
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2253 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-15 13:51:33 +00:00
Matthew Wilber
2674719b33
added several classes that I forgot to add earlier
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2247 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-15 01:21:16 +00:00
Matthew Wilber
3885ec4fe4
added TGATranslator
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2246 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-15 01:20:15 +00:00
Matthew Wilber
a0bf29354d
added a few comments
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2231 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-12 03:53:49 +00:00
Matthew Wilber
3b42b980c8
added comments and a bit more error checking
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2230 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-12-12 03:52:57 +00:00
Matthew Wilber
78b736e8bc
I'm not sure why that return was there in the first place
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1967 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-16 22:06:03 +00:00
Matthew Wilber
0f2c902adb
I'm not sure what that return was doing there in the first place
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1966 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-11-16 22:05:26 +00:00
Matthew Wilber
940ff9b93c
changed C-style casting to the C++ standard style casting
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1553 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-17 01:23:05 +00:00
Matthew Wilber
7266c9b6ec
forget paranthesis in two places, next time, I won't forget to try to compile before I check in code
...
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1552 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-10-17 01:06:28 +00:00