[Gimp-developer] XCF file format

2003-02-03 Thread Jean-Yves Lamoureux
Hi,
After googling and watching the ML archives, I was looking for a 
documentation of the XCF file format.
I begun an XCF loader (for a later use in mplayer), but I lack clear 
docs, as source code is a bit rusty to read like that :)
So if someone has this ...

Thanks a lot


--
Jean-Yves Lamoureux
Workless software developper
jylam at lnxscene dot org

___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer


Re: [Gimp-developer] XCF file format

2003-02-03 Thread Sven Neumann
Hi,

Jean-Yves Lamoureux <[EMAIL PROTECTED]> writes:

> After googling and watching the ML archives, I was looking for a
> documentation of the XCF file format.

You might have already read the earlier discussions about this subject
then.

> I begun an XCF loader (for a later use in mplayer), but I lack clear
> docs, as source code is a bit rusty to read like that :)

Why would a movie player like mplayer want to use a file format which
is considered to be used-by-The-GIMP-only?


Salut, Sven
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer



Re: [Gimp-developer] XCF file format

2003-02-03 Thread Jean-Yves Lamoureux
Sven Neumann wrote:


You might have already read the earlier discussions about this subject
then.
 

By hand, search engine is broken


I begun an XCF loader (for a later use in mplayer), but I lack clear
docs, as source code is a bit rusty to read like that :)
   


Why would a movie player like mplayer want to use a file format which
is considered to be used-by-The-GIMP-only?
 

easily converting a xcf "animation" file to anything readable by mplayer 
(using mencoder).
And apart from that, writing a sort of libxcf , for my personnal and 
anyone_who_want use.


--
Jean-Yves Lamoureux
Workless software developper
jylam at lnxscene dot org


___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer


Re: [Gimp-developer] XCF file format

2003-02-03 Thread Tino Schwarze
On Mon, Feb 03, 2003 at 06:17:48PM +0100, Jean-Yves Lamoureux wrote:

> >>I begun an XCF loader (for a later use in mplayer), but I lack clear
> >>docs, as source code is a bit rusty to read like that :)

> >Why would a movie player like mplayer want to use a file format which
> >is considered to be used-by-The-GIMP-only?

> easily converting a xcf "animation" file to anything readable by mplayer 
> (using mencoder).

There is no such thing as an xcf animation file... If you're talking
about that animation support involving multiple files, you can simply
batch convert them to PNG using // and
then probably encode them to anything you want.

> And apart from that, writing a sort of libxcf , for my personnal and 
> anyone_who_want use.

The problem is: xcf depends on the GIMP internals heavily. You'd need to
reinvent or fork lots of GIMP code to get really useful XCF support. I
would not want to do that. BTW: There was some effort to add XCF support
to ImageMagick a while ago (probably Sven meant that thread).

You might be better off writing a Perl-Fu to do the job.

Bye, Tino.

-- 
 * LINUX - Where do you want to be tomorrow? *
  http://www.tu-chemnitz.de/linux/tag/
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer



Re: [Gimp-developer] XCF file format

2003-02-03 Thread Marco Wessel


On Mon, 3 Feb 2003, Tino Schwarze wrote:

> There is no such thing as an xcf animation file... If you're talking
> about that animation support involving multiple files, you can simply
> batch convert them to PNG using // and
> then probably encode them to anything you want.
>

I think he might mean multi-layered XCF files. Like how we represent
multi-frame GIFs.

___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer



Re : [Gimp-developer] XCF file format

2003-02-03 Thread Jean-Yves Lamoureux
Marco Wessel wrote:


I think he might mean multi-layered XCF files. Like how we represent
multi-frame GIFs.


exactly.
How can the xcf file format so close to gimp's code ? I mean, there are 
layers, layers are a bunch of parameters, and a data field, where pixels 
are stored, no ?
If you're talking about all blending, tracks, etc which are gimp 
relative, it's not that a big deal, as a quite complete 2d engine 
include these functions, some sort of basic wrappers will do the job

--
Jean-Yves Lamoureux
Workless software developper
jylam at lnxscene dot org


___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer


Re: Re : [Gimp-developer] XCF file format

2003-02-03 Thread Simon Budig
Jean-Yves Lamoureux ([EMAIL PROTECTED]) wrote:
> Marco Wessel wrote:
> >I think he might mean multi-layered XCF files. Like how we represent
> >multi-frame GIFs.
> >
> exactly.
> How can the xcf file format so close to gimp's code ? I mean, there are 
> layers, layers are a bunch of parameters, and a data field, where pixels 
> are stored, no ?
> If you're talking about all blending, tracks, etc which are gimp 
> relative, it's not that a big deal, as a quite complete 2d engine 
> include these functions, some sort of basic wrappers will do the job

Basically "close to gimp's code" means: "Is subject to change without
notice". There is fancy stuff in it like parasites, text layers in the
near future and also Path stuff. Of course this could be ignored safely
but we could also decide to add new layer modes etc. pp, maybe we at
some time get layer groups which might have a significant impact on the
rendering pipeline.

I think you face a huge task with little value - xcf will never become a
widely accepted animation standard. Having this in mplayer would of
course have a cool showoff value but thats basically it and I don't
think it is worth the effort.

Bye,
Simon
-- 
  [EMAIL PROTECTED]   http://www.home.unix-ag.org/simon/
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer



Re: Re : [Gimp-developer] XCF file format

2003-02-03 Thread Sven Neumann
Hi,

Jean-Yves Lamoureux <[EMAIL PROTECTED]> writes:

> How can the xcf file format so close to gimp's code ? I mean, there
> are layers, layers are a bunch of parameters, and a data field,
> where pixels are stored, no ?

the pixel data is layed out to match GIMP's internal representation.
The idea behind this concept was to be able to mmap the tiles directly
from the file although this part has never been implemented. And there
is a whole lot more to XCF than layers ...

I'd suggest you use a more standardized animation format such as MNG.

XCF is not meant to be used by anything but The GIMP. It's not
documented and we usually discourage people from using it. One of the
reasons is that it makes it easier for us to change the format without
taking the risk of breaking lots of third-party applications.

For GIMP-2.0 we might try to design a file format that is better
suited as an inter-application exchange format. We've already spent
some thought on this and it might even happen one day.


Salut, Sven

___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer



Re: Re : [Gimp-developer] XCF file format

2003-02-03 Thread pcg
On Mon, Feb 03, 2003 at 07:12:05PM +0100, Simon Budig <[EMAIL PROTECTED]> wrote:
> widely accepted animation standard. Having this in mplayer would of
> course have a cool showoff value but thats basically it and I don't
> think it is worth the effort.

To the contrary - an unmaintained input format named xcf that doesn't
work with current versions of that file format will have the opposite
effect.

-- 
  -==- |
  ==-- _   |
  ---==---(_)__  __   __   Marc Lehmann  +--
  --==---/ / _ \/ // /\ \/ /   [EMAIL PROTECTED]  |e|
  -=/_/_//_/\_,_/ /_/\_\   XX11-RIPE --+
The choice of a GNU generation   |
 |
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer



Re: [Gimp-developer] XCF file format

2003-02-03 Thread Leonard Rosenthol
At 6:24 PM +0100 2/3/03, Tino Schwarze wrote:

BTW: There was some effort to add XCF support
to ImageMagick a while ago (probably Sven meant that thread).



	XCF reading support has been implemented and working in 
ImageMagick for a while now.  It doesn't get 100% of all features, 
but it gets all the majors (including layers (and their attrs), etc.


Leonard
--
---
Leonard Rosenthol
 			 
___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer