FFmpeg
Functions
bitstream.c File Reference
#include <stdint.h>
#include <string.h>
#include "config.h"
#include "libavutil/avassert.h"
#include "libavutil/intreadwrite.h"
#include "put_bits.h"

Go to the source code of this file.

Functions

void ff_put_string (PutBitContext *pb, const char *string, int terminate_string)
 Put the string string in the bitstream. More...
 
void ff_copy_bits (PutBitContext *pb, const uint8_t *src, int length)
 Copy the content of src to the bitstream. More...
 

Detailed Description

bitstream api.

Definition in file bitstream.c.

Function Documentation

◆ ff_put_string()

void ff_put_string ( PutBitContext pb,
const char *  string,
int  terminate_string 
)

Put the string string in the bitstream.

Parameters
terminate_string0-terminates the written string if value is 1

Definition at line 39 of file bitstream.c.

Referenced by encode_frame(), encode_parse_info(), jpeg_put_comments(), mpeg4_encode_vol_header(), and put_pce().

◆ ff_copy_bits()

void ff_copy_bits ( PutBitContext pb,
const uint8_t *  src,
int  length 
)

Copy the content of src to the bitstream.

Parameters
lengththe number of bits of src to copy

Definition at line 49 of file bitstream.c.

Referenced by copy_bits(), encode_thread(), ff_dovi_rpu_generate(), ff_mpeg4_merge_partitions(), merge_context_after_encode(), save_bits(), svq1_encode_plane(), and vvcc_write().