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

Function init_put_bits

libavcodec/put_bits.h:62–75  ·  view source on GitHub ↗

* Initialize the PutBitContext s. * * @param buffer the buffer where to put bits * @param buffer_size the size in bytes of buffer */

Source from the content-addressed store, hash-verified

60 * @param buffer_size the size in bytes of buffer
61 */
62static inline void init_put_bits(PutBitContext *s, uint8_t *buffer,
63 int buffer_size)
64{
65 if (buffer_size < 0) {
66 buffer_size = 0;
67 buffer = NULL;
68 }
69
70 s->buf = buffer;
71 s->buf_end = s->buf + buffer_size;
72 s->buf_ptr = s->buf;
73 s->bit_left = BUF_BITS;
74 s->bit_buf = 0;
75}
76
77/**
78 * Inform the compiler that a PutBitContext is flushed (i.e. if it has just

Callers 15

mainFunction · 0.85
vvcc_writeFunction · 0.85
update_extradataFunction · 0.85
flv_write_aac_headerFunction · 0.85
put_swf_rectFunction · 0.85
put_swf_matrixFunction · 0.85
swf_write_headerFunction · 0.85
send_mode_aFunction · 0.85
send_mode_bFunction · 0.85
read_packetFunction · 0.85
ff_isom_write_av1cFunction · 0.85
update_extradataFunction · 0.85

Calls

no outgoing calls

Tested by 5

mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
init_cabac_encoderFunction · 0.68