Re: [Tracker] PATCH: Faster PNG extractor
- From: Jonatan Pålsson <jonatan palsson pelagicore com>
- To: Martyn Russell <martyn lanedo com>
- Cc: tracker-list gnome org
- Subject: Re: [Tracker] PATCH: Faster PNG extractor
- Date: Fri, 28 Jun 2013 08:30:26 +0200
Hi,
The main reason for not modifying the original extractor is that I want to keep it as a fallback if this new extractor fails due to an unexpected file structure. Since png-faster tries to skip to the end of the file by estimating the location of the metadata contained in the end of the file using the file size & IDAT chunk size, I predict it may fail more often than the original. Since tracker-extract handles these failures gracefully, this is not a problem however.
The best way I can see to get a similar functionality in to the existing extractor would be to modify libpng to allow skipping to the end of the file (right now there is a comment in the existing png extractor noting that this functionality is missing from the library), but since reading the PNG format is relatively simple I opted to put this functionality in the extractor rather than first patching libpng (I am not sure how much work this would be, either).
What are your thoughts on keeping png-faster as a separate, optional extractor module which can be enabled when extraction speed is of primary concern?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]