MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / bits_init

Function bits_init

libhb/stream.c:2540–2550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2538 0x1ffffff,0x3ffffff,0x7ffffff,0xfffffff,0x1fffffff,0x3fffffff,0x7fffffff,0xffffffff};
2539
2540static inline void bits_init(bitbuf_t *bb, uint8_t* buf, int bufsize, int clear)
2541{
2542 bb->pos = 0;
2543 bb->buf = buf;
2544 bb->size = bufsize;
2545 bb->val = ((uint32_t)bb->buf[0] << 24) | (bb->buf[1] << 16) |
2546 (bb->buf[2] << 8) | bb->buf[3];
2547 if (clear)
2548 memset(bb->buf, 0, bufsize);
2549 bb->size = bufsize;
2550}
2551
2552static inline void bits_clone( bitbuf_t *dst, bitbuf_t *src, int bufsize )
2553{

Callers 5

decode_program_mapFunction · 0.85
decode_PATFunction · 0.85
hb_parse_psFunction · 0.85
decode_ps_mapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected