[Ffmpeg-devel] moving non-SIMD parts of libswscale to LGPL

Luca Abeni lucabe72
Mon Dec 11 16:37:16 CET 2006


Hi all,

On Tue, 2006-12-05 at 10:23 +0100, Luca Abeni wrote:
> Hi Michael,
> 
> On Mon, 2006-12-04 at 13:31 +0100, Michael Niedermayer wrote:
> [...]
> > 117579*255/76309        = 392.91... = /2 = 196.455...
> > 138453*255/76309        = 462.665...= /2 = 231.33...
> > (25675+53279)*255/76309 = 263.83... = /2 = 131.91...
> > 
> > 256 + 2 *232 = y range + max chroma table range
> > 
> > 393+463+264+256*3 = 1888
> > 197 + 2*682 + 256 + 132 = 1949
> > so it seems this table is larger then needed ...
> > 
> > i suggest that you simply check which index in the table the max/min yuv
> > values would reach and then use that to allocate the table and set the index
> > of each "subtable"
> Ok; thanks for the explaination. I'll perform this check, changing the
> values to the correct ones and adding comments about them.
Done... A new version of yuv2rgb_init.c is attached; comments are
welcome.

(I still have to compute more precise values for the yuv ---> rgb
matrix... But I am under the impression that the MPEG2 standard
truncates the values of the numbers in the rgb ---> yuv conversion
matrices: does anyone have the "correct" values?)


			Thanks,
				Luca
-- 
_____________________________________________________________________________
Copy this in your signature, if you think it is important:
                               N O    W A R ! ! !

-------------- next part --------------
A non-text attachment was scrubbed...
Name: yuv2rgb_init.c
Type: text/x-csrc
Size: 13085 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20061211/0b490391/attachment.c>



More information about the ffmpeg-devel mailing list