Commit Graph

207 Commits

Author SHA1 Message Date
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