FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
cbs_internal.h File Reference
#include "avcodec.h"
#include "cbs.h"
#include "get_bits.h"
#include "put_bits.h"

Go to the source code of this file.

Data Structures

struct  CodedBitstreamType
 

Macros

#define MAX_UINT_BITS(length)   ((UINT64_C(1) << (length)) - 1)
 

Functions

void ff_cbs_trace_header (CodedBitstreamContext *ctx, const char *name)
 
void ff_cbs_trace_syntax_element (CodedBitstreamContext *ctx, int position, const char *name, const int *subscripts, const char *bitstring, int64_t value)
 
int ff_cbs_read_unsigned (CodedBitstreamContext *ctx, GetBitContext *gbc, int width, const char *name, const int *subscripts, uint32_t *write_to, uint32_t range_min, uint32_t range_max)
 
int ff_cbs_write_unsigned (CodedBitstreamContext *ctx, PutBitContext *pbc, int width, const char *name, const int *subscripts, uint32_t value, uint32_t range_min, uint32_t range_max)
 

Variables

const CodedBitstreamType ff_cbs_type_av1
 
const CodedBitstreamType ff_cbs_type_h264
 
const CodedBitstreamType ff_cbs_type_h265
 
const CodedBitstreamType ff_cbs_type_jpeg
 
const CodedBitstreamType ff_cbs_type_mpeg2
 
const CodedBitstreamType ff_cbs_type_vp9
 

Macro Definition Documentation

#define MAX_UINT_BITS (   length)    ((UINT64_C(1) << (length)) - 1)

Function Documentation

void ff_cbs_trace_header ( CodedBitstreamContext ctx,
const char *  name 
)

Definition at line 367 of file cbs.c.

void ff_cbs_trace_syntax_element ( CodedBitstreamContext ctx,
int  position,
const char *  name,
const int subscripts,
const char *  bitstring,
int64_t  value 
)
int ff_cbs_read_unsigned ( CodedBitstreamContext ctx,
GetBitContext gbc,
int  width,
const char *  name,
const int subscripts,
uint32_t *  write_to,
uint32_t  range_min,
uint32_t  range_max 
)

Definition at line 426 of file cbs.c.

Referenced by cbs_av1_read_leb128(), and cbs_av1_read_subexp().

int ff_cbs_write_unsigned ( CodedBitstreamContext ctx,
PutBitContext pbc,
int  width,
const char *  name,
const int subscripts,
uint32_t  value,
uint32_t  range_min,
uint32_t  range_max 
)

Definition at line 469 of file cbs.c.

Referenced by cbs_av1_write_leb128(), and cbs_av1_write_subexp().

Variable Documentation

const CodedBitstreamType ff_cbs_type_av1

Definition at line 1317 of file cbs_av1.c.

const CodedBitstreamType ff_cbs_type_h264

Definition at line 1498 of file cbs_h2645.c.

const CodedBitstreamType ff_cbs_type_h265

Definition at line 1511 of file cbs_h2645.c.

const CodedBitstreamType ff_cbs_type_jpeg

Definition at line 509 of file cbs_jpeg.c.

const CodedBitstreamType ff_cbs_type_mpeg2

Definition at line 395 of file cbs_mpeg2.c.

const CodedBitstreamType ff_cbs_type_vp9

Definition at line 681 of file cbs_vp9.c.