[Ffmpeg-cvslog] [ffmpeg]: r5417 - in /trunk: libavcodec/snow.c libavcodec/snow.h tests/ffmpeg.regression.ref tests/rotozoom.regression.ref

Romain DEGEZ romain.degez
Sun May 28 23:54:51 CEST 2006


Loren Merritt wrote:

>>> +    int mx_context= av_log2(2*ABS(left->mx - top->mx)) + 16*!!b->ref;
>>> +    int my_context= av_log2(2*ABS(left->my - top->my)) + 16*!!b->ref;
>>
>> Wow, never see that.
>> What does '!!' mean ?
> 
> It converts an int to a boolean.
> 
> !!0 == 0
> !!1 == 1
> !!42 == 1

Nice, thank you for the tips.

-- 
Romain DEGEZ

Smartjog S.A. - http://www.smartjog.com
16 Place de la R?publique, 75010 Paris, FRANCE





More information about the ffmpeg-cvslog mailing list