On 2011-02-14 7:55 AM, D M German wrote:
> I tried to compile your branch and failed:
> READINT32((pt_int32)chlength);// Length of following channel data.
> keen in mind these operations are implemented as macros, and therefore,
> are subject to different parsing rules than if they were functions.
Understood that a macro parses different. At first I had two variables chlength
and chlength64 but I simplified the code to just use the 64bit version and
renamed to the simpler name. This builds fine on my Windows machine. It would
good to know the issue before trying to wrap both 32 & 64 into a single macro.
> one more thing, I think it is a great idea to support large files, but
> the current processing method for creating the PSDs is not really
> practical for multilayer files. Basically, the current algorithm is
> O(n^2) which means it will take _forever_ to create a huge Photoshop
> files with many layers. This might be a good time to modify that area of
> libpano and make it possible to write all layers at once.
We need to do what you did to the resource section. write everything then go
back and fill in the length. This would also be a step towards writing
compressed data. It also should not be necessary to read the entire tiff file
into memory before writing it out to the PSD file.