Re: Shortcoming in API or behavior of gegl_node_blit and gegl_buffer_get

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/16/07, Martin Nordholts <enselic@xxxxxxxxx> wrote:
> Øyvind Kolås skrev:
> > [...] The rowstride should probably be added to
> > gegl_buffer_get as well, keeping the current behavior of letting 0/-1
> > denote a default rowstride of bytesperpixel*width.
> >
> > Any comments?
> >
> > /Øyvind K.
>
> Just a little comment; to increase code readability I think a symbolic
> constant like e.g. GEGL_DEFAULT_ROWSTRIDE should be provided by the API
> for passing to functions when a default rowstride is desired.
>
> I suspect that's what you intended, just wanted to mention it.

Perhaps

#define GEGL_ROWSTRIDE_AUTO   0

Describes the meaning even more precisely, since it would be computing
the rowstride based on the buffer width and the requested pixel
format.

/Øyvind K.
-- 
«The future is already here. It's just not very evenly distributed»
                                                 -- William Gibson
http://pippin.gimp.org/                            http://ffii.org/
_______________________________________________
Gegl-developer mailing list
Gegl-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gegl-developer


[Index of Archives]     [Yosemite News]     [Yosemite Photos]     [gtk]     [GIMP Users]     [KDE]     [Gimp's Home]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux