Mercurial > libavcodec.hg
comparison golomb.h @ 2979:bfabfdf9ce55 libavcodec
COSMETICS: tabs --> spaces, some prettyprinting
author | diego |
---|---|
date | Thu, 22 Dec 2005 01:10:11 +0000 |
parents | ef2149182f1c |
children | 0b546eab515d |
comparison
equal
deleted
inserted
replaced
2978:403183bbb505 | 2979:bfabfdf9ce55 |
---|---|
286 | 286 |
287 /** | 287 /** |
288 * read unsigned golomb rice code (shorten). | 288 * read unsigned golomb rice code (shorten). |
289 */ | 289 */ |
290 static inline unsigned int get_ur_golomb_shorten(GetBitContext *gb, int k){ | 290 static inline unsigned int get_ur_golomb_shorten(GetBitContext *gb, int k){ |
291 return get_ur_golomb_jpegls(gb, k, INT_MAX, 0); | 291 return get_ur_golomb_jpegls(gb, k, INT_MAX, 0); |
292 } | 292 } |
293 | 293 |
294 /** | 294 /** |
295 * read signed golomb rice code (shorten). | 295 * read signed golomb rice code (shorten). |
296 */ | 296 */ |
393 /** | 393 /** |
394 * write signed exp golomb code. 16 bits at most. | 394 * write signed exp golomb code. 16 bits at most. |
395 */ | 395 */ |
396 static inline void set_se_golomb(PutBitContext *pb, int i){ | 396 static inline void set_se_golomb(PutBitContext *pb, int i){ |
397 // if (i>32767 || i<-32767) | 397 // if (i>32767 || i<-32767) |
398 // av_log(NULL,AV_LOG_ERROR,"value out of range %d\n", i); | 398 // av_log(NULL,AV_LOG_ERROR,"value out of range %d\n", i); |
399 #if 0 | 399 #if 0 |
400 if(i<=0) i= -2*i; | 400 if(i<=0) i= -2*i; |
401 else i= 2*i-1; | 401 else i= 2*i-1; |
402 #elif 1 | 402 #elif 1 |
403 i= 2*i-1; | 403 i= 2*i-1; |