FFmpeg
Functions | Variables
put_golomb.h File Reference

exp golomb vlc writing stuff More...

#include <stdint.h>
#include "put_bits.h"

Go to the source code of this file.

Functions

static void set_ue_golomb (PutBitContext *pb, int i)
 write unsigned exp golomb code. More...
 
static void set_ue_golomb_long (PutBitContext *pb, uint32_t i)
 write unsigned exp golomb code. More...
 
static void set_te_golomb (PutBitContext *pb, int i, int range)
 write truncated unsigned exp golomb code. More...
 
static void set_se_golomb (PutBitContext *pb, int i)
 write signed exp golomb code. More...
 
static void set_ur_golomb (PutBitContext *pb, int i, int k, int limit, int esc_len)
 write unsigned golomb rice code (ffv1). More...
 
static void set_ur_golomb_jpegls (PutBitContext *pb, int i, int k, int limit, int esc_len)
 write unsigned golomb rice code (jpegls). More...
 
static void set_sr_golomb (PutBitContext *pb, int i, int k, int limit, int esc_len)
 write signed golomb rice code (ffv1). More...
 

Variables

const uint8_t ff_ue_golomb_len [256]
 

Detailed Description

exp golomb vlc writing stuff

Author
Michael Niedermayer micha.nosp@m.elni.nosp@m.@gmx..nosp@m.at and Alex Beregszaszi

Definition in file put_golomb.h.

Function Documentation

◆ set_ue_golomb()

static void set_ue_golomb ( PutBitContext pb,
int  i 
)
inlinestatic

write unsigned exp golomb code.

2^16 - 2 at most

Definition at line 41 of file put_golomb.h.

Referenced by ff_dovi_rpu_generate(), ff_hevc_encode_nal_vps(), generate_ext_v1(), generate_ext_v2(), main(), put_ue_coef(), set_se_golomb(), and set_te_golomb().

◆ set_ue_golomb_long()

static void set_ue_golomb_long ( PutBitContext pb,
uint32_t  i 
)
inlinestatic

write unsigned exp golomb code.

2^32-2 at most.

Definition at line 57 of file put_golomb.h.

Referenced by main().

◆ set_te_golomb()

static void set_te_golomb ( PutBitContext pb,
int  i,
int  range 
)
inlinestatic

write truncated unsigned exp golomb code.

Definition at line 72 of file put_golomb.h.

◆ set_se_golomb()

static void set_se_golomb ( PutBitContext pb,
int  i 
)
inlinestatic

write signed exp golomb code.

16 bits at most.

Definition at line 86 of file put_golomb.h.

Referenced by main(), and put_se_coef().

◆ set_ur_golomb()

static void set_ur_golomb ( PutBitContext pb,
int  i,
int  k,
int  limit,
int  esc_len 
)
inlinestatic

write unsigned golomb rice code (ffv1).

Definition at line 97 of file put_golomb.h.

Referenced by set_sr_golomb().

◆ set_ur_golomb_jpegls()

static void set_ur_golomb_jpegls ( PutBitContext pb,
int  i,
int  k,
int  limit,
int  esc_len 
)
inlinestatic

write unsigned golomb rice code (jpegls).

Definition at line 114 of file put_golomb.h.

Referenced by ls_encode_regular(), and ls_encode_runterm().

◆ set_sr_golomb()

static void set_sr_golomb ( PutBitContext pb,
int  i,
int  k,
int  limit,
int  esc_len 
)
inlinestatic

write signed golomb rice code (ffv1).

Definition at line 143 of file put_golomb.h.

Referenced by put_vlc_symbol().

Variable Documentation

◆ ff_ue_golomb_len

const uint8_t ff_ue_golomb_len[256]

Definition at line 89 of file golomb.c.

Referenced by set_ue_golomb(), and set_ue_golomb_long().