Re: Video Coding Puzzle

Michael Niedermayer <[email protected]>
Newsgroups gmane.comp.video.xine.codec.devel
Message-ID <[email protected]>
Hi

On Friday 09 July 2004 17:17, Mike Melanson wrote:
[...]
> 0x3fa73d75 -> 1.306563
> 0x3f0a8bd4 -> 0.541196
> 0x3ec3cf15 -> 0.382439
> 0x59c00000 -> 6755399441055744.000000
>
> however i had trouble defining these numbers as a float, since
>
> 1.306563 -> 0x3fa73d75
> 0.541196 -> 0x3f0a8bd2                <---------------
> 0.382439 -> 0x3ec3cf0b                 <---------------
> 6755399441055744.000000 -> 0x59c00000
>
> which give a wrong result. This made me define those constants as
> hexadecimal values instead of floating point numbers just to be on the safe
> side (although this could be a quirk from Visual C++, i have yet to verify
> this)
u need to use more digits to uniquely store floats, try
		1.3065630,
		0.5411961,
		0.3824393,
		6755399441055744.0000000

[...]
-- 
Michael
level[i]= get_vlc(); i+=get_vlc();		(violates patent EP0266049)
median(mv[y-1][x], mv[y][x-1], mv[y+1][x+1]);	(violates patent #5,905,535)
buf[i]= qp - buf[i-1];				(violates patent #?)
for more examples, see http://mplayerhq.hu/~michael/patent.html
stop it, see http://petition.eurolinux.org & http://petition.ffii.org/eubsa/en


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.