FFmpeg
Data Fields
LatticePalContext Struct Reference

Data Fields

const AVClassclass
 
int density
 lattice steps per color axis More...
 
int dither
 
int max_colors
 palette entries to use at most More...
 
int alpha
 quantize the alpha channel too (D4 lattice) More...
 
int refine
 rediffuse the error of dropped colors More...
 
int ro
 
int go
 
int bo
 
int ao
 byte offsets of R, G, B, A in an input pixel, ao < 0: opaque More...
 
int nc
 quantized components, 3 or 4 More...
 
int pixstep
 bytes per input pixel More...
 
float scale
 density / 255 More...
 
uint8_t idx2val [MAX_DENSITY+1]
 lattice index -> 8-bit component value More...
 
int ordered_dither [4][8 *8]
 per-channel bayer offsets spanning one lattice period More...
 
int * blue_dither [4]
 per-channel blue noise offsets spanning one lattice period More...
 
int32_terr [2]
 Floyd-Steinberg error rows, nc ints per pixel. More...
 
int dim
 density + 1, lattice cells per axis More...
 
int min_gap
 smallest idx2val increment More...
 
int32_tcell
 dim^nc table: lattice cell -> list index + 1, 0 if unused More...
 
uint32_t * pixpos
 per-pixel cell position of the quantized color More...
 
PalEntrylist
 colors used by the current frame More...
 
int nb_used
 
int nb_alloc
 
int * alive_arr
 compact list of live color indices while reducing More...
 
int * alive_pos
 position of each live color in alive_arr More...
 
int nb_alive
 entries in alive_arr, 0 outside reduction/remap More...
 
int alive_alloc
 
uint32_t prev_pal [AVPALETTE_COUNT]
 previous frame's palette, for stable slot assignment More...
 
int * touched
 cells filled on demand by the refinement pass More...
 
int nb_touched
 
int touched_alloc
 

Detailed Description

Definition at line 82 of file vf_latticepal.c.

Field Documentation

◆ class

const AVClass* LatticePalContext::class

Definition at line 83 of file vf_latticepal.c.

◆ density

int LatticePalContext::density

lattice steps per color axis

Definition at line 84 of file vf_latticepal.c.

◆ dither

int LatticePalContext::dither

Definition at line 85 of file vf_latticepal.c.

◆ max_colors

int LatticePalContext::max_colors

palette entries to use at most

Definition at line 86 of file vf_latticepal.c.

◆ alpha

int LatticePalContext::alpha

quantize the alpha channel too (D4 lattice)

Definition at line 87 of file vf_latticepal.c.

◆ refine

int LatticePalContext::refine

rediffuse the error of dropped colors

Definition at line 88 of file vf_latticepal.c.

◆ ro

int LatticePalContext::ro

Definition at line 90 of file vf_latticepal.c.

◆ go

int LatticePalContext::go

Definition at line 90 of file vf_latticepal.c.

◆ bo

int LatticePalContext::bo

Definition at line 90 of file vf_latticepal.c.

◆ ao

int LatticePalContext::ao

byte offsets of R, G, B, A in an input pixel, ao < 0: opaque

Definition at line 90 of file vf_latticepal.c.

◆ nc

int LatticePalContext::nc

quantized components, 3 or 4

Definition at line 91 of file vf_latticepal.c.

◆ pixstep

int LatticePalContext::pixstep

bytes per input pixel

Definition at line 92 of file vf_latticepal.c.

◆ scale

float LatticePalContext::scale

density / 255

Definition at line 93 of file vf_latticepal.c.

◆ idx2val

uint8_t LatticePalContext::idx2val[MAX_DENSITY+1]

lattice index -> 8-bit component value

Definition at line 94 of file vf_latticepal.c.

◆ ordered_dither

int LatticePalContext::ordered_dither[4][8 *8]

per-channel bayer offsets spanning one lattice period

Definition at line 95 of file vf_latticepal.c.

◆ blue_dither

int* LatticePalContext::blue_dither[4]

per-channel blue noise offsets spanning one lattice period

Definition at line 96 of file vf_latticepal.c.

◆ err

int32_t* LatticePalContext::err[2]

Floyd-Steinberg error rows, nc ints per pixel.

Definition at line 97 of file vf_latticepal.c.

◆ dim

int LatticePalContext::dim

density + 1, lattice cells per axis

Definition at line 99 of file vf_latticepal.c.

◆ min_gap

int LatticePalContext::min_gap

smallest idx2val increment

Definition at line 100 of file vf_latticepal.c.

◆ cell

int32_t* LatticePalContext::cell

dim^nc table: lattice cell -> list index + 1, 0 if unused

Definition at line 101 of file vf_latticepal.c.

◆ pixpos

uint32_t* LatticePalContext::pixpos

per-pixel cell position of the quantized color

Definition at line 102 of file vf_latticepal.c.

◆ list

PalEntry* LatticePalContext::list

colors used by the current frame

Definition at line 103 of file vf_latticepal.c.

◆ nb_used

int LatticePalContext::nb_used

Definition at line 104 of file vf_latticepal.c.

◆ nb_alloc

int LatticePalContext::nb_alloc

Definition at line 105 of file vf_latticepal.c.

◆ alive_arr

int* LatticePalContext::alive_arr

compact list of live color indices while reducing

Definition at line 106 of file vf_latticepal.c.

◆ alive_pos

int* LatticePalContext::alive_pos

position of each live color in alive_arr

Definition at line 107 of file vf_latticepal.c.

◆ nb_alive

int LatticePalContext::nb_alive

entries in alive_arr, 0 outside reduction/remap

Definition at line 108 of file vf_latticepal.c.

◆ alive_alloc

int LatticePalContext::alive_alloc

Definition at line 109 of file vf_latticepal.c.

◆ prev_pal

uint32_t LatticePalContext::prev_pal[AVPALETTE_COUNT]

previous frame's palette, for stable slot assignment

Definition at line 110 of file vf_latticepal.c.

◆ touched

int* LatticePalContext::touched

cells filled on demand by the refinement pass

Definition at line 111 of file vf_latticepal.c.

◆ nb_touched

int LatticePalContext::nb_touched

Definition at line 112 of file vf_latticepal.c.

◆ touched_alloc

int LatticePalContext::touched_alloc

Definition at line 113 of file vf_latticepal.c.


The documentation for this struct was generated from the following file: