Re: quantization question
Char Acter <[email protected]> Fri, 4 Apr 2003 13:02:26 -0800 (PST)
| Newsgroups | gmane.comp.video.h264.devel |
|---|---|
| Message-ID | <[email protected]> |
I would say this is equivalent:
if( W >= 0) {
Z = ( W*MF + f) >> qbits;
} else {
Z = -(( -W*MF + f) >> qbits)
}
because >> should not be used on a negative number.
Any other opinions out there?
--- Aitor Garay <[email protected]> wrote:
> Hi!,
>
> As the reference software, i'm using for the
> quantization the following expression:
>
> |Z| = ( |W|*MF + f) >> qbits
> sign( Z) = sign( W)
>
> Is this equivalent?
>
> if( W >= 0) {
> Z = ( W*MF + f) >> qbits;
> } else {
>
> Z = ( W*MF - f) >> qbits
> }
>
> /AITOR
>
>
__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/