Subject: [Boost-bugs] [Boost C++ Libraries] #8429: [gil] Reading TGA images with origin in upper left-hand corner.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-04-11 12:45:41
#8429: [gil] Reading TGA images with origin in upper left-hand corner.
------------------------------+---------------------------------------------
Reporter: anonymous | Owner: hljin
Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: GIL
Version: Boost 1.54.0 | Severity: Problem
Keywords: |
------------------------------+---------------------------------------------
Hi,
I know the TGA support is work in progress, but...
I have some TGA files that have bit 5 set in the "Image Descriptor". This
causes ``reader_backend::read_header`` to throw:
"Unsupported descriptor for targa file"
The quick-n-dirty fix is just to mask out bit 5 in the check and update
``reader::apply`` such that ``read_data`` operates on a
``flipped_up_down_view`` if the bit is set.
Unfortunately I don't have any sample images that I can attach (legal
reasons), but when I do I will.
Anyway hope the above is of some use.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8429> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:12 UTC