~ubuntu-branches/ubuntu/trusty/gst-libav1.0/trusty-proposed

« back to all changes in this revision

Viewing changes to gst-libs/ext/libav/libavcodec/lagarithrac.h

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2013-09-24 17:07:00 UTC
  • mfrom: (1.1.17) (7.1.9 experimental)
  • Revision ID: package-import@ubuntu.com-20130924170700-4dg62s3pwl0pdakz
Tags: 1.2.0-1
* New upstream stable release:
  + debian/control:
    - Build depend on GStreamer and gst-plugins-base >= 1.2.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
    uint8_t  range_hash[256];   /**< Hash table mapping upper byte to approximate symbol. */
52
52
} lag_rac;
53
53
 
54
 
void lag_rac_init(lag_rac *l, GetBitContext *gb, int length);
 
54
void ff_lag_rac_init(lag_rac *l, GetBitContext *gb, int length);
55
55
 
56
56
/* TODO: Optimize */
57
57
static inline void lag_rac_refill(lag_rac *l)
107
107
        l->range -= range_scaled * l->prob[255];
108
108
    }
109
109
 
 
110
    if (!l->range)
 
111
        l->range = 0x80;
 
112
 
110
113
    l->low -= range_scaled * l->prob[val];
111
114
 
112
115
    return val;