MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / wv_get_value_integer

Function wv_get_value_integer

libavcodec/wavpack.c:364–378  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

362}
363
364static inline int wv_get_value_integer(WavpackContext *s, uint32_t *crc, int S)
365{
366 int bit;
367
368 if(s->extra_bits){
369 S <<= s->extra_bits;
370
371 if(s->got_extra_bits){
372 S |= get_bits(&s->gb_extra_bits, s->extra_bits);
373 *crc = *crc * 9 + (S&0xffff) * 3 + ((unsigned)S>>16);
374 }
375 }
376 bit = (S & s->and) | s->or;
377 return (((S + bit) << s->shift) - bit) << s->post_shift;
378}
379
380static float wv_get_value_float(WavpackContext *s, uint32_t *crc, int S)
381{

Callers 2

wv_unpack_stereoFunction · 0.85
wv_unpack_monoFunction · 0.85

Calls 1

get_bitsFunction · 0.85

Tested by

no test coverage detected