Logo Search packages:      
Sourcecode: blender version File versions

static void set_se_golomb ( PutBitContext *  pb,
int  i 
) [inline, static]

write signed exp golomb code. 16 bits at most.

Definition at line 396 of file golomb.h.

References set_ue_golomb().

                                                          {
//    if (i>32767 || i<-32767)
//        av_log(NULL,AV_LOG_ERROR,"value out of range %d\n", i);
#if 0
    if(i<=0) i= -2*i;
    else     i=  2*i-1;
#elif 1
    i= 2*i-1;
    if(i<0) i^= -1; //FIXME check if gcc does the right thing
#else
    i= 2*i-1;
    i^= (i>>31);
#endif
    set_ue_golomb(pb, i);
}


Generated by  Doxygen 1.6.0   Back to index