Re: [Pixman] [cairo] Planar YUV support

2011-03-04 Thread Bill Spitzak
Soeren Sandmann wrote: Siarhei Siamashka writes: The pipeline as it is now: 1 convert image sample to a8r8g8b8 2 extend sample grid in all directions according to repeat 3 interpolate between sample according to filter 4 transform 5 resample 6 combine 7 store What is

Re: [Pixman] [cairo] Planar YUV support

2011-03-04 Thread Soeren Sandmann
Siarhei Siamashka writes: > On Wed, Mar 2, 2011 at 4:16 PM, Soeren Sandmann wrote: >> Siarhei Siamashka writes: >> >>> I'm not a big fan of "let's make this totally universal and future >>> proof" approach if only a very small fraction of this functionality is >>> going to be actually used. Mor

Re: [Pixman] [cairo] Planar YUV support

2011-03-04 Thread Andrea Canciani
On Thu, Mar 3, 2011 at 6:58 PM, Siarhei Siamashka wrote: > On Wed, Mar 2, 2011 at 4:16 PM, Soeren Sandmann wrote: >> Siarhei Siamashka writes: >> >>> I'm not a big fan of "let's make this totally universal and future >>> proof" approach if only a very small fraction of this functionality is >>>

Re: [Pixman] [cairo] Planar YUV support

2011-03-03 Thread Siarhei Siamashka
On Wed, Mar 2, 2011 at 4:16 PM, Soeren Sandmann wrote: > Siarhei Siamashka writes: > >> I'm not a big fan of "let's make this totally universal and future >> proof" approach if only a very small fraction of this functionality is >> going to be actually used. Moreover, I suspect that trying to be

Re: [Pixman] [cairo] Planar YUV support

2011-03-02 Thread Andrea Canciani
On Wed, Mar 2, 2011 at 3:16 PM, Soeren Sandmann wrote: > Siarhei Siamashka writes: > >> I'm not a big fan of "let's make this totally universal and future >> proof" approach if only a very small fraction of this functionality is >> going to be actually used. Moreover, I suspect that trying to be

Re: [Pixman] [cairo] Planar YUV support

2011-03-02 Thread Soeren Sandmann
Siarhei Siamashka writes: > I'm not a big fan of "let's make this totally universal and future > proof" approach if only a very small fraction of this functionality is > going to be actually used. Moreover, I suspect that trying to be too > general was responsible for slowing down the original "P

Re: [Pixman] [cairo] Planar YUV support

2011-03-02 Thread Siarhei Siamashka
On Fri, Feb 25, 2011 at 11:18 PM, Andrea Canciani wrote: > On Fri, Feb 25, 2011 at 2:00 PM, Siarhei Siamashka > wrote: >> I'm cautiously interested in getting planar YUV format support added to >> pixman/cairo for the purpose of implementing some kind of reasonably >> well performing software fal

Re: [Pixman] [cairo] Planar YUV support

2011-02-26 Thread Øyvind Kolås
On Fri, Feb 25, 2011 at 9:18 PM, Andrea Canciani wrote: > I would suggest the creation of a new opaque pixman type, pixman_format_t, > that represents the format of a bits image with more flexibility than > the existing > pixman_format_code_t. > > To represent the existing formats (and many more,

Re: [Pixman] [cairo] Planar YUV support

2011-02-25 Thread Andrea Canciani
On Fri, Feb 25, 2011 at 2:00 PM, Siarhei Siamashka wrote: > On Tuesday 09 March 2010 18:09:57 Benjamin Otte wrote: >> Hey, >> >> Here's an update on my work on YUV planar support, also known as "what >> we got from the gstreamer-cairo hackfest". I've reworked my experimental >> code from back then

Re: [Pixman] [cairo] Planar YUV support

2011-02-25 Thread Siarhei Siamashka
On Tuesday 09 March 2010 18:09:57 Benjamin Otte wrote: > Hey, > > Here's an update on my work on YUV planar support, also known as "what > we got from the gstreamer-cairo hackfest". I've reworked my experimental > code from back then to incorporate the things we agreed on. It is not > complete yet

Re: [Pixman] [cairo] Planar YUV support

2010-05-14 Thread Benjamin Otte
On Thu, 2010-05-13 at 22:02 +0200, Soeren Sandmann wrote: > I do think that interpolation should not be the > responsibility of the sample fetchers though because that ultimately > leads to them having to deal with fractional positions. > Yeah, I fully agree here. I think what we should have is tw

Re: [Pixman] [cairo] Planar YUV support

2010-05-13 Thread Soeren Sandmann
Benjamin Otte writes: > > Your patches add YCbCr support at the first stage in the sense that it > > converts each Y sample to a8r8g8b8 using the nearest neighbor Cb and > > Cr samples. > > > You did not look at the (old) YUV branch by accident and used the > current (planar) branch, right? I'm

Re: [Pixman] [cairo] Planar YUV support

2010-05-13 Thread Bill Spitzak
Benjamin Otte wrote: I added unmultiplied support for one simple reason really: YCbCr with alpha channel is unmultiplied. So it seemed rather trivial to support unmultiplied ARGB, too. Actually YCbCr can be "premulitiplied". It is a linear transform of some RGB data and since RGB can be premu

Re: [Pixman] [cairo] Planar YUV support

2010-05-12 Thread Soeren Sandmann
Hi Benjamin, > Here's an update on my work on YUV planar support, also known as "what > we got from the gstreamer-cairo hackfest". I've reworked my experimental > code from back then to incorporate the things we agreed on. It is not > complete yet, but only misses details. So if you're a maintaine